/* Language Switcher Styles */
.language-switcher {
    position: relative;
    display: inline-block;
}

.current-lang {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.current-lang:hover {
    background: rgba(255, 255, 255, 0.2);
}

.current-lang i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.language-switcher:hover .current-lang i {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.language-switcher:hover .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    padding: 12px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #374151;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f3f4f6;
}

.lang-option:last-child {
    border-bottom: none;
}

.lang-option:hover {
    background: #f8f9fa;
}

.lang-option.active {
    background: #1a365d;
    color: white;
}

.lang-option.active:hover {
    background: #1a365d;
}

/* RTL Support */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .lang-dropdown {
    right: auto;
    left: 0;
}

[dir="rtl"] .hero-container {
    direction: rtl;
}

[dir="rtl"] .nav-menu {
    direction: rtl;
}

[dir="rtl"] .interactive-grid {
    direction: rtl;
}

[dir="rtl"] .features-grid {
    direction: rtl;
}

[dir="rtl"] .pricing-grid {
    direction: rtl;
}

[dir="rtl"] .testimonials-grid {
    direction: rtl;
}

[dir="rtl"] .contact-content {
    direction: rtl;
}

[dir="rtl"] .footer-content {
    direction: rtl;
}

/* RTL specific adjustments */
[dir="rtl"] .hero-stats {
    flex-direction: row-reverse;
}

[dir="rtl"] .hero-buttons {
    flex-direction: row-reverse;
}

[dir="rtl"] .solution-list li {
    flex-direction: row-reverse;
}

[dir="rtl"] .contact-feature {
    flex-direction: row-reverse;
}

[dir="rtl"] .footer-section ul {
    text-align: right;
}

/* Mobile RTL adjustments */
@media (max-width: 768px) {
    [dir="rtl"] .hero-container {
        text-align: right;
    }
    
    [dir="rtl"] .section-title {
        text-align: right;
    }
    
    [dir="rtl"] .interactive-title {
        text-align: right;
    }
}

/* Language switcher in navbar */
.navbar .language-switcher {
    margin-left: 1rem;
}

.navbar .current-lang {
    background: transparent;
    border: none;
    color: #000000;
}

.navbar .current-lang:hover {
    color: #1a365d;
}

/* Responsive language switcher */
@media (max-width: 768px) {
    .navbar .language-switcher {
        margin-left: 0;
        margin-top: 0;
        margin-right: 1rem;
    }
    
    .current-lang {
        padding: 8px 12px;
        font-size: 14px;
        min-width: 120px;
    }
    
    .lang-dropdown {
        min-width: 140px;
        right: 0;
        left: auto;
    }
    
    .lang-option {
        padding: 10px 14px;
        font-size: 13px;
    }
}
