/* ===================================
   Noha Younis - Voice Over Portfolio
   Arabic RTL Styles
   =================================== */

/* RTL Base Styles */
body.rtl {
    direction: rtl;
    text-align: right;
    font-family: 'Cairo', 'Amiri', var(--font-body), sans-serif;
}

.rtl h1, 
.rtl h2, 
.rtl h3, 
.rtl h4, 
.rtl h5, 
.rtl h6 {
    font-family: 'Cairo', 'Amiri', var(--font-heading), serif;
}

/* Navigation RTL */
.rtl .navbar {
    direction: ltr; /* Keep navbar LTR for proper centering */
}

.rtl .nav-container {
    direction: rtl;
}

.rtl .nav-links {
    flex-direction: row-reverse;
}

.rtl .nav-link::after {
    left: auto;
    right: 0;
}

.rtl .cta-button {
    margin-right: 0;
    margin-left: 0;
}

/* Hero RTL */
.rtl .hero-content {
    direction: rtl;
}

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

.rtl .hero-cta {
    justify-content: flex-start;
}

.rtl .btn i {
    margin-left: 10px;
    margin-right: 0;
}

/* Demo Cards RTL */
.rtl .demo-card {
    text-align: right;
}

.rtl .demo-header {
    flex-direction: row-reverse;
}

.rtl .audio-player {
    flex-direction: row-reverse;
}

.rtl .play-btn i {
    margin-left: 0;
    margin-right: 2px;
}

.rtl .script-toggle i {
    margin-left: 8px;
    margin-right: 0;
}

/* Script Content RTL */
.rtl .script-content {
    border-left: none;
    border-right: 3px solid var(--primary);
    text-align: right;
    max-height: 120px;
    overflow-y: auto;
}

.rtl .script-content p {
    direction: rtl;
}

/* About RTL */
.rtl .about-grid {
    direction: rtl;
}

.rtl .about-content {
    text-align: right;
}

.rtl .experience-badge {
    left: -20px;
    right: auto;
}

.rtl .skill-item {
    flex-direction: row-reverse;
}

.rtl .skill-item i {
    margin-left: 10px;
    margin-right: 0;
}

/* Services RTL */
.rtl .service-card {
    text-align: right;
}

/* Studio RTL */
.rtl .studio-grid {
    direction: rtl;
}

.rtl .studio-feature {
    flex-direction: row-reverse;
}

.rtl .studio-feature i {
    margin-left: 12px;
    margin-right: 0;
}

.rtl .studio-badge {
    left: -20px;
    right: auto;
}

/* Contact RTL */
.rtl .contact-grid {
    direction: rtl;
}

.rtl .contact-item {
    text-align: right;
}

.rtl .contact-item div {
    text-align: right;
}

.rtl .social-links {
    justify-content: flex-start;
}

/* Form RTL */
.rtl .form-group label {
    left: auto;
    right: 20px;
}

.rtl .form-group input:focus ~ label,
.rtl .form-group input:not(:placeholder-shown) ~ label,
.rtl .form-group textarea:focus ~ label,
.rtl .form-group textarea:not(:placeholder-shown) ~ label {
    left: auto;
    right: 15px;
}

.rtl .form-group select {
    text-align: right;
}

/* Footer RTL */
.rtl .footer-content {
    direction: rtl;
}

.rtl .footer-brand,
.rtl .footer-links,
.rtl .footer-services {
    text-align: right;
}

.rtl .footer-links ul,
.rtl .footer-services ul {
    text-align: right;
}

/* Language Toggle - Always LTR positioned */
.language-toggle {
    position: fixed;
    top: 25px;
    left: 20px;
    z-index: 1001;
    display: flex;
    gap: 5px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 5px;
    border-radius: 25px;
}

.rtl .language-toggle {
    left: auto;
    right: 20px;
}

/* Demo Lang Badge RTL */
.rtl .demo-lang-badge {
    margin-left: 0;
    margin-right: auto;
}

/* ===================================
   RTL Mobile Responsive Styles
   =================================== */

/* Tablet RTL */
@media (max-width: 1024px) {
    .rtl .hero-content {
        text-align: center;
    }
    
    .rtl .hero-cta {
        justify-content: center;
    }
    
    .rtl .about-content,
    .rtl .studio-content {
        text-align: center;
    }
    
    .rtl .experience-badge {
        left: auto;
        right: -20px;
        transform: none;
    }
    
    .rtl .section-header {
        text-align: center;
    }
}

/* Mobile RTL Medium */
@media (max-width: 768px) {
    /* Navigation RTL Mobile */
    .rtl .navbar {
        direction: ltr;
    }
    
    .rtl .nav-container {
        direction: rtl;
        flex-direction: row;
        justify-content: space-between;
    }
    
    /* Mobile Menu Dropdown RTL */
    .rtl .nav-links.active {
        display: flex;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: var(--primary-dark);
        padding: 20px;
        gap: 0;
        text-align: right;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }
    
    .rtl .nav-links.active .nav-link {
        text-align: right;
        display: block;
        width: 100%;
        padding: 18px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .rtl .nav-links.active .nav-link::after {
        display: none;
    }
    
    /* Language Toggle RTL Mobile */
    .rtl .language-toggle {
        right: auto;
        left: 65px;
    }
    
    /* Music Toggle RTL */
    .rtl .music-toggle-container {
        flex-direction: column;
    }
    
    .rtl .music-btn {
        flex-direction: row-reverse;
    }
    
    /* Demo Cards RTL Mobile */
    .rtl .demo-card {
        text-align: right;
    }
    
    .rtl .demo-header {
        flex-direction: row-reverse;
    }
    
    /* Contact RTL Mobile */
    .rtl .contact-item {
        text-align: right;
    }
    
    .rtl .social-links {
        justify-content: center;
    }
    
    /* Footer RTL Mobile */
    .rtl .footer-content {
        text-align: center;
    }
    
    .rtl .footer-brand,
    .rtl .footer-links,
    .rtl .footer-services {
        text-align: center;
    }
    
    /* Experience Badge RTL Mobile */
    .rtl .experience-badge {
        left: auto;
        right: -15px;
        transform: none;
    }
}

/* Small Mobile RTL */
@media (max-width: 480px) {
    .rtl .nav-container {
        direction: rtl;
        flex-direction: row;
        justify-content: space-between;
    }
    
    .rtl .demo-card {
        flex-direction: column;
        text-align: center;
    }
    
    .rtl .demo-header {
        align-items: center;
        justify-content: center;
    }
    
    .rtl .skill-item {
        flex-direction: row-reverse;
        justify-content: center;
    }
    
    .rtl .language-toggle {
        left: 60px;
        right: auto;
    }
    
    .rtl .studio-feature {
        flex-direction: row-reverse;
        justify-content: center;
    }
    
    /* Experience Badge RTL Small Mobile */
    .rtl .experience-badge {
        left: auto;
        right: -10px;
        transform: none;
    }
}

/* Touch Device RTL */
@media (hover: none) and (pointer: coarse) {
    .rtl .demo-card:hover,
    .rtl .service-card:hover,
    .rtl .studio-feature:hover {
        transform: none;
    }
}

