:root {
    --navy: #2a0303;
    --blue: #ff2d2d;
    --cyan: #ff6b6b;
    --purple: #ff4d4d;
    --ink: #240505;
    --muted: #6b5c5c;
    --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(255, 255, 255, 0.88);

    backdrop-filter: blur(18px);

    box-shadow:
        0 12px 40px
        rgba(120, 10, 10, 0.1);
}


/* =========================================
   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;
}

.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: var(--ink);
}

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

    color: #fff;
}

.site-header.scrolled .nav-menu > a:hover,
.site-header.scrolled .mega-toggle:hover {
    background: #fff1f1;

    color: var(--blue);
}


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

.mega-wrap {
    position: static;
}


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

.mega-menu {
    position: absolute;

    top: calc(100% - 2px);

    left: 50%;

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

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

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

    padding: 22px;

    display: grid;

    grid-template-columns:
        260px
        minmax(0, 1fr);

    gap: 24px;

    border:
        1px solid
        rgba(255, 119, 119, 0.28);

    border-radius: 24px;

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

    backdrop-filter: blur(25px);

    box-shadow:
        0 25px 80px
        rgba(75, 5, 5, 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(255, 45, 45, 0.28),
            rgba(255, 77, 77, 0.16)
        );

    border:
        1px solid
        rgba(255, 119, 119, 0.18);

    align-self: start;
}

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

    text-transform: uppercase;

    letter-spacing: 1.4px;

    color: #ff6b6b;
}

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

    color: #fff;

    margin:
        15px 0 10px;
}

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

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

    line-height: 1.7;

    color: #e6c7c7;

    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: #ff6b6b;
}


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

.mega-columns {
    min-width: 0;

    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 10px;

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

    overflow-y: auto;

    padding-right: 8px;

    scrollbar-width: thin;

    scrollbar-color:
        rgba(255, 59, 59, 0.55)
        transparent;
}


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

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

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

.mega-columns::-webkit-scrollbar-thumb {
    background:
        rgba(255, 59, 59, 0.55);

    border-radius: 20px;
}

.mega-columns::-webkit-scrollbar-thumb:hover {
    background:
        rgba(255, 119, 119, 0.8);
}


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

.mega-column {
    padding: 10px;

    min-width: 0;
}

.mega-column h4 {
    font-size: 11px;

    letter-spacing: 0.8px;

    text-transform: uppercase;

    color: #ff7777;

    margin:
        8px
        10px
        12px;

    display: flex;

    align-items: center;

    gap: 8px;
}

.mega-column h4 i {
    font-size: 14px;

    color: #ff3b3b;
}

.mega-column > a {
    display: block;

    color: #f3dddd;

    text-decoration: none;

    font-size: 12px;

    line-height: 1.4;

    padding: 9px 10px;

    border-radius: 9px;

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

.mega-column > a:hover {
    background:
        rgba(255, 59, 59, 0.14);

    color: #fff;

    transform:
        translateX(4px);
}


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

.nav-cta {
    background:
        linear-gradient(
            135deg,
            #ff2d2d,
            #ff4d4d
        ) !important;

    color: #fff !important;

    padding:
        12px 17px !important;

    box-shadow:
        0 8px 25px
        rgba(255, 45, 45, 0.28);
}

.nav-cta:hover {
    transform:
        translateY(-2px);

    background:
        linear-gradient(
            135deg,
            #ff3b3b,
            #ff6b6b
        ) !important;

    box-shadow:
        0 12px 30px
        rgba(255, 45, 45, 0.4) !important;
}


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

.nav-toggle {
    display: none;
    border: 0;
    background: none;
    width: 42px;
    height: 42px;
    cursor: pointer;
    position: relative;
    padding: 0;
    z-index: 1002;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.nav-toggle:focus-visible {
    outline: 2px solid var(--blue);
}

.nav-toggle span {
    display: block;
    height: 2px;
    width: 24px;
    background: #fff;
    margin: 5px auto;
    border-radius: 4px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease, background 0.25s ease;
}

.site-header.scrolled .nav-toggle span {
    background: var(--ink);
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.site-header.scrolled .nav-toggle.active span {
    background: var(--ink);
}

body.nav-locked {
    overflow: hidden !important;
    touch-action: none;
}

.mega-toggle i {
    transition: transform 0.3s ease;
    display: inline-block;
    margin-left: 6px;
}

.mega-wrap.open .mega-toggle i {
    transform: rotate(180deg);
}


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

@media (max-width: 980px) {

    .nav-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    /* Mobile / Tablet Main Menu */
    .nav-menu {
        position: fixed;
        top: 72px;
        left: 16px;
        right: 16px;
        display: none;
        padding: 18px;
        border-radius: 20px;
        background: rgba(36, 5, 5, 0.98);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        box-shadow: 0 25px 70px rgba(0, 0, 0, 0.45);
        align-items: stretch;
        flex-direction: column;
        max-height: calc(100vh - 88px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        border: 1px solid rgba(255, 119, 119, 0.22);
        z-index: 1001;
    }

    .nav-menu.open {
        display: flex;
        animation: navSlideDown 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

    @keyframes navSlideDown {
        from {
            opacity: 0;
            transform: translateY(-8px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav-menu > a,
    .mega-toggle {
        width: 100%;
        text-align: left;
        color: rgba(255, 255, 255, 0.92) !important;
        padding: 12px 14px;
        font-size: 14px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .nav-menu > a:hover,
    .mega-toggle:hover {
        background: rgba(255, 59, 59, 0.2);
        color: #fff !important;
    }

    /* Mega Wrapper */
    .mega-wrap {
        width: 100%;
    }

    /* Mobile Mega Menu */
    .mega-menu {
        position: static;
        width: 100%;
        transform: none !important;
        margin-top: 6px;
        margin-bottom: 6px;
        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(60, 6, 6, 0.96);
        border: 1px solid rgba(255, 45, 45, 0.2);
    }

    .mega-wrap.open .mega-menu {
        display: block;
        animation: megaFadeIn 0.25s ease forwards;
    }

    @keyframes megaFadeIn {
        from {
            opacity: 0;
            transform: translateY(-4px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Hide Intro on Mobile */
    .mega-intro {
        display: none;
    }

    /* Mobile Columns */
    .mega-columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-height: 52vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        padding-right: 6px;
    }

    .nav-cta {
        text-align: center !important;
        margin-top: 10px;
        padding: 13px 18px !important;
        justify-content: center;
    }
}


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

@media (max-width: 600px) {

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

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

    .nav-menu {
        top: 64px;
        left: 12px;
        right: 12px;
        max-height: calc(100vh - 78px);
        padding: 14px;
    }

    .mega-columns {
        grid-template-columns: 1fr;
        max-height: 50vh;
    }

    .mega-menu {
        padding: 10px 8px;
    }

    .mega-column {
        padding: 6px 4px;
    }

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

    .mega-column > a {
        padding: 9px 10px;
        font-size: 12.5px;
    }
}