/* ============================
   MMAR NAQEL — RTL Overrides
   Arabic Version Styles
   ============================ */

/* ---------- Base RTL ---------- */
html[dir="rtl"] body {
    font-family: 'Noto Kufi Arabic', 'Inter', sans-serif;
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] h5 {
    font-family: 'Noto Kufi Arabic', 'Montserrat', sans-serif;
}

/* ---------- Buttons RTL ---------- */
html[dir="rtl"] .btn {
    flex-direction: row;
    font-family: 'Noto Kufi Arabic', 'Inter', sans-serif;
}

html[dir="rtl"] .btn:hover i {
    transform: translateX(-3px);
}

html[dir="rtl"] .btn i {
    transform: scaleX(-1);
}

/* ---------- Navigation RTL ---------- */
html[dir="rtl"] .nav-links {
    flex-direction: row;
}

html[dir="rtl"] .nav-links a::after {
    left: auto;
    right: 0;
}

html[dir="rtl"] .nav-container {
    flex-direction: row;
}

html[dir="rtl"] .logo {
    flex-direction: row;
}

html[dir="rtl"] .logo-brand {
    text-align: right;
}

/* ---------- Section Headers RTL ---------- */
html[dir="rtl"] .section-header {
    text-align: center;
}

html[dir="rtl"] .section-tag {
    font-family: 'Noto Kufi Arabic', 'Inter', sans-serif;
    letter-spacing: 0;
}

html[dir="rtl"] .section-desc {
    font-family: 'Noto Kufi Arabic', 'Inter', sans-serif;
}

/* ---------- Hero RTL ---------- */
html[dir="rtl"] .hero-badge {
    font-family: 'Noto Kufi Arabic', 'Inter', sans-serif;
    letter-spacing: 0;
}

html[dir="rtl"] .hero-sub {
    font-family: 'Noto Kufi Arabic', 'Inter', sans-serif;
}

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

/* ---------- About RTL ---------- */
html[dir="rtl"] .about-grid {
    direction: rtl;
}

html[dir="rtl"] .about-experience-badge {
    right: auto;
    left: -20px;
}

html[dir="rtl"] .about-feature {
    flex-direction: row;
    text-align: right;
}

html[dir="rtl"] .about-feature h4,
html[dir="rtl"] .about-feature p {
    font-family: 'Noto Kufi Arabic', 'Inter', sans-serif;
}

html[dir="rtl"] .about-content > p {
    font-family: 'Noto Kufi Arabic', 'Inter', sans-serif;
}

/* ---------- Services RTL ---------- */
html[dir="rtl"] .category-header {
    flex-direction: row;
    text-align: right;
}

html[dir="rtl"] .category-header h3,
html[dir="rtl"] .category-header p {
    font-family: 'Noto Kufi Arabic', 'Inter', sans-serif;
}

html[dir="rtl"] .service-card {
    text-align: right;
}

html[dir="rtl"] .service-card::before {
    left: auto;
    right: 0;
}

html[dir="rtl"] .service-card h4,
html[dir="rtl"] .service-card p {
    font-family: 'Noto Kufi Arabic', 'Inter', sans-serif;
}

html[dir="rtl"] .card-link {
    flex-direction: row;
    font-family: 'Noto Kufi Arabic', 'Inter', sans-serif;
}

html[dir="rtl"] .card-link i {
    transform: scaleX(-1);
}

html[dir="rtl"] .card-link:hover i {
    transform: scaleX(-1) translateX(4px);
}

/* ---------- Values Conveyor RTL ---------- */
html[dir="rtl"] .value-item h4,
html[dir="rtl"] .value-item p {
    font-family: 'Noto Kufi Arabic', 'Inter', sans-serif;
}

html[dir="rtl"] .conveyor-belt {
    animation: conveyorScrollRtl 30s linear infinite;
}

@keyframes conveyorScrollRtl {
    0% { transform: translateX(0); }
    100% { transform: translateX(50%); }
}

/* ---------- Quote Breaks RTL ---------- */
html[dir="rtl"] .quote-break blockquote i.fa-quote-left::before {
    content: "\f10e"; /* quote-right icon for RTL */
}

html[dir="rtl"] .quote-break blockquote p {
    font-family: 'Noto Kufi Arabic', 'Montserrat', sans-serif;
}

