/* ═══════════════════════════════════════════════════════════
   AFKAR.PLUS — Redesign Prototype v2
   Cosmic / editorial. Vanilla CSS, no framework.
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;500;700;800;900&family=Playfair+Display:wght@600;700;800&family=Inter:wght@400;500;600;700;800&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Tajawal', 'Inter', sans-serif;
  background: #160534;
  color: #f5f0e8;
  overflow-x: hidden;
  direction: rtl;
}

:root {
  --gold:        #D4B85C;
  --gold-bright: #F0D67A;
  --purple:      #9F5BFF;
  --purple-deep: #3D1670;
  --aurora-pink: #E879F9;
  --aurora-cyan: #67E8F9;
  --bg-deep:     #160534;
  --txt:         rgba(248,244,236,0.95);
  --txt-dim:     rgba(248,244,236,0.65);
}

/* ═══════════════════════════════════════════════════════════
   COSMIC BACKGROUND — clean, brighter, aurora-tinted
   ═══════════════════════════════════════════════════════════ */
.cosmic-bg {
  position: fixed; inset: 0; z-index: -3;
  background:
    /* Lighter dark overlay, leaves more nebula visible */
    linear-gradient(180deg, rgba(22,5,52,0.20) 0%, rgba(22,5,52,0.45) 60%, rgba(22,5,52,0.65) 100%),
    url('../assets/img/bg-cosmic-clean.webp') center / cover no-repeat;
  animation: nebula-drift 60s ease-in-out infinite;
  /* Subtle saturation/brightness boost on the underlying nebula */
  filter: saturate(1.2) brightness(1.15);
}
@keyframes nebula-drift {
  0%, 100% { background-position: center, center; transform: scale(1); }
  50%      { background-position: center, center 20px; transform: scale(1.04); }
}

/* Aurora glow layer — magenta + cyan accent zones for color life */
.aurora {
  position: fixed; inset: 0; z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 40% at 15% 25%, rgba(232,121,249,0.16) 0%, transparent 60%),
    radial-gradient(ellipse 50% 35% at 85% 70%, rgba(103,232,249,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(159,91,255,0.18) 0%, transparent 65%);
  animation: aurora-shift 18s ease-in-out infinite;
  mix-blend-mode: screen;
}
@keyframes aurora-shift {
  0%, 100% { opacity: 0.7; transform: translate3d(0, 0, 0); }
  33%      { opacity: 1;   transform: translate3d(20px, -10px, 0); }
  66%      { opacity: 0.85;transform: translate3d(-15px, 8px, 0); }
}

/* Twinkling stars layer — denser, brighter */
.stars {
  position: fixed; inset: 0; z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(1.8px 1.8px at 12% 18%, rgba(255,255,255,1), transparent),
    radial-gradient(1.2px 1.2px at 28% 72%, rgba(255,255,255,0.85), transparent),
    radial-gradient(1.8px 1.8px at 65% 15%, rgba(240,214,122,0.85), transparent),
    radial-gradient(1.2px 1.2px at 82% 48%, rgba(255,255,255,0.9), transparent),
    radial-gradient(1.2px 1.2px at 45% 88%, rgba(255,255,255,0.7), transparent),
    radial-gradient(1.8px 1.8px at 92% 78%, rgba(240,214,122,0.7), transparent),
    radial-gradient(1.2px 1.2px at 8%  55%, rgba(255,255,255,0.75), transparent),
    radial-gradient(1.2px 1.2px at 70% 92%, rgba(255,255,255,0.8), transparent),
    radial-gradient(1.5px 1.5px at 38% 12%, rgba(232,121,249,0.6), transparent),
    radial-gradient(1.2px 1.2px at 18% 42%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1.5px 1.5px at 95% 25%, rgba(103,232,249,0.6), transparent),
    radial-gradient(1px 1px at 55% 35%, rgba(255,255,255,0.55), transparent),
    radial-gradient(1px 1px at 22% 62%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 75% 8%, rgba(255,255,255,0.55), transparent);
  animation: twinkle 5s ease-in-out infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: 0.7; }
  50%      { opacity: 1; }
}

/* ═══════════════════════════════════════════════════════════
   ENTRANCE / SCROLL-REVEAL
   ═══════════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* Hero loads in immediately */
