/* ═══════════════════════════════════════════════════════════════ */
/* HEADER - PROFESSIONAL & MODERN DESIGN */
/* ═══════════════════════════════════════════════════════════════ */

/* CSS Variables for easier theming */
:root {
    --primary-dark: #0d452c;
    --primary-darker: #1a2e27;
    --accent-gold: #f1c40f;
    --accent-orange: #e67e22;
    --text-light: #cac2b0;
    --text-white: #ffffff;
    --bg-transparent: rgba(13, 69, 44, 0.95);
    --border-light: rgba(255, 255, 255, 0.08);
    --shadow-small: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 8px 24px rgba(0, 0, 0, 0.15);
    --shadow-large: 0 16px 48px rgba(0, 0, 0, 0.2);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-darker) 100%);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-medium);
    animation: slideDown 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header Content Container */
.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    gap: 2rem;
}

/* Logo & Branding */
.logo-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    transition: var(--transition-smooth);
    flex-shrink: 0;
}

.logo-header:hover {
    transform: scale(1.05);
}

.logo-header img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(241, 196, 15, 0.2));
    transition: var(--transition-smooth);
}

.logo-header:hover img {
    filter: drop-shadow(0 6px 16px rgba(241, 196, 15, 0.35));
}

/* Navigation Menu - Desktop */
nav {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    transition: var(--transition-smooth);
    letter-spacing: 0.3px;
    padding: 0.5rem 0;
    display: block;
}

/* Underline Animation */
.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-orange));
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-menu a:hover {
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Active Navigation Link */
.nav-link.active {
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-orange));
}

/* Hamburger Menu - Mobile/Tablet */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
    background: none;
    border: none;
    padding: 0.5rem;
    flex-shrink: 0;
}

.hamburger span {
    width: 25px;
    height: 2.5px;
    background: var(--accent-gold);
    border-radius: 2px;
    transition: var(--transition-smooth);
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ═══════════════════════════════════════════════════════════════ */
/* RESPONSIVE DESIGN */
/* ═══════════════════════════════════════════════════════════════ */

/* Large Devices (1200px and up) */
@media (min-width: 1200px) {
    .header-content {
        padding: 1rem 2rem;
    }

    .nav-menu {
        gap: 3rem;
    }

    .nav-menu a {
        font-size: 1rem;
    }
}

/* Medium Devices (768px to 1023px) - Tablet */
@media (max-width: 1023px) {
    .header-content {
        padding: 0.8rem 1.5rem;
        height: auto;
    }

    .nav-menu {
        gap: 1.8rem;
    }

    .nav-menu a {
        font-size: 0.9rem;
    }

    .logo-header img {
        width: 50px;
        height: 50px;
    }
}

/* Small Devices (480px to 767px) - Mobile */
@media (max-width: 767px) {
    .header-content {
        padding: 0.8rem 1rem;
        height: 60px;
    }

    .hamburger {
        display: flex;
    }

    nav {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-darker) 100%);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border-light);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: var(--shadow-medium);
    }

    nav.active {
        max-height: 500px;
    }

    .nav-menu {
        flex-direction: column;
        gap: 0;
        padding: 2rem 0;
        text-align: center;
    }

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid var(--border-light);
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-menu a {
        padding: 1rem 0;
        font-size: 1rem;
        display: block;
        transition: var(--transition-smooth);
    }

    .nav-menu a::after {
        display: none;
    }

    .nav-menu a:hover {
        background: linear-gradient(90deg, var(--accent-gold), var(--accent-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    }

    .nav-link.active {
        background: linear-gradient(90deg, var(--accent-gold), var(--accent-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    }

    .nav-link.active::after {
        display: none;
    }

    .logo-header {
        gap: 0.8rem;
    }

    .logo-header img {
        width: 45px;
        height: 45px;
    }

    header {
        box-shadow: var(--shadow-small);
    }
}

/* Extra Small Devices (below 480px) - Small Mobile */
@media (max-width: 479px) {
    .header-content {
        padding: 0.8rem 1rem;
        height: 55px;
    }

    .logo-header img {
        width: 40px;
        height: 40px;
    }

    .hamburger span {
        width: 22px;
        height: 2px;
    }

    .nav-menu a {
        padding: 0.8rem 0;
        font-size: 0.95rem;
    }
}

/* ═══════════════════════════════════════════════════════════════ */
/* ACCESSIBILITY & ENHANCEMENTS */
/* ═══════════════════════════════════════════════════════════════ */

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    header {
        animation: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: more) {
    header {
        border-bottom: 2px solid var(--border-light);
    }

    .nav-menu a {
        font-weight: 600;
    }
}

/* Focus States for Keyboard Navigation */
.nav-menu a:focus-visible {
    outline: 2px solid var(--accent-gold);
    outline-offset: 4px;
    border-radius: 4px;
}

.hamburger:focus-visible {
    outline: 2px solid var(--accent-gold);
    outline-offset: 4px;
    border-radius: 4px;
}

/* Print Styles */
@media print {
    header {
        position: static;
        background: white;
        border-bottom: 2px solid #ddd;
        box-shadow: none;
    }

    .hamburger {
        display: none;
    }

    .nav-menu {
        flex-direction: row;
        gap: 2rem;
    }
}