/* RTL Specific Styles */
[dir="rtl"] body {
    font-family: 'Tajawal', 'Poppins', sans-serif;
}

/* Import Arabic font */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800&display=swap');

/* Navigation RTL */
[dir="rtl"] .nav-links a {
    margin-left: 0;
    margin-right: 25px;
}

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

/* Language Switcher */
.language-switcher {
    margin: 0 15px;
}

.lang-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: var(--card-bg);
    border: 2px solid var(--glass-border);
    border-radius: 50%;
    color: var(--light-text);
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition-smooth);
    text-decoration: none;
}

.lang-btn:hover {
    background: var(--accent-gradient);
    border-color: transparent;
    transform: scale(1.1);
    box-shadow: var(--shadow-glow);
}

/* Timeline RTL */
[dir="rtl"] .timeline-date {
    text-align: left;
    padding-right: 0;
    padding-left: 30px;
}

[dir="rtl"] .timeline-date::after {
    right: auto;
    left: -8px;
}

[dir="rtl"] .timeline-content {
    border-left: none;
    border-right: 3px solid var(--accent-color);
}

[dir="rtl"] .timeline-content::before {
    left: auto;
    right: -8px;
    border-right: none;
    border-left: 8px solid var(--card-bg);
}

/* Contact Items RTL */
[dir="rtl"] .contact-item:hover {
    transform: translateX(-10px);
}

/* Form Labels RTL */
[dir="rtl"] .form-group label {
    text-align: right;
}

/* Buttons with icons RTL */
[dir="rtl"] .btn i {
    margin-left: 8px;
    margin-right: 0;
}

/* Gallery Animations RTL */
[dir="rtl"] .gallery-row.top {
    animation: scrollRight 40s linear infinite;
}

[dir="rtl"] .gallery-row.bottom {
    animation: scrollLeft 40s linear infinite;
}

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

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

/* Video Stories RTL */
[dir="rtl"] .scroll-indicator.left {
    left: auto;
    right: 10px;
}

[dir="rtl"] .scroll-indicator.right {
    right: auto;
    left: 10px;
}

[dir="rtl"] .video-stories-wrapper::before {
    left: auto;
    right: 0;
    background: linear-gradient(to left, var(--dark-bg) 0%, transparent 100%);
}

[dir="rtl"] .video-stories-wrapper::after {
    right: auto;
    left: 0;
    background: linear-gradient(to right, var(--dark-bg) 0%, transparent 100%);
}

/* Lightbox Controls RTL */
[dir="rtl"] .lightbox-close {
    right: auto;
    left: 20px;
}

[dir="rtl"] .reviewer-info-lightbox {
    text-align: right;
}

/* Footer RTL */
[dir="rtl"] .footer-links a:hover {
    transform: translateX(-5px);
}

/* Menu Toggle RTL */
[dir="rtl"] .menu-toggle {
    margin-left: 0;
    margin-right: auto;
}

/* Responsive RTL */
@media (max-width: 768px) {
    [dir="rtl"] .nav-links {
        left: auto;
        right: 0;
    }
    
    [dir="rtl"] .timeline-date {
        text-align: right;
        padding: 0 20px 10px 0;
    }
    
    [dir="rtl"] .timeline-date::after {
        left: auto;
        right: 0;
    }
}

.nav-links {
    
    left: 0 !important;
    right: auto;
    
}