/* Google Fonts Import */
@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,600;0,700;1,600&display=swap");

:root {
  /* Brand Colors - Arco Premium Green/Cream Aesthetic */
  --color-primary: #063c31; /* Deep Forest Green - Main Background & Headings */
  --color-secondary: #f58a55; /* Vibrant Orange - Buttons & Highlights */
  --color-secondary-hover: #e67e4d;
  --color-accent: #fff8f0; /* Warm Cream - Text on Green / Section BG */
  --color-bg-soft: #f2f5f4; /* Light Greenish Gray */

  --color-white: #ffffff;
  --color-text-dark: #063c31; /* Deep Green for text on light bg */
  --color-text-light: #4a5d5a; /* Muted Green-Grey */
  --color-border: #e0e5e4; /* Soft Greenish Border */

  /* Typography */
  --font-heading: "Playfair Display", serif; /* Elegant headings */
  --font-body: "Outfit", sans-serif; /* Modern clean body */

  /* Spacing */
  --spacing-xs: 0.8rem;
  --spacing-sm: 1.5rem;
  --spacing-md: 3rem;
  --spacing-lg: 5rem;
  --spacing-xl: 8rem;

  /* Layout */
  --container-width: 1280px; /* Slightly wider */
  --border-radius: 24px; /* Large modern radius */
  --border-radius-sm: 12px;

  /* Shadows - Soft & Diffused */
  --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 40px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 25px 50px rgba(0, 0, 0, 0.1);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.4s cubic-bezier(0.16, 1, 0.3, 1); /* Apple-like spring */
}
/* Base Reset */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--color-text-dark); /* Dark green on cream bg */
  line-height: 1.6;
  background-color: var(--color-accent); /* Cream Background */
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-base);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Utilities */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

/* Modern Pill Button - Arco Style */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 32px;
  background-color: var(--color-secondary); /* Orange */
  color: var(--color-white); /* White text on orange */
  font-weight: 600;
  border-radius: 50px;
  text-transform: capitalize;
  letter-spacing: 0.5px;
  font-size: 1rem;
  transition: var(--transition-base);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(245, 138, 85, 0.3);
}

/* No circle arrow - simple text or icon */
.btn::after {
  display: none;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(245, 138, 85, 0.4);
  background-color: #e67e4d; /* Slightly darker orange */
  color: white;
}

.btn:hover::after {
  transform: rotate(45deg); /* Spin arrow */
}

/* Outline Button */
.btn-outline {
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--color-white);
  backdrop-filter: blur(5px);
}

.btn-outline::after {
  display: none;
} /* No arrow for outline */

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--color-white);
  transform: translateY(-2px);
}

.section-padding {
  padding: var(--spacing-xl) 0;
}

.text-center {
  text-align: center;
}
.text-primary {
  color: var(--color-secondary);
}

/* Section Titles */
.section-title {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.section-title span {
  display: block;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-secondary);
  margin-bottom: var(--spacing-xs);
  font-weight: 600;
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-sm);
}

/* Header & Nav */
/* Modern Floating Header - Fixed Update */
.header {
  position: fixed;
  top: 20px; /* Floating look */
  left: 50%;
  transform: translateX(-50%);
  width: 95%; /* almost full width */
  max-width: var(--container-width);
  z-index: 1000;
  padding: 12px 30px;
  transition: var(--transition-base);

  /* Premium Glassmorphism */
  background: rgba(255, 255, 255, 0.03); /* Ultra-subtle light tint */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 50px; /* Pill shape */
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Scrolled state for Header */
.header.scrolled {
  background: rgba(6, 60, 49, 0.85); /* Keep dark on scroll for readability */
  padding: 10px 30px;
  top: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2); /* Ensure border is also updated */
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  font-family: var(--font-body); /* Modern sans-serif Outfit */
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-accent); /* Cream Logo for Dark Hero */
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.5px; /* Tighter spacing for modern look */
}

.header.scrolled .logo a {
  color: var(--color-white); /* White text on Dark Glass Header */
}

.logo span {
  color: var(--color-secondary);
}

.nav-links ul {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-links a {
  font-weight: 500;
  color: var(--color-accent); /* Cream links for Dark Hero */
  font-size: 0.95rem;
  position: relative;
  padding: 5px 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-secondary); /* Orange hover */
}

.header.scrolled .nav-links a {
  color: var(--color-white); /* White text on Dark Glass Header */
}

/* Fix for Header Button (Get a Quote) Specificity */
.nav-links .btn {
  padding: 12px 28px !important; /* Restore button padding */
  color: var(--color-white) !important; /* Ensure White text even if scrolled */
  background-color: var(--color-secondary); /* Orange */
  opacity: 1;
  margin-left: 15px;
}

.nav-links .btn:hover {
  background-color: #e67e4d;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(245, 138, 85, 0.3);
}

/* Inner Page Header Override Removed - Unified Header Style */

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--color-primary);
  cursor: pointer;
}

/* Hero Section */
/* Modern Hero Section */
/* Modern Hero Section - Arco Style */
.hero {
  position: relative;
  height: 100vh;
  min-height: 800px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--color-primary); /* Deep Green BG */
  color: var(--color-accent); /* Cream Text */
  margin-top: 0;
  overflow: hidden;
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  /* geometric background pattern from reference */
  background-image:
    radial-gradient(
      circle at 10% 20%,
      rgba(255, 255, 255, 0.03) 0%,
      transparent 20%
    ),
    radial-gradient(
      circle at 90% 80%,
      rgba(255, 255, 255, 0.03) 0%,
      transparent 20%
    );
}

/* Arch Image Mask */
.hero-img {
  width: 45%;
  height: 75vh;
  object-fit: cover;
  position: absolute;
  right: 5%;
  top: 15%;
  border-radius: 300px 300px 0 0; /* Distinct Arch Shape */
  border: 10px solid rgba(255, 255, 255, 0.05); /* Subtle border */
  z-index: 2;
}

/* Remove gradient overlay, use solid colors */
.gradient-overlay {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container-width);
  padding-top: 80px; /* Space for fixed header */
  padding-left: 20px;
}

.hero-text-col {
  max-width: 650px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: white;
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-secondary);
  box-shadow: var(--shadow-sm);
  margin-bottom: 25px;
}

.hero-content h1 {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 25px;
  line-height: 1.1;
  margin-bottom: 25px;
  color: var(--color-accent); /* Cream Text for Dark Green BG */
  font-weight: 700;
}

.hero-content p {
  font-size: 1.25rem;
  color: var(--color-accent); /* Cream Text */
  margin-bottom: 40px;
  max-width: 520px;
  line-height: 1.6;
  font-weight: 300;
}

.hero-btns {
  display: flex;
  gap: 20px;
  margin-bottom: 50px;
  justify-content: flex-start;
}

/* Hero Floating Card */
.hero-floating-card {
  background: white;
  padding: 25px;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  max-width: 400px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-text-dark);
}