.hero-text { animation: fadeUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) both; }
.reel-stage { animation: fadeUp 1.4s 0.3s cubic-bezier(0.16, 1, 0.3, 1) both; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════════════
   NAV
   ═══════════════════════════════════════════════════════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 18px 48px;
  display: flex; align-items: center; justify-content: space-between;
  backdrop-filter: blur(14px);
  background: rgba(6,0,16,0.6);
  border-bottom: 1px solid rgba(201,168,76,0.12);
  animation: fadeDown 0.8s ease both;
}
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-100%); }
  to   { opacity: 1; transform: translateY(0); }
}
.nav-logo {
  font-family: 'Inter', sans-serif;
  font-weight: 800; font-size: 18px;
  letter-spacing: 3px; color: #fff;
}
.nav-logo span { color: var(--gold); }
.nav-links { display: flex; gap: 36px; }
.nav-links a {
  font-family: 'Tajawal', sans-serif;
  font-size: 15px; color: var(--txt-dim);
  text-decoration: none; transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px;
  left: 50%; width: 0; height: 1px;
  background: var(--gold); transition: width 0.3s, left 0.3s;
}
.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { width: 100%; left: 0; }
.nav-cta {
  background: linear-gradient(135deg, var(--gold), var(--gold-bright));
  color: var(--bg-deep);
  padding: 10px 22px; border-radius: 100px;
  font-weight: 700; font-size: 14px;
  text-decoration: none;
  transition: transform 0.3s, box-shadow 0.3s;
}
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(228,201,106,0.4);
}

/* ═══════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 120px 48px 80px;
  display: flex; flex-direction: column; align-items: center;
  gap: 60px;
}

.hero-text {
  text-align: center;
  max-width: 920px;
  margin-top: 24px;
}
.hero-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 13px; font-weight: 600;
  letter-spacing: 5px; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}
.hero-title {
  font-family: 'Tajawal', sans-serif;
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 900; line-height: 1.05;
  letter-spacing: -2px;
  background: linear-gradient(135deg, #fff 30%, var(--gold-bright) 70%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 24px;
}
.hero-sub {
  font-family: 'Tajawal', sans-serif;
  font-size: 22px; font-weight: 400; line-height: 1.6;
  color: var(--txt-dim);
}

/* ─── Reel slider ──────────────────────────────────────── */
.reel-stage {
  width: 100%;
  max-width: 1280px;
  position: relative;
  height: 580px;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
}
.reel-track {
  position: absolute; top: 0; left: 0;
  display: flex; gap: 28px;
  height: 100%;
  will-change: transform;
}
.reel-card {
  flex-shrink: 0;
  width: 320px;
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  background: #0a0014;
  box-shadow: 0 20px 60px rgba(124,58,237,0.25), 0 0 0 1px rgba(201,168,76,0.18);
  transform: scale(0.88);
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.7s ease;
}
.reel-card.active {
  transform: scale(1);
  box-shadow: 0 30px 80px rgba(124,58,237,0.5), 0 0 0 1px rgba(228,201,106,0.5), 0 0 80px rgba(228,201,106,0.15);
}
.reel-card video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
/* Subtle radial glow on active card */
.reel-card.active::before {
  content: '';
  position: absolute; inset: -2px;
  border-radius: 30px;
  background: linear-gradient(135deg, var(--gold), var(--purple), var(--gold-bright));
  z-index: -1;
  opacity: 0.4;
  filter: blur(10px);
  animation: shimmer-glow 3s ease-in-out infinite;
}
@keyframes shimmer-glow {
  0%, 100% { opacity: 0.3; }
  50%      { opacity: 0.5; }
}

/* All content sections sit ABOVE the scroll-tied logo (z=0) */
.hero, .stats, .services, .our-work, .about, .contact, .footer {
  position: relative;
  z-index: 2;
}

/* ═══════════════════════════════════════════════════════════
   STATS
   ═══════════════════════════════════════════════════════════ */
.stats {
  padding: 80px 48px;
  max-width: 1280px;
  margin: 0 auto;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  border-top: 1px solid rgba(201,168,76,0.18);
  border-bottom: 1px solid rgba(201,168,76,0.18);
  padding: 56px 0;
}
.stat-cell { text-align: center; }
.stat-num {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
}
.stat-label {
  font-family: 'Tajawal', sans-serif;
  font-size: 15px; color: var(--txt-dim);
  letter-spacing: 1px;
}

