:root {
    --navy: #0F1115;
    --blue: #2563EB;
    --cyan: #60A5FA;
    --purple: #3B82F6;
    --ink: #050505;
    --muted: #94a3b8;
    --white: #fff;
}


/* =========================================
   SITE HEADER
========================================= */

.site-header {
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    padding: 18px 0;
    transition: 0.35s ease;
}

.site-header.scrolled {
    padding: 10px 0;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

/* =========================================
   NAV CONTAINER
========================================= */

.nav-container {
    width: min(1180px, calc(100% - 40px));
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}


/* =========================================
   BRAND
========================================= */

.brand {
    display: inline-flex;

    align-items: center;

    text-decoration: none;
}

.brand-logo {
    display: block;

    width: 150px;

    height: auto;

    max-height: 45px;

    object-fit: contain;
}


/* =========================================
   NAV MENU
========================================= */

.nav-menu {
    display: flex;
    align-items: center;
    gap: 7px;
    
    /* Elegant Pill styling */
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    padding: 6px 12px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.nav-menu > a,
.mega-toggle {
    border: 0;

    background: none;

    color:
        rgba(255, 255, 255, 0.88);

    padding: 11px 14px;

    border-radius: 10px;

    font:
        600 13px
        "Inter", sans-serif;

    text-decoration: none;

    cursor: pointer;

    transition: 0.25s;
}

.site-header.scrolled .nav-menu > a,
.site-header.scrolled .mega-toggle {
    color: rgba(255, 255, 255, 0.9);
}

.nav-menu > a:hover,
.mega-toggle:hover {
    background:
        rgba(255, 255, 255, 0.1);

    color: #fff;
}

.site-header.scrolled .nav-menu > a:hover,
.site-header.scrolled .mega-toggle:hover {
    background: rgba(255, 255, 255, 0.15);

    color: #fff;
}


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

.mega-wrap {
    position: static;
}


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

.mega-menu {
    position: absolute;

    top: calc(100% - 2px);

    left: 50%;

    transform:
        translate(-50%, 10px);

    width: max-content;
    min-width: 240px;

    max-height: calc(100vh - 100px);

    padding: 10px;

    display: block;

    gap: 0;

    border:
        1px solid
        rgba(96, 165, 250, 0.28);

    border-radius: 16px;

    background:
        rgba(3, 13, 42, 0.97);

    backdrop-filter: blur(25px);

    box-shadow:
        0 25px 80px
        rgba(5, 20, 75, 0.3);

    opacity: 0;

    visibility: hidden;

    overflow: hidden;

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease,
        transform 0.3s ease;
}


/* =========================================
   DESKTOP HOVER
========================================= */

.mega-wrap:hover .mega-menu {
    opacity: 1;

    visibility: visible;

    transform:
        translate(-50%, 0);
}


/* =========================================
   MEGA INTRO
========================================= */

.mega-intro {
    padding: 20px;

    border-radius: 18px;

    background:
        linear-gradient(
            145deg,
            rgba(37, 99, 235, 0.28),
            rgba(56, 189, 248, 0.16)
        );

    border:
        1px solid
        rgba(96, 165, 250, 0.18);

    align-self: start;
}

.mega-badge {
    font-size: 10px;

    text-transform: uppercase;

    letter-spacing: 1.4px;

    color: #60A5FA;
}

.mega-intro h3 {
    font:
        800 25px/1.2
        "Plus Jakarta Sans";

    color: #fff;

    margin:
        15px 0 10px;
}

.mega-intro h3 span {
    color: #3B82F6;
}

.mega-intro p {
    font-size: 12px;

    line-height: 1.7;

    color: #cbd5e1;

    margin:
        0 0 20px;
}

.mega-intro > a {
    color: #fff;

    text-decoration: none;

    font-size: 12px;

    font-weight: 700;

    transition: 0.25s;
}

.mega-intro > a:hover {
    color: #60A5FA;
}


/* =========================================
   MEGA COLUMNS AREA
========================================= */

.mega-columns {
    min-width: 0;

    display: flex;

    flex-direction: column;

    gap: 2px;

    max-height: none;

    overflow: visible;

    padding-right: 0;
}


/* =========================================
   CHROME / EDGE / SAFARI
========================================= */

.mega-columns::-webkit-scrollbar {
    width: 6px;
}

.mega-columns::-webkit-scrollbar-track {
    background: transparent;
}

.mega-columns::-webkit-scrollbar-thumb {
    background:
        rgba(37, 99, 235, 0.55);

    border-radius: 20px;
}

.mega-columns::-webkit-scrollbar-thumb:hover {
    background:
        rgba(96, 165, 250, 0.8);
}


/* =========================================
   MEGA COLUMN
========================================= */

.mega-column {
    padding: 0;

    min-width: 0;
}

.mega-column h4 {
    display: none;
}

.mega-column > a {
    display: flex;

    align-items: center;

    color: #e2e8f0;

    text-decoration: none;

    font-size: 13px;

    font-weight: 500;

    white-space: nowrap;

    line-height: 1.4;

    padding: 10px 14px;

    border-radius: 10px;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.mega-column > a:hover {
    background:
        rgba(37, 99, 235, 0.14);

    color: #fff;

    transform:
        translateX(4px);
}


/* =========================================
   NAV CTA
========================================= */

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    border-radius: 100px !important;
    background: #2563EB !important;
    color: #fff !important;
    padding: 10px 20px !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.39);
    transition: all 0.3s ease;
}

.nav-cta:hover {
    transform: translateY(-2px);
    background: #3B82F6 !important;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5) !important;
}


/* =========================================
   MOBILE TOGGLE
========================================= */

.nav-toggle {
    display: none;

    border: 0;

    background: none;

    width: 42px;
    height: 42px;

    cursor: pointer;
}

.nav-toggle span {
    display: block;

    height: 2px;

    width: 23px;

    background: #fff;

    margin: 5px auto;

    border-radius: 4px;

    transition: 0.25s;
}

.scrolled .nav-toggle span {
    background: #fff;
}



/* Hide mobile CTA on desktop */
.mobile-only-cta {
    display: none !important;
}

/* =========================================
   TABLET
========================================= */

@media (max-width: 980px) {

    .nav-toggle {
        display: block;
    }


    /* Mobile / Tablet Main Menu */

    .nav-menu {
        position: absolute;

        top: 75px;

        left: 20px;
        right: 20px;

        display: flex;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-20px);
        transition: all 0.3s ease;

        padding: 16px;

        border-radius: 20px;

        background:
            rgba(3, 13, 42, 0.98);

        box-shadow:
            0 25px 60px
            rgba(0, 0, 0, 0.5);

        align-items: stretch;

        flex-direction: column;

        max-height:
            calc(100vh - 90px);

        overflow-y: auto;

        border:
            1px solid
            rgba(96, 165, 250, 0.18);
    }

    
    /* Hamburger Animation */
    .nav-toggle.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .nav-toggle.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .nav-menu.open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    .site-header.scrolled .nav-menu {
        background:
            rgba(3, 13, 42, 0.98);

        border-color:
            rgba(37, 99, 235, 0.12);
    }


    .nav-menu > a,
    .mega-toggle {
        width: 100%;

        text-align: left;
    }


    /* Mega Wrapper */

    .mega-wrap {
        width: 100%;
    }


    /* Mobile Mega Menu */

    .mega-menu {
        position: static;

        width: 100%;

        transform: none !important;

        margin-top: 5px;

        padding: 12px;

        display: none;

        grid-template-columns: 1fr;

        max-height: none;

        overflow: visible;

        opacity: 1;

        visibility: visible;

        border-radius: 16px;

        box-shadow: none;

        background:
            rgba(3, 13, 42, 0.97);

        border:
            1px solid
            rgba(37, 99, 235, 0.12);
    }

    .mega-wrap.open .mega-menu {
        display: grid;
    }


    /* Hide Intro */

    .mega-intro {
        display: none;
    }


    /* Mobile Columns */

    .mega-columns {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );

        max-height: 55vh;

        overflow-y: auto;

        padding-right: 5px;
    }


    .nav-cta {
        text-align: center !important;

        margin-top: 5px;
    }

    /* Show mobile CTA inside menu */
    .nav-menu .mobile-only-cta {
        display: inline-flex !important;
        margin-top: 15px;
        justify-content: center;
    }

    /* Hide desktop CTA container on mobile to push hamburger to right */
    .nav-right {
        display: none !important;
    }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 600px) {

    .nav-container {
        width:
            calc(100% - 28px);
    }

    .site-header {
        padding: 12px 0;
    }

    .nav-menu {
        top: 65px;

        left: 14px;
        right: 14px;

        max-height:
            calc(100vh - 78px);

        padding: 12px;
    }

    .mega-columns {
        grid-template-columns: 1fr;

        max-height: 60vh;

        overflow-y: auto;
    }

    .mega-menu {
        padding: 8px;
    }

    .mega-column {
        padding: 6px;
    }

    .mega-column h4 {
        margin:
            8px
            8px
            10px;
    }

    .mega-column > a {
        padding: 8px;
    }
}