/* RTL-specific styles for Arabic version */
/* Override LTR defaults for right-to-left layout */

:root {
  direction: rtl;
}

/* Base RTL setup */
body {
  direction: rtl;
  text-align: right;
}

/* Typography adjustments for Arabic fonts */
body {
  font-family: 'Tajawal', 'Cairo', -apple-system, BlinkMacSystemFont, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Cairo', 'Tajawal', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 700;
}

.hero-title {
  font-family: 'Cairo', 'Tajawal', sans-serif;
  font-weight: 800;
}

/* Navigation - reverse flex direction */
.nav-container {
  flex-direction: row-reverse;
}

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

/* Burger Menu RTL - reverse the diagonal effect */
.burger-menu {
  align-items: flex-end;
}

/* In RTL: top line to right, bottom line to left */
.burger-line:first-child {
  align-self: flex-end;
}

.burger-line:last-child {
  align-self: flex-start;
}

/* Mobile menu RTL adjustments */
.nav-links.mobile-active {
  text-align: center;
}

.mobile-active .nav-link {
  text-align: center;
}

/* Language Switcher - keep LTR for consistency */
.lang-switcher {
  direction: ltr;
  text-align: left;
}

/* Hero section - mirror layout */
.hero-content {
  flex-direction: row-reverse;
}

.hero-buttons {
  flex-direction: row-reverse;
}

.hero-stats {
  flex-direction: row-reverse;
}

/* Badges and tags */
.badge {
  flex-direction: row-reverse;
}

.badge i {
  margin-right: 0;
  margin-left: 0.5rem;
}

/* Feature cards */
.feature-header {
  flex-direction: row-reverse;
}

.card-features {
  flex-direction: row-reverse;
}

/* Social proof bar */
.social-proof-bar {
  flex-direction: row-reverse;
}

.proof-item {
  flex-direction: row-reverse;
}

.proof-icon {
  margin-right: 0;
  margin-left: 1rem;
}

/* Icons in buttons - reverse margins */
.btn i {
  margin-right: 0;
  margin-left: 0.5rem;
}

.contact-btn i {
  margin-right: 0;
  margin-left: 0.75rem;
}

/* Floating cards animation */
/* .floating-cards {
  left: auto;
  right: 2rem;
  transform: translate(17%, -50%);
} */

/* Process steps - reverse numbering position */
.process-step::before {
  left: auto;
  right: 0;
}

.process-step {
  padding-left: 0;
  padding-right: 3rem;
}

/* Service cards icons */
.service-icon {
  margin-left: 0;
  margin-right: auto;
}

/* Testimonial cards */
.testimonial-header {
  flex-direction: row-reverse;
}

.testimonial-avatar {
  margin-right: 0;
  margin-left: 1rem;
}

/* Pricing cards */
.price-features li::before {
  left: auto;
  right: 0;
}

.price-features li {
  padding-left: 0;
  padding-right: 2rem;
}

/* FAQ accordion */
.faq-question {
  padding-right: 3rem;
  padding-left: 1.5rem;
}

.faq-icon {
  left: auto;
  right: 1.5rem;
}

/* Trust badges */
.badge-card {
  text-align: right;
}

.badge-icon {
  margin-left: 0;
  margin-right: auto;
}

/* Portfolio grid - maintain grid but adjust text */
.portfolio-item {
  text-align: right;
}

/* Footer */
.footer-content {
  flex-direction: row-reverse;
}

.location i {
  margin-right: 0;
  margin-left: 0.5rem;
}

/* WhatsApp button - keep on right side */
.whatsapp-float {
  right: 2rem;
  left: auto;
}

/* Scroll indicator */
.scroll-indicator {
  flex-direction: column-reverse;
}

/* Animations - mirror horizontal movements */
@keyframes slideInRight {
  from {
    transform: translateX(-30px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    transform: translateX(30px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Breadcrumb navigation */
.breadcrumb ol {
  flex-direction: row-reverse;
}

.breadcrumb li::after {
  margin: 0 0.5rem;
}

/* Video player controls */
.play-button {
  left: auto;
  right: 50%;
  transform: translate(50%, -50%);
}

/* Metric labels */
.metric-label,
.proof-label,
.stat-label {
  text-align: right;
}

/* Form inputs if any */
input[type="text"],
input[type="email"],
textarea {
  text-align: right;
  direction: rtl;
}

/* List items with custom bullets */
ul li {
  padding-right: 1.5rem;
  padding-left: 0;
}

/* Checkmarks and icons in lists */
.feature-list li::before {
  left: auto;
  right: 0;
}

/* Card hover effects - maintain direction */
.feature-card:hover,
.service-card:hover,
.testimonial-card:hover {
  transform: translateY(-8px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .nav-container {
    flex-direction: row-reverse;
  }

  .hero-content {
    flex-direction: column;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-stats {
    flex-direction: column;
  }

  .social-proof-bar {
    flex-direction: column;
  }
}

/* Numeric values - keep LTR */
.stat-number,
.metric-number,
.proof-number,
.price-amount {
  direction: ltr;
  display: inline-block;
}

/* URLs and email addresses - keep LTR */
.contact-btn span {
  direction: ltr;
  display: inline-block;
}

/* Ensure proper font rendering for Arabic */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Arabic-specific letter spacing */
h1, h2, h3 {
  letter-spacing: 0;
}

/* Improve Arabic readability */
p, li, span {
  line-height: 1.8;
}

.hero-description {
  line-height: 2;
}

.section-title {
  padding-bottom: 15px;
}