/* =====================================================
   BAW SOLUTIONS PREMIUM HEADER
===================================================== */


/* ===============================
   HEADER BASE
================================ */


.site-header {

    position: sticky;

    top: 0;

    z-index: 9999;

}


.container {

    width: min(calc(100% - 40px), var(--container));

    margin: auto;

}





/* ===============================
   TOPBAR
================================ */


.topbar {

    background: var(--primary-dark);

    color: var(--white);

    font-size: 14px;

}


.topbar-container {

    min-height: 42px;

    display: flex;

    align-items: center;

    justify-content: space-between;

}



.topbar-left,
.topbar-right {

    display: flex;

    align-items: center;

    gap: 22px;

}



.topbar a {

    color: rgba(255, 255, 255, .85);

    text-decoration: none;

    display: flex;

    align-items: center;

    gap: 8px;

    transition: var(--transition);

}



.topbar a:hover {

    color: var(--accent);

}



.topbar svg {

    width: 16px;

    height: 16px;

}





/* ===============================
   NAVBAR
================================ */

/* .navbar {

    position: relative;

    width: 100%;

    background: rgba(255, 255, 255, .85);

    backdrop-filter: blur(18px);

    -webkit-backdrop-filter: blur(18px);

    transition: var(--transition);

} */


.navbar-container {

    min-height: 88px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    transition: var(--transition);

}



.site-header.scrolled .navbar {


    background: rgba(255, 255, 255, .96);

    box-shadow: var(--shadow-md);


}



.site-header.scrolled .navbar-container {


    min-height: 72px;


}




/* ===============================
   LOGO
================================ */


.logo {

    display: flex;

    align-items: center;

    height: 62px;

}

.logo img {

    display: block;

    max-height: 40px;

    width: auto;

    object-fit: contain;

}







/* ===============================
   DESKTOP MENU
================================ */


.nav-links {

    display: flex;

    align-items: center;

    gap: 28px;

}



.nav-link {

    position: relative;

    background: none;

    border: 0;

    cursor: pointer;

    text-decoration: none;

    color: var(--text);

    font-size: 15px;

    font-weight: 600;

    display: flex;

    align-items: center;

    gap: 6px;

    transition: var(--transition);

}



.nav-link svg {

    width: 16px;

    transition: var(--transition);

}



.nav-link:hover {

    color: var(--primary);

}




/* Premium underline */


.nav-link::after {

    content: "";

    position: absolute;

    bottom: -12px;

    left: 0;

    width: 0;

    height: 3px;

    border-radius: 20px;

    background: linear-gradient(90deg,
            var(--primary),
            var(--accent));

    transition: var(--transition);

}



.nav-link:hover::after,
.nav-link.active::after {

    width: 100%;

}



.dropdown-btn:hover svg {

    transform: rotate(180deg);

}





/* ===============================
   CTA BUTTON
================================ */


.nav-btn {

    padding: 14px 26px;

    border-radius: 50px;

    background: var(--primary);

    color: white;

    text-decoration: none;

    font-weight: 700;

    font-size: 14px;

    transition: var(--transition);

}



.nav-btn:hover {

    background: var(--secondary);

    transform: translateY(-3px);

    box-shadow: var(--shadow-sm);

}





/* ===============================
   MEGA MENU
================================ */


.nav-dropdown {

    position: relative;

}



.mega-menu {

    position: absolute;

    top: calc(100% + 28px);

    left: 50%;

    width: min(1180px, 95vw);

    background: var(--white);

    padding: 32px;

    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-lg);


    opacity: 0;

    visibility: hidden;


    transform:
        translateX(-50%) translateY(25px) perspective(800px) rotateX(-8deg);


    transform-origin: top;

    transition: .45s ease;

}



.nav-dropdown:hover .mega-menu {


    opacity: 1;

    visibility: visible;


    transform:
        translateX(-50%) translateY(0) perspective(800px) rotateX(0);


}





.mega-inner {

    display: grid;

    grid-template-columns: 1fr 340px;

    gap: 30px;

}





.mega-section h4 {


    color: var(--primary);

    font-size: 14px;

    text-transform: uppercase;

    letter-spacing: 1px;

    margin-bottom: 20px;

}





.mega-cards {

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 16px;

}





