/* ============================================
   Al-Faed Al-Fode — Premium CSS Design System
   ============================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Cairo:wght@300;400;500;600;700;800;900&display=swap');

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Primary palette – solar gold / emerald green */
  --clr-primary: #0fa968;
  --clr-primary-light: #34d399;
  --clr-primary-dark: #047a4e;
  --clr-accent: #f59e0b;
  --clr-accent-light: #fbbf24;

  /* Neutrals */
  --clr-dark: #0b1120;
  --clr-dark-alt: #111827;
  --clr-surface: #1a2332;
  --clr-surface-light: #243044;
  --clr-border: rgba(255, 255, 255, 0.08);
  --clr-text: #e2e8f0;
  --clr-text-muted: #94a3b8;
  --clr-white: #ffffff;

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);

  /* Gradients */
  --grad-primary: linear-gradient(135deg, #0fa968, #059669, #047857);
  --grad-accent: linear-gradient(135deg, #f59e0b, #d97706);
  --grad-dark: linear-gradient(180deg, #0b1120 0%, #1a2332 100%);
  --grad-hero: linear-gradient(135deg, rgba(11, 17, 32, 0.92) 0%, rgba(15, 169, 104, 0.18) 100%);
  --grad-card: linear-gradient(145deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);

  /* Typography */
  --ff-en: 'Inter', system-ui, -apple-system, sans-serif;
  --ff-ar: 'Cairo', 'Inter', system-ui, sans-serif;
  --fs-hero: clamp(2.4rem, 5vw, 4.2rem);
  --fs-h2: clamp(1.8rem, 3.5vw, 2.8rem);
  --fs-h3: clamp(1.2rem, 2vw, 1.5rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;

  /* Spacing */
  --section-py: clamp(4rem, 8vw, 7rem);
  --container-px: clamp(1.25rem, 4vw, 2rem);
  --container-max: 1200px;
  --gap: 2rem;

  /* Transitions */
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);

  /* Border radius */
  --radius: 16px;
  --radius-sm: 10px;
  --radius-full: 9999px;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--ff-en);
  background: var(--clr-dark);
  color: var(--clr-text);
  line-height: 1.7;
  font-size: var(--fs-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* RTL body */
body[dir="rtl"] {
  font-family: var(--ff-ar);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ---------- Utility ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-px);
}

.section-padding {
  padding: var(--section-py) 0;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--clr-primary-light);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.75rem;
}

.section-label::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--clr-primary);
  border-radius: 2px;
}

body[dir="rtl"] .section-label::before {
  order: 1;
}

.section-title {
  font-size: var(--fs-h2);
  font-weight: 800;
  color: var(--clr-white);
  line-height: 1.25;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--clr-text-muted);
  max-width: 600px;
  line-height: 1.8;
}

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

.text-center .section-subtitle {
  margin: 0 auto;
}

.text-center .section-label::before {
  display: none;
}

.text-center .section-label::after {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--clr-primary);
  border-radius: 2px;
  display: none;
}

/* ---------- Scroll Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ---------- Navigation ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(11, 17, 32, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  padding: 0.65rem 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  z-index: 101;
}

.nav-logo-icon {
  width: 42px;
  height: 42px;
  background: var(--grad-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
}

.nav-logo-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--clr-white);
  line-height: 1.2;
}

.nav-logo-sub {
  font-size: 0.65rem;
  color: var(--clr-text-muted);
  font-weight: 400;
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--clr-text-muted);
  transition: var(--transition-fast);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--clr-primary);
  transition: var(--transition);
  border-radius: 2px;
}

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

.nav-links a:hover,
.nav-links a.active {
  color: var(--clr-white);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 101;
}

.lang-switcher {
  display: flex;
  align-items: center;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  padding: 3px;
  cursor: pointer;
}

.lang-btn {
  border: none;
  background: transparent;
  color: var(--clr-text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-fast);
  font-family: inherit;
}

.lang-btn.active {
  background: var(--clr-primary);
  color: var(--clr-white);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 101;
}

.nav-hamburger span {
  width: 24px;
  height: 2px;
  background: var(--clr-white);
  border-radius: 2px;
  transition: var(--transition);
}

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

.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}

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

/* Mobile nav overlay */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(11, 17, 32, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 100;
  align-items: center;
  justify-content: center;
}

