/* Header Styles */
.site-header {
    background: rgba(17, 24, 39, 0.95);
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.site-logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: opacity 0.3s ease;
}

.site-logo:hover {
    opacity: 0.9;
}

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

.nav-link {
    position: relative;
    font-weight: 500;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.8);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #6366f1;
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: #6366f1;
}

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

/* Language Selector Styles */
.lang-selector {
    position: relative;
    z-index: 50;
}

.lang-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(55, 65, 81, 0.5);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.8);
}

.lang-button:hover {
    background: rgba(55, 65, 81, 0.8);
    border-color: rgba(99, 102, 241, 0.4);
    color: white;
}

.lang-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 160px;
    background: rgba(31, 41, 55, 0.95);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 0.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transform-origin: top right;
    transition: all 0.2s ease-out;
}

.lang-menu.hidden {
    opacity: 0;
    transform: scale(0.95) translateY(-10px);
    pointer-events: none;
}

.lang-option {
    display: block;
    padding: 0.75rem 1rem;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.2s ease;
}

.lang-option:hover {
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
}

/* Mobile Menu Styles */
.mobile-menu-button {
    display: none;
    padding: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.3s ease;
}

.mobile-menu-button:hover {
    color: #6366f1;
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 1rem;
    background: rgba(31, 41, 55, 0.95);
    border-top: 1px solid rgba(99, 102, 241, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .mobile-menu-button {
        display: block;
    }

    .mobile-menu.active {
        display: block;
    }

    .mobile-menu .nav-link {
        display: block;
        padding: 0.75rem 1rem;
        border-radius: 0.375rem;
        margin-bottom: 0.5rem;
    }

    .mobile-menu .nav-link:hover {
        background: rgba(99, 102, 241, 0.1);
    }

    .lang-selector {
        margin-top: 1rem;
    }
}