.mega-card {

    display: flex;

    gap: 15px;

    align-items: center;

    padding: 15px;

    background: var(--surface);

    border-radius: var(--radius-md);

    border: 1px solid transparent;

    text-decoration: none;

    color: var(--text);

    transition: var(--transition);

}



.mega-card:hover {

    background: white;

    border-color: var(--primary);

    transform:

        translateY(-8px) scale(1.02);

    box-shadow: var(--shadow-sm);

}





.mega-card img {

    width: 60px;

    height: 60px;

    border-radius: var(--radius-sm);

    object-fit: cover;

}





.mega-card h5 {

    margin: 0 0 5px;

    font-size: 15px;

}



.mega-card p {

    margin: 0;

    font-size: 13px;

    color: var(--text-muted);

}


.mega-menu {

    position: fixed;

    left: 50%;

    transform: translateX(-50%);

    /* width: min(1250px, 92vw); */

}


/* Feature Box */


.mega-feature {

    padding: 22px;

    color: white;

    border-radius: var(--radius-lg);

    background:

        linear-gradient(145deg,
            var(--primary-dark),
            var(--secondary));

}



.mega-feature img {

    width: 100%;

    height: 160px;

    object-fit: cover;

    border-radius: var(--radius-md);

}



.mega-feature h3 {

    margin-top: 18px;

    font-size: 22px;

}



.mega-feature p {

    opacity: .8;

    line-height: 1.6;

}



.mega-feature a {

    display: inline-flex;

    margin-top: 15px;

    padding: 12px 22px;

    background: var(--accent);

    color: white;

    border-radius: 50px;

    text-decoration: none;

}


/* ===============================
   MOBILE MENU BUTTON
================================ */


.hamburger {

    display: none;

    background: none;

    border: 0;

    cursor: pointer;

}



.hamburger span {

    display: block;

    width: 28px;

    height: 3px;

    margin: 6px;

    background: var(--text);

    border-radius: 20px;

    transition: var(--transition);

}



.hamburger.active span:nth-child(1) {

    transform:
        translateY(9px) rotate(45deg);

}


.hamburger.active span:nth-child(2) {

    opacity: 0;

}


.hamburger.active span:nth-child(3) {

    transform:
        translateY(-9px) rotate(-45deg);

}





@media(max-width:1100px) {


    .nav-links,
    .nav-btn {

        display: none;

    }



    .hamburger {

        display: block;

    }


}


