/* =========================================================
   حضانة حلم الجيل — الملف الرئيسي للأنماط
   نظام التصميم: RTL، Cairo/Tajawal، Mobile-First
   ========================================================= */

/* ========== 1. المتغيرات (Design Tokens) ========== */
:root {
  /* ألوان أساسية */
  --primary: #4FB6E8;
  --primary-dark: #2A95C8;
  --primary-light: #A9DDF3;
  --secondary: #FFC857;
  --secondary-dark: #E5A92E;
  --accent-pink: #FF9AA2;
  --accent-green: #88D8B0;

  /* محايد */
  --bg-white: #FFFFFF;
  --bg-cream: #FFF9F0;
  --bg-soft: #F5FAFD;
  --text-dark: #2C3E50;
  --text-muted: #6B7C8F;
  --text-light: #98A6B3;
  --border: #E5EEF5;

  /* تدرجات */
  --gradient-primary: linear-gradient(135deg, #4FB6E8 0%, #88D8B0 100%);
  --gradient-warm: linear-gradient(135deg, #FFC857 0%, #FF9AA2 100%);
  --gradient-hero: linear-gradient(135deg, #A9DDF3 0%, #FFE6B3 50%, #FFC9CC 100%);
  --gradient-stats: linear-gradient(135deg, #4FB6E8 0%, #2A95C8 50%, #FF9AA2 100%);

  /* مسافات */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  /* ظلال */
  --shadow-sm: 0 2px 8px rgba(44, 62, 80, 0.06);
  --shadow-md: 0 6px 20px rgba(44, 62, 80, 0.08);
  --shadow-lg: 0 12px 40px rgba(44, 62, 80, 0.12);
  --shadow-glow: 0 0 30px rgba(79, 182, 232, 0.35);

  /* استدارات */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 999px;

  /* انتقالات */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-fast: 0.2s var(--ease-out);
  --transition-base: 0.35s var(--ease-out);
  --transition-slow: 0.6s var(--ease-out);

  /* قياسات */
  --container: 1280px;
  --header-height: 80px;
}

/* ========== 2. إعادة ضبط أساسية ========== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

/* Lenis smooth scroll integration */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-smooth iframe {
  pointer-events: none;
}

body {
  font-family: "Cairo", "Tajawal", "Segoe UI", Tahoma, sans-serif;
  font-weight: 500;
  line-height: 1.7;
  color: var(--text-dark);
  background: var(--bg-white);
  direction: rtl;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul {
  list-style: none;
}

/* ========== 3. الطباعة (Typography) ========== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  line-height: 1.3;
  color: var(--text-dark);
}

h1 { font-size: clamp(2rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }

p { color: var(--text-muted); }

.section-tag {
  display: inline-block;
  padding: 0.4rem 1.2rem;
  background: rgba(79, 182, 232, 0.12);
  color: var(--primary-dark);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.section-title {
  margin-bottom: var(--space-md);
}

.section-subtitle {
  font-size: 1.05rem;
  max-width: 640px;
  margin: 0 auto var(--space-xl);
  color: var(--text-muted);
  text-align: center;
}

/* ========== 4. حاويات الصفحة ========== */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

section {
  padding: var(--space-2xl) 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

/* ========== 5. الأزرار ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 2rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 1rem;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 8px 20px rgba(79, 182, 232, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(79, 182, 232, 0.5);
}

.btn-secondary {
  background: var(--secondary);
  color: var(--text-dark);
  box-shadow: 0 8px 20px rgba(255, 200, 87, 0.4);
}

.btn-secondary:hover {
  transform: translateY(-3px);
  background: var(--secondary-dark);
  box-shadow: 0 14px 30px rgba(255, 200, 87, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--primary-dark);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-3px);
}

.btn-pulse {
  animation: pulse-soft 2.5s ease-in-out infinite;
}

@keyframes pulse-soft {
  0%, 100% { box-shadow: 0 8px 20px rgba(79, 182, 232, 0.4), 0 0 0 0 rgba(79, 182, 232, 0.5); }
  50% { box-shadow: 0 8px 20px rgba(79, 182, 232, 0.4), 0 0 0 12px rgba(79, 182, 232, 0); }
}

/* ========== 6. Preloader ========== */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--bg-cream);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

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

.preloader-logo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  animation: pulse-logo 1.6s ease-in-out infinite;
  box-shadow: var(--shadow-glow);
}

.preloader-text {
  margin-top: 1.5rem;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary-dark);
  letter-spacing: 0.5px;
}

.preloader-dots {
  display: flex;
  gap: 8px;
  margin-top: 1rem;
}

.preloader-dots span {
  width: 12px;
  height: 12px;
  background: var(--primary);
  border-radius: 50%;
  animation: bounce-dot 1.2s ease-in-out infinite;
}

.preloader-dots span:nth-child(2) { animation-delay: 0.15s; background: var(--secondary); }
.preloader-dots span:nth-child(3) { animation-delay: 0.3s; background: var(--accent-pink); }

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

@keyframes bounce-dot {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.7; }
  40% { transform: translateY(-12px); opacity: 1; }
}

/* ========== 7. Custom Cursor (Desktop) — مُحسّن للأداء ========== */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 10000;
  will-change: transform;
  opacity: 0;
  /* لا transition على transform — لتلصق فوراً بالماوس */
  transition: opacity 0.3s ease, width 0.25s var(--ease-out), height 0.25s var(--ease-out), background 0.25s var(--ease-out);
}

.cursor-dot {
  width: 10px;
  height: 10px;
  background: var(--primary-dark);
  border-radius: 50%;
  /* transform يُكتب من JS مباشرة كل frame */
}

.cursor-ring {
  width: 38px;
  height: 38px;
  border: 2px solid var(--primary);
  border-radius: 50%;
  background: rgba(79, 182, 232, 0.06);
}

.cursor-active .cursor-dot {
  width: 0;
  height: 0;
}

.cursor-active .cursor-ring {
  width: 64px;
  height: 64px;
  background: rgba(79, 182, 232, 0.2);
  border-color: var(--secondary);
}

@media (hover: hover) and (pointer: fine) {
  body { cursor: none; }
  a, button, input, textarea, .gallery-item, .program-card, .activity-card, .value-card { cursor: none; }
  .cursor-dot,
  .cursor-ring { opacity: 1; }
}

/* ========== 8. Header ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  transition: all var(--transition-base);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow-md);
  height: 70px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--primary-dark);
}

.logo img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  transition: transform var(--transition-base);
}

.logo:hover img { transform: rotate(-10deg) scale(1.05); }

.logo-text { line-height: 1.2; }
.logo-text small {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* === Logo only style (header) — شعار وحيد مع shadow متفاعل === */
.logo.logo-only {
  position: relative;
  width: 84px;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  transition: width 0.5s var(--ease-out), height 0.5s var(--ease-out);
}

.logo.logo-only picture,
.logo.logo-only img {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  z-index: 2;
  position: relative;
  transition: width 0.5s var(--ease-out), height 0.5s var(--ease-out),
              box-shadow 0.5s var(--ease-out), transform 0.4s var(--ease-bounce);
  box-shadow:
    0 0 0 6px rgba(255, 255, 255, 0.7),
    0 8px 28px rgba(79, 182, 232, 0.45),
    0 0 0 14px rgba(79, 182, 232, 0.15);
}

.logo.logo-only:hover img {
  transform: rotate(-8deg) scale(1.08);
  box-shadow:
    0 0 0 6px rgba(255, 255, 255, 0.9),
    0 14px 38px rgba(79, 182, 232, 0.55),
    0 0 0 16px rgba(255, 200, 87, 0.25);
}

/* الـ halo: حلقة spinning خارجية */
.logo-halo {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    var(--primary) 0deg,
    var(--secondary) 90deg,
    var(--accent-pink) 180deg,
    var(--accent-green) 270deg,
    var(--primary) 360deg
  );
  opacity: 0;
  z-index: 1;
  filter: blur(8px);
  animation: halo-spin 8s linear infinite;
  transition: opacity 0.5s var(--ease-out);
}

