/* ============================================
   HEADER STYLES - FIXED & RESPONSIVE
============================================ */

/* Header Container */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    transition: all 0.3s ease;
}

.main-header.scrolled {
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.95);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 3vw, 2rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: clamp(70px, 10vw, 85px);
    gap: 2rem;
}

/* Logo Section */
.logo-wrapper {
    flex-shrink: 0;
    z-index: 1001;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: clamp(0.75rem, 2vw, 1rem);
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo-link:hover {
    transform: scale(1.02);
}

.logo-img {
    height: clamp(45px, 8vw, 60px);
    width: auto;
    object-fit: contain;
    transition: filter 0.3s ease;
}

.logo-link:hover .logo-img {
    filter: brightness(1.1);
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.logo-title {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    letter-spacing: 0.5px;
}

.logo-subtitle {
    font-family: var(--font-primary);
    font-size: clamp(0.7rem, 1.5vw, 0.85rem);
    font-weight: 500;
    color: var(--text-secondary);
    line-height: 1;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

/* Navigation */
.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 3vw, 2.5rem);
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    font-family: var(--font-primary);
    font-size: clamp(0.95rem, 1.5vw, 1.05rem);
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 0.25rem;
    background-color: var(--bg-secondary);
    border-radius: 50px;
    padding: 0.25rem;
}

.lang-btn {
    padding: 0.5rem 1rem;
    font-family: var(--font-primary);
    font-size: clamp(0.85rem, 1.2vw, 0.95rem);
    font-weight: 600;
    color: var(--text-secondary);
    background-color: transparent;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.lang-btn:hover {
    color: var(--primary-color);
    background-color: rgba(26, 77, 46, 0.1);
}

.lang-btn.active {
    color: white;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    box-shadow: 0 2px 8px rgba(26, 77, 46, 0.3);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 32px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(10.5px) rotate(45deg);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-10.5px) rotate(-45deg);
}

/* ============================================
   RESPONSIVE DESIGN
============================================ */

/* Large Tablets */
@media (max-width: 1024px) {
    .nav-list {
        gap: clamp(0.75rem, 2vw, 1.5rem);
    }
    
    .nav-link {
        font-size: clamp(0.9rem, 1.8vw, 1rem);
    }
}

/* Tablets */
@media (max-width: 768px) {
    .main-header {
        height: auto;
    }
    
    .header-container {
        height: 70px;
        padding: 0 1rem;
    }
    
    .logo-img {
        height: 40px;
    }
    
    .logo-title {
        font-size: 1.1rem;
    }
    
    .logo-subtitle {
        font-size: 0.7rem;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Mobile Navigation */
    .main-nav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        padding: 2rem;
        transform: translateX(-100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1);
    }
    
    .main-nav.active {
        transform: translateX(0);
    }
    
    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        width: 100%;
    }
    
    .nav-item {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-link {
        padding: 1.25rem 0;
        font-size: 1.1rem;
        width: 100%;
    }
    
    .nav-link::after {
        display: none;
    }
    
    .nav-link.active {
        color: var(--primary-color);
        padding-left: 1rem;
        border-left: 4px solid var(--primary-color);
    }
    
    /* Language Switcher Mobile */
    .header-actions {
        gap: 1rem;
    }
    
    .language-switcher {
        gap: 0.15rem;
        padding: 0.15rem;
    }
    
    .lang-btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.85rem;
    }
}

/* Mobile Phones */
@media (max-width: 480px) {
    .header-container {
        height: 65px;
        gap: 1rem;
    }
    
    .logo-img {
        height: 35px;
    }
    
    .logo-title {
        font-size: 1rem;
    }
    
    .logo-subtitle {
        font-size: 0.65rem;
    }
    
    .main-nav {
        top: 65px;
        height: calc(100vh - 65px);
        padding: 1.5rem;
    }
    
    .nav-link {
        font-size: 1rem;
    }
    
    .language-switcher {
        gap: 0.1rem;
        padding: 0.1rem;
    }
    
    .lang-btn {
        padding: 0.35rem 0.6rem;
        font-size: 0.8rem;
    }
    
    .mobile-menu-toggle {
        width: 28px;
        height: 22px;
    }
    
    .hamburger-line {
        height: 2.5px;
    }
}

/* Extra Small Devices */
@media (max-width: 360px) {
    .logo-text {
        display: none;
    }
    
    .logo-img {
        height: 32px;
    }
    
    .lang-text {
        font-size: 0.75rem;
    }
}

/* ============================================
   SCROLL BEHAVIOR & ANIMATIONS
============================================ */

/* Add space for fixed header */
body {
    padding-top: clamp(70px, 10vw, 85px);
}

@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 65px;
    }
}

/* Prevent scroll when mobile menu is open */
body.menu-open {
    overflow: hidden;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Animation for menu items on mobile */
@media (max-width: 768px) {
    .main-nav.active .nav-item {
        animation: slideInLeft 0.3s ease forwards;
        opacity: 0;
    }
    
    .main-nav.active .nav-item:nth-child(1) { animation-delay: 0.1s; }
    .main-nav.active .nav-item:nth-child(2) { animation-delay: 0.15s; }
    .main-nav.active .nav-item:nth-child(3) { animation-delay: 0.2s; }
    .main-nav.active .nav-item:nth-child(4) { animation-delay: 0.25s; }
    .main-nav.active .nav-item:nth-child(5) { animation-delay: 0.3s; }
    
    @keyframes slideInLeft {
        from {
            opacity: 0;
            transform: translateX(-30px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
}

/* Hide scrollbar for mobile nav but keep functionality */
.main-nav::-webkit-scrollbar {
    width: 5px;
}

.main-nav::-webkit-scrollbar-track {
    background: transparent;
}

.main-nav::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}