@media(max-width:1100px) {


    .nav-links {


        position: fixed;


        top: 0;

        right: -100%;


        width: 320px;

        height: 100vh;


        background: white;


        padding: 100px 30px;


        display: flex;


        flex-direction: column;


        align-items: flex-start;


        gap: 20px;


        box-shadow: var(--shadow-lg);


        transition: .4s ease;


        z-index: 2000;


    }



    .nav-links.mobile-open {


        right: 0;


    }



    .nav-link::after {

        display: none;

    }





    .hamburger.active span:nth-child(1) {

        transform:
            translateY(9px) rotate(45deg);

    }


    .hamburger.active span:nth-child(2) {

        opacity: 0;

    }


    .hamburger.active span:nth-child(3) {

        transform:
            translateY(-9px) rotate(-45deg);

    }

    .hamburger {
        display: none;
    }


    @media(max-width:1100px) {

        .hamburger {
            display: block;
        }

    }

    /* ===============================
   MOBILE DRAWER
================================ */
    @media (max-width:1100px) {

        .navbar-container {

            position: relative;

        }


        .nav-links {

            position: fixed;

            top: 72px;

            right: -100%;

            width: 320px;

            max-width: 85vw;

            height: calc(100vh - 72px);

            background: var(--white);

            display: flex;

            flex-direction: column;

            align-items: flex-start;

            gap: 0;

            padding: 30px;

            overflow-y: auto;

            box-shadow: var(--shadow-lg);

            transition: right .35s ease;

            z-index: 9998;

        }


        .nav-links.mobile-open {

            right: 0;

        }


        .nav-link {

            width: 100%;

            padding: 16px 0;

            border-bottom: 1px solid var(--border);

        }


        .nav-btn {

            display: none;

        }


        .hamburger {

            display: block;

            position: relative;

            z-index: 10000;

        }


        .mega-menu {

            position: static;

            width: 100%;

            opacity: 1;

            visibility: visible;

            transform: none;

            box-shadow: none;

            border-radius: 0;

            padding: 10px 0;

            display: none;

        }


        .nav-dropdown.open .mega-menu {

            display: block;
            background-color: none;
            

        }


        .mega-inner {

            grid-template-columns: 1fr;

        }


        .mega-feature {

            display: none;

        }


        .mega-cards {

            grid-template-columns: 1fr;

        }


    }



    /* Overlay outside media */

    .nav-overlay {

        position: fixed;

        inset: 0;

        background: rgba(0, 0, 0, .45);

        opacity: 0;

        visibility: hidden;

        transition: .3s;

        z-index: 9997;

    }


    .nav-overlay.active {

        opacity: 1;

        visibility: visible;

    }


    .no-scroll {

        overflow: hidden;

    }


    /* top bar styles starts here  */

    /* ==========================
TOPBAR
========================== */


    .topbar {

        background:
            linear-gradient(90deg,
                var(--primary-dark),
                var(--secondary));

        color: white;

    }



    .topbar-container {


        min-height: 42px;

        display: flex;

        align-items: center;

        justify-content: space-between;


    }



    .topbar a {

        color: white;

        opacity: .85;

        text-decoration: none;

        display: flex;

        align-items: center;

        gap: 8px;

        font-size: 14px;

        transition: .3s;

    }


    .topbar a:hover {

        opacity: 1;

        color: var(--accent);

    }




    @media(max-width:768px) {


        .topbar-container {

            justify-content: center;

        }


        .topbar-left {

            display: none;

        }



        .topbar-right {

            gap: 15px;

        }


    }


    .navbar {


        background: var(--glass);


        backdrop-filter: blur(20px);


        -webkit-backdrop-filter: blur(20px);


        border-bottom:
            1px solid var(--border);


        transition: .4s ease;


    }



    .site-header.scrolled .navbar {


        box-shadow:
            var(--header-shadow);


    }


    @media (max-width:1100px) {

        .nav-links {

            position: fixed;

            top: 72px;

            right: -100%;

            width: min(340px, 90vw);

            height: calc(100vh - 72px);

            display: flex;

            flex-direction: column;

            background: var(--white);

            transition: right .35s ease;

            overflow-y: auto;

            z-index: 9998;

        }
html[data-theme="light"] .nav-links.mobile-open {
  right: 0;
  background-color: #ffffff; /* clean white background */
  color: #11161d;            /* dark text for readability */
  box-shadow: -2px 0 12px rgba(0,0,0,0.1); /* subtle light shadow */
  transition: background 0.3s ease, color 0.3s ease;
}
      html[data-theme="dark"] .nav-links.mobile-open {
  right: 0;
  background-color: #11161d; /* dark background */
  color: #f1f5f9;            /* light text for visibility */
  box-shadow: -2px 0 12px rgba(0,0,0,0.6); /* subtle shadow */
  transition: background 0.3s ease, color 0.3s ease;
}

/* Optional: system dark mode detection */
@media (prefers-color-scheme: dark) {
  .nav-links.mobile-open {
    right: 0;
    background-color: #11161d;
    color: #f1f5f9;
  }
}

    }


    @media(max-width:1100px) {

        .site-header {

            position: sticky;

            top: 0;

            width: 100%;

            z-index: 9999;

        }

    }

    /* ================================
   DARK MODE GLOBAL HEADINGS
================================ */


    html[data-theme="dark"] h1,
    html[data-theme="dark"] h2,
    html[data-theme="dark"] h3,
    html[data-theme="dark"] h4,
    html[data-theme="dark"] h5,
    html[data-theme="dark"] h6 {

        color: #f8fafc !important;

    }

    html[data-theme="dark"] .site-wrapper h1 {

        background: transparent !important;

    }

}

html[data-theme="dark"] {

    --heading: #f8fafc;

    --text: #cbd5e1;

}

/* =================================
   DARK MODE HEADER GLASS
================================= */


html[data-theme="dark"] .site-header {


    background:

        rgba(2, 6, 23, 0.55) !important;


    backdrop-filter:

        blur(20px);


    -webkit-backdrop-filter:

        blur(20px);


    border-bottom:

        1px solid rgba(255, 255, 255, .08);


}