.logo.logo-only:hover .logo-halo,
.header.scrolled .logo-halo {
  opacity: 0.55;
}

@keyframes halo-spin {
  to { transform: rotate(360deg); }
}

/* عند الـ scroll: تصغير الشعار وإحكام الـ shadow */
.header.scrolled .logo.logo-only {
  width: 64px;
  height: 64px;
}

.header.scrolled .logo.logo-only img {
  width: 52px;
  height: 52px;
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.95),
    0 6px 18px rgba(79, 182, 232, 0.35),
    0 0 0 10px rgba(79, 182, 232, 0.1);
}

.nav-list {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.nav-link {
  padding: 0.55rem 1rem;
  font-weight: 600;
  color: var(--text-dark);
  border-radius: var(--radius-full);
  position: relative;
  transition: all var(--transition-fast);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 4px;
  right: 50%;
  transform: translateX(50%);
  width: 0;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 2px;
  transition: width var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-dark);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 60%;
}

.header-cta {
  padding: 0.6rem 1.4rem;
  font-size: 0.9rem;
}

.hamburger {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  z-index: 1002;
}

.hamburger span {
  width: 26px;
  height: 3px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-fast);
  transform-origin: center;
}

.hamburger.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ========== 9. Hero Section ========== */
.hero {
  min-height: 100vh;
  padding-top: calc(var(--header-height) + 2rem);
  padding-bottom: 5rem;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  margin-bottom: 1.25rem;
  line-height: 1.2;
}