/* ═══════════════════════════════════════════════════════════
   SCROLL-TIED LOGO (Phase 1) — Planet + Tilted Orbits + Trails
   Saturn-rings effect: each orbit tilted in 3D, multiple moons
   per orbit, each moon has trailing ghost copies behind it.
   Planet floats and slowly rotates like Earth.
   ═══════════════════════════════════════════════════════════ */
.scroll-logo-planet {
  position: fixed;
  top: 50%; left: 50%;
  width: 760px; height: 760px;
  margin-left: -380px; margin-top: -380px;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  perspective: 1400px;
  perspective-origin: 50% 40%;
  transform-style: preserve-3d;  /* depth-sort planet vs. moons in 3D */
}

.planet-halo {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(240,214,122,0.20) 0%, rgba(159,91,255,0.12) 25%, transparent 55%);
  filter: blur(10px);
  /* Push behind the orbital plane so the halo never covers a back-side moon */
  transform: translateZ(-250px);
}

/* Central planet — sits at z=0 so half the orbit passes in front of it,
   half behind. No z-index (z-index is ignored inside preserve-3d). */
.planet-logo {
  position: absolute;
  top: 50%; left: 50%;
  width: 240px; height: 178px;
  margin-left: -120px; margin-top: -89px;
  background: url('../assets/img/logo-aplus.png') center / contain no-repeat;
  filter: drop-shadow(0 0 30px rgba(240,214,122,0.6)) drop-shadow(0 0 70px rgba(159,91,255,0.45));
  animation:
    planet-float    7s   ease-in-out infinite,
    planet-rotate   80s  linear      infinite,
    planet-breathe  5.5s ease-in-out infinite;
}
@keyframes planet-float   { 0%, 100% { translate: 0 0;     } 50% { translate: 0 -10px; } }
@keyframes planet-rotate  { from     { rotate:  0deg;      } to  { rotate: 360deg;     } }
@keyframes planet-breathe { 0%, 100% { scale:    1;        } 50% { scale:    1.05;     } }

/* Orbit system container — child of planet container. Establishes 3D context. */
.orbit-system {
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  transform-style: preserve-3d;
}

/* Each orbit is a tilted plane. preserve-3d so children render in 3D.
   Tilt set inline by JS via --tilt custom property. */
.orbit-tilt {
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 0;
  transform-style: preserve-3d;
  transform: rotateX(var(--tilt, 70deg)) rotateZ(var(--zrot, 0deg));
}

/* Faint elliptical guide line for each orbit — 1 per orbit-tilt */
.orbit-guide {
  position: absolute;
  top: 50%; left: 50%;
  border-radius: 50%;
  border: 1px solid rgba(240,214,122, 0.08);
  pointer-events: none;
}

/* The rotator is an empty element that rotates around the orbit-tilt's Z axis
   (which is the tilted plane's normal). The moon at top of rotator traces
   the tilted ellipse. animation-delay (negative) staggers ghost trails. */
.rotator {
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 0;
  transform-style: preserve-3d;
  animation-name: rotate-z;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}
@keyframes rotate-z { to { transform: rotateZ(360deg); } }
@keyframes rotate-z-rev { to { transform: rotateZ(-360deg); } }

/* Moon and trails — positioned at top of rotator. */
.moon, .trail {
  position: absolute;
  background: url('../assets/img/logo-aplus.png') center / contain no-repeat;
}
.moon {
  filter: drop-shadow(0 0 8px rgba(240,214,122,0.55));
}
.trail {
  /* dimmer + blurred = comet trail */
  filter: drop-shadow(0 0 4px rgba(240,214,122,0.4)) blur(1.5px);
}

.scroll-logo-planet.peak .planet-logo {
  filter: drop-shadow(0 0 45px rgba(240,214,122,0.85)) drop-shadow(0 0 110px rgba(159,91,255,0.7));
}

@media (max-width: 768px) {
  .scroll-logo-planet { width: 520px; height: 520px; margin-left: -260px; margin-top: -260px; }
  .planet-logo { width: 165px; height: 122px; margin-left: -82px; margin-top: -61px; }
}

