/* =====================
   THEME
===================== */
:root {
    --bg:#f8fafc;
    --text:#1a1a1a;
    --card:#fff;
    --section:#eef2f7;
    --accent:#3b82f6;
}

.dark {
    --bg:#0f141a;
    --text:#e6edf3;
    --card:#161d26;
    --section:#121923;
    --accent:#60a5fa;
}

/* =====================
   BASE
===================== */
body {
    margin:0;
    font-family:"Segoe UI",sans-serif;
    background:var(--bg);
    color:var(--text);
}

img {
    display: block;
}

.container {
    max-width:1150px;
    margin:auto;
    padding:0 20px;
}

.section {
    padding:90px 0;
}

/* =====================
   TYPOGRAPHY
===================== */
h1 {font-size:3.2rem;}
h2 {font-size:2rem; text-align:center; margin-bottom:40px;}
h3 {font-size:1.3rem;}
p {line-height:1.7;}


/* ===== LOGO ===== */
.logo img {
    height: 60px;   /* adjust size here */
    width: auto;
    display: block;
}

.logo {
    display: flex;
    align-items: center;
    height: 100%;
    line-height: 0; /* IMPORTANT: removes phantom vertical space */
}

.mode-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.mode-btn img {
    width: 24px;   /* adjust size */
    height: 24px;
}

/* =====================
   NAV
===================== */
.nav-wrap {
    position:sticky; top:0;
    background:var(--card);
    border-bottom:1px solid #ddd;
    z-index:100;
}

.nav-inner {
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:8px 0;
    position: relative; /* for phone ha */
}

.menu {
    display:flex;
    gap:20px;
}

.menu a {
    text-decoration:none;
    color:var(--text);
    font-weight:600;
    position:relative;
}

.menu a::after {
    content:"";
    position:absolute;
    height:2px;
    width:0;
    bottom:-4px;
    left:0;
    background:var(--accent);
    transition:.3s;
}
.menu a:hover::after {width:100%;}

/* =====================
   DROPDOWN MENU (FIXED)
===================== */

.dropdown {
    position: relative;
}

/* default hidden state */
.dropdown-content {
    position: absolute;
    top: 35px;
    left: 0;

    background: var(--card);      /* solid background */
    border: 1px solid #ddd;
    border-radius: 0;
    min-width: fit-content;
    padding: 8px 0;

    display: none;                /* NO opacity trick */
    z-index: 999;
}

/* OPEN STATE (hover OR JS) */
.dropdown:hover .dropdown-content,
.dropdown.open .dropdown-content {
    display: block;
}

/* links */
.dropdown-content a {
    display: block;
    padding: 10px 14px;
    text-decoration: none;
    color: var(--text);
    font-weight: 400;
    background: var(--card);      /* ensures no transparent blending */
    white-space: nowrap;
}

/* hover effect */
.dropdown-content a:hover {
    background: var(--section);
    color: var(--accent);
}

/* =====================
   HERO
===================== */
.hero {
    height:90vh;
    position:relative;
    overflow:hidden;
}

.hero video {
    position:absolute;
    width:120%;
    height:120%;
    object-fit:cover;
    filter:brightness(.5);
}

.hero::after {
    content:"";
    position:absolute;
    inset:0;
    background:rgba(0,0,0,.35);
}

.hero-text {
    position:absolute;
    top:50%; left:50%;
    transform:translate(-50%,-50%);
    text-align:center;
    color:#fff;
    max-width:800px;
}

/* =====================
   LAYOUT
===================== */
.grid {
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:25px;
}

.features-row {
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:40px;
}

/* =====================
   CARDS
===================== */
.card {
    background:var(--card);
    padding:25px;
    border-radius:12px;
    border:1px solid #ddd;
    transition:.25s;
}

.card:hover {
    transform:translateY(-8px);
    box-shadow:0 15px 40px rgba(0,0,0,.1);
}

/* =====================
   ABOUT
===================== */
.about {
    display: flex;
    gap: 50px;
    align-items: center;
}

.about div {
    flex: 1;
    text-align: left; /* KEY */
}

.about p {
    text-align: left;
}

.about img {
    width: 50%;
    border-radius: 0;
}

/* =====================
   FEATURES
===================== */
.feature {
    display: flex;
    flex-direction: column;   /* STACK vertically */
    align-items: center;
    text-align: center;
    gap: 5px;
}

.icon {
    width: 40px;
    height: 40px;
}

.icon img {
    width: 100%;
    height: 100%;
    display: block;
}

/* =====================
   RESOURCES
===================== */
.resource-card img {
    width:100%;
    border-radius:0;
}

.resource-card a {
    display:block;
    margin-top:10px;
    font-weight:600;
    text-decoration:none;
    color:var(--text);
}
.resource-card a:hover {color:var(--accent);}

.resource-card p {
    font-size:.95rem;
    color:#777;
}

/* =====================
   BUTTON
===================== */
button {
    background: var(--accent);
    color: #fff;
    border: 2px solid var(--accent);
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.2s;
	
	font-size: 16px;
    font-weight: 400;
}

button:hover {
    background: transparent;
    color: var(--accent);
}

/* =====================
   FOOTER
===================== */
footer {
    background: var(--card);
    border-top: 1px solid #ddd;
    padding: 50px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* you have 5 columns */
    gap: 40px;
}

.footer-grid div {
    display: flex;
    flex-direction: column;   /* ensures perfect stacking */
}

footer h4 {
    margin-bottom: 12px;
    font-size: 1rem;
}

/* KEY FIX */
footer a {
    display: block;              /* forces stacking */
    text-decoration: none;       /* removes underline */
    color: var(--text);
    margin-bottom: 6px;
    font-size: 0.95rem;
}

/* hover style (clean, no underline) */
footer a:hover {
    color: var(--accent);
}

/* =====================
   RESPONSIVE
===================== */
@media (max-width:900px){
    .grid,
    .features-row {
        grid-template-columns:1fr;
    }

    .about {
        flex-direction:column;
    }

    .about img {
        width:100%;
    }

    .industries-overlay {
        width:100%;
    }

    h2 {font-size:1.6rem;}

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

/* =====================
   CONTACT US MESSAGE
===================== */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-row {
    margin-bottom: 15px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    outline: none;
    transition: 0.2s;
    box-sizing: border-box;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74,144,226,0.15);
}

.contact-form textarea {
    min-height: 140px;
    resize: vertical;
}

.contact-form button {
    width: 100%;
    padding: 12px;
    background: #4a90e2;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.2s;
}

.contact-form button:hover {
    background: #357bd8;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
    color: #999;
}

/* =====================
    Hide hamburger on phone
===================== */
.hamburger {
    display: none;
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text);   /* 👈 fixes visibility in light/dark mode */
}

/* Mobile styles */
@media (max-width: 768px) {

    .hamburger {
        display: block;
    }

    .menu {
        display: none;
        flex-direction: column;
        gap: 10px;

        position: absolute;
        top: 100%;
        right: 0;

        background: var(--card);
        padding: 15px;
        border-radius: 8px;
        box-shadow: 0 10px 25px rgba(0,0,0,0.1);
        min-width: 200px;
        z-index: 999;
    }

    .menu.active {
        display: flex;
    }
}

