/* ============================================
   Glass Navbar — Shared across all pages
   ============================================ */

#navbar-mount {
    width: 100%;
}

.glass-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    height: 54px;
    width: 100%;
    background: rgba(13, 15, 26, 0.72);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.3s ease, background 0.3s ease;
}

.glass-nav.scrolled {
    background: rgba(13, 15, 26, 0.88);
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.35),
        inset 0 -1px 0 rgba(255, 255, 255, 0.03);
}

/* Brand */
.nav-brand {
    font-family: 'Bebas Neue', cursive;
    font-size: 1.3rem;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #F5A623, #FFD054);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
    text-decoration: none;
}

/* Right section */
.nav-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-desktop-links {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Links */
.glass-nav .nav-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 6px;
    transition: color 0.25s ease, background 0.25s ease;
    position: relative;
}

.glass-nav .nav-link:hover {
    color: rgba(245, 166, 35, 0.9);
    background: rgba(245, 166, 35, 0.06);
}

.glass-nav .nav-link.active {
    color: #F5A623;
    background: rgba(245, 166, 35, 0.1);
}

.glass-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 12px;
    right: 12px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #F5A623, transparent);
    border-radius: 1px;
}

/* Divider between links and hamburger */
.nav-divider {
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.15);
    margin: 0 8px;
}

/* Hamburger button */
.nav-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
    gap: 4px;
    padding: 8px;
}

.nav-hamburger:hover {
    background: rgba(245, 166, 35, 0.1);
    border-color: rgba(245, 166, 35, 0.3);
}

.nav-hamburger span {
    display: block;
    width: 18px;
    height: 2px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 1px;
    transition: all 0.3s;
}

.nav-hamburger:hover span {
    background: #F5A623;
}

/* Hamburger → X animation */
.nav-hamburger.open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.nav-hamburger.open span:nth-child(2) {
    opacity: 0;
}

.nav-hamburger.open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* ============================================
   Slide-out Menu
   ============================================ */

.nav-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 1999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.nav-menu-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.nav-slide-menu {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100vh;
    height: 100dvh;
    background: rgba(13, 15, 26, 0.92);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: -10px 0 50px rgba(0, 0, 0, 0.6);
    z-index: 2000;
    transition: right 0.35s cubic-bezier(0.32, 0.72, 0, 1);
    padding: 24px 0;
    overflow-y: auto;
}

.nav-slide-menu.open {
    right: 0;
}

.nav-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 8px;
}

.nav-menu-header h3 {
    font-family: 'Bebas Neue', cursive;
    font-size: 1.1rem;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.6);
}

.nav-menu-close {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-family: sans-serif;
}

.nav-menu-close:hover {
    background: rgba(245, 166, 35, 0.15);
    color: #F5A623;
    border-color: rgba(245, 166, 35, 0.3);
}

.nav-menu-section-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 12px 20px 6px;
}

.nav-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.nav-menu-item:hover {
    background: rgba(245, 166, 35, 0.06);
    color: #F5A623;
    padding-left: 24px;
}

.nav-menu-item .nav-menu-icon {
    width: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    opacity: 0.6;
}

.nav-menu-item .nav-menu-icon svg {
    display: block;
}

.nav-menu-item:hover .nav-menu-icon,
.nav-menu-item.active .nav-menu-icon {
    opacity: 1;
}

.nav-menu-item.active {
    color: #F5A623;
    background: linear-gradient(90deg, rgba(245, 166, 35, 0.1), transparent);
    border-left: 2px solid #F5A623;
}

.nav-menu-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    margin: 8px 20px;
}

/* ============================================
   Mobile (≤768px)
   ============================================ */

@media (max-width: 768px) {
    .glass-nav {
        height: 48px;
        padding: 0 14px;
    }

    .nav-brand {
        font-size: 1.1rem;
    }

    .nav-desktop-links {
        display: none;
    }

    .nav-divider {
        display: none;
    }

    .nav-hamburger {
        width: 44px;
        height: 44px;
    }

    .nav-menu-item {
        padding: 14px 20px;
        min-height: 48px;
    }

    .nav-menu-close {
        width: 36px;
        height: 36px;
    }
}