.mobile-nav-overlay.open {
  display: flex;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.mobile-nav-links a {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--clr-text);
  transition: var(--transition-fast);
}

.mobile-nav-links a:hover {
  color: var(--clr-primary-light);
}

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

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

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

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(11, 17, 32, 0.94) 0%,
    rgba(11, 17, 32, 0.80) 40%,
    rgba(15, 169, 104, 0.20) 100%
  );
}

/* Animated particles overlay */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--clr-primary-light);
  border-radius: 50%;
  opacity: 0;
  animation: float-particle 8s ease-in-out infinite;
}

.particle:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; animation-duration: 7s; }
.particle:nth-child(2) { left: 25%; top: 60%; animation-delay: 1s; animation-duration: 9s; }
.particle:nth-child(3) { left: 50%; top: 30%; animation-delay: 2s; animation-duration: 6s; }
.particle:nth-child(4) { left: 70%; top: 70%; animation-delay: 3s; animation-duration: 8s; }
.particle:nth-child(5) { left: 85%; top: 40%; animation-delay: 4s; animation-duration: 10s; }
.particle:nth-child(6) { left: 40%; top: 80%; animation-delay: 5s; animation-duration: 7s; }
.particle:nth-child(7) { left: 60%; top: 15%; animation-delay: 1.5s; animation-duration: 9s; }
.particle:nth-child(8) { left: 15%; top: 50%; animation-delay: 3.5s; animation-duration: 6s; }

@keyframes float-particle {
  0%, 100% {
    opacity: 0;
    transform: translateY(0) scale(0.5);
  }
  25% {
    opacity: 0.6;
    transform: translateY(-30px) scale(1);
  }
  75% {
    opacity: 0.3;
    transform: translateY(-60px) scale(0.8);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding-top: 6rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(15, 169, 104, 0.12);
  border: 1px solid rgba(15, 169, 104, 0.25);
  border-radius: var(--radius-full);
  padding: 0.4rem 1.2rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--clr-primary-light);
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--clr-primary);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.hero h1 {
  font-size: var(--fs-hero);
  font-weight: 900;
  color: var(--clr-white);
  line-height: 1.15;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--clr-primary-light), var(--clr-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--clr-text-muted);
  line-height: 1.8;
  margin-bottom: 2.5rem;
  max-width: 560px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: var(--grad-primary);
  color: var(--clr-white);
  box-shadow: 0 4px 20px rgba(15, 169, 104, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(15, 169, 104, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--clr-white);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
  border-color: var(--clr-primary);
  color: var(--clr-primary-light);
  background: rgba(15, 169, 104, 0.06);
  transform: translateY(-2px);
}

.btn svg {
  width: 18px;
  height: 18px;
}

/* Hero stats bar */
.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--glass-border);
}

.hero-stat {
  display: flex;
  flex-direction: column;
}

