/**
 * Car Star - Components Stylesheet
 * All component-specific styles
 * 
 * @package CarStar
 */

/* =====================================================
   NAVBAR
   ===================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--navbar-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: var(--z-fixed);
    transition: all var(--transition-base);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .navbar {
    background: rgba(10, 25, 41, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: var(--space-lg);
}

/* Logo */
.navbar-logo {
    display: flex;
    align-items: center;
}

.navbar-logo .logo-img {
    height: 50px;
    width: auto;
    transition: transform var(--transition-smooth);
}

.navbar-logo:hover .logo-img {
    transform: scale(1.05);
}

.navbar-logo .logo-text {
    font-size: var(--font-size-xl);
    font-weight: var(--font-bold);
    color: var(--color-primary);
}

/* Navigation Menu */
.navbar-menu {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    padding: var(--space-sm) var(--space-md);
    font-size: var(--font-size-sm);
    font-weight: var(--font-medium);
    color: var(--text-secondary);
    border-radius: var(--radius-full);
    transition: all var(--transition-smooth);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-primary);
    background: rgba(30, 74, 122, 0.1);
}

[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-link.active {
    background: rgba(59, 130, 246, 0.2);
}

/* Navbar Actions */
.navbar-actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 2px solid var(--color-accent);
    border-radius: var(--radius-full);
    cursor: pointer;
    font-family: var(--font-primary);
    font-size: var(--font-size-sm);
    font-weight: var(--font-bold);
    color: var(--color-accent);
    transition: all var(--transition-smooth);
}

.lang-switcher:hover {
    background: var(--color-accent);
    color: var(--color-primary-dark);
}

/* Theme Toggle */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    color: var(--text-secondary);
    transition: all var(--transition-smooth);
    position: relative;
}

.theme-toggle:hover {
    background: var(--bg-secondary);
    color: var(--color-primary);
}

.theme-icon-light,
.theme-icon-dark {
    position: absolute;
    font-size: var(--font-size-lg);
    transition: all var(--transition-smooth);
}

.theme-icon-dark {
    opacity: 0;
    transform: rotate(-90deg) scale(0);
}

[data-theme="dark"] .theme-icon-light {
    opacity: 0;
    transform: rotate(90deg) scale(0);
}

[data-theme="dark"] .theme-icon-dark {
    opacity: 1;
    transform: rotate(0) scale(1);
}

/* Navbar CTA */
.navbar-cta {
    padding: var(--space-sm) var(--space-lg) !important;
    font-size: var(--font-size-sm) !important;
}

/* Mobile Toggle */
.navbar-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-smooth);
}

.navbar-toggle.active .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.navbar-toggle.active .hamburger span:nth-child(2) {
    opacity: 0;
}

.navbar-toggle.active .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* =====================================================
   HERO SECTION
   ===================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-bg-placeholder {
    width: 100%;
    height: 100%;
    background: var(--gradient-dark);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 41, 66, 0.9) 0%, rgba(30, 74, 122, 0.7) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    padding-top: var(--navbar-height);
}

.hero-text {
    max-width: 800px;
}

html[dir="rtl"] .hero-text {
    margin-right: 0;
    margin-left: auto;
}

html[dir="ltr"] .hero-text {
    margin-left: 0;
    margin-right: auto;
}

.hero-icon {
    font-size: 4rem;
    color: var(--color-accent);
    margin-bottom: var(--space-lg);
    animation: float 3s ease-in-out infinite;
}

.hero-badge {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    background: rgba(240, 193, 75, 0.2);
    border: 1px solid var(--color-accent);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: var(--font-semibold);
    color: var(--color-accent);
    margin-bottom: var(--space-lg);
}

.hero-title {
    font-size: var(--font-size-6xl);
    font-weight: var(--font-extrabold);
    color: var(--text-light);
    line-height: 1.2;
    margin-bottom: var(--space-lg);
}

.hero-subtitle {
    font-size: var(--font-size-xl);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--space-2xl);
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
    margin-bottom: var(--space-3xl);
}

.btn-lg {
    padding: var(--space-lg) var(--space-2xl);
    font-size: var(--font-size-lg);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: var(--space-3xl);
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: var(--font-size-4xl);
    font-weight: var(--font-extrabold);
    color: var(--color-accent);
}

.stat-label {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.7);
}

/* Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: var(--space-2xl);
    left: 50%;
    transform: translateX(-50%);
}

.scroll-down {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-light);
    text-decoration: none;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 13px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--color-accent);
    border-radius: 2px;
    animation: scroll-indicator 1.5s ease-in-out infinite;
}

.scroll-text {
    font-size: var(--font-size-xs);
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.7;
}

/* =====================================================
   BRANDS SECTION
   ===================================================== */
.brands-section {
    padding: var(--space-4xl) 0;
    background: var(--bg-secondary);
}

.section-badge {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    background: rgba(30, 74, 122, 0.1);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: var(--font-semibold);
    color: var(--color-primary);
    margin-bottom: var(--space-md);
}

