/* Language Switcher - Icon in Navbar */
.lang-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lang-toggle:hover {
    background: rgba(var(--primary), 0.1);
    transform: rotate(15deg);
}

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

/* 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;
    justify-content: flex-end;
}

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

body.rtl .hero-title {
    text-align: right;
}

body.rtl .hero-desc-wrapper {
    padding-left: 0;
    padding-right: 1.5rem;
    border-left: none;
    border-right: 2px solid rgba(255, 146, 1, 0.2);
}

body.rtl.dark-mode .hero-desc-wrapper {
    border-right-color: rgba(255, 146, 1, 0.3);
}

body.rtl .hero-buttons {
    align-items: flex-end;
}

body.rtl .hero-badges {
    justify-content: flex-end;
}

/* 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;
}

/* 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) {
    body.rtl .nav-links {
        text-align: right;
    }
    
    body.rtl .hero-buttons {
        align-items: stretch;
    }
}

/* 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 {
    color: var(--text-primary) !important;
}

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

body.rtl .marketing-badge {
    font-size: 1rem;
    letter-spacing: 0.15em;
}