html[dir="rtl"] .quote-break blockquote cite {
    font-family: 'Noto Kufi Arabic', 'Inter', sans-serif;
}

/* ---------- Portfolio RTL ---------- */
html[dir="rtl"] .portfolio-overlay {
    text-align: right;
}

html[dir="rtl"] .portfolio-overlay h4,
html[dir="rtl"] .portfolio-overlay p {
    font-family: 'Noto Kufi Arabic', 'Inter', sans-serif;
}

html[dir="rtl"] .filter-btn {
    font-family: 'Noto Kufi Arabic', 'Inter', sans-serif;
}

/* ---------- Partners RTL ---------- */
html[dir="rtl"] .partners-track {
    animation: partnersScrollRtl 25s linear infinite;
}

@keyframes partnersScrollRtl {
    0% { transform: translateX(0); }
    100% { transform: translateX(50%); }
}

/* ---------- Blog RTL ---------- */
html[dir="rtl"] .blog-date {
    right: auto;
    left: 16px;
}

html[dir="rtl"] .blog-content {
    text-align: right;
}

html[dir="rtl"] .blog-content h4,
html[dir="rtl"] .blog-content p,
html[dir="rtl"] .blog-tag {
    font-family: 'Noto Kufi Arabic', 'Inter', sans-serif;
}

/* ---------- Contact RTL ---------- */
html[dir="rtl"] .contact-card {
    flex-direction: row;
    text-align: right;
}

html[dir="rtl"] .contact-card h4,
html[dir="rtl"] .contact-card p {
    font-family: 'Noto Kufi Arabic', 'Inter', sans-serif;
}

html[dir="rtl"] .contact-form {
    text-align: right;
}

html[dir="rtl"] .form-group label {
    font-family: 'Noto Kufi Arabic', 'Inter', sans-serif;
}

html[dir="rtl"] .form-group input,
html[dir="rtl"] .form-group select,
html[dir="rtl"] .form-group textarea {
    font-family: 'Noto Kufi Arabic', 'Inter', sans-serif;
    text-align: right;
}

html[dir="rtl"] .form-success p {
    font-family: 'Noto Kufi Arabic', 'Inter', sans-serif;
}

/* ---------- Footer RTL ---------- */
html[dir="rtl"] .footer-grid {
    direction: rtl;
}

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

html[dir="rtl"] .footer-brand p {
    font-family: 'Noto Kufi Arabic', 'Inter', sans-serif;
}

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

html[dir="rtl"] .footer-links h4,
html[dir="rtl"] .footer-links a {
    font-family: 'Noto Kufi Arabic', 'Inter', sans-serif;
}

html[dir="rtl"] .footer-links a:hover {
    padding-left: 0;
    padding-right: 4px;
}

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

html[dir="rtl"] .footer-newsletter h4,
html[dir="rtl"] .footer-newsletter p {
    font-family: 'Noto Kufi Arabic', 'Inter', sans-serif;
}

html[dir="rtl"] .newsletter-form {
    flex-direction: row;
}

html[dir="rtl"] .newsletter-form input {
    font-family: 'Noto Kufi Arabic', 'Inter', sans-serif;
    text-align: right;
}

html[dir="rtl"] .footer-bottom {
    flex-direction: row;
}

html[dir="rtl"] .footer-bottom p {
    font-family: 'Noto Kufi Arabic', 'Inter', sans-serif;
}

html[dir="rtl"] .footer-bottom-links {
    flex-direction: row;
}

html[dir="rtl"] .footer-bottom-links a {
    font-family: 'Noto Kufi Arabic', 'Inter', sans-serif;
}

/* ---------- Back To Top RTL ---------- */
html[dir="rtl"] .back-to-top {
    right: auto;
    left: 30px;
}

/* ---------- Language Switcher RTL ---------- */
html[dir="rtl"] .lang-switch {
    margin-left: 0;
    margin-right: 12px;
}

/* ---------- Mobile RTL Overrides ---------- */
@media (max-width: 768px) {
    html[dir="rtl"] .nav-links.active {
        text-align: right;
    }

    html[dir="rtl"] .about-experience-badge {
        left: 20px;
        right: auto;
    }

    html[dir="rtl"] .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    html[dir="rtl"] .hero-btns {
        flex-direction: column;
    }
}