[data-theme="dark"] .section-badge {
    background: rgba(59, 130, 246, 0.2);
}

.brands-slider-wrapper {
    overflow: hidden;
    margin-top: var(--space-3xl);
    padding: var(--space-md) 0;
}

.brands-slider {
    position: relative;
}

.brands-track {
    display: flex;
    gap: var(--space-xl);
    animation: infinite-scroll 30s linear infinite;
}

@keyframes infinite-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

html[dir="rtl"] .brands-track {
    animation: infinite-scroll-rtl 30s linear infinite;
}

@keyframes infinite-scroll-rtl {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(50%);
    }
}

.brand-item {
    flex-shrink: 0;
}

.brand-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 120px;
    padding: var(--space-lg);
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-smooth);
}

.brand-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.brand-logo {
    max-width: 80px;
    max-height: 50px;
    object-fit: contain;
    margin-bottom: var(--space-sm);
}

.brand-placeholder {
    width: 60px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-2xl);
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
}

.brand-name {
    font-size: var(--font-size-sm);
    font-weight: var(--font-semibold);
    color: var(--text-secondary);
}

/* =====================================================
   WHY US SECTION
   ===================================================== */
.why-us-section {
    background: var(--bg-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.feature-card {
    background: var(--bg-secondary);
    padding: var(--space-2xl);
    border-radius: var(--radius-xl);
    text-align: center;
    transition: all var(--transition-smooth);
    border: 1px solid transparent;
}

[data-theme="dark"] .feature-card {
    background: var(--bg-secondary);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--color-accent);
}

.feature-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    margin: 0 auto var(--space-lg);
    font-size: var(--font-size-2xl);
    color: var(--text-light);
    transition: all var(--transition-smooth);
}

.feature-card:hover .feature-icon {
    background: var(--gradient-gold);
    color: var(--color-primary-dark);
    transform: scale(1.1);
}

.feature-title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.feature-text {
    color: var(--text-secondary);
    font-size: var(--font-size-base);
    line-height: 1.8;
}

/* =====================================================
   SERVICES SECTION
   ===================================================== */
.services-section {
    background: var(--bg-secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
    margin-bottom: var(--space-3xl);
}

.service-card {
    position: relative;
    background: var(--bg-primary);
    padding: var(--space-2xl);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-smooth);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .service-card {
    background: var(--bg-tertiary);
    border-color: rgba(255, 255, 255, 0.1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.service-icon {
    position: relative;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-2xl);
    color: var(--color-primary);
    margin-bottom: var(--space-lg);
    z-index: 1;
}

.service-icon-bg {
    position: absolute;
    inset: 0;
    background: rgba(30, 74, 122, 0.1);
    border-radius: var(--radius-lg);
    transition: all var(--transition-smooth);
}

.service-card:hover .service-icon-bg {
    background: var(--gradient-gold);
    transform: rotate(10deg) scale(1.1);
}

.service-card:hover .service-icon {
    color: var(--color-primary-dark);
}

.service-title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.service-text {
    color: var(--text-secondary);
    font-size: var(--font-size-base);
}

.service-hover-effect {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-gold);
    transform: scaleX(0);
    transition: transform var(--transition-smooth);
}

.service-card:hover .service-hover-effect {
    transform: scaleX(1);
}

.services-cta {
    margin-top: var(--space-2xl);
}

/* =====================================================
   ABOUT SECTION
   ===================================================== */
.about-section {
    background: var(--bg-primary);
}

.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
    margin-bottom: var(--space-4xl);
}

.about-image {
    position: relative;
}

.about-img {
    width: 100%;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
}

.about-img-placeholder {
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-dark);
    border-radius: var(--radius-2xl);
    font-size: 6rem;
    color: var(--color-accent);
}

.experience-badge {
    position: absolute;
    bottom: -30px;
    right: 30px;
    width: 120px;
    height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--gradient-gold);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-lg);
}

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

.exp-number {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-extrabold);
    color: var(--color-primary-dark);
}

.exp-text {
    font-size: var(--font-size-xs);
    font-weight: var(--font-semibold);
    color: var(--color-primary-dark);
    text-align: center;
}

.about-content .section-title {
    text-align: inherit;
}

.about-text {
    margin-bottom: var(--space-xl);
}

.about-text p {
    font-size: var(--font-size-lg);
    line-height: 1.8;
}

.about-features {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-xl) 0;
}

.about-features li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
    font-weight: var(--font-medium);
    color: var(--text-primary);
}

.about-features li i {
    color: var(--color-accent);
    font-size: var(--font-size-lg);
}

.about-cta {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* About Stats */
.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
    padding: var(--space-3xl);
    background: var(--gradient-dark);
    border-radius: var(--radius-2xl);
}

.stat-card {
    text-align: center;
}

.stat-card .stat-number {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-extrabold);
    color: var(--color-accent);
}

.stat-card .stat-label {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.7);
}

/* =====================================================
   FAQ SECTION
   ===================================================== */