.card-header .badge {
  background: #ffd700;
  color: black;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

.card-avatars {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

/* Trust Badge - Hidden on Desktop by default */
.trust-badge {
  display: none;
}

.avatar-group {
  display: flex;
}
.avatar-group i {
  font-size: 2.5rem;
  color: #cbd5e1;
  margin-right: -10px;
  background: white;
  border-radius: 50%;
  border: 2px solid white;
}

.review-text {
  font-size: 0.85rem;
  color: var(--color-text-light);
}

.card-input {
  display: flex;
  background: #f1f5f9;
  padding: 8px;
  border-radius: 50px;
  align-items: center;
}

.card-input input {
  border: none;
  background: transparent;
  flex-grow: 1;
  padding-left: 15px;
  outline: none;
  color: var(--color-text-dark);
}

.btn-sm {
  background: var(--color-primary);
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 0.85rem;
  cursor: pointer;
}

/* Responsive Hero */
@media (max-width: 900px) {
  .hero {
    align-items: flex-start;
    padding-top: 120px;
    height: auto;
    min-height: 100vh;
    text-align: center;
    justify-content: center;
  }
  .hero-img {
    width: 100%;
    height: 50%;
    top: auto;
    bottom: 0;
    border-radius: 0;
    opacity: 0.15;
  }
  .gradient-overlay {
    background: linear-gradient(
      180deg,
      #e6f0ff 0%,
      rgba(255, 255, 255, 0.95) 100%
    );
  }
  .hero-content h1 {
    font-size: 2.8rem;
  }
  .hero-btns {
    justify-content: center;
  }
  .hero-floating-card {
    margin: 0 auto;
  }
}

/* Page Header (For Sub-pages) */
.page-header {
  background-color: var(--color-primary);
  padding: 130px 0 60px; /* Reduced padding for better desktop feel */
  text-align: center;
  color: var(--color-white);
  margin-bottom: var(--spacing-lg);
}

.page-header h1 {
  color: var(--color-white);
  font-size: 2.5rem; /* Scaled down from 3rem */
  margin-bottom: 10px;
}

.page-header p {
  color: var(--color-secondary);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Services Section */
.services-section {
  background-color: var(--color-accent);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  /* Enhanced Glassmorphism Effect */
  background: rgba(255, 255, 255, 0.12); /* More transparent */
  backdrop-filter: blur(20px) saturate(180%); /* Stronger blur + saturation */
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  padding: 45px;
  border-radius: 24px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.3); /* Inner highlight */
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.25); /* Subtle glass border */
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

/* Gradient shimmer effect */
.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.6s ease;
}

.service-card:hover::before {
  left: 100%;
}

.service-card:hover {
  transform: translateY(-12px) scale(1.02);
  background: rgba(255, 255, 255, 0.18); /* Slightly more opaque on hover */
  box-shadow:
    0 20px 60px rgba(245, 138, 85, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  border-color: rgba(245, 138, 85, 0.4);
}

.icon-box {
  width: 70px;
  height: 70px;
  background: linear-gradient(
    135deg,
    rgba(255, 249, 230, 0.9),
    rgba(255, 249, 230, 0.6)
  ); /* Gradient glass */
  color: var(--color-secondary); /* Orange icon */
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px; /* Rounded square instead of circle */
  font-size: 1.8rem;
  margin-bottom: 28px;
  box-shadow: 0 4px 12px rgba(203, 161, 53, 0.15);
  transition: all 0.3s ease;
}

.service-card:hover .icon-box {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 6px 20px rgba(245, 138, 85, 0.25);
}

.service-card h3 {
  font-size: 1.4rem;
  font-family:
    "Playfair Display", serif; /* Ensure serif if available, or fallback */
  color: #0f172a; /* Dark blue/black */
  margin-bottom: 15px;
  font-weight: 700;
}

.service-card p {
  color: #64748b; /* Slate grey text */
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1; /* Push link to bottom */
}

.read-more {
  display: inline-flex;
  align-items: center;
  color: var(--color-secondary); /* Orange color */
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  transition: all 0.3s ease;
}

.read-more:hover {
  color: var(--color-secondary-hover);
}

.read-more i {
  margin-left: 8px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  font-size: 1.1rem;
}

.read-more:hover i {
  transform: translateX(8px);
}

/* Restored Clients Grid & Logo (Previous styles) */
.clients-grid {
  margin-top: 40px;
}

.client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  width: 100%;
  height: 100px;
  transition: var(--transition-base);
}

.client-logo:hover {
  border-color: var(--color-secondary);
  transform: scale(1.05);
}

/* About Section - Modern Enhanced Design */
.about-section {
  background: linear-gradient(
    135deg,
    rgba(255, 248, 240, 0.4),
    rgba(242, 245, 244, 0.6)
  );
  position: relative;
}

.about-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-img {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
  transition: transform 0.4s ease;
}

.about-img:hover {
  transform: scale(1.02);
}

.about-img img {
  width: 100%;
  height: auto;
  display: block;
}

.exp-badge {
  position: absolute;
  bottom: 30px;
  right: 30px;
  background: linear-gradient(135deg, var(--color-secondary), #e67e4d);
  color: var(--color-white);
  padding: 25px 35px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(245, 138, 85, 0.3);
  backdrop-filter: blur(10px);
}

.exp-badge .num {
  display: block;
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1;
}

/* About Text Content */
.about-text {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 50px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

.about-text .label {
  color: var(--color-secondary);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 15px;
  display: block;
}

.about-text h2 {
  font-size: 2.8rem;
  color: var(--color-primary);
  margin-bottom: 25px;
  line-height: 1.2;
}

.about-text p {
  color: var(--color-text-light);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-text .features-list {
  margin: 30px 0;
}

.about-text .features-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-weight: 500;
  color: var(--color-primary);
}

.about-text .features-list i {
  color: var(--color-secondary);
  font-size: 1.2rem;
}

/* Footer */
.footer {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding-top: var(--spacing-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: var(--spacing-lg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer h3 {
  color: var(--color-white);
  margin-bottom: var(--spacing-xs);
}

.footer h3 span {
  color: var(--color-secondary);
}

.footer h4 {
  color: var(--color-white);
  font-size: 1.1rem;
  margin-bottom: var(--spacing-sm);
}

.footer ul li {
  margin-bottom: 10px;
}

.footer ul li a {
  color: rgba(255, 255, 255, 0.7);
}

.footer ul li a:hover {
  color: var(--color-secondary);
}

.footer .social-links {
  margin-top: 20px;
  display: flex;
  gap: 15px;
}

.footer .social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.2rem;
}

.footer .social-links a:hover {
  background: var(--color-secondary);
  color: var(--color-white);
}

.footer-bottom {
  padding: 20px 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 968px) {
  .about-wrapper {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--color-white);
    padding: 20px;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-20px);
    transition: 0.3s;
  }

  .nav-links.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links ul {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links a {
    color: var(--color-text-dark);
  }

  .header .logo a {
    color: var(
      --color-primary
    ); /* Dark logo on mobile usually better if bg is white, but keeping simple */
  }
  .mobile-menu-toggle {
    color: var(--color-primary); /* Make sure toggle is visible */
  }
  .header {
    background-color: var(--color-white); /* Force white header on mobile */
    padding: 15px 0;
  }
  .header .logo a {
    color: var(--color-primary);
  }

  .hero {
    padding-top: 80px; /* Space for fixed header */
    height: auto;
    min-height: 100vh;
    padding-bottom: 50px;
  }
}

/* Interactive Tabs */
.tabs-container {
  background-color: var(--color-white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-top: 20px;
}

.tabs-header {
  display: flex;
  background-color: #f8f9fa;
  border-bottom: 1px solid var(--color-border);
  flex-wrap: wrap; /* Allow wrapping on small screens */
}

.tab-btn {
  padding: 15px 30px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 1.1rem; /* Slightly larger */
  font-family: var(--font-heading); /* Premium Font */
  font-weight: 600;
  color: var(--color-text-light);
  transition: var(--transition-base);
  flex: 1; /* Equal width */
  min-width: 120px;
}

.tab-btn:hover {
  color: var(--color-primary);
  background-color: rgba(203, 161, 53, 0.05);
}

.tab-btn.active {
  color: var(--color-primary);
  background-color: var(--color-white);
  border-bottom: 3px solid var(--color-secondary);
}

.tabs-content {
  padding: 30px;
  background-color: var(--color-white);
}

.tab-pane {
  display: none;
  animation: fadeIn 0.5s ease;
}

.tab-pane.active {
  display: block;
}

.agency-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background-color: var(--color-accent);
  border-radius: var(--border-radius);
  border: 1px solid var(--color-border);
}

.agency-card i {
  font-size: 2.5rem;
  color: var(--color-secondary);
}

.agency-card h4 {
  margin-bottom: 10px;
  color: var(--color-primary);
}

.partner-list {
  list-style: none;
  padding: 0;
}

.partner-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 5px;
  color: var(--color-text-light);
}

.partner-list li::before {
  content: "\2022"; /* Bullet */
  color: var(--color-secondary);
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* Counter Animation Style */
.counter {
  display: inline-block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Staggered Reveal Animation */
.stagger-reveal > * {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.stagger-reveal > *.active {
  opacity: 1;
  transform: translateY(0);
}

/* Vertical Timeline Styling */
.process-timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

/* Central Line */
.process-timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background-color: #e0f2f1; /* Light teal line */
}

.timeline-step {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  margin-bottom: 50px;
}

/* Central Dot */
.timeline-step::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 15px;
  height: 15px;
  background-color: #fff;
  border: 3px solid #26a69a; /* Teal dot */
  border-radius: 50%;
  z-index: 1;
}

.step-card,
.step-content {
  width: 45%;
  position: relative;
}

.step-content.right {
  text-align: left;
}
.step-content.left {
  text-align: right;
}

.step-content h3 {
  color: #4db6ac; /* Light Teal Heading */
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.step-content p {
  font-size: 0.95rem;
  color: var(--color-text-light);
}

.step-number-box {
  background-color: #e0f2f1; /* Light teal bg */
  padding: 20px 40px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 15px;
  position: relative;
}

.step-card.left {
  text-align: right;
}
.step-card.right {
  text-align: left;
}

/* Pointer arrow for box */
.step-card.left .step-number-box::after {
  content: "";
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 10px 0 10px 10px;
  border-style: solid;
  border-color: transparent transparent transparent #e0f2f1;
}

.step-card.right .step-number-box::after {
  content: "";
  position: absolute;
  left: -10px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 10px 10px 10px 0;
  border-style: solid;
  border-color: transparent #e0f2f1 transparent transparent;
}

.step-number-box .number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #80cbc4; /* Muted teal number */
}

.step-icon-bg {
  background-color: #26a69a; /* Dark teal icon bg */
  color: white;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-size: 1.2rem;
}

.step-label {
  position: absolute;
  top: -25px;
  right: 0;
  font-size: 0.8rem;
  color: #26a69a;
  font-weight: 600;
  text-transform: uppercase;
}

/* Stagger Logic Override for Timeline */
.timeline-step {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}
.timeline-step.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
/* Responsive Design */

/* Tablet & Mobile Navigation (Max-width: 968px) */
@media (max-width: 968px) {
  .mobile-menu-toggle {
    display: block; /* Show hamburger */
    z-index: 1001;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%; /* Hidden off-screen */
    width: 100%;
    height: 100vh;
    background-color: var(--color-primary); /* Deep Green BG */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: 0.4s ease-in-out;
    z-index: 1000;
    backdrop-filter: blur(10px);
  }

  .nav-links.active {
    right: 0; /* Slide in */
  }

  .nav-links ul {
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }

  .nav-links a {
    font-size: 1.5rem;
    color: var(--color-white);
  }

  .nav-links .btn {
    margin-left: 0;
    margin-top: 20px;
    width: 100%;
    justify-content: center;
  }

  /* Prevent body scroll when mobile menu is open */
  body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
  }
}

/* Mobile Layout (Max-width: 768px) */
@media (max-width: 768px) {
  /* Process Timeline adjustments */
  .process-timeline::before {
    left: 20px;
  }

  .timeline-step {
    flex-direction: column;
    align-items: flex-start;
    margin-left: 50px;
    margin-bottom: 40px;
  }

  .timeline-step::after {
    left: 20px;
  }

  .step-card,
  .step-content {
    width: 100%;
    text-align: left !important;
    margin-bottom: 10px;
  }

  .step-card .step-number-box {
    display: none; /* Hide arrows on mobile stack */
  }

  /* Intro Grid */
  .process-intro-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: left;
  }
  .highlight-title {
    font-size: 2rem;
  }

  /* Hero Type Scaling */
  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .hero-btns {
    flex-direction: column;
    width: 100%;
  }

  .hero-btns .btn {
    width: 100%;
    justify-content: center;
  }

  /* Stats Section Stacking */
  .stats-section .services-grid {
    grid-template-columns: 1fr 1fr !important; /* 2x2 grid on tablet/large mobile */
    gap: 20px;
  }
}

/* Small Mobile (Max-width: 480px) */
@media (max-width: 480px) {
  .stats-section .services-grid {
    grid-template-columns: 1fr !important; /* Stack vertically */
  }

  .section-title h2 {
    font-size: 2rem;
  }

  /* Adjust padding */
  .section-padding {
    padding: 60px 0;
  }
}
/* About Page Specific Styles - Modern Glassmorphic Design */

/* Value Cards (Vision, Mission, Self Commitment) */
.values-grid {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.value-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  padding: 30px; /* Reduced from 45px for tighter desktop layout */
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  perspective: 1000px;
}

/* Animated gradient background on hover */
.value-card::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(245, 138, 85, 0.1),
    transparent
  );
  transform: rotate(0deg);
  transition: transform 0.6s ease;
  pointer-events: none;
}

