/* =========================================
   PREMIUM HEADER REDESIGN - FIXED RESPONSIVE
   Centered Menu, Proper Sizing, All Text Visible
   ========================================= */

/* Fixed Header - Always visible */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.98) 0%, rgba(128, 0, 32, 0.95) 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.4), 0 0 60px rgba(128, 0, 32, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 2px solid rgba(255, 215, 0, 0.1);
}

.header.scrolled {
    background: rgba(26, 26, 26, 0.99);
    box-shadow: 0 6px 40px rgba(0, 0, 0, 0.4);
    border-bottom-color: rgba(255, 215, 0, 0.2);
}

/* Navigation Container - CENTERED */
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 0.875rem 0;
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
}

/* Logo Styling */
.logo {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 10;
    flex-shrink: 0;
}

.logo-image,
.logo img {
    max-height: 100px;
    width: auto;
    object-fit: contain;
    filter: none;
    transition: all 0.3s ease;
}

.logo-image:hover,
.logo img:hover {
    filter: none;
    transform: scale(1.02);
}

/* Navigation Menu - CENTERED & PROPERLY SIZED */
.nav-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    flex: 1;
}

.nav-menu li {
    position: relative;
}

/* Navigation Links - COMPACT SIZE */
.nav-link {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    position: relative;
    padding: 0.875rem 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    white-space: nowrap;
    border-radius: 6px;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-accent) 0%, #ffd700 100%);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.nav-link:hover,
.nav-link.active {
    color: #FFD700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
    background: rgba(255, 215, 0, 0.08);
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 80%;
}

/* CTA Button in Header */
.nav-cta {
    flex-shrink: 0;
}

.nav-cta.btn-primary,
.btn.btn-primary.nav-cta {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #1a1a1a;
    font-weight: 700;
    padding: 0.65rem 1.25rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.35);
    border: none;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-size: 0.75rem;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.nav-cta.btn-primary:hover,
.btn.btn-primary.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.5);
}

/* Mobile Toggle Button */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 8px;
    background: rgba(255, 215, 0, 0.1);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    cursor: pointer;
    position: relative;
    z-index: 1001;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.mobile-toggle:hover {
    background: rgba(255, 215, 0, 0.2);
    border-color: rgba(255, 215, 0, 0.5);
}

.mobile-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: #FFD700;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ==========================================
   RESPONSIVE - LARGE DESKTOP (1200px+)
   ========================================== */
@media (min-width: 1200px) {
    .nav-link {
        font-size: 0.85rem;
        padding: 1rem 1.1rem;
    }

    .nav-cta.btn-primary {
        padding: 0.75rem 1.5rem;
        font-size: 0.8rem;
    }
}

/* ==========================================
   RESPONSIVE - TABLET/SMALL DESKTOP
   ========================================== */
@media (max-width: 1200px) {
    .nav-menu {
        gap: 0;
    }

    .nav-link {
        font-size: 0.75rem;
        padding: 0.75rem 0.65rem;
    }

    .nav-cta.btn-primary {
        padding: 0.6rem 1rem;
        font-size: 0.7rem;
    }

    .logo-image,
    .logo img {
        max-height: 60px;
    }
}

/* ==========================================
   RESPONSIVE - TABLET (max-width: 1024px)
   ========================================== */
@media (max-width: 1024px) {
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        max-width: 320px;
        height: 100vh;
        background: linear-gradient(180deg, rgba(26, 26, 26, 0.99) 0%, rgba(128, 0, 32, 0.98) 100%);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 1.5rem 2rem;
        gap: 0;
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 4px 0 40px rgba(0, 0, 0, 0.5);
        border-right: 2px solid rgba(255, 215, 0, 0.2);
        overflow-y: auto;
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 215, 0, 0.1);
    }

    .nav-link {
        width: 100%;
        padding: 1rem 1.25rem;
        font-size: 0.95rem;
        text-transform: none;
    }

    .nav-link::before {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .nav-cta {
        margin-top: 1.5rem;
        width: 100%;
    }

    .nav-cta.btn-primary {
        width: 100%;
        text-align: center;
        justify-content: center;
        padding: 1rem 2rem;
        font-size: 0.9rem;
    }
}

/* ==========================================
   RESPONSIVE - MOBILE (max-width: 768px)
   ========================================== */
@media (max-width: 768px) {
    .header {
        padding: 0;
    }

    .nav {
        padding: 0.75rem 0;
    }

    .logo-image,
    .logo img {
        max-height: 80px;
    }

    .nav-menu {
        max-width: 280px;
        padding-top: 90px;
    }

    .nav-link {
        font-size: 0.9rem;
        padding: 0.875rem 1rem;
    }
}

/* ==========================================
   RESPONSIVE - SMALL MOBILE (max-width: 480px)
   ========================================== */
@media (max-width: 480px) {
    .nav {
        padding: 0.6rem 0;
    }

    .logo-image,
    .logo img {
        max-height: 75px;
    }

    .mobile-toggle {
        width: 32px;
        height: 32px;
        padding: 6px;
    }

    .mobile-toggle span {
        width: 18px;
    }

    .nav-menu {
        max-width: 260px;
        padding: 80px 1.25rem 2rem;
    }

    .nav-link {
        font-size: 0.85rem;
        padding: 0.75rem 1rem;
    }
}

/* ==========================================
   MOBILE MENU OVERLAY
   ========================================== */
.header-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 998;
}

.header-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ==========================================
   CONTAINER CONSTRAINT
   ========================================== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
}