.faq-section {
    background: var(--bg-secondary);
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-md);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all var(--transition-smooth);
}

[data-theme="dark"] .faq-item {
    background: var(--bg-tertiary);
    border-color: rgba(255, 255, 255, 0.1);
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    padding: var(--space-lg) var(--space-xl);
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: inherit;
    font-family: var(--font-primary);
}

.faq-question-text {
    font-size: var(--font-size-lg);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
}

.faq-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: rgba(30, 74, 122, 0.1);
    border-radius: var(--radius-full);
    color: var(--color-primary);
    transition: all var(--transition-smooth);
}

.faq-item.active .faq-icon {
    background: var(--color-accent);
    color: var(--color-primary-dark);
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow);
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer-inner {
    padding: 0 var(--space-xl) var(--space-lg);
}

.faq-answer-inner p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.faq-cta {
    margin-top: var(--space-3xl);
}

.faq-cta-text {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

/* =====================================================
   CONTACT SECTION
   ===================================================== */
.contact-section {
    background: var(--bg-primary);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-3xl);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.contact-card {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-lg);
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    transition: all var(--transition-smooth);
}

[data-theme="dark"] .contact-card {
    background: var(--bg-secondary);
}

.contact-card:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-md);
}

html[dir="rtl"] .contact-card:hover {
    transform: translateX(-10px);
}

.contact-card-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    font-size: var(--font-size-xl);
    color: var(--text-light);
    flex-shrink: 0;
}

.contact-card-icon.whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
}

.contact-card-title {
    font-size: var(--font-size-sm);
    font-weight: var(--font-medium);
    color: var(--text-muted);
    margin-bottom: var(--space-xs);
}

.contact-card-link,
.contact-card-text {
    font-size: var(--font-size-base);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
}

.contact-card-link:hover {
    color: var(--color-accent);
}

/* Map */
.contact-map {
    position: relative;
    border-radius: var(--radius-2xl);
    overflow: hidden;
}

.map-container {
    width: 100%;
    height: 400px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.map-cta {
    position: absolute;
    bottom: var(--space-lg);
    left: 50%;
    transform: translateX(-50%);
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
    background: var(--bg-dark);
    padding: var(--space-4xl) 0 var(--space-xl);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--space-3xl);
    margin-bottom: var(--space-3xl);
}

.footer-logo {
    height: 60px;
    width: auto;
    margin-bottom: var(--space-md);
}

.footer-logo-text {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-bold);
    color: var(--text-light);
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--font-size-base);
    line-height: 1.8;
}

.footer-title {
    font-size: var(--font-size-lg);
    font-weight: var(--font-bold);
    color: var(--text-light);
    margin-bottom: var(--space-lg);
    position: relative;
    padding-bottom: var(--space-sm);
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--color-accent);
    border-radius: 2px;
}

html[dir="rtl"] .footer-title::after {
    left: auto;
    right: 0;
}

.footer-links ul,
.footer-services ul,
.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li,
.footer-services li {
    margin-bottom: var(--space-sm);
}

.footer-links a,
.footer-services span {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--font-size-base);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-accent);
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    color: rgba(255, 255, 255, 0.7);
}

.contact-list li i {
    color: var(--color-accent);
    width: 20px;
    margin-top: 4px;
}

.contact-list li a {
    color: rgba(255, 255, 255, 0.7);
}

.contact-list li a:hover {
    color: var(--color-accent);
}

/* Social Links */
.footer-social {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    color: var(--text-light);
    transition: all var(--transition-smooth);
}

.footer-social a:hover {
    background: var(--color-accent);
    color: var(--color-primary-dark);
    transform: translateY(-3px);
}

/* Footer Bottom */
.footer-bottom {
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: var(--font-size-sm);
    margin: 0;
}

/* =====================================================
   FLOATING ELEMENTS
   ===================================================== */
.whatsapp-float {
    position: fixed;
    bottom: var(--space-xl);
    right: var(--space-xl);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    border-radius: var(--radius-full);
    color: white;
    font-size: var(--font-size-2xl);
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: var(--z-fixed);
    transition: all var(--transition-smooth);
}

html[dir="rtl"] .whatsapp-float {
    right: auto;
    left: var(--space-xl);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
    color: white;
}

.back-to-top {
    position: fixed;
    bottom: calc(var(--space-xl) + 70px);
    right: var(--space-xl);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    border: none;
    border-radius: var(--radius-full);
    color: white;
    font-size: var(--font-size-base);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: var(--z-fixed);
    transition: all var(--transition-smooth);
}

html[dir="rtl"] .back-to-top {
    right: auto;
    left: var(--space-xl);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--color-accent);
    color: var(--color-primary-dark);
}

/* =====================================================
   LANGUAGE SWITCHING
   ===================================================== */
/* Default: Show Arabic */
.lang-en {
    display: none;
}

.lang-ar {
    display: inline;
}

/* When English is active */
html[lang="en"] .lang-en {
    display: inline;
}

html[lang="en"] .lang-ar {
    display: none;
}