html[data-theme="dark"] .site-header.scrolled {


    background:

        rgba(2, 6, 23, .75) !important;


    box-shadow:

        0 10px 40px rgba(0, 0, 0, .35);


}

html[data-theme="dark"] .nav-link {


     color: #435e81 !important;


}


html[data-theme="dark"] .nav-link:hover {


      color: #435e81 !important;


}

html[data-theme="dark"] .mega-menu {


  

       background-color: #11161d;


    backdrop-filter:

        blur(25px);


    border:

        1px solid rgba(255, 255, 255, .1);


}

.nav-links .mobile-open{
    background: #fcfdff;
    
}


/* ==========================================
   HEADER - DARK BLACK THEME
========================================== */

html[data-theme="dark"] .site-header {

    background: #000000 !important;

    border-bottom: 1px solid rgba(255, 255, 255, .08);

    box-shadow:
        0 10px 30px rgba(0, 0, 0, .45);

}


html[data-theme="dark"] .navbar {

    background: #000000 !important;

}


html[data-theme="dark"] .topbar {

    background: #000000 !important;

}


/* Sticky Header */

html[data-theme="dark"] .site-header.scrolled {

    background: rgba(0, 0, 0, .85) !important;

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

}

.site-header {

    position: fixed;

    top: 0;

    left: 0;

    width: 100%;

    z-index: 9999;

    background: transparent;

    backdrop-filter: none;

    transition:
        background .45s ease,
        backdrop-filter .45s ease,
        box-shadow .45s ease;

}

.site-header.scrolled {

    background: rgba(255, 255, 255, .72);

    backdrop-filter: blur(22px);

    -webkit-backdrop-filter: blur(22px);

    box-shadow:
        0 15px 45px rgba(0, 0, 0, .08);

}

.hero {

    margin-top: 0px;

    padding-top: 140px;

}


.hero {

    position: relative;

    z-index: 1;

}


.navbar {

    background: transparent;

}


.navbar {

    position: relative;

    width: 100%;

    background: transparent;

    backdrop-filter: none;

    -webkit-backdrop-filter: none;

    transition: all .45s ease;

}

.site-header.scrolled .navbar {

    background: rgba(255, 255, 255, .88);

    backdrop-filter: blur(24px);

    -webkit-backdrop-filter: blur(24px);

    border-bottom: 1px solid rgba(255, 255, 255, .25);

    box-shadow: 0 15px 45px rgba(0, 0, 0, .08);

}

@media(max-width:1100px) {

    .navbar {

        background: rgba(255, 255, 255, .95);

        backdrop-filter: blur(22px);

        -webkit-backdrop-filter: blur(22px);

    }

}


/* Scroll par hi Glass Effect */
.site-header.scrolled .navbar {
    background: rgba(255, 255, 255, .88);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(255, 255, 255, .25);
    box-shadow: 0 15px 45px rgba(0, 0, 0, .08);
}



/* =================================
   DARK MODE HEADER GLASS
================================= */


html[data-theme="dark"] .site-header {


    background: rgba(2, 6, 23, 0.55) !important;


    backdrop-filter: blur(20px);


    -webkit-backdrop-filter: blur(20px);


    border-bottom: 1px solid rgba(255, 255, 255, .08);


}



html[data-theme="dark"] .nav-link {


     color: #435e81 !important;


}


html[data-theme="dark"] .nav-link:hover {


      color: #435e81 !important;


}

html[data-theme="dark"] .mega-menu {


    background-color: #10141f !important;


    backdrop-filter: blur(25px);


    border: 1px solid rgba(255, 255, 255, .1);


}




/* ==========================================
   HEADER - DARK BLACK THEME
========================================== */

html[data-theme="dark"] .site-header {

    background: #000000 !important;

    border-bottom: 1px solid rgba(255, 255, 255, .08);

    box-shadow: 0 10px 30px rgba(0, 0, 0, .45);

}


html[data-theme="dark"] .navbar {

    background: #000000 !important;

}


html[data-theme="dark"] .topbar {

    background: #000000 !important;

}



.site-header {

    position: fixed;

    top: 0;

    left: 0;

    width: 100%;

    z-index: 9999;

    background: transparent;

    backdrop-filter: none;

    transition: background .45s ease,
        backdrop-filter .45s ease,
        box-shadow .45s ease;

}