/* HEADER & NAVIGATION */
header {
    position: fixed; /* FIXED TO TOP */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: #000000;
    border-bottom: 1px solid #1a1a1a;
    transition: background 0.3s ease, transform 0.3s ease;
}

header.scrolled {
    background: rgba(0, 0, 0, 0.8) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.nav-container {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    height: 80px !important;
    padding: 0 20px !important;
    max-width: 1280px !important;
    margin: 0 auto !important;
}

@media (min-width: 768px) {
    .nav-container { height: 70px !important; }
}

.logo {
    font-size: 1.6rem !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    text-decoration: none !important;
    letter-spacing: -0.5px !important;
    display: flex !important;
    align-items: center !important;
}

.logo span { color: #EC3655 !important; }

.mobile-menu-btn {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 1001;
}

/* Mobile Nav - Initial Hidden State */
.nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 80px;
    right: 0;
    width: 280px;
    height: calc(100vh - 80px);
    background: #000000 !important; /* Force solid background */
    padding: 40px 20px;
    gap: 20px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 999;
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    pointer-events: none;
    visibility: hidden;
    will-change: transform; /* OPTIMIZATION */
}

.nav-links.show {
    transform: translateX(0);
    pointer-events: auto;
    visibility: visible;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 700;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* Navigation Buttons Base Shape */
.btn {
    display: inline-block !important;
    padding: 10px 24px !important;
    border-radius: 6px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    cursor: pointer !important;
    border: none !important;
    transition: all 0.3s ease !important;
    font-size: 0.9rem !important;
    text-align: center !important;
    line-height: 1 !important;
}

/* Gold Button Refinements (Mobile & Desktop) */
.nav-links .btn-gold {
    background: linear-gradient(135deg, #FFD700 0%, #F5A623 100%) !important;
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3) !important;
}

.nav-links .btn-gold:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 18px rgba(255, 215, 0, 0.4) !important;
}

/* Desktop Styles */
@media (min-width: 768px) {
    .mobile-menu-btn { display: none; }
    .nav-links {
        position: static;
        flex-direction: row;
        width: auto;
        height: auto;
        background: transparent !important;
        padding: 0;
        transform: none !important; /* Force desktop visibility */
        visibility: visible !important;
        pointer-events: auto !important;
        gap: 25px;
        box-shadow: none;
    }
    .nav-links a {
        font-size: 0.95rem;
        font-weight: 600;
        color: #e0e0e0;
        border-bottom: none;
        padding-bottom: 0;
        transition: color 0.3s;
    }
    .nav-links a:hover { color: #EC3655; }
    .nav-links .btn { width: auto; margin-top: 0; }

    /* Centralized Gold Button in Nav */
    .nav-links .btn-gold {
        background: linear-gradient(135deg, #FFD700 0%, #F5A623 100%);
        color: #000 !important;
        -webkit-text-fill-color: #000 !important;
        border: none !important;
    }
}

/* Ensure content starts after the fixed header */
body {
    padding-top: 80px !important; /* Mobile header height */
}

@media (min-width: 768px) {
    body {
        padding-top: 70px !important; /* Desktop header height */
    }
}

/* Adjust main content starting position to account for fixed header */
main, #home, .hero {
    margin-top: 0; 
}