.hero-stat-icon {
  width: 36px;
  height: 36px;
  background: rgba(15, 169, 104, 0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.hero-stat-label {
  font-size: 0.8rem;
  color: var(--clr-text-muted);
  font-weight: 500;
}

.hero-stat-value {
  font-size: 0.9rem;
  color: var(--clr-white);
  font-weight: 600;
}

/* ---------- About Section ---------- */
.about {
  background: var(--clr-dark-alt);
  position: relative;
  overflow: hidden;
}

.about::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(15, 169, 104, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  border-radius: var(--radius);
  transition: transform 0.6s ease;
}

.about-image:hover img {
  transform: scale(1.03);
}

.about-image-overlay {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  background: rgba(11, 17, 32, 0.85);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-sm);
  padding: 1.2rem 1.5rem;
  border: 1px solid var(--glass-border);
}

body[dir="rtl"] .about-image-overlay {
  left: 1.5rem;
  right: 1.5rem;
}

.about-image-overlay-text {
  font-size: 0.85rem;
  color: var(--clr-primary-light);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.about-content .section-subtitle {
  margin-bottom: 2rem;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.about-feature:hover {
  border-color: rgba(15, 169, 104, 0.3);
  background: rgba(15, 169, 104, 0.05);
}

.about-feature-icon {
  width: 32px;
  height: 32px;
  min-width: 32px;
  background: rgba(15, 169, 104, 0.12);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.about-feature-text {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--clr-text);
}

/* ---------- Services Section ---------- */
.services {
  background: var(--clr-dark);
  position: relative;
}

.services-header {
  margin-bottom: 3.5rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 1.5rem;
}

.service-card {
  position: relative;
  background: var(--grad-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  cursor: default;
}

.service-card:hover {
  border-color: rgba(15, 169, 104, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.service-card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.service-card:hover .service-card-image img {
  transform: scale(1.08);
}

.service-card-body {
  padding: 1.5rem;
}

.service-card-icon {
  width: 48px;
  height: 48px;
  background: rgba(15, 169, 104, 0.1);
  border: 1px solid rgba(15, 169, 104, 0.2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  margin-top: -2.5rem;
  position: relative;
  z-index: 2;
  backdrop-filter: blur(8px);
}

.service-card h3 {
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--clr-white);
  margin-bottom: 0.75rem;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--clr-text-muted);
  line-height: 1.7;
}

/* ---------- Vision / Mission Section ---------- */
.vision {
  background: var(--clr-dark-alt);
  position: relative;
  overflow: hidden;
}

.vision::before {
  content: '';
  position: absolute;
  bottom: -200px;
  left: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.vision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

.vision-card {
  background: var(--grad-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.vision-card:hover {
  border-color: rgba(15, 169, 104, 0.3);
  transform: translateY(-2px);
}

.vision-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
}

.vision-card:first-child::before {
  background: var(--grad-primary);
}

.vision-card:last-child::before {
  background: var(--grad-accent);
}

.vision-card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.vision-card:first-child .vision-card-icon {
  background: rgba(15, 169, 104, 0.12);
}

.vision-card:last-child .vision-card-icon {
  background: rgba(245, 158, 11, 0.12);
}

.vision-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--clr-white);
  margin-bottom: 1rem;
}

.vision-card p {
  font-size: 0.95rem;
  color: var(--clr-text-muted);
  line-height: 1.8;
}

.vision-card ul {
  margin-top: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.vision-card li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--clr-text);
}

.vision-card li::before {
  content: '✦';
  color: var(--clr-primary-light);
  font-size: 0.65rem;
}

/* ---------- Why Choose Us Section ---------- */
.why-us {
  background: var(--clr-dark);
  position: relative;
}

.why-us-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.why-us-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--grad-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.why-us-card:hover {
  border-color: rgba(15, 169, 104, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.why-us-card-number {
  position: absolute;
  top: 0.5rem;
  right: 1rem;
  font-size: 3rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.03);
  line-height: 1;
}

body[dir="rtl"] .why-us-card-number {
  right: auto;
  left: 1rem;
}

.why-us-card-icon {
  width: 56px;
  height: 56px;
  background: rgba(15, 169, 104, 0.1);
  border: 1px solid rgba(15, 169, 104, 0.15);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin: 0 auto 1.2rem;
}

.why-us-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--clr-white);
  margin-bottom: 0.6rem;
}

.why-us-card p {
  font-size: 0.85rem;
  color: var(--clr-text-muted);
  line-height: 1.7;
}

/* ---------- Gallery Section ---------- */
.gallery {
  background: var(--clr-dark-alt);
  position: relative;
  overflow: hidden;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 1rem;
  margin-top: 3rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(11, 17, 32, 0.8) 0%,
    transparent 50%
  );
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: var(--transition);
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-item-overlay span {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--clr-white);
}

.gallery-item:nth-child(1) {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
}

.gallery-item:nth-child(1) img {
  height: 100%;
  min-height: 420px;
}

.gallery-item:nth-child(2) img,
.gallery-item:nth-child(3) img,
.gallery-item:nth-child(4) img,
.gallery-item:nth-child(5) img {
  height: 200px;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--clr-dark);
  border-top: 1px solid var(--glass-border);
  padding: 3rem 0;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.footer-logo-icon {
  width: 38px;
  height: 38px;
  background: var(--grad-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.footer-logo-text {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--clr-white);
}

.footer-divider {
  width: 60px;
  height: 2px;
  background: var(--glass-border);
  border-radius: 2px;
}

.footer-company-ar {
  font-family: var(--ff-ar);
  font-size: 0.85rem;
  color: var(--clr-text-muted);
  direction: rtl;
}

.footer-copyright {
  font-size: 0.8rem;
  color: var(--clr-text-muted);
}

/* ---------- Back to Top ---------- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--clr-primary);
  color: var(--clr-white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 999;
  box-shadow: 0 4px 20px rgba(15, 169, 104, 0.3);
}

body[dir="rtl"] .back-to-top {
  right: auto;
  left: 2rem;
}

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

.back-to-top:hover {
  background: var(--clr-primary-dark);
  transform: translateY(-3px);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

/* ---------- Loading Screen ---------- */
.loader {
  position: fixed;
  inset: 0;
  background: var(--clr-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.loader-icon {
  width: 56px;
  height: 56px;
  background: var(--grad-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  animation: pulse-loader 1.5s ease-in-out infinite;
}

@keyframes pulse-loader {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.loader-bar {
  width: 120px;
  height: 3px;
  background: var(--glass-border);
  border-radius: 3px;
  overflow: hidden;
}

.loader-bar-inner {
  width: 40%;
  height: 100%;
  background: var(--clr-primary);
  border-radius: 3px;
  animation: loader-slide 1.2s ease-in-out infinite;
}

@keyframes loader-slide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

/* ==========================================
   RESPONSIVE BREAKPOINTS
   ========================================== */

/* ── Tablet Landscape & Small Desktop (≤ 1024px) ── */
@media (max-width: 1024px) {
  :root {
    --section-py: clamp(3.5rem, 6vw, 5.5rem);
    --container-px: clamp(1.5rem, 4vw, 2rem);
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-image img {
    height: 320px;
  }

  .vision-grid {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-item:nth-child(1) {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .gallery-item:nth-child(1) img {
    min-height: 260px;
    height: 260px;
  }

  .gallery-item:nth-child(2) img,
  .gallery-item:nth-child(3) img,
  .gallery-item:nth-child(4) img,
  .gallery-item:nth-child(5) img {
    height: 200px;
  }

  .why-us-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ── Tablet Portrait (≤ 768px) ── */
@media (max-width: 768px) {
  :root {
    --section-py: clamp(3rem, 6vw, 4.5rem);
    --container-px: 1.25rem;
    --fs-hero: clamp(1.8rem, 7vw, 2.6rem);
    --fs-h2: clamp(1.5rem, 5vw, 2rem);
    --fs-h3: clamp(1.05rem, 3vw, 1.25rem);
  }

  /* ─ Navbar ─ */
  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .nav-logo-name {
    font-size: 0.85rem;
  }

  .nav-logo-sub {
    font-size: 0.6rem;
  }

  .nav-logo-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .lang-btn {
    font-size: 0.72rem;
    padding: 5px 10px;
  }

  /* ─ Hero ─ */
  .hero {
    min-height: 100svh;
  }

  .hero-content {
    padding-top: 6rem;
    padding-bottom: 2rem;
  }

  .hero h1 {
    line-height: 1.25;
    margin-bottom: 1rem;
  }

  .hero-badge {
    font-size: 0.72rem;
    padding: 0.35rem 0.9rem;
    margin-bottom: 1rem;
  }

  .hero-description {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.8rem;
  }

  .hero-buttons {
    gap: 0.75rem;
  }

  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.88rem;
  }

  .hero-stats {
    gap: 1.5rem;
    margin-top: 2.5rem;
    padding-top: 1.8rem;
    flex-wrap: wrap;
  }

  .hero-stat-icon {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }

  .hero-stat-label {
    font-size: 0.72rem;
  }

  .hero-stat-value {
    font-size: 0.82rem;
  }

  /* ─ About ─ */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-image img {
    height: 280px;
  }

  .about-image-overlay {
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    padding: 0.9rem 1rem;
  }

  .about-image-overlay-text {
    font-size: 0.78rem;
  }

  .about-features {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .about-feature {
    padding: 0.7rem 0.8rem;
  }

  .about-feature-icon {
    width: 28px;
    height: 28px;
    min-width: 28px;
    font-size: 0.8rem;
  }

  .about-feature-text {
    font-size: 0.78rem;
  }

  .section-subtitle {
    font-size: 0.92rem;
    line-height: 1.7;
  }

  .section-label {
    font-size: 0.75rem;
    letter-spacing: 1.5px;
  }

  /* ─ Services ─ */
  .services-header {
    margin-bottom: 2.5rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .service-card-image {
    height: 180px;
  }

  .service-card-body {
    padding: 1.25rem;
  }

  .service-card-icon {
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
    margin-top: -2rem;
  }

  .service-card h3 {
    margin-bottom: 0.5rem;
  }

  .service-card p {
    font-size: 0.85rem;
  }

  /* ─ Vision ─ */
  .vision-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-top: 2rem;
  }

  .vision-card {
    padding: 1.8rem;
  }

  .vision-card-icon {
    width: 48px;
    height: 48px;
    font-size: 1.3rem;
    margin-bottom: 1rem;
  }

  .vision-card h3 {
    font-size: 1.2rem;
  }

  .vision-card p {
    font-size: 0.88rem;
  }

  .vision-card li {
    font-size: 0.82rem;
  }

  /* ─ Why Us ─ */
  .why-us-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
  }

  .why-us-card {
    padding: 1.5rem 1.2rem;
  }

  .why-us-card-icon {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
    margin-bottom: 1rem;
  }

  .why-us-card h3 {
    font-size: 0.95rem;
  }

  .why-us-card p {
    font-size: 0.8rem;
  }

  .why-us-card-number {
    font-size: 2.5rem;
  }

  /* ─ Gallery ─ */
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: 2rem;
  }

  .gallery-item:nth-child(1) {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .gallery-item:nth-child(1) img {
    min-height: 200px;
    height: 200px;
  }

  .gallery-item:nth-child(2) img,
  .gallery-item:nth-child(3) img,
  .gallery-item:nth-child(4) img,
  .gallery-item:nth-child(5) img {
    height: 160px;
  }

  .gallery-item-overlay {
    padding: 1rem;
    opacity: 1;
  }

  .gallery-item-overlay span {
    font-size: 0.78rem;
  }

  /* ─ Footer ─ */
  .footer {
    padding: 2rem 0;
  }

  .footer-logo-text {
    font-size: 0.85rem;
  }

  .footer-company-ar {
    font-size: 0.78rem;
  }

  .footer-copyright {
    font-size: 0.72rem;
    padding: 0 0.5rem;
  }

  /* ─ Back to top ─ */
  .back-to-top {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 40px;
    height: 40px;
  }

  body[dir="rtl"] .back-to-top {
    right: auto;
    left: 1.25rem;
  }

  .back-to-top svg {
    width: 18px;
    height: 18px;
  }
}

/* ── Mobile (≤ 480px) ── */
@media (max-width: 480px) {
  :root {
    --section-py: clamp(2.5rem, 6vw, 3.5rem);
    --container-px: 1rem;
    --fs-hero: clamp(1.5rem, 7vw, 2.2rem);
    --fs-h2: clamp(1.3rem, 5vw, 1.7rem);
    --fs-h3: clamp(1rem, 3vw, 1.15rem);
  }

  /* ─ Navbar ─ */
  .nav-logo-text {
    max-width: 140px;
  }

  .nav-logo-name {
    font-size: 0.78rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav-logo-sub {
    display: none;
  }

  .nav-logo-icon {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
    border-radius: 8px;
  }

  .lang-btn {
    font-size: 0.68rem;
    padding: 4px 9px;
  }

  .navbar.scrolled {
    padding: 0.5rem 0;
  }

  /* ─ Hero ─ */
  .hero {
    min-height: 100svh;
  }

  .hero-content {
    padding-top: 5.5rem;
    padding-bottom: 1.5rem;
  }

  .hero h1 {
    line-height: 1.3;
    margin-bottom: 0.85rem;
  }

  .hero-badge {
    font-size: 0.68rem;
    padding: 0.3rem 0.8rem;
    margin-bottom: 0.85rem;
  }

  .hero-description {
    font-size: 0.88rem;
    line-height: 1.65;
    margin-bottom: 1.5rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 0.6rem;
  }

  .btn {
    justify-content: center;
    width: 100%;
    padding: 0.75rem 1.25rem;
    font-size: 0.85rem;
  }

  .hero-stats {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
  }

  .hero-stat {
    flex: 1;
    min-width: 0;
  }

  .hero-stat-icon {
    width: 30px;
    height: 30px;
    font-size: 0.85rem;
    margin-bottom: 0.35rem;
  }

  .hero-stat-label {
    font-size: 0.65rem;
  }

  .hero-stat-value {
    font-size: 0.75rem;
  }

  /* ─ About ─ */
  .about-image img {
    height: 220px;
  }

  .about-image-overlay {
    bottom: 0.75rem;
    left: 0.75rem;
    right: 0.75rem;
    padding: 0.75rem;
  }

  .about-image-overlay-text {
    font-size: 0.72rem;
  }

  .about-features {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .about-feature {
    padding: 0.65rem 0.75rem;
    gap: 0.6rem;
  }

  .about-content .section-subtitle {
    margin-bottom: 1.25rem;
  }

  .section-subtitle {
    font-size: 0.85rem;
  }

  /* ─ Services ─ */
  .services-header {
    margin-bottom: 1.75rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .service-card-image {
    height: 160px;
  }

  .service-card-body {
    padding: 1rem;
  }

  .service-card-icon {
    width: 38px;
    height: 38px;
    font-size: 1rem;
    margin-top: -1.75rem;
    margin-bottom: 0.75rem;
  }

  .service-card p {
    font-size: 0.82rem;
    line-height: 1.65;
  }

  /* ─ Vision ─ */
  .vision-grid {
    margin-top: 1.5rem;
    gap: 1rem;
  }

  .vision-card {
    padding: 1.5rem 1.25rem;
  }

  .vision-card-icon {
    width: 44px;
    height: 44px;
    font-size: 1.15rem;
    margin-bottom: 0.85rem;
  }

  .vision-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
  }

  .vision-card p {
    font-size: 0.82rem;
    line-height: 1.7;
  }

  .vision-card ul {
    margin-top: 0.9rem;
    gap: 0.5rem;
  }

  .vision-card li {
    font-size: 0.78rem;
  }

  /* ─ Why Us ─ */
  .why-us-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    margin-top: 1.5rem;
  }

  .why-us-card {
    padding: 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .why-us-card-icon {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
    margin-bottom: 0.85rem;
  }

  .why-us-card h3 {
    font-size: 0.92rem;
  }

  .why-us-card p {
    font-size: 0.78rem;
  }

  .why-us-card-number {
    font-size: 2rem;
  }

  /* ─ Gallery ─ */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 0.65rem;
    margin-top: 1.5rem;
  }

  .gallery-item:nth-child(1) img {
    min-height: 180px;
    height: 180px;
  }

  .gallery-item:nth-child(2) img,
  .gallery-item:nth-child(3) img,
  .gallery-item:nth-child(4) img,
  .gallery-item:nth-child(5) img {
    height: 160px;
  }

  .gallery-item-overlay {
    padding: 0.75rem;
  }

  .gallery-item-overlay span {
    font-size: 0.72rem;
  }

  /* ─ Footer ─ */
  .footer {
    padding: 1.5rem 0;
  }

  .footer-content {
    gap: 0.75rem;
  }

  .footer-logo-icon {
    width: 32px;
    height: 32px;
    font-size: 0.95rem;
  }

  .footer-logo-text {
    font-size: 0.8rem;
  }

  .footer-company-ar {
    font-size: 0.72rem;
    padding: 0 0.5rem;
  }

  .footer-copyright {
    font-size: 0.68rem;
    padding: 0 0.5rem;
    line-height: 1.6;
  }
}

/* ── Extra Small Mobile (≤ 360px) ── */
@media (max-width: 360px) {
  :root {
    --container-px: 0.85rem;
    --fs-hero: clamp(1.35rem, 7vw, 1.9rem);
    --fs-h2: clamp(1.2rem, 5vw, 1.5rem);
  }

  .nav-logo-text {
    max-width: 110px;
  }

  .nav-logo-name {
    font-size: 0.72rem;
  }

  .nav-logo-icon {
    width: 30px;
    height: 30px;
    font-size: 0.85rem;
  }

  .lang-btn {
    font-size: 0.65rem;
    padding: 3px 7px;
  }

  .hero-content {
    padding-top: 5rem;
  }

  .hero-description {
    font-size: 0.82rem;
  }

  .hero-stat-value {
    font-size: 0.7rem;
  }

  .hero-stat-label {
    font-size: 0.6rem;
  }

  .about-features {
    gap: 0.4rem;
  }

  .about-feature-text {
    font-size: 0.72rem;
  }

  .service-card-image {
    height: 140px;
  }

  .why-us-card {
    padding: 1rem 0.85rem;
  }
}