.hero-content h1 .highlight {
  background: var(--gradient-warm);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.hero-tagline {
  font-size: 1.25rem;
  color: var(--text-dark);
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.hero-description {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 540px;
}

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

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image-wrap {
  position: relative;
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1;
  background: white;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.hero-image-wrap::before {
  content: "";
  position: absolute;
  inset: -20px;
  background: var(--gradient-warm);
  border-radius: inherit;
  z-index: -1;
  opacity: 0.4;
  filter: blur(30px);
  animation: blob-spin 12s linear infinite;
}

.hero-image-wrap img {
  width: 85%;
  height: 85%;
  object-fit: contain;
  animation: float-gentle 4s ease-in-out infinite;
}

@keyframes blob-spin {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.1); }
  100% { transform: rotate(360deg) scale(1); }
}

@keyframes float-gentle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

/* عناصر زخرفية عائمة */
.floating-shape {
  position: absolute;
  pointer-events: none;
  animation: float-shape 8s ease-in-out infinite;
  opacity: 0.7;
}

.floating-shape.balloon-1 { top: 12%; right: 8%; font-size: 3rem; animation-delay: 0s; }
.floating-shape.balloon-2 { top: 60%; right: 4%; font-size: 2.2rem; animation-delay: 1.5s; }
.floating-shape.star-1 { top: 20%; left: 10%; font-size: 1.8rem; animation-delay: 0.8s; }
.floating-shape.star-2 { top: 70%; left: 8%; font-size: 2.4rem; animation-delay: 2.2s; }
.floating-shape.cloud-1 { top: 8%; left: 30%; font-size: 3rem; animation-delay: 1s; opacity: 0.5; }

@keyframes float-shape {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(20px, -30px) rotate(8deg); }
  50% { transform: translate(-15px, -50px) rotate(-5deg); }
  75% { transform: translate(-25px, -20px) rotate(5deg); }
}

/* موجة SVG في أسفل الهيرو */
.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  line-height: 0;
}

.hero-wave svg {
  width: 100%;
  height: 80px;
  display: block;
}

/* ========== 10. About Section ========== */
.about {
  background: var(--bg-cream);
}

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

.value-card {
  background: white;
  padding: 2rem;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  border: 2px solid transparent;
}

.value-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.value-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border-radius: 50%;
  font-size: 2rem;
  color: white;
  transition: transform var(--transition-base);
}

.value-card:hover .value-icon {
  transform: rotate(-10deg) scale(1.1);
}

.value-card:nth-child(2) .value-icon { background: var(--gradient-warm); }
.value-card:nth-child(3) .value-icon { background: linear-gradient(135deg, var(--accent-green), var(--primary)); }

.value-card h3 { margin-bottom: 0.6rem; }

/* Why Choose Us */
.why-us {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-item {
  background: white;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base);
}

.feature-item:hover { transform: translateX(-6px); }

.feature-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background: rgba(79, 182, 232, 0.12);
  color: var(--primary-dark);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.feature-item h4 { margin-bottom: 0.3rem; font-size: 1.1rem; }
.feature-item p { font-size: 0.95rem; margin: 0; }

/* ========== 11. Programs Section ========== */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.program-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  position: relative;
}

.program-card:hover {
  transform: translateY(-10px) rotate(-1deg);
  box-shadow: var(--shadow-lg);
}

.program-header {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  position: relative;
  overflow: hidden;
}

