/* Navigation */
.header-logo{
    border-radius: 7px;
    max-width: 140px;
}
.navbar {
    width: 100%;
    min-width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.navbar-brand {
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
    text-decoration: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--primary);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--text-dark);
    z-index: 1001;
}

.mobile-menu-btn i {
    width: 24px;
    height: 24px;
}

/* Scrolled state */
.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.language-switcher {
    display: inline-block;
    position: relative;
}

.language-select {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
}

.language-select:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.flag-icon {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.selected-language {
    flex: 1;
    font-size: 0.875rem;
    color: #1e293b;
}

.dropdown-arrow {
    width: 16px;
    height: 16px;
    color: #64748b;
    transition: transform 0.2s ease;
}

.language-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    margin-top: 0.25rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    z-index: 50;
    max-height: 300px;
    overflow-y: auto;
}

.language-dropdown-header {
    display: none;
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
    justify-content: space-between;
    align-items: center;
}

.language-dropdown-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
}

.close-dropdown {
    background: none;
    border: none;
    padding: 0.25rem;
    cursor: pointer;
    color: #64748b;
}

.language-dropdown.show {
    display: block;
}

.language-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1rem;
    text-decoration: none;
    color: #1e293b;
    transition: all 0.2s ease;
}

.language-option:hover {
    background: #f8fafc;
}

.language-option.selected {
    background: #f1f5f9;
    font-weight: 500;
}

/* Scrollbar styling */
.language-dropdown::-webkit-scrollbar {
    width: 6px;
}

.language-dropdown::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.language-dropdown::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.language-dropdown::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}


/* Mobile Styles */
@media (max-width: 640px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        bottom: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        border-top: 1px solid #e2e8f0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
        height: calc(100vh - 80px);
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-link {
        width: 100%;
        padding: 0.75rem 1rem; 
        border-radius: 0.5rem; 
    }

    .nav-link:hover {
        background: #f8fafc;
    }

    /* Language switcher mobile styles */
    .language-switcher {
        order: -1; /* Move to top of menu */
        width: 100%;
        margin-bottom: 1rem;
        border-bottom: 1px solid #e2e8f0;
        padding-bottom: 1rem;
    }

    .language-select {
        justify-content: space-between;
    }

    .language-dropdown {
        display: none;
        position: unset;
        background: white;
        border-radius: 1rem;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
        z-index: 1100;
    }

    .language-dropdown.show {
        display: block;
    }

    .language-dropdown::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
    }

    .language-option {
        padding: 1rem;
        border-bottom: 1px solid #e2e8f0;
    }

    .language-option:last-child {
        border-bottom: none;
    }
    .language-dropdown-header {
        display: flex;
    }
}