.value-card:hover::after {
  transform: rotate(180deg);
}

.value-card:hover {
  transform: translateY(-15px) rotateX(5deg) scale(1.03);
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(245, 138, 85, 0.2);
  border-color: rgba(245, 138, 85, 0.4);
}

/* Staggered animation delays */
.value-card:nth-child(1) {
  animation: slideInUp 0.6s ease-out 0.1s backwards;
}

.value-card:nth-child(2) {
  animation: slideInUp 0.6s ease-out 0.3s backwards;
}

.value-card:nth-child(3) {
  animation: slideInUp 0.6s ease-out 0.5s backwards;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.value-icon {
  width: 65px; /* Reduced from 90px */
  height: 65px;
  background: linear-gradient(
    135deg,
    rgba(255, 249, 230, 1),
    rgba(255, 240, 200, 0.8)
  );
  color: var(--color-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  font-size: 2rem; /* Reduced from 2.8rem */
  margin: 0 auto 20px;
  box-shadow: 0 6px 20px rgba(245, 138, 85, 0.2);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  animation: iconPulse 3s ease-in-out infinite;
}

/* Pulsing glow effect */
@keyframes iconPulse {
  0%,
  100% {
    box-shadow: 0 6px 20px rgba(245, 138, 85, 0.2);
  }
  50% {
    box-shadow: 0 6px 30px rgba(245, 138, 85, 0.4);
  }
}

.value-card:hover .value-icon {
  transform: scale(1.15) rotate(10deg);
  box-shadow: 0 10px 35px rgba(245, 138, 85, 0.35);
  background: linear-gradient(135deg, var(--color-secondary), #e67e4d);
  color: white;
  animation: none; /* Stop pulsing on hover */
}

.value-card h3 {
  font-size: 1.4rem; /* Reduced from 1.6rem */
  color: var(--color-primary);
  margin-bottom: 15px;
  font-weight: 700;
}

.value-card p {
  color: var(--color-text-light);
  font-size: 1rem;
  line-height: 1.7;
}

/* Recruitment Work Card */
.recruitment-work-card {
  margin-top: 40px; /* Reduced from 60px */
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  padding: 35px; /* Reduced from 50px */
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 12px 45px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  animation: slideInFromBottom 0.7s ease-out 0.7s backwards;
}

@keyframes slideInFromBottom {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Subtle shine effect on hover */
.recruitment-work-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 70%
  );
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.recruitment-work-card:hover::before {
  transform: translateX(100%);
}

.recruitment-work-card:hover {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  transform: translateY(-5px);
}

.recruitment-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
}

.recruitment-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--color-secondary), #e67e4d);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  font-size: 2rem;
  box-shadow: 0 4px 12px rgba(245, 138, 85, 0.2);
}

