/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

/* Logo */
.logo h2 {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

/* Navigation */
.nav-list {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--light-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
    background: rgba(139, 92, 246, 0.1);
}

.nav-link.active {
    color: var(--primary-color);
    background: rgba(139, 92, 246, 0.15);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 1px;
}

/* Language Selector - Aesthetic Box Design */
.language-selector {
    position: relative;
    margin-left: 2rem;
}

.language-current {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(15px);
    min-width: 80px;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.language-current::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.1), transparent);
    transition: left 0.5s ease;
}

.language-current:hover::before {
    left: 100%;
}

.language-current:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.2);
}

.language-current i {
    font-size: 0.75rem;
    color: var(--light-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: 0.25rem;
}

.language-selector.active .language-current i {
    transform: rotate(180deg);
    color: var(--primary-color);
}

.language-flag {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.85rem;
    min-width: 18px;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.language-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: rgba(17, 24, 39, 0.98);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(139, 92, 246, 0.2);
    border-radius: 16px;
    padding: 0.75rem;
    min-width: 140px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    z-index: 1001;
}

.language-selector.active .language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.language-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid rgba(139, 92, 246, 0.2);
}

.language-dropdown::after {
    content: '';
    position: absolute;
    top: -6px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid rgba(17, 24, 39, 0.98);
}

.language-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--light-color);
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    margin-bottom: 0.25rem;
}

.language-option:last-child {
    margin-bottom: 0;
}

.language-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.15), transparent);
    transition: left 0.4s ease;
}

.language-option:hover::before {
    left: 100%;
}

.language-option:hover {
    background: rgba(139, 92, 246, 0.1);
    color: var(--primary-color);
    transform: translateX(5px);
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.language-option.active {
    background: rgba(139, 92, 246, 0.15);
    color: var(--primary-color);
    border: 1px solid rgba(139, 92, 246, 0.4);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.2);
}

.language-option.active .language-flag {
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

.language-option.active .language-name {
    color: var(--primary-color);
    font-weight: 600;
}

.language-name {
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--light-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover span {
    background: var(--primary-color);
}

/* Mobile Menu Active State */
.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        padding: 0 1rem;
        height: 70px;
    }
    
    .nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--darker-color);
        border-top: 1px solid var(--border-color);
        transition: left 0.3s ease;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
    }
    
    .nav.active {
        left: 0;
    }
    
    .nav-list {
        flex-direction: column;
        padding: 2rem 1rem;
        gap: 1rem;
        flex: 1;
    }
    
    .nav-link {
        display: block;
        width: 100%;
        text-align: center;
        padding: 1rem;
        border-radius: 8px;
        border: 1px solid transparent;
        font-size: 1.1rem;
    }
    
    .nav-link:hover {
        border-color: var(--primary-color);
        background: rgba(139, 92, 246, 0.1);
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .logo h2 {
        font-size: 1.75rem;
    }
    
    /* Hide desktop language selector */
    .language-selector {
        display: none;
    }
    
    /* Mobile Language Selector */
    .mobile-language-selector {
        display: block;
        margin: 1rem;
        padding: 1rem;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        backdrop-filter: blur(10px);
    }
    
    .mobile-language-options {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .mobile-language-option {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 0.75rem 1rem;
        color: var(--light-color);
        text-decoration: none;
        border-radius: 8px;
        transition: all 0.3s ease;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid transparent;
    }
    
    .mobile-language-option:hover {
        background: rgba(139, 92, 246, 0.1);
        color: var(--primary-color);
        border-color: var(--primary-color);
    }
    
    .mobile-language-option.active {
        background: rgba(139, 92, 246, 0.15);
        color: var(--primary-color);
        border-color: var(--primary-color);
        box-shadow: 0 4px 15px rgba(139, 92, 246, 0.2);
    }
    
    .mobile-language-flag {
        font-weight: 600;
        color: var(--primary-color);
        font-size: 1rem;
        min-width: 24px;
        text-align: center;
    }
    
    .mobile-language-name {
        font-weight: 500;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0 0.5rem;
        height: 60px;
    }
    
    .nav {
        top: 60px;
        height: calc(100vh - 60px);
    }
    
    .logo h2 {
        font-size: 1.5rem;
    }
    
    .nav-list {
        padding: 1.5rem 0.5rem;
    }
    
    .nav-link {
        padding: 0.8rem;
        font-size: 1rem;
    }
    
    .mobile-language-selector {
        margin: 1rem 0.5rem;
        padding: 0.8rem;
    }
    
    .mobile-language-option {
        padding: 0.6rem 0.8rem;
    }
    
    .mobile-language-flag {
        font-size: 0.9rem;
        min-width: 20px;
    }
    
    .mobile-language-name {
        font-size: 0.9rem;
    }
}

/* Header Scroll Effect */
.header.scrolled {
    background: rgba(17, 24, 39, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Animation for nav items */
.nav-link {
    opacity: 0;
    animation: fadeInDown 0.6s ease forwards;
}

.nav-link:nth-child(1) { animation-delay: 0.1s; }
.nav-link:nth-child(2) { animation-delay: 0.2s; }
.nav-link:nth-child(3) { animation-delay: 0.3s; }
.nav-link:nth-child(4) { animation-delay: 0.4s; }
.nav-link:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
} 