/* ---------- STICKY HEADER (Bootstrap-Proof) ---------- */
.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: rgba(3, 3, 12, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 221, 101, 0.2);
    transition: all 0.3s ease;
}

.sticky-header.scrolled {
    background: rgba(3, 3, 12, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.sticky-nav {
    position: relative; /* CRITICAL: Contains the mobile dropdown */
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 2rem;
    transition: all 0.3s ease;
}

/* Logo */
.sticky-logo {
    font-family: 'Inter', sans-serif !important;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #FFFFFF, #FFDD65);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
    text-decoration: none !important;
}

/* ==========================================
   FIX 1: ANTI-BOOTSTRAP LINK COLORS
   ========================================== */
.sticky-nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Target EVERY link state to defeat Bootstrap's blue/visited links */
.sticky-nav-links a,
.sticky-nav-links a:link,
.sticky-nav-links a:visited,
.sticky-nav-links a:hover,
.sticky-nav-links a:active,
.sticky-nav-links a:focus {
    font-family: 'Inter', sans-serif !important;
    color: rgba(255, 255, 255, 0.85) !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    font-size: 0.95rem !important;
    transition: color 0.25s ease !important;
    position: relative;
}

.sticky-nav-links a:not(.sticky-btn):hover {
    color: #FFDD65 !important;
    text-shadow: 0 0 8px rgba(255, 221, 101, 0.5);
}

/* Gold underline effect */
.sticky-nav-links a:not(.sticky-btn)::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, #FFDD65, #FFAA5C);
    transition: width 0.3s ease;
}
.sticky-nav-links a:not(.sticky-btn):hover::after {
    width: 100%;
}

/* CTA Button */
.sticky-btn {
    background: rgba(255, 221, 101, 0.12) !important;
    border: 1px solid #FFDD65 !important;
    padding: 0.5rem 1.3rem !important;
    border-radius: 60px !important;
    font-weight: 600 !important;
    color: #FFDD65 !important;
    box-shadow: 0 0 8px rgba(255, 221, 101, 0.3) !important;
}
.sticky-btn:hover {
    background: rgba(255, 221, 101, 0.3) !important;
    color: #03030C !important;
}

/* Hamburger Button */
.sticky-menu-toggle {
    display: none;
    background: transparent !important;
    border: 1px solid rgba(255, 221, 101, 0.5);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: #FFDD65 !important;
    font-size: 1.2rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    margin: 0 !important;
}
.sticky-menu-toggle i {
    font-size: 1.2rem !important;
    color: #FFDD65 !important;
    line-height: 1 !important;
}

/* ==========================================
   FIX 2: MOBILE MENU CONTAINMENT
   ========================================== */
@media (max-width: 768px) {
    .sticky-nav {
        padding: 0.5rem 1rem !important;
    }

    /* The Dropdown Menu - Perfectly Contained */
    .sticky-nav-links {
        display: none !important;
        position: absolute !important;
        top: 100% !important; /* Drops exactly below the nav bar */
        left: 0 !important;
        width: 100% !important; /* Full width of the header */
        background: rgba(3, 3, 12, 0.98) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        flex-direction: column !important;
        padding: 1rem !important;
        gap: 0.5rem !important;
        border-bottom: 1px solid rgba(255, 221, 101, 0.2) !important;
        box-shadow: 0 10px 30px rgba(0,0,0,0.5) !important;
        margin: 0 !important;
        z-index: 10000 !important;
    }

    .sticky-nav-links.open {
        display: flex !important;
    }

    /* Mobile Link Items */
    .sticky-nav-links a {
        width: 100% !important;
        padding: 1rem !important;
        text-align: center !important;
        border-radius: 8px !important;
        border-bottom: 1px solid rgba(255,255,255,0.05) !important;
    }
    .sticky-nav-links a:last-child {
        border-bottom: none !important;
    }

    /* Show Hamburger */
    .sticky-menu-toggle {
        display: flex !important;
        width: 38px;
        height: 38px;
    }

    /* Scrolled state adjustments */
    .sticky-header.scrolled .sticky-nav { padding: 0.15rem 0.8rem !important; min-height: 38px !important; }
    .sticky-header.scrolled .sticky-logo { font-size: 0.9rem !important; }
    .sticky-header.scrolled .sticky-menu-toggle { width: 32px !important; height: 32px !important; }
}