:root {
    --bg-color: #000000;
    --text-dark: #ffffff;
    --text-gray: #e2e8f0;
    --navbar-bg: rgba(12, 12, 14, 0.5);
    --navbar-text: #ffffff;
    --accent-gold: #f5a934;

    /* Shared noise background for glass elements */
    --noise-svg: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.06'/%3E%3C/svg%3E");
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'SUSE', sans-serif;
}

body, html {
    width: 100%;
    height: 100%;
    background-color: transparent;
    overflow-x: hidden;
}

/* ================================================
   BACKGROUND VIDEO
   ================================================ */
.video-bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background-color: var(--bg-color);
}

.video-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    transition: opacity 0.5s ease;
}

/* ================================================
   LAYOUT
   ================================================ */
.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 1.5rem 3rem;
    position: relative;
}

/* ================================================
   NAVBAR SHELL
   The shell itself has NO background or overflow:hidden.
   This allows mega menus to overflow below it freely.
   ================================================ */
.navbar {
    border-radius: 10px;
    padding: 0.9rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
    position: relative; /* Positioning context for mega menus */
    /* No overflow:hidden here — that lives in .navbar-glass */
}

/* ================================================
   NAVBAR GLASS LAYER
   This is the decorative glass background.
   It sits behind the content using z-index and
   uses overflow:hidden to clip the shimmer animation.
   ================================================ */
.navbar-glass {
    position: absolute;
    inset: 0;
    border-radius: 10px;
    overflow: hidden;
    z-index: 0;
    background:
        var(--noise-svg),
        linear-gradient(115deg, rgba(245, 169, 52, 0.05), rgba(0, 212, 255, 0.05)),
        linear-gradient(135deg, rgba(22, 22, 26, 0.4) 0%, rgba(10, 10, 12, 0.6) 100%);
    backdrop-filter: blur(32px) saturate(200%);
    -webkit-backdrop-filter: blur(32px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.4),
        inset 1px 0 4px rgba(245, 169, 52, 0.1),
        inset -1px 0 4px rgba(0, 212, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
    pointer-events: none;
}

/* Shimmer animation lives on the glass layer */
.navbar-glass::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
    transform: translate(-50%, -50%) scale(1);
    animation: shimmer-move 14s infinite linear, shimmer-breathe 4s infinite ease-in-out;
    pointer-events: none;
}

@keyframes shimmer-move {
    0%   { left: -15%; }
    100% { left: 115%; }
}

@keyframes shimmer-breathe {
    0%, 100% {
        transform: translate(-50%, -50%) scale(0.7);
        opacity: 0.4;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 1;
    }
}

/* Hover state — only on the glass layer */
.navbar:hover .navbar-glass {
    background:
        var(--noise-svg),
        linear-gradient(115deg, rgba(245, 169, 52, 0.08), rgba(0, 212, 255, 0.08)),
        linear-gradient(135deg, rgba(28, 28, 34, 0.45) 0%, rgba(12, 12, 16, 0.65) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow:
        0 40px 80px rgba(0, 0, 0, 0.6),
        inset 1px 0 4px rgba(245, 169, 52, 0.15),
        inset -1px 0 4px rgba(0, 212, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* ================================================
   NAVBAR CONTENT (sits above glass layer)
   ================================================ */
.navbar-brand,
.navbar-nav,
.navbar-search {
    position: relative;
    z-index: 1;
}

.navbar-brand {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--navbar-text);
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.brand-logo-img {
    height: 22px;
    width: auto;
    display: block;
}

.navbar-nav {
    flex: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3.2rem;
    list-style: none;
    margin: 0;
}

/* Nav item — NOT a positioning parent; mega menus anchor to .navbar */
.nav-item {
    position: static;
}

.nav-link {
    color: var(--navbar-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.75rem;
    transition: color 0.3s ease;
    position: relative;
    letter-spacing: 0.5px;
    white-space: nowrap;
    /* Reset button styles */
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    outline: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-gold);
}

/* Chevron rotation when menu is open */
.nav-chevron {
    font-size: 0.6rem;
    transition: transform 0.3s ease;
}

.nav-link.active .nav-chevron {
    transform: rotate(180deg);
}

.navbar-actions {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.6rem;
    position: relative;
    z-index: 1;
}

.navbar-search {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--navbar-text);
    font-size: 0.95rem;
    cursor: pointer;
    transition: color 0.3s ease;
    background: transparent;
    border: none;
    outline: none;
    padding: 0.25rem;
}

.navbar-search:hover {
    color: var(--accent-gold);
}

/* Mobile hamburger — hidden on desktop, shown on mobile */
.mobile-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--navbar-text);
    font-size: 1rem;
    cursor: pointer;
    padding: 0.25rem;
    transition: color 0.3s ease;
    outline: none;
}

.mobile-menu-btn:hover {
    color: var(--accent-gold);
}

.mobile-menu-btn.active .fa-bars::before {
    content: "\f00d"; /* switches to X icon */
}

/* ================================================
   MEGA MENU
   ================================================ */
.mega-menu {
    position: absolute;
    top: calc(100% + 1.2rem); /* gap below the navbar */
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    min-width: 320px;
    z-index: 100;
    border-radius: 12px;
    overflow: hidden;

    /* Glassmorphism — mirrors the navbar glass */
    background:
        var(--noise-svg),
        linear-gradient(115deg, rgba(245, 169, 52, 0.06), rgba(0, 212, 255, 0.06)),
        linear-gradient(135deg, rgba(18, 18, 22, 0.55) 0%, rgba(8, 8, 10, 0.75) 100%);
    backdrop-filter: blur(32px) saturate(200%);
    -webkit-backdrop-filter: blur(32px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.55),
        inset 1px 0 4px rgba(245, 169, 52, 0.08),
        inset -1px 0 4px rgba(0, 212, 255, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);

    /* Hidden by default */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

/* Solution mega menu: wider + pinned to navbar left edge */
#menu-solution {
    min-width: 520px;
    left: 0;
    transform: translateY(-8px);
}