.program-card:nth-child(1) .program-header { background: linear-gradient(135deg, #FFD9DC, #FF9AA2); }
.program-card:nth-child(2) .program-header { background: linear-gradient(135deg, #BFEFC7, #88D8B0); }
.program-card:nth-child(3) .program-header { background: linear-gradient(135deg, #FFE6B3, #FFC857); }

.program-body { padding: 1.75rem; }
.program-age {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-dark);
  background: rgba(79, 182, 232, 0.12);
  padding: 0.3rem 0.9rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
}

.program-body h3 { margin-bottom: 0.6rem; }
.program-body ul { margin-top: 1rem; }
.program-body ul li {
  padding: 0.4rem 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  position: relative;
  padding-right: 1.4rem;
}
.program-body ul li::before {
  content: "✓";
  position: absolute;
  right: 0;
  color: var(--accent-green);
  font-weight: 800;
}

/* ========== 12. Activities Section ========== */
.activities {
  background: var(--bg-soft);
}

.activities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.activity-card {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base);
}

.activity-card:hover { transform: scale(1.02); }

.activity-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  transition: transform 0.6s var(--ease-out);
}

.activity-card:hover .activity-bg { transform: scale(1.15); }

.activity-card:nth-child(1) .activity-bg { background: linear-gradient(135deg, #FFE6B3, #FF9AA2); }
.activity-card:nth-child(2) .activity-bg { background: linear-gradient(135deg, #A9DDF3, #4FB6E8); }
.activity-card:nth-child(3) .activity-bg { background: linear-gradient(135deg, #BFEFC7, #88D8B0); }
.activity-card:nth-child(4) .activity-bg { background: linear-gradient(135deg, #FFC9CC, #FF9AA2); }
.activity-card:nth-child(5) .activity-bg { background: linear-gradient(135deg, #FFE6B3, #FFC857); }
.activity-card:nth-child(6) .activity-bg { background: linear-gradient(135deg, #C5E8F7, #88D8B0); }

.activity-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(44, 62, 80, 0.85), transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.activity-card:hover .activity-overlay { opacity: 1; }
.activity-overlay h4 { color: white; font-size: 1.3rem; margin: 0; }

/* ========== 13. Statistics Section ========== */
.stats {
  background: var(--gradient-stats);
  color: white;
  position: relative;
  overflow: hidden;
}

.stats::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 25%, rgba(255, 255, 255, 0.18) 0%, transparent 40%),
    radial-gradient(circle at 85% 75%, rgba(255, 255, 255, 0.15) 0%, transparent 40%);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
  z-index: 2;
  text-align: center;
}

.stat-item h3 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: white;
  margin-bottom: 0.5rem;
  font-weight: 800;
}

.stat-item h3 .plus { color: var(--secondary); }
.stat-item p { color: rgba(255, 255, 255, 0.9); font-size: 1.05rem; font-weight: 600; margin: 0; }

.stat-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  font-size: 1.6rem;
  backdrop-filter: blur(10px);
}

/* ========== 14. Team Section ========== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.team-card {
  text-align: center;
  background: white;
  padding: 2rem 1rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base);
}

.team-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }

.team-avatar {
  width: 130px;
  height: 130px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  color: white;
  border: 4px solid white;
  box-shadow: var(--shadow-md);
}

.team-name { font-size: 1.15rem; margin-bottom: 0.25rem; }
.team-role { font-size: 0.9rem; color: var(--primary-dark); font-weight: 600; }

.team-socials {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.team-socials a {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-soft);
  border-radius: 50%;
  color: var(--primary-dark);
  transition: all var(--transition-fast);
}

.team-socials a:hover { background: var(--primary); color: white; }

/* ========== 15. Gallery Section ========== */
.gallery { background: var(--bg-cream); }

.gallery-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.gallery-filter {
  padding: 0.5rem 1.4rem;
  border-radius: var(--radius-full);
  background: white;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
  border: 2px solid transparent;
}

.gallery-filter:hover,
.gallery-filter.active {
  background: var(--primary);
  color: white;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 1rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: white;
  transition: transform var(--transition-base);
}

.gallery-item:nth-child(3n) { background: var(--gradient-warm); }
.gallery-item:nth-child(3n+1) { background: linear-gradient(135deg, var(--accent-green), var(--primary)); }
.gallery-item.tall { grid-row: span 2; }
.gallery-item.wide { grid-column: span 2; }

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(44, 62, 80, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-base);
  font-size: 2rem;
}

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

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 9998;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox.active { display: flex; }
.lightbox-content {
  max-width: 90%;
  max-height: 85vh;
  background: white;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10rem;
  padding: 4rem;
  position: relative;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--text-dark);
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
}

.lightbox-prev { right: -25px; }
.lightbox-next { left: -25px; }
.lightbox-close { top: -25px; transform: none; right: -25px; }

/* ========== 16. Testimonials Section ========== */
.testimonials-track {
  display: flex;
  gap: 1.5rem;
  overflow: hidden;
  position: relative;
  padding: 1rem 0;
}

.testimonial-card {
  flex: 0 0 calc(33.333% - 1rem);
  background: white;
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform var(--transition-base);
}

.testimonial-card::before {
  content: "\201D";
  position: absolute;
  top: -10px;
  right: 24px;
  font-size: 5rem;
  font-family: serif;
  color: var(--primary-light);
  line-height: 1;
}

.testimonial-text {
  font-size: 1rem;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-avatar {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: var(--gradient-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  font-weight: 800;
}

.testimonial-name { font-size: 1rem; margin: 0; }
.testimonial-role { font-size: 0.85rem; color: var(--text-muted); }
.testimonial-stars { color: var(--secondary); margin-top: 0.3rem; }

.testimonials-nav {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.testimonials-nav button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border);
  transition: all var(--transition-fast);
}

.testimonials-nav button.active {
  background: var(--primary);
  width: 36px;
  border-radius: var(--radius-full);
}

/* ========== 17. FAQ Section ========== */
.faq { background: var(--bg-cream); }
.faq-list { max-width: 800px; margin: 0 auto; }

.faq-item {
  background: white;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--transition-base);
}

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

.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: right;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-dark);
  transition: color var(--transition-fast);
}

.faq-question:hover { color: var(--primary-dark); }

.faq-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(79, 182, 232, 0.12);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: transform var(--transition-base), background var(--transition-base);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--primary);
  color: white;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out);
}

.faq-answer-inner {
  padding: 0 1.5rem 1.25rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ========== 18. Contact Section ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info-list { margin-bottom: 2rem; }

.contact-info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
  align-items: flex-start;
}

.contact-info-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--gradient-primary);
  color: white;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.contact-info-item h4 { margin-bottom: 0.2rem; font-size: 1rem; }
.contact-info-item p { margin: 0; }

.contact-form {
  background: white;
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 1rem;
  background: var(--bg-soft);
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 4px rgba(79, 182, 232, 0.15);
}

textarea.form-control { resize: vertical; min-height: 120px; }

.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 260px;
  background: var(--bg-soft);
}

.map-wrap iframe { width: 100%; height: 100%; border: 0; }

/* ========== 19. Footer ========== */
.footer {
  background: var(--text-dark);
  color: white;
  padding: 4rem 0 1.5rem;
  position: relative;
}

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

.footer-about p {
  color: rgba(255, 255, 255, 0.7);
  margin-top: 1rem;
  font-size: 0.95rem;
}

.footer-about .logo { color: white; }
.footer-about .logo-text small { color: rgba(255, 255, 255, 0.6); }

.footer-col h4 {
  color: white;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.6rem;
}

.footer-col h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40px;
  height: 3px;
  background: var(--secondary);
  border-radius: 2px;
}

.footer-col ul li {
  margin-bottom: 0.6rem;
  color: rgba(255, 255, 255, 0.75);
  transition: color var(--transition-fast), padding var(--transition-fast);
}

.footer-col ul li a:hover {
  color: var(--secondary);
  padding-right: 6px;
}

.footer-social {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  font-size: 1.1rem;
  transition: all var(--transition-fast);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.footer-bottom .heart { color: var(--accent-pink); }

/* Credit للمطوّر */
.footer-credit {
  margin-top: 0.85rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.credit-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  background: linear-gradient(135deg, rgba(79, 182, 232, 0.15), rgba(255, 200, 87, 0.15));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  color: white;
  font-weight: 700;
  letter-spacing: 0.3px;
  transition: all 0.35s var(--ease-out);
}

.credit-link i {
  font-size: 0.75rem;
  opacity: 0.8;
  transition: transform 0.3s var(--ease-out);
}

.credit-link:hover {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-color: transparent;
  color: var(--text-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(79, 182, 232, 0.35);
}

.credit-link:hover i {
  transform: translate(2px, -2px);
  opacity: 1;
}

/* WhatsApp floating button */
.whatsapp-float,
.scroll-top {
  position: fixed;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.6rem;
  z-index: 999;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.whatsapp-float {
  bottom: 30px;
  left: 30px;
  background: #25D366;
  animation: pulse-wa 2s ease-in-out infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1) rotate(-8deg);
}

@keyframes pulse-wa {
  0%, 100% { box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.6); }
  50% { box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4), 0 0 0 16px rgba(37, 211, 102, 0); }
}

.scroll-top {
  bottom: 100px;
  left: 30px;
  background: var(--primary);
  font-size: 1.3rem;
  opacity: 0;
  visibility: hidden;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background: var(--primary-dark);
  transform: translateY(-4px);
}

/* ========== 20. Responsive Design ========== */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-ctas { justify-content: center; }
  .hero-description { margin-left: auto; margin-right: auto; }
  .hero-visual { order: -1; max-width: 380px; margin: 0 auto; }
  .values-grid,
  .why-us,
  .programs-grid,
  .activities-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid,
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  section { padding: 4rem 0; }
  .hamburger { display: flex; }

  .nav-list {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: white;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 6rem 2rem 2rem;
    box-shadow: var(--shadow-lg);
    transition: right 0.4s var(--ease-out);
  }

  .nav-list.open { right: 0; }
  .nav-list li { width: 100%; }
  .nav-link {
    display: block;
    padding: 1rem 0;
    width: 100%;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
  }
  .header-cta { display: none; }

  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 1000;
  }

  .nav-overlay.open { opacity: 1; visibility: visible; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .team-grid,
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-auto-rows: 160px; }
  .testimonial-card { flex: 0 0 calc(100% - 1rem); }
  .footer-grid { grid-template-columns: 1fr; }
  .whatsapp-float { width: 50px; height: 50px; bottom: 20px; left: 20px; }
  .scroll-top { bottom: 80px; left: 20px; width: 44px; height: 44px; }
}

