/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo {
    flex-shrink: 0;
}

.logo a {
    text-decoration: none;
}

.logo-text {
    font-size: 1.75rem;
    font-weight: bold;
    background: linear-gradient(135deg, #6C4AB6, #4A90E2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation Menu */
.nav-menu {
    display: none;
}

@media(min-width: 1024px) {
    .nav-menu {
        display: block;
    }
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: #333333;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #6C4AB6, #4A90E2);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #6C4AB6;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 0.5rem;
    background: #F5F5F5;
    padding: 0.25rem;
    border-radius: 25px;
}

.lang-btn {
    background: transparent;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    color: #666;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    color: #6C4AB6;
}

.lang-btn.active {
    background: linear-gradient(135deg, #6C4AB6, #4A90E2);
    color: white;
    box-shadow: 0 2px 10px rgba(108, 74, 182, 0.3);
}

.lang-text {
    font-size: 0.9rem;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

@media(min-width: 1024px) {
    .mobile-menu-toggle {
        display: none;
    }
}

.hamburger {
    width: 28px;
    height: 3px;
    background: #333333;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active .hamburger:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active .hamburger:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    padding: 2rem;
}

.mobile-nav-list {
    list-style: none;
    text-align: center;
    padding: 0;
    margin: 0;
}

.mobile-nav-item {
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active .mobile-nav-item {
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav-item:nth-child(1) {
    transition-delay: 0.1s;
}
.mobile-nav-item:nth-child(2) {
    transition-delay: 0.2s;
}
.mobile-nav-item:nth-child(3) {
    transition-delay: 0.3s;
}
.mobile-nav-item:nth-child(4) {
    transition-delay: 0.4s;
}
.mobile-nav-item:nth-child(5) {
    transition-delay: 0.5s;
}

.mobile-nav-link {
    text-decoration: none;
    color: white;
    font-size: 1.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.mobile-nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #6C4AB6, #4A90E2);
    transition: width 0.3s ease;
}

.mobile-nav-link:hover::after,
.mobile-nav-link.active::after {
    width: 100%;
}

.mobile-nav-link:hover {
    color: #4A90E2;
    transform: scale(1.1);
}

/* Add padding to body for fixed header */
body {
    padding-top: 80px;
}

/* RTL Support */
html[dir="rtl"] .nav-link::after {
    right: 0;
    left: auto;
}

html[dir="ltr"] .logo-text,
html[dir="ltr"] .nav-link,
html[dir="ltr"] .mobile-nav-link {
    font-family: 'Segoe UI', sans-serif;
}