#menu-solution.open {
    transform: translateY(0);
}

#menu-solution .mega-menu-col {
    min-width: 200px;
}

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

.mega-menu-inner {
    display: flex;
    gap: 0;
    padding: 1.25rem;
}

.mega-menu-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 140px;
}

.mega-menu-label {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin-bottom: 0.55rem;
    padding-left: 0.35rem;
}

.mega-menu-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 500;
    padding: 0.45rem 0.5rem;
    border-radius: 7px;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}

.mega-menu-link i {
    font-size: 0.8rem;
    width: 16px;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.2s ease;
    flex-shrink: 0;
}

.mega-menu-link:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #ffffff;
    transform: translateX(3px);
}

.mega-menu-link:hover i {
    color: var(--accent-gold);
}

.mega-menu-divider {
    width: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 0 1rem;
    flex-shrink: 0;
}

/* ================================================
   MAIN CONTENT
   ================================================ */
.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    position: relative;
    padding: 0 4rem;
}

.hero-text {
    text-align: center;
    max-width: 800px;
}

.hero-text h1 {
    font-size: 4.2rem;
    line-height: 1.15;
    color: #ffffff;
    letter-spacing: -1.5px;
}

.hero-text h1 span.light {
    font-weight: 400;
    display: block;
    white-space: nowrap;
}

.hero-text h1 span.bold {
    font-weight: 800;
    display: block;
    margin-top: 0.2rem;
    white-space: nowrap;
}

/* ================================================
   SOCIAL SIDEBAR
   ================================================ */
.social-sidebar {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    align-items: center;
}

.social-icon {
    color: #ffffff;
    font-size: 1.6rem;
    text-decoration: none;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.15) translateY(-2px);
    color: var(--accent-gold);
}

/* ================================================
   MOBILE DRAWER
   ================================================ */
.mobile-drawer {
    display: none; /* only visible on mobile via media query */
    position: absolute;  /* float above content — does NOT push anything down */
    top: calc(100% + 0.5rem); /* just below the navbar */
    left: 0;
    right: 0;
    z-index: 200;
    border-radius: 12px;
    overflow: hidden;
    /* Slide-down entrance */
    max-height: 0;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease;
}

.mobile-drawer.open {
    max-height: 1200px;
    opacity: 1;
}

/* Glass layer for the drawer */
.mobile-drawer-glass {
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background:
        var(--noise-svg),
        linear-gradient(115deg, rgba(245, 169, 52, 0.06), rgba(0, 212, 255, 0.06)),
        linear-gradient(135deg, rgba(18, 18, 22, 0.6) 0%, rgba(8, 8, 10, 0.8) 100%);
    backdrop-filter: blur(32px) saturate(200%);
    -webkit-backdrop-filter: blur(32px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.5),
        inset 1px 0 4px rgba(245, 169, 52, 0.08),
        inset -1px 0 4px rgba(0, 212, 255, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    pointer-events: none;
    z-index: 0;
}

.mobile-drawer-content {
    position: relative;
    z-index: 1;
    padding: 0.5rem 0;
}

/* Each accordion section */
.mobile-section {
    padding: 0 0.25rem;
}

.mobile-section-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    border: none;
    color: #ffffff;
    font-family: 'SUSE', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 0.85rem 1rem;
    cursor: pointer;
    letter-spacing: 0.3px;
    border-radius: 8px;
    transition: background 0.2s ease, color 0.2s ease;
    outline: none;
}

.mobile-section-toggle:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--accent-gold);
}

.mobile-section-toggle.active {
    color: var(--accent-gold);
}

.mobile-chevron {
    font-size: 0.65rem;
    transition: transform 0.3s ease;
    color: rgba(255, 255, 255, 0.5);
}

.mobile-section-toggle.active .mobile-chevron {
    transform: rotate(180deg);
    color: var(--accent-gold);
}

/* Accordion submenu */
.mobile-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    padding: 0 1rem;
}

.mobile-submenu.open {
    max-height: 600px;
}

.mobile-submenu-label {
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin: 0.5rem 0 0.4rem 0.3rem;
}

.mobile-submenu-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
    padding: 0.5rem 0.5rem;
    border-radius: 7px;
    transition: background 0.2s ease, color 0.2s ease;
    margin-bottom: 0.05rem;
}

.mobile-submenu-link i {
    width: 15px;
    text-align: center;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.35);
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.mobile-submenu-link:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #ffffff;
}

.mobile-submenu-link:hover i {
    color: var(--accent-gold);
}

.mobile-submenu .mobile-submenu-link:last-child {
    margin-bottom: 0.5rem;
}

.mobile-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.07);
    margin: 0.2rem 1rem;
}

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 1024px) {
    .wrapper {
        padding: 1rem 1.5rem;
    }
    .hero-text h1 {
        font-size: 3.2rem;
    }
    .navbar-nav {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .navbar-nav {
        display: none;
    }
    .navbar {
        padding: 1rem 1.5rem;
    }
    /* Show hamburger on mobile */
    .mobile-menu-btn {
        display: flex;
    }
    /* Show mobile drawer on mobile */
    .mobile-drawer {
        display: block;
    }
    .main-content {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 0 1rem;
        margin-top: 4rem;
    }
    .hero-text h1 {
        font-size: 2.5rem;
    }
    .social-sidebar {
        position: static;
        transform: none;
        flex-direction: row;
        margin-top: 3rem;
        gap: 2rem;
    }
}