/* ═══════════════════════════════════════════════════════════
   SERVICES
   ═══════════════════════════════════════════════════════════ */
.services {
  padding: 120px 48px 60px;
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
}
.section-eyebrow {
  font-family: 'Inter', sans-serif;
  font-weight: 700; font-size: 13px;
  letter-spacing: 5px; text-transform: uppercase;
  color: var(--gold); text-align: center; margin-bottom: 18px;
}
.section-title {
  font-family: 'Tajawal', sans-serif;
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 900; text-align: center;
  margin-bottom: 16px; line-height: 1.15;
  background: linear-gradient(135deg, #fff 40%, var(--gold-bright));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section-sub {
  font-family: 'Tajawal', sans-serif;
  text-align: center; max-width: 640px;
  margin: 0 auto 60px; color: var(--txt-dim);
  font-size: 18px; line-height: 1.6;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
}
.svc-card {
  padding: 40px 32px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(159,91,255,0.18), rgba(159,91,255,0.08));
  border: 1px solid rgba(212,184,92,0.25);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s, box-shadow 0.5s, background 0.5s;
  position: relative; overflow: hidden;
  cursor: pointer;
  backdrop-filter: blur(6px);
}
.svc-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0; transition: opacity 0.4s;
}
.svc-card:hover {
  transform: translateY(-8px);
  border-color: rgba(240,214,122,0.6);
  background: linear-gradient(180deg, rgba(159,91,255,0.28), rgba(232,121,249,0.12));
  box-shadow: 0 24px 60px rgba(159,91,255,0.45), 0 0 40px rgba(232,121,249,0.15);
}
.svc-card:hover::before { opacity: 1; }
.svc-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: rgba(201,168,76,0.14);
  border: 1px solid rgba(201,168,76,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 24px;
  transition: transform 0.4s, background 0.4s;
}
.svc-card:hover .svc-icon {
  transform: scale(1.1) rotate(-5deg);
  background: rgba(228,201,106,0.25);
}
.svc-name {
  font-family: 'Tajawal', sans-serif;
  font-weight: 700; font-size: 21px;
  margin-bottom: 12px;
}
.svc-desc {
  font-family: 'Tajawal', sans-serif;
  font-size: 15px; line-height: 1.7;
  color: var(--txt-dim);
}

/* ═══════════════════════════════════════════════════════════
   OUR WORK / PORTFOLIO
   ═══════════════════════════════════════════════════════════ */
.our-work {
  padding: 140px 48px 80px;
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 50px;
}
.work-card {
  border-radius: 18px;
  padding: 28px;
  background: linear-gradient(180deg, rgba(22,5,52,0.55), rgba(159,91,255,0.10));
  border: 1px solid rgba(212,184,92,0.22);
  backdrop-filter: blur(8px);
  transition: transform 0.4s, border-color 0.4s, box-shadow 0.4s;
}
.work-card:hover {
  transform: translateY(-4px);
  border-color: rgba(228,201,106,0.4);
  box-shadow: 0 16px 40px rgba(124,58,237,0.3);
}
.work-card h3 { font-size: 19px; margin-bottom: 8px; }
.work-card p  { font-size: 14px; color: var(--txt-dim); line-height: 1.6; }

/* ═══════════════════════════════════════════════════════════
   TRAIL ZONE — wraps "our-work" + about + contact + footer
   so flying logos can span the entire bottom of the site.
   ═══════════════════════════════════════════════════════════ */
.trail-zone {
  position: relative;
}

/* ═══════════════════════════════════════════════════════════
   FLYING LOGOS (Phase 2) — animated rotation + bob inside
   parallax wrapper. Wrapper does scroll translate, child does
   CSS animation — no transform conflict.
   ═══════════════════════════════════════════════════════════ */
.flying-logos {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: visible;
  z-index: 0;
}
.fly-logo-wrap {
  position: absolute;
  will-change: transform;
}
.fly-logo {
  width: 100%; height: 100%;
  background: url('../assets/img/logo-aplus.png') center / contain no-repeat;
  filter: drop-shadow(0 0 10px rgba(228,201,106,0.4));
  animation: fly-spin var(--spin-dur, 24s) linear infinite, fly-bob var(--bob-dur, 4s) ease-in-out infinite;
  transform-origin: center;
}
@keyframes fly-spin {
  from { transform: rotate(var(--rot-from, 0deg)); }
  to   { transform: rotate(calc(var(--rot-from, 0deg) + 360deg)); }
}
@keyframes fly-bob {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -14px; }
}