@media (max-width: 480px) {
  :root { --header-height: 70px; }
  .container { padding: 0 1rem; }
  section { padding: 3rem 0; }
  .values-grid,
  .why-us,
  .programs-grid,
  .activities-grid,
  .stats-grid,
  .team-grid,
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item.tall { grid-row: auto; }
  .gallery-item.wide { grid-column: auto; }
  .hero-image-wrap { max-width: 280px; }
  .floating-shape { display: none; }
  .btn { padding: 0.8rem 1.5rem; font-size: 0.95rem; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .lightbox-prev { right: 10px; }
  .lightbox-next { left: 10px; }
  .lightbox-close { top: 10px; right: 10px; }
}

/* احترام تفضيلات الحركة المخفضة */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .floating-shape, .hero-image-wrap::before { display: none; }
}

/* AOS-like fallback (إذا فشل تحميل AOS) */
[data-aos] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

[data-aos].aos-animate {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================================
   تحسينات الأداء والأنيميشن الاحترافي (Phase 2)
   ======================================================== */

/* GPU acceleration للعناصر المتحركة */
.hero,
.hero-image-wrap,
.hero-image-wrap img,
.floating-shape,
.program-card,
.value-card,
.activity-card,
.team-card,
.gallery-item {
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* تأخير عرض الأقسام تحت الـ fold لتسريع التحميل الأولي */
.about,
.programs,
.activities,
.stats,
.team,
.gallery,
.testimonials,
.faq,
.contact {
  content-visibility: auto;
  contain-intrinsic-size: 1px 800px;
}

/* === Tilt 3D effect للبطاقات === */
.program-card,
.value-card {
  transform-style: preserve-3d;
  transform: perspective(1000px) rotateX(0) rotateY(0);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.program-card:hover,
.value-card:hover {
  /* الـ rotate سيُكتب من JS بناءً على موضع المؤشر */
  box-shadow: 0 25px 50px -12px rgba(79, 182, 232, 0.35);
}

.program-card .program-header,
.program-card .program-body,
.value-card .value-icon,
.value-card h3,
.value-card p {
  transform: translateZ(20px);
  transition: transform 0.4s var(--ease-out);
}

/* === Glow effect للأزرار === */
.btn-primary,
.btn-secondary {
  position: relative;
  isolation: isolate;
}

.btn-primary::before,
.btn-secondary::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(135deg, rgba(255,255,255,0.5), transparent);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.btn-primary:hover::before,
.btn-secondary:hover::before {
  opacity: 1;
}

/* Shimmer slide خلف الزر */
.btn-primary::after,
.btn-secondary::after {
  content: "";
  position: absolute;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.25),
    transparent
  );
  transition: right 0.6s var(--ease-out);
  pointer-events: none;
}

.btn-primary:hover::after,
.btn-secondary:hover::after {
  right: 100%;
}

/* === تحسين الـ floating shapes === */
.floating-shape {
  filter: drop-shadow(0 4px 12px rgba(79, 182, 232, 0.2));
  animation: float-shape-smooth 12s ease-in-out infinite;
}

@keyframes float-shape-smooth {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  20% { transform: translate3d(15px, -20px, 0) rotate(5deg); }
  40% { transform: translate3d(-10px, -35px, 0) rotate(-3deg); }
  60% { transform: translate3d(-20px, -25px, 0) rotate(4deg); }
  80% { transform: translate3d(10px, -15px, 0) rotate(-2deg); }
}

/* === Hero image animation محسّن === */
.hero-image-wrap::before {
  animation: blob-morph 14s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

@keyframes blob-morph {
  0%, 100% {
    transform: rotate(0deg) scale(1);
    border-radius: 60% 40% 50% 50% / 50% 60% 40% 50%;
  }
  25% {
    transform: rotate(90deg) scale(1.05);
    border-radius: 40% 60% 70% 30% / 60% 40% 60% 40%;
  }
  50% {
    transform: rotate(180deg) scale(1.08);
    border-radius: 50% 50% 40% 60% / 70% 30% 60% 40%;
  }
  75% {
    transform: rotate(270deg) scale(1.03);
    border-radius: 60% 40% 60% 40% / 40% 60% 50% 50%;
  }
}

/* === Card hover lift أقوى === */
.team-card,
.feature-item,
.program-card {
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.team-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 20px 40px -10px rgba(79, 182, 232, 0.25);
}

.team-avatar {
  transition: transform 0.5s var(--ease-bounce);
}

.team-card:hover .team-avatar {
  transform: scale(1.08) rotate(-5deg);
}

/* === Gallery item glow on hover === */
.gallery-item {
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.gallery-item:hover {
  transform: scale(1.04) translateY(-6px);
  box-shadow: 0 25px 50px -15px rgba(44, 62, 80, 0.4);
  z-index: 5;
}

/* === Activity card glow === */
.activity-card {
  transition: transform 0.5s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.activity-card:hover {
  transform: scale(1.05) translateY(-8px);
  box-shadow: 0 25px 50px -15px rgba(79, 182, 232, 0.45);
  z-index: 5;
}

/* === Reading progress bar === */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: var(--gradient-warm);
  z-index: 9999;
  transition: width 0.1s linear;
  box-shadow: 0 2px 10px rgba(255, 200, 87, 0.5);
}

/* === Magnetic button effect base === */
.btn,
.nav-link {
  transform-origin: center;
}

/* === Header animation fade-in على load === */
.header {
  animation: header-slide-down 0.8s var(--ease-out) both;
}

@keyframes header-slide-down {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* === Smooth scroll-snap للـ testimonials على الموبايل === */
@media (max-width: 768px) {
  .testimonials-track {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .testimonials-track::-webkit-scrollbar { display: none; }
  .testimonial-card { scroll-snap-align: center; }
}

/* === Preloader أسرع === */
.preloader { transition: opacity 0.4s ease, visibility 0.4s ease; }

/* === Hero content text reveal === */
.hero-content h1,
.hero-content .hero-tagline,
.hero-content .hero-description,
.hero-content .hero-ctas {
  animation: fade-up 0.8s var(--ease-out) both;
}

.hero-content h1 { animation-delay: 0.1s; }
.hero-content .hero-tagline { animation-delay: 0.3s; }
.hero-content .hero-description { animation-delay: 0.5s; }
.hero-content .hero-ctas { animation-delay: 0.7s; }

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === Section title gradient على hover === */
.section-title {
  background: linear-gradient(135deg, var(--text-dark) 0%, var(--primary-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* === Optimize image loading === */
img {
  content-visibility: auto;
}

img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.5s ease;
}

img[loading="lazy"].loaded {
  opacity: 1;
}