.recruitment-work-card h3 {
  font-size: 2rem;
  color: var(--color-primary);
  margin: 0;
}

.recruitment-work-card p {
  color: var(--color-text-light);
  font-size: 1.05rem;
  margin-bottom: 25px;
}

/* Tabbed Interface Styling */
.tabs-container {
  width: 100%;
}

.recruitment-tabs {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 30px;
  flex-wrap: wrap; /* Wrap on small screens */
  background: rgba(255, 255, 255, 0.5);
  padding: 10px;
  border-radius: 20px;
}

.tab-btn {
  background: transparent;
  border: none;
  padding: 12px 25px;
  border-radius: 15px;
  font-family: var(--font-heading); /* Ensure correct font */
  font-weight: 600;
  color: var(--color-text-light);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.tab-btn:hover {
  color: var(--color-primary);
  background: rgba(255, 255, 255, 0.8);
}

.tab-btn.active {
  background: var(--color-white);
  color: var(--color-secondary);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  font-weight: 700;
}

/* Tab Content Areas */
.tab-pane {
  display: none;
  animation: fadeIn 0.4s ease;
}

.tab-pane.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Partner Card Styling */
.partner-card {
  background: rgba(255, 249, 242, 0.8); /* Creamy/Orange tint */
  border: 1px solid rgba(245, 138, 85, 0.2);
  border-radius: 24px;
  padding: 40px;
  display: flex;
  align-items: center;
  gap: 25px;
  text-align: left;
  transition: transform 0.3s ease;
}

.partner-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(245, 138, 85, 0.15);
}

.location-icon {
  width: 60px;
  height: 60px;
  background: var(--color-secondary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
  box-shadow: 0 5px 15px rgba(245, 138, 85, 0.3);
}

.partner-info h4 {
  color: var(--color-primary);
  font-size: 1.3rem;
  margin-bottom: 8px;
  font-weight: 700;
}

.partner-info p {
  color: var(--color-text);
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Partner List Styling */
.partners-list {
  list-style: none;
  padding: 0;
  margin: 0;
  margin-top: 10px;
}

.partners-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  color: var(--color-text);
  font-size: 1rem;
  line-height: 1.5;
}

.partners-list li::before {
  content: "•";
  color: var(--color-secondary); /* Orange bullet */
  font-weight: bold;
  font-size: 1.5rem;
  position: absolute;
  left: 0;
  top: -5px;
}

/* RTL Support for List */
.rtl .partners-list li {
  padding-left: 0;
  padding-right: 20px;
}

.rtl .partners-list li::before {
  left: auto;
  right: 0;
}

/* RTL Support for Tabs in css/rtl.css should handle direction, but slight tweaks: */
.rtl .partner-card {
  text-align: right;
}

/* Mobile Adjustments for Tabs */
@media (max-width: 600px) {
  .recruitment-tabs {
    gap: 10px;
    padding: 5px;
  }

  .tab-btn {
    flex: 1 1 40%; /* 2x2 Grid on Mobile */
    font-size: 0.9rem;
    padding: 10px;
  }

  .partner-card {
    flex-direction: column;
    text-align: center;
    padding: 30px 20px;
    align-items: stretch; /* Stretch to fill width */
  }

  .partner-info {
    text-align: left; /* Keep text left aligned even on mobile for better readability of lists */
    width: 100%;
  }

  .rtl .partner-info {
    text-align: right;
  }

  .rtl .partner-card {
    text-align: right;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .values-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .value-card {
    padding: 30px;
  }

  .recruitment-work-card {
    padding: 30px;
  }

  .recruitment-header {
    flex-direction: column;
    text-align: center;
  }
}
/* ============================================
   CONTACT FORM VALIDATION STYLES
   ============================================ */

.form-group {
  position: relative;
  margin-bottom: 25px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 15px 45px 15px 15px;
  border: 2px solid rgba(6, 60, 49, 0.2);
  border-radius: 12px;
  font-size: 1rem;
  font-family: var(--font-body);
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.9);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(245, 138, 85, 0.1);
}

/* Validation States */
.form-group.valid input,
.form-group.valid textarea,
.form-group.valid select {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.05);
}

.form-group.invalid input,
.form-group.invalid textarea,
.form-group.invalid select {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.05);
  animation: shake 0.5s ease;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-10px);
  }
  75% {
    transform: translateX(10px);
  }
}

/* Validation Icons */
.validation-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.form-group.valid .validation-icon {
  opacity: 1;
  color: #10b981;
}

.form-group.invalid .validation-icon {
  opacity: 1;
  color: #ef4444;
}

/* Error Message */
.error-message {
  color: #ef4444;
  font-size: 0.85rem;
  margin-top: 5px;
  display: none;
  animation: fadeIn 0.3s ease;
}

.form-group.invalid .error-message {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Success Message */
.form-success {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  display: none;
  animation: slideInUp 0.5s ease;
}

.form-success.show {
  display: block;
}

.form-success i {
  font-size: 3rem;
  margin-bottom: 10px;
  display: block;
  animation: checkmark 0.6s ease;
}

@keyframes checkmark {
  0% {
    transform: scale(0) rotate(0deg);
  }
  50% {
    transform: scale(1.2) rotate(180deg);
  }
  100% {
    transform: scale(1) rotate(360deg);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Submit Button Loading State */
.btn-submit {
  position: relative;
  overflow: hidden;
}

.btn-submit.loading {
  pointer-events: none;
  opacity: 0.7;
}

.btn-submit.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid white;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
/* ============================================
   PREMIUM LOADING ANIMATION
   ============================================ */

.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--color-primary) 0%, #074d3f 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition:
    opacity 0.5s ease,
    visibility 0.5s ease;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  text-align: center;
}

.loader-logo {
  font-family: var(--font-body);
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 30px;
  animation: logoFloat 2s ease-in-out infinite;
}

.loader-logo span {
  color: var(--color-secondary);
}

@keyframes logoFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.loader-spinner {
  width: 50px;
  height: 50px;
  margin: 0 auto;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  border-top-color: var(--color-secondary);
  animation: spin 1s ease-in-out infinite;
}

/* Removed double spinner pseudo-elements */
.loader-spinner::before,
.loader-spinner::after {
  display: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loader-text {
  margin-top: 20px;
  color: var(--color-accent);
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}
/* ============================================
   PREMIUM ANIMATIONS & INTERACTIONS STYLES
   ============================================ */

/* Ripple Effect */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  transform: scale(0);
  animation: ripple-animation 0.6s ease-out;
  pointer-events: none;
}

@keyframes ripple-animation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

.back-to-top {
  position: fixed;
  bottom: 110px;
  right: 35px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--color-secondary), #e67e4d);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(245, 138, 85, 0.3);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(245, 138, 85, 0.4);
}

.back-to-top:active {
  transform: translateY(-2px);
}

/* Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Stats Counter Animation */
.stat-number {
  display: inline-block;
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-secondary);
  transition: all 0.3s ease;
}

/* Parallax Container */
.parallax-container {
  position: relative;
  overflow: hidden;
}

/* Smooth transitions for parallax elements */
.hero,
.exp-badge {
  transition: transform 0.1s ease-out;
  will-change: transform;
}
/* ============================================
   FAQ ACCORDION SECTION
   ============================================ */

.faq-section {
  background: linear-gradient(
    135deg,
    rgba(255, 248, 240, 0.4),
    rgba(242, 245, 244, 0.6)
  );
  padding: var(--spacing-xl) 0;
}

.faq-container {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 20px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.faq-question {
  padding: 25px 30px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  user-select: none;
  transition: all 0.3s ease;
}

.faq-question:hover {
  background: rgba(255, 248, 240, 0.5);
}

.faq-question h3 {
  font-size: 1.15rem;
  color: var(--color-primary);
  margin: 0;
  font-weight: 600;
  flex: 1;
}

.faq-icon {
  width: 35px;
  height: 35px;
  background: linear-gradient(
    135deg,
    rgba(255, 249, 230, 1),
    rgba(255, 240, 200, 0.8)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.faq-icon i {
  color: var(--color-secondary);
  font-size: 1.3rem;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  background: linear-gradient(135deg, var(--color-secondary), #e67e4d);
}

.faq-item.active .faq-icon i {
  color: white;
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.4s ease,
    padding 0.4s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 30px 25px 30px;
}

.faq-answer p {
  color: var(--color-text-light);
  line-height: 1.8;
  margin: 0;
  font-size: 1rem;
}

/* FAQ Header */
.faq-header {
  text-align: center;
  margin-bottom: 50px;
}

.faq-header h2 {
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: 15px;
}

.faq-header p {
  color: var(--color-text-light);
  font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .faq-question {
    padding: 20px;
  }

  .faq-question h3 {
    font-size: 1rem;
  }

  .faq-item.active .faq-answer {
    padding: 0 20px 20px 20px;
  }
}
/* ============================================
   TRUST BADGES SECTION
   ============================================ */

.trust-badges-section {
  background: var(--color-primary);
  padding: 60px 0;
  overflow: hidden;
}

.trust-badges-header {
  text-align: center;
  margin-bottom: 40px;
}

.trust-badges-header h2 {
  color: var(--color-accent);
  font-size: 2rem;
  margin-bottom: 10px;
}

.trust-badges-header p {
  color: rgba(255, 248, 240, 0.8);
  font-size: 1.05rem;
}

.badges-carousel {
  display: flex;
  gap: 30px;
  animation: scroll-badges 30s linear infinite;
  width: fit-content;
}

.badges-carousel:hover {
  animation-play-state: paused;
}

@keyframes scroll-badges {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.badge-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 30px;
  min-width: 200px;
  text-align: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.badge-card:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.badge-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--color-secondary), #e67e4d);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2rem;
  color: white;
}

.badge-card h4 {
  color: var(--color-accent);
  font-size: 1.1rem;
  margin-bottom: 8px;
  font-weight: 600;
}

.badge-card p {
  color: rgba(255, 248, 240, 0.7);
  font-size: 0.9rem;
  margin: 0;
}

/* Duplicate badges for seamless loop */
.badges-wrapper {
  display: flex;
  overflow: hidden;
}
/* ============================================
   LANGUAGE TOGGLE BUTTON STYLES
   ============================================ */

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  color: var(--color-primary);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.lang-toggle:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: var(--color-secondary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(245, 138, 85, 0.2);
}

.lang-toggle i {
  font-size: 1.1rem;
  color: var(--color-secondary);
}

.lang-text {
  font-family: var(--font-body);
  letter-spacing: 0.5px;
}

/* Header scrolled state for lang toggle */
.header.scrolled .lang-toggle,
.header-inner .lang-toggle {
  background: rgba(6, 60, 49, 0.1);
  border-color: rgba(6, 60, 49, 0.2);
  color: var(--color-primary);
}

.header.scrolled .lang-toggle:hover,
.header-inner .lang-toggle:hover {
  background: rgba(245, 138, 85, 0.1);
  border-color: var(--color-secondary);
}

/* Mobile responsive */
@media (max-width: 768px) {
  .lang-toggle {
    padding: 6px 12px;
    font-size: 0.85rem;
  }

  .lang-toggle i {
    font-size: 1rem;
  }
}
/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 999;
  text-decoration: none;
  animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1) translateY(-5px);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-float i {
  font-size: 32px;
  color: white;
}

/* Pulse animation */
@keyframes pulse-whatsapp {
  0%,
  100% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  }
  50% {
    box-shadow:
      0 4px 20px rgba(37, 211, 102, 0.4),
      0 0 0 10px rgba(37, 211, 102, 0.1),
      0 0 0 20px rgba(37, 211, 102, 0.05);
  }
}

/* Tooltip */
.whatsapp-float::before {
  content: "Chat with us";
  position: absolute;
  right: 70px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 8px 15px;
  border-radius: 8px;
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.whatsapp-float:hover::before {
  opacity: 1;
}

/* RTL Support */
.rtl .whatsapp-float {
  right: auto;
  left: 30px;
}

.rtl .whatsapp-float::before {
  right: auto;
  left: 70px;
  content: "تحدث معنا";
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .whatsapp-float {
    width: 55px;
    height: 55px;
    bottom: 20px;
    right: 20px;
  }

  .whatsapp-float i {
    font-size: 28px;
  }

  .whatsapp-float::before {
    display: none;
  }

  .rtl .whatsapp-float {
    right: auto;
    left: 20px;
  }

  .back-to-top {
    bottom: 95px;
    right: 22px;
  }
}
/* Section Dividers Pattern */
.section-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  transform: rotate(180deg);
}

.section-divider svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 100px;
}

.section-divider .shape-fill {
  fill: var(--color-bg-soft);
}

/* Specific Divider Variations */
.divider-wave {
  bottom: -1px; /* Fix sub-pixel gaps */
  z-index: 1;
}

.divider-curve-top {
  top: 0;
  bottom: auto;
  transform: rotate(0deg);
  z-index: 1;
}

.divider-curve-bottom {
  bottom: -1px;
  z-index: 1;
}

/* Usage in Hero */
.hero {
  position: relative;
  padding-bottom: 250px; /* Space for divider */
}

/* Usage in Services - Ensure BG matches */
.services.section-padding {
  background-color: var(--color-bg-soft);
  position: relative;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .section-divider svg {
    height: 50px;
  }
  .hero {
    padding-bottom: 150px;
  }
}
/* Testimonials Section */
.testimonials-section {
  position: relative;
  padding: 100px 0;
  background-color: var(--color-accent);
  overflow: hidden;
}

/* Glassmorphic Testimonial Card */
.testimonial-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--border-radius);
  padding: 40px;
  margin: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
  transition: var(--transition-base);
  position: relative;
}

.testimonial-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.9);
}

.quote-icon {
  font-size: 40px;
  color: var(--color-secondary);
  opacity: 0.3;
  position: absolute;
  top: 30px;
  right: 30px;
}

.client-info {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 25px;
}

.client-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.client-details h4 {
  margin-bottom: 2px;
  color: var(--color-primary);
  font-size: 1.1rem;
}

.client-details span {
  color: var(--color-text-light);
  font-size: 0.9rem;
}

/* Carousel Layout (CSS Grid for simplicity if no JS lib) */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

/* RTL Support */
.rtl .testimonial-card {
  text-align: right;
}

