/* Language Switcher */
.lang-switcher {
    position: fixed;
    top: 100px;
    right: 2rem;
    z-index: 9999;
    display: flex;
    gap: 0.5rem;
    background: var(--bg-color);
    padding: 0.5rem;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

.lang-btn {
    padding: 0.5rem 1rem;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
}

.lang-btn:hover {
    background: rgba(255, 146, 1, 0.1);
    color: var(--accent-orange);
}

.lang-btn.active {
    background: var(--accent-orange);
    color: white;
}

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .lang-switcher {
    right: auto;
    left: 2rem;
}

/* RTL Navigation */
body.rtl .nav-links {
    flex-direction: row-reverse;
}

body.rtl .nav-logo {
    margin-right: 0;
    margin-left: auto;
}

/* RTL Hero Section */
body.rtl .hero-badge {
    flex-direction: row-reverse;
}

body.rtl .hero-badge-line {
    order: 2;
}

/* RTL About Section */
body.rtl .bento-list-item {
    flex-direction: row-reverse;
    text-align: right;
}

body.rtl .bento-list-item i {
    margin-left: 0.75rem;
    margin-right: 0;
}

/* Keep brand name LTR in RTL mode */
body.rtl .bento-title,
body.rtl .bento-title *,
body.rtl .about-title {
    direction: ltr !important;
    text-align: left !important;
    display: inline-block;
}

/* RTL Marketing Section */
body.rtl .marketing-feature {
    flex-direction: row-reverse;
}

body.rtl .marketing-feature i {
    margin-left: 0.75rem;
    margin-right: 0;
}

/* RTL Services Section */
body.rtl .service-card-icon {
    margin-left: 0;
    margin-right: 0;
}

/* RTL Contact Section */
body.rtl .contact-info-item {
    flex-direction: row-reverse;
    text-align: right;
}

body.rtl .contact-info-icon {
    margin-left: 1rem;
    margin-right: 0;
}

/* RTL Footer */
body.rtl .footer-content {
    text-align: right;
}

body.rtl .footer-links {
    text-align: right;
}

/* RTL Buttons */
body.rtl .hero-btn-primary i,
body.rtl .hero-btn-secondary i,
body.rtl .portfolio-item-btn i {
    margin-left: 0;
    margin-right: 0.5rem;
    transform: rotate(180deg);
}

/* RTL Industries Blade */
body.rtl .industries-blade {
    transform-origin: right center;
}

body.rtl .blade-content {
    text-align: right;
}

/* RTL FAQ */
body.rtl .faq-item-header {
    flex-direction: row-reverse;
}

body.rtl .faq-item-icon {
    margin-left: 0;
    margin-right: 1rem;
}

body.rtl .faq-item-toggle {
    margin-right: 0;
    margin-left: 1rem;
}

/* RTL Animations */
body.rtl .customers-scroll {
    animation-direction: reverse;
}

body.rtl .partners-marquee {
    animation-direction: reverse;
}

/* Mobile RTL */
@media (max-width: 768px) {
    .lang-switcher {
        top: 80px;
        right: 1rem;
    }
    
    body.rtl .lang-switcher {
        right: auto;
        left: 1rem;
    }
}

/* Arabic Font Optimization */
body.rtl {
    font-family: 'Tajawal', 'Cairo', 'Montserrat', sans-serif;
}

body.rtl h1, body.rtl h2, body.rtl h3, body.rtl h4, body.rtl h5, body.rtl h6 {
    font-weight: 700;
}

body.rtl .hero-title {
    font-weight: 700;
    letter-spacing: 0;
}

body.rtl .bento-title {
    font-weight: 700;
}