/* ═══════════════════════════════════════════════════════════
   ABOUT
   ═══════════════════════════════════════════════════════════ */
.about {
  padding: 120px 48px;
  max-width: 1280px;
  margin: 0 auto;
}
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-text h2 {
  font-family: 'Tajawal', sans-serif;
  font-size: clamp(36px, 4.2vw, 52px);
  font-weight: 900; line-height: 1.2;
  margin-bottom: 28px;
  background: linear-gradient(135deg, #fff 40%, var(--gold-bright));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.about-text p {
  font-family: 'Tajawal', sans-serif;
  font-size: 18px; line-height: 1.8;
  color: var(--txt-dim);
  margin-bottom: 20px;
}
.about-mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 28px;
}
.about-mini-stat {
  padding: 24px 18px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(159,91,255,0.18), rgba(159,91,255,0.06));
  border: 1px solid rgba(212,184,92,0.28);
  text-align: center;
  backdrop-filter: blur(6px);
}
.about-mini-stat .num {
  font-family: 'Inter', sans-serif;
  font-weight: 800; font-size: 32px;
  color: var(--gold-bright);
}
.about-mini-stat .lbl {
  font-size: 13px; color: var(--txt-dim);
  margin-top: 6px;
}

.about-visual {
  aspect-ratio: 1 / 1;
  border-radius: 24px;
  background:
    radial-gradient(circle at 30% 30%, rgba(228,201,106,0.25), transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(124,58,237,0.35), transparent 55%),
    url('../assets/img/bg-cosmic-clean.webp') center / cover;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(201,168,76,0.2);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.about-visual::before {
  content: '';
  position: absolute; inset: 0;
  background: url('../assets/img/logo-aplus.png') center / 65% no-repeat;
  filter: drop-shadow(0 0 40px rgba(240,214,122,0.6));
  animation: about-logo-float 5s ease-in-out infinite;
}
@keyframes about-logo-float {
  0%, 100% { transform: translateY(0) scale(1);     filter: drop-shadow(0 0 35px rgba(240,214,122,0.5)); }
  50%      { transform: translateY(-20px) scale(1.02); filter: drop-shadow(0 18px 50px rgba(240,214,122,0.75)); }
}

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ═══════════════════════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════════════════════ */
.contact {
  padding: 120px 48px;
  max-width: 1280px;
  margin: 0 auto;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  margin-top: 56px;
}
.contact-card {
  display: block; text-decoration: none; color: inherit;
  padding: 36px 28px;
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(159,91,255,0.18), rgba(22,5,52,0.5));
  border: 1px solid rgba(212,184,92,0.28);
  text-align: center;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s, box-shadow 0.4s, background 0.4s;
  backdrop-filter: blur(8px);
}
.contact-card:hover {
  transform: translateY(-6px);
  border-color: rgba(240,214,122,0.7);
  background: linear-gradient(160deg, rgba(159,91,255,0.32), rgba(232,121,249,0.12));
  box-shadow: 0 20px 50px rgba(159,91,255,0.5), 0 0 30px rgba(232,121,249,0.18);
}
.contact-icon-big {
  font-size: 38px; margin-bottom: 16px;
}
.contact-card h3 {
  font-family: 'Tajawal', sans-serif;
  font-size: 18px; font-weight: 700;
  margin-bottom: 8px;
}
.contact-card .detail {
  font-size: 14px; color: var(--txt-dim);
  direction: ltr; unicode-bidi: isolate;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
.footer {
  padding: 60px 48px;
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;
  border-top: 1px solid rgba(201,168,76,0.12);
  color: var(--txt-dim);
  font-size: 14px;
  position: relative;
  z-index: 3;
}

/* ─── Mobile ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav { padding: 16px 20px; }
  .nav-links { display: none; }
  .hero { padding: 100px 20px 60px; }
  .reel-stage { height: 480px; }
  .reel-card { width: 240px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .services, .our-work { padding-left: 20px; padding-right: 20px; }
  .scroll-logo { width: 180px; height: 180px; }
}