.rtl .quote-icon {
  right: auto;
  left: 30px;
  transform: scaleX(-1);
}
/* Premium Dark Footer */
.footer {
  background-color: var(--color-primary); /* Dark Deep Green */
  color: var(--color-white);
  padding: 80px 0 30px;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr; /* 3 Columns now */
  gap: 40px;
  margin-bottom: 60px;
}

.footer-col h3 {
  color: var(--color-white);
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.footer-col h3 span {
  color: var(--color-secondary);
}

.footer-col h4 {
  color: var(--color-secondary);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.footer-col p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
}

.footer-col ul li {
  margin-bottom: 15px;
}

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-col ul li a:hover {
  color: var(--color-secondary);
  padding-left: 5px;
}

.footer-col ul li i {
  color: var(--color-secondary);
  font-size: 1.2rem;
}

/* Social Links */
.social-links {
  display: flex;
  gap: 15px;
  margin-top: 25px;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  transition: var(--transition-base);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
  background: var(--color-secondary);
  transform: translateY(-5px);
  border-color: var(--color-secondary);
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

/* RTL Adjustments */
.rtl .footer-col ul li a:hover {
  padding-left: 0;
  padding-right: 5px;
}

/* Responsive */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}
/* Mobile First Responsive Styles */
/* These styles override the desktop defaults for smaller screens */

/* =========================================
   Tablet & Mobile Layout (Max-width: 968px) 
   ========================================= */
@media (max-width: 968px) {
  /* Navigation */
  .mobile-menu-toggle {
    display: block;
    z-index: 10001; /* Ensure it is ALWAYS on top */
    font-size: 3rem;
    color: var(--color-primary); /* Dark Green for visibility on white header */
    cursor: pointer;
    position: relative;
  }

  /* Ensure icon color changes when active/on green bg */
  .mobile-menu-toggle.active {
    color: var(--color-white);
    position: fixed; /* Keep it fixed so it doesn't scroll away */
    top: 25px;
    right: 20px;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100vw; /* Use viewport width */
    height: 100vh;
    background-color: #063c31; /* Solid Deep Green, no transparency */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999; /* Below the toggle */
    padding: 40px;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links ul {
    flex-direction: column;
    gap: 35px; /* More spacing */
    text-align: center;
    width: 100%;
    align-items: center; /* Force center alignment */
    padding: 0;
    margin: 0;
  }

  .nav-links li {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .nav-links a {
    font-size: 1.8rem;
    color: #ffffff !important; /* Force White */
    font-weight: 700;
    font-family: var(--font-heading);
    display: block;
    transition: transform 0.3s ease;
  }

  .nav-links a:hover {
    color: var(--color-secondary) !important;
    transform: scale(1.1);
  }

  /* Mobile Language Toggle */
  .nav-links .lang-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-family: var(--font-body);
    margin-top: 10px;
  }

  .nav-links .lang-toggle i {
    font-size: 1.4rem;
  }

  .nav-links .lang-toggle .lang-text {
    display: inline-block; /* Ensure text is visible */
    font-weight: 600;
    text-transform: uppercase;
  }

  .nav-links .btn {
    margin-left: 0;
    margin-top: 30px;
    width: auto;
    min-width: 220px; /* Slightly wider */
    justify-content: center;
    font-size: 1.3rem; /* Larger text */
    padding: 18px 35px; /* Larger hit area */
    white-space: nowrap;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  }

  /* RTL Mobile Menu Overrides */
  .rtl .nav-links {
    right: auto;
    left: -100%; /* Start from left */
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .rtl .nav-links.active {
    right: auto;
    left: 0;
  }

  /* Move Close Icon to Left in RTL */
  .rtl .mobile-menu-toggle.active {
    right: auto;
    left: 20px;
  }

  /* Force Vertical Stack for RTL Menu Items */
  .rtl .nav-links ul {
    flex-direction: column !important; /* Override RTL definition */
    width: 100%;
    gap: 35px;
    padding: 0;
  }

  .rtl .nav-links a {
    font-family: "Cairo", sans-serif; /* Ensure Arabic font */
  }

  /* Header & Navigation Fixes */
  .header {
    height: auto;
    min-height: 70px;
    padding: 10px 0;
    /* Fix for Full-Screen Menu: Remove transform so fixed children use viewport */
    transform: none;
    left: 0;
    right: 0;
    margin: 5px auto; /* Small margin from top */
    width: 95%;
    border-radius: 50px; /* Fully rounded (Coin/Pill shape) */

    /* Ensure Glass Effect Persists on Mobile */
    background: rgba(255, 255, 255, 0.05); /* Light crystalline look */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  }

  .header .nav-container {
    padding: 0 10px; /* Ensure space for content */
  }

  .logo a {
    font-size: 1.5rem; /* Smaller logo text */
    color: #ffffff !important; /* Ensure 'Smart' is white, overriding any other styles */
  }

  .mobile-menu-toggle {
    color: var(--color-white); /* Ensure menu icon is white */
  }

  .logo span {
    color: var(--color-secondary);
  }

  /* Hero Section */
  .hero {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding-top: 150px; /* Increased padding as requested */
    height: auto;
    min-height: 100vh;
  }

  /* Mobile Trust Badge */
  .trust-badge {
    display: inline-flex; /* Show on mobile */
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    backdrop-filter: blur(5px);
    color: var(--color-white);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 20px; /* Space before title */
    margin-top: 0;
  }

  .trust-badge i {
    color: var(--color-secondary);
    font-size: 1.1rem;
  }

  .hero-bg {
    /* Ensure background covers everything */
    height: 100%;
  }

  .hero-img {
    display: none; /* User requested to remove background hero image on mobile */
  }

  .hero-content {
    padding-left: 20px;
    padding-right: 20px;
    width: 100%;
  }

  .hero-text-col {
    max-width: 100%;
    margin: 0 auto;
  }

  .hero-content h1 {
    font-size: 2.4rem; /* Significantly smaller to prevent congestion */
    line-height: 1.2;
    margin-bottom: 15px;
  }

  .hero-content p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 25px;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-btns {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-floating-card {
    display: none; /* Hide floating card on tablet/mobile to save space */
  }

  /* Footer Grid */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

/* =========================================
   Mobile Layout (Max-width: 768px) 
   ========================================= */
@media (max-width: 768px) {
  .container {
    padding: 0 20px; /* Ensure global padding */
  }

  /* Process Section */
  .process-intro-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .highlight-title {
    font-size: 2rem;
    border-left: none;
    border-bottom: 3px solid var(--color-secondary);
    padding-left: 0;
    padding-bottom: 10px;
    margin-bottom: 20px;
    display: inline-block;
  }

  /* Process Timeline Fix for Mobile */
  .process-timeline {
    padding-left: 0;
  }

  .process-timeline::before {
    display: none !important; /* Force hide vertical line */
  }

  .timeline-step {
    display: flex !important;
    flex-direction: column !important; /* Force stack */
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    margin-left: 0 !important;
    margin-bottom: 40px !important;
    width: 100% !important;
    position: relative;
  }

  /* Add Down Arrow between steps (except the last one) */
  .timeline-step:not(:last-child)::after {
    content: "↓";
    font-size: 2.5rem;
    color: var(--color-secondary);
    font-weight: 700;
    display: block;
    margin-top: 15px;
    order: 3;
    line-height: 1;
    position: static; /* Ensure it's in the flow */

    /* Reset Desktop "Circle/Dot" Styles */
    border: none;
    background-color: transparent;
    width: auto;
    height: auto;
    border-radius: 0;
    box-shadow: none;
    transform: none;
  }

  /* Force Order */
  .timeline-step .step-card {
    order: 1 !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    margin-bottom: 15px !important;
    text-align: center !important;
  }

  .timeline-step .step-content {
    order: 2 !important;
    width: 100% !important;
    text-align: center !important;
    padding: 0 10px !important;
  }

  /* Redesign the Number Box for Mobile */
  .step-number-box {
    margin: 0;
    background-color: var(--color-bg-soft);
    padding: 15px 30px;
    border: 1px solid var(--color-border);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    display: inline-flex !important;
    justify-content: center !important;
  }

  /* Hide the little arrows */
  .step-card.left .step-number-box::after,
  .step-card.right .step-number-box::after {
    display: none !important;
  }

  /* Fix "Start Here" and "Final" labels on mobile */
  .step-label {
    position: absolute !important;
    top: -30px !important;
    left: 50% !important;
    right: auto !important; /* Override desktop right: 0 */
    transform: translateX(-50%) !important;
    width: max-content !important;
    text-align: center !important;
    font-size: 0.8rem !important;
    color: var(--color-secondary) !important;
    font-weight: 700 !important;
    display: block !important;
  }

  /* Hide the desktop dot/circle on the LAST step specifically */
  .timeline-step:last-child::after {
    display: none !important;
    content: none !important;
    border: none !important;
  }

  /* Services & Values Grids */
  .services-grid,
  .values-grid {
    grid-template-columns: 1fr; /* Single column */
    gap: 20px;
  }

  /* Stats Section */
  .stats-section .services-grid {
    grid-template-columns: 1fr 1fr; /* 2x2 grid */
  }

  /* Testimonials */
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-card {
    margin: 10px 0;
    padding: 25px;
  }

  /* About Section */
  .about-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-img {
    order: -1; /* Image on top */
  }

  .about-text {
    padding: 30px;
  }

  /* Font Sizes */
  .section-title h2 {
    font-size: 2.2rem;
  }
}

/* =========================================
   Small Mobile (Max-width: 480px) 
   ========================================= */
@media (max-width: 480px) {
  html {
    font-size: 14px; /* Scale down root font size */
  }

  .hero-content h1 {
    font-size: 2.2rem;
    line-height: 1.2;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .hero-btns {
    flex-direction: column;
    width: 100%;
    gap: 15px;
  }

  .hero-btns .btn {
    width: 100%;
    justify-content: center;
  }

  .stats-section .services-grid {
    grid-template-columns: 1fr; /* Stack vertically for very small screens */
  }

  .footer-grid {
    grid-template-columns: 1fr; /* Stack footer columns */
    text-align: center;
  }

  .footer-col ul li a {
    justify-content: center;
  }

  .social-links {
    justify-content: center;
  }

  .footer-newsletter input {
    width: 100%;
  }

  /* Badges Carousel */
  .badges-wrapper {
    padding: 20px 0;
  }
}
/* ============================================
   RTL (RIGHT-TO-LEFT) STYLES FOR ARABIC
   ============================================ */

/* Import Google Fonts for Arabic */
@import url("https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&family=Tajawal:wght@400;500;700&display=swap");

/* RTL Body - Enhanced Arabic Typography */
body.rtl {
  direction: rtl;
  text-align: right;
  font-family: "Cairo", "Segoe UI", Tahoma, Arial, sans-serif;
  letter-spacing: 0;
}

/* Better Arabic Font Rendering */
.rtl * {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* RTL Typography - Improved Spacing */
.rtl h1 {
  font-family: "Cairo", "Segoe UI", Tahoma, Arial, sans-serif;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0;
  word-spacing: 2px;
}

.rtl h2 {
  font-family: "Cairo", "Segoe UI", Tahoma, Arial, sans-serif;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0;
}

.rtl h3,
.rtl h4,
.rtl h5,
.rtl h6 {
  font-family: "Tajawal", "Segoe UI", Tahoma, Arial, sans-serif;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0;
}

.rtl p {
  font-family: "Tajawal", "Segoe UI", Tahoma, Arial, sans-serif;
  line-height: 1.8;
  letter-spacing: 0;
  word-spacing: 1px;
}

/* RTL Header & Navigation - IMPROVED */
.rtl .nav-container {
  flex-direction: row-reverse;
}

.rtl .nav-links ul {
  flex-direction: row-reverse;
  gap: 25px;
}

.rtl .nav-links li {
  margin: 0;
}

.rtl .logo {
  margin-right: 0;
  margin-left: auto;
}

/* Fix logo text direction - keep English order */
.rtl .logo a {
  direction: ltr;
  unicode-bidi: embed;
}

/* Better navigation spacing */
.rtl .nav-links a {
  font-family: "Cairo", sans-serif;
  font-weight: 600;
  padding: 8px 15px;
}

/* Language toggle in header */
.rtl .lang-toggle {
  margin-right: 10px;
  margin-left: 0;
}

/* Get Quote button in header */
.rtl .nav-links .btn {
  margin-right: 0;
  margin-left: 10px;
}

/* RTL Hero Section - Better Spacing */
.rtl .hero-content {
  text-align: right;
}

/* CRITICAL: Flip hero image to left side in RTL */
.rtl .hero-img {
  right: auto;
  left: 5%;
}

/* Better text contrast and readability */
.rtl .hero h1 {
  font-size: 3rem;
  line-height: 1.3;
  margin-bottom: 25px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
  max-width: 550px;
}

.rtl .hero p {
  line-height: 1.9;
  margin-bottom: 30px;
  max-width: 500px;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
  font-size: 1.05rem;
}

.rtl .hero-btns {
  flex-direction: row-reverse;
  gap: 15px;
}

.rtl .hero-btns .btn {
  padding: 14px 32px;
  font-size: 1rem;
}

/* RTL Service Cards - Improved Layout + OVERFLOW FIX */
.rtl .services-grid {
  direction: rtl;
}

.rtl .service-card {
  text-align: right;
  padding: 30px 25px;
  box-sizing: border-box;
  overflow: hidden;
  max-width: 100%;
}

.rtl .service-card h3 {
  margin-top: 20px;
  margin-bottom: 15px;
  font-size: 1.4rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.rtl .service-card p {
  line-height: 1.8;
  margin-bottom: 20px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

.rtl .read-more {
  flex-direction: row-reverse;
  gap: 8px;
}

/* Ensure service icons stay in place */
.rtl .service-icon {
  margin: 0 auto 20px auto;
}

/* Fix for any card-based layouts */
.rtl .card,
.rtl .value-card,
.rtl .feature-card {
  text-align: right;
  padding: 25px 20px;
  box-sizing: border-box;
  overflow: hidden;
}

.rtl .card h3,
.rtl .card h4,
.rtl .value-card h3,
.rtl .feature-card h3 {
  word-wrap: break-word;
  overflow-wrap: break-word;
  margin-bottom: 15px;
}

.rtl .card p,
.rtl .value-card p,
.rtl .feature-card p {
  word-wrap: break-word;
  overflow-wrap: break-word;
  line-height: 1.8;
}

/* RTL About Section - FIXED OVERFLOW */
.rtl .about-wrapper {
  flex-direction: row-reverse;
}

.rtl .about-text {
  text-align: right;
  padding-right: 20px;
  padding-left: 50px;
  max-width: 100%;
  overflow: hidden;
}

.rtl .about-text h2 {
  margin-bottom: 20px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.rtl .about-text p {
  line-height: 1.9;
  margin-bottom: 20px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.rtl .exp-badge {
  right: auto;
  left: 30px;
}

.rtl .exp-badge .text {
  font-family: "Cairo", sans-serif;
  font-weight: 600;
}

/* RTL Promise Box - PREVENT OVERFLOW */
.rtl .promise-box {
  text-align: right;
  margin-top: 30px !important;
  margin-bottom: 20px;
  padding: 20px !important;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.rtl .promise-box h3 {
  font-family: "Cairo", sans-serif;
  margin-bottom: 15px;
  font-size: 1.2rem;
  word-wrap: break-word;
}

.rtl .promise-box p {
  line-height: 1.9;
  font-size: 0.95rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* RTL About Button - KEEP INSIDE */
.rtl .about-text .btn {
  margin-top: 20px;
  display: inline-block;
  max-width: 100%;
}

/* RTL FAQ - Better Alignment */
.rtl .faq-question {
  flex-direction: row-reverse;
  text-align: right;
}

.rtl .faq-question h3 {
  text-align: right;
  padding-right: 0;
  padding-left: 20px;
  line-height: 1.6;
}

.rtl .faq-answer {
  text-align: right;
  padding-right: 60px;
  padding-left: 20px;
}

.rtl .faq-answer p {
  line-height: 1.9;
}

.rtl .faq-icon {
  margin-left: 0;
  margin-right: auto;
}

/* RTL Trust Badges */
.rtl .badges-carousel {
  animation: scroll-badges-rtl 30s linear infinite;
}

@keyframes scroll-badges-rtl {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(50%);
  }
}

.rtl .badge-card {
  text-align: center;
}

.rtl .badge-card h4 {
  font-family: "Cairo", sans-serif;
  margin-top: 15px;
}

/* RTL Footer */
.rtl .footer-grid {
  direction: rtl;
}

.rtl .footer-col {
  text-align: right;
}

.rtl .footer-col h3 {
  font-family: "Cairo", sans-serif;
  margin-bottom: 20px;
}

.rtl .footer-col ul li {
  text-align: right;
}

.rtl .footer-col ul li i {
  margin-right: 0;
  margin-left: 10px;
}

/* RTL Back to Top Button */
.rtl .back-to-top {
  right: auto;
  left: 30px;
}

/* RTL Form Elements */
.rtl input,
.rtl textarea,
.rtl select {
  text-align: right;
  font-family: "Tajawal", "Segoe UI", Tahoma, Arial, sans-serif;
  padding-right: 20px;
  padding-left: 45px;
}

.rtl .validation-icon {
  right: auto;
  left: 15px;
}

.rtl label {
  text-align: right;
  font-family: "Tajawal", sans-serif;
}

/* RTL Buttons */
.rtl .btn {
  font-family: "Cairo", sans-serif;
  font-weight: 600;
  letter-spacing: 0;
}

/* RTL Language Toggle */
.rtl .lang-toggle {
  flex-direction: row-reverse;
}

.rtl .lang-text {
  font-family: "Cairo", sans-serif;
  font-weight: 600;
}

/* Smooth transition for language change */
[data-i18n] {
  transition: opacity 0.15s ease;
}

/* RTL Section Titles */
.rtl .section-title {
  text-align: right;
}

.rtl .section-title h2 {
  margin-bottom: 15px;
}

.rtl .section-title p {
  line-height: 1.8;
}

.rtl .section-tag {
  font-family: "Cairo", sans-serif;
  letter-spacing: 1px;
}

/* RTL Spacing Adjustments */
.rtl .service-grid,
.rtl .values-grid {
  direction: rtl;
}

/* RTL Process Timeline */
.rtl .timeline-step {
  flex-direction: row-reverse;
}

.rtl .step-card.left {
  text-align: left;
}

.rtl .step-card.right {
  text-align: right;
}

/* RTL Recruitment List */
.rtl .recruitment-list li {
  flex-direction: row-reverse;
  text-align: right;
}

.rtl .recruitment-list li i {
  margin-right: 0;
  margin-left: 15px;
}

.rtl .recruitment-list li:hover {
  transform: translateX(-10px) scale(1.02);
}

/* RTL Animations - Keep smooth */
.rtl .service-card:hover {
  transform: translateY(-8px) scale(1.02);
}

.rtl .value-card:hover {
  transform: translateY(-15px) scale(1.03);
}

/* Mobile RTL Adjustments */
@media (max-width: 768px) {
  .rtl .hero h1 {
    font-size: 2rem;
    line-height: 1.4;
  }

  .rtl .about-text {
    padding-left: 0;
    padding-right: 0;
  }

  .rtl .faq-answer {
    padding-right: 20px;
    padding-left: 20px;
  }
}

/* Improve Arabic Number Display */
.rtl .exp-badge .num {
  font-family: "Cairo", sans-serif;
  font-weight: 700;
}

/* ============================================
   BALANCED RTL FIXES - Version 3.1
   ============================================ */

/* Header Improvements */
.rtl .header {
  direction: rtl;
}

.rtl .nav-links ul {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Ensure logo stays LTR */
.rtl .logo {
  direction: ltr;
}

.rtl .logo a {
  direction: ltr;
  display: inline-block;
}

/* Better mobile menu */
.rtl .mobile-menu-toggle {
  margin-left: 0;
  margin-right: auto;
}

/* Hero Section - Better Background Contrast */
.rtl .hero {
  background-color: var(--color-primary);
}

/* Ensure text is always readable */
.rtl .hero h1,
.rtl .hero p {
  color: var(--color-white);
  position: relative;
  z-index: 10;
}

/* Add subtle background to text for better readability */
.rtl .hero-text-col {
  background: linear-gradient(
    90deg,
    rgba(6, 60, 49, 0.85) 0%,
    rgba(6, 60, 49, 0.6) 70%,
    transparent 100%
  );
  padding: 40px;
  border-radius: 20px;
  backdrop-filter: blur(5px);
}

/* Improve button visibility */
.rtl .hero-btns .btn {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Better mobile hero */
@media (max-width: 768px) {
  .rtl .hero-text-col {
    background: rgba(6, 60, 49, 0.9);
    padding: 30px 20px;
  }

  .rtl .hero-img {
    opacity: 0.3;
  }
}

/* About Section Container Fixes - BALANCED */
.rtl .about-content {
  max-width: 100%;
}

.rtl .about-text-col {
  padding: 20px;
}

/* Better word breaking for long Arabic text - NO !important */
.rtl h1,
.rtl h2,
.rtl h3 {
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: auto;
}

.rtl p {
  word-break: normal;
  overflow-wrap: break-word;
}

/* Promise Box Border - RTL Direction */
.rtl .promise-box {
  border-left: none;
  border-right: 4px solid var(--color-secondary);
}

/* Service Cards - Balanced Overflow Fix */
.rtl .service-card {
  overflow-wrap: break-word;
  hyphens: auto;
}

.rtl .service-card h3,
.rtl .service-card p {
  overflow-wrap: break-word;
}

/* General Card Fixes - Balanced */
.rtl .card,
.rtl .value-card,
.rtl .feature-card {
  overflow-wrap: break-word;
}

.rtl .card h3,
.rtl .card h4,
.rtl .card p,
.rtl .value-card h3,
.rtl .value-card p,
.rtl .feature-card h3,
.rtl .feature-card p {
  overflow-wrap: break-word;
}

/* Process Intro Styles (Restored & Adjusted) */
.process-intro {
  max-width: 900px;
  margin: 0 auto 50px; /* added bottom margin */
  text-align: left; /* specific requested alignment */
}

.process-intro h3 {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 25px;
  font-weight: 700;
}

.process-intro p {
  color: var(--color-text-light);
  margin-bottom: 20px;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Ensure container has padding */
.process-section .container {
  padding-top: 20px;
  padding-bottom: 40px;
}
