/* ============================================
   RAMADAN EL-GOHARY — LANDING PAGE
   ============================================
   1. Tokens (incl. multi-color accent palette)
   2. Reset & base
   3. Utilities
   4. Components
   5. Sections (nav, hero, work/marquee, services, about, contact, footer)
   6. Lightbox
   7. Language switching
   8. Responsive
   ============================================ */

/* ─────────── 1. TOKENS ─────────── */
:root {
  /* Backgrounds — deeper, more contrast */
  --bg-primary:     #0A0A0F;
  --bg-secondary:   #12121A;
  --bg-card:        #16161E;
  --bg-elev:        #1E1E28;

  /* Brand — vivid orange (more saturated than before) */
  --accent:         #FF6B1A;
  --accent-hover:   #FF8533;
  --accent-glow:    rgba(255, 107, 26, 0.22);
  --accent-soft:    rgba(255, 107, 26, 0.10);

  /* Per-service-card accents (vivid, contrasted) */
  --c-orange:  #FF6B1A;
  --c-violet:  #8B5CF6;
  --c-cyan:    #06B6D4;
  --c-pink:    #EC4899;
  --c-emerald: #10B981;
  --c-amber:   #F59E0B;

  /* Text */
  --text-primary:   #FFFFFF;
  --text-secondary: #C4C4CC;
  --text-muted:     #7A7A88;

  --border:         rgba(255, 255, 255, 0.08);
  --border-accent:  rgba(255, 107, 26, 0.30);

  --font-en:        'Space Grotesk', system-ui, sans-serif;
  --font-ar:        'Cairo', system-ui, sans-serif;

  --max-w:          1240px;
  --pad-x:          clamp(20px, 4vw, 56px);
  --radius:         10px;
  --radius-lg:      18px;
  --ease:           cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ─────────── 2. RESET & BASE ─────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-en);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
iframe { border: 0; display: block; }

/* Subtle ambient glow on page background — adds vibrancy without
   competing with the showreel video. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(139, 92, 246, 0.06), transparent 50%),
    radial-gradient(ellipse at 20% 80%, rgba(255, 107, 26, 0.06), transparent 50%);
}

/* ─────────── 3. UTILITIES ─────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ─────────── 4. COMPONENTS ─────────── */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.25s var(--ease);
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 28px -10px var(--accent);
}
.btn--primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -8px var(--accent);
}
.btn--outline {
  border-color: var(--accent);
  color: var(--accent);
}
.btn--outline:hover {
  background: var(--accent-glow);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -10px var(--accent);
}
.btn--block { width: 100%; }
.btn__icon { font-size: 1.1em; line-height: 1; color: var(--accent); }
.btn--primary .btn__icon { color: #fff; }

/* Stat card */
.stat-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.stat-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-accent);
}
.stat-card__num {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 1.7rem;
  color: var(--accent);
  margin-bottom: 4px;
  line-height: 1;
}
.stat-card__label {
  color: var(--text-secondary);
  font-size: 0.88rem;
}

/* ─────────── 5. SECTIONS ─────────── */

.section { padding: clamp(60px, 9vw, 130px) 0; }

.section__label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-en);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  margin-bottom: 28px;
}
.section__label .bar {
  width: 28px; height: 2px;
  background: var(--accent);
  display: inline-block;
}
.section__label--center { display: flex; justify-content: center; }

.section__title {
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.2;
  margin-bottom: 24px;
  max-width: 760px;
  letter-spacing: -0.01em;
}
.section__title--lg {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 32px;
}

.divider {
  border: 0;
  height: 1px;
  max-width: var(--max-w);
  margin: 0 auto;
  background: linear-gradient(to right, transparent, var(--border-accent), transparent);
}

/* ─────────── NAVIGATION ─────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.nav.is-scrolled {
  background: rgba(10, 10, 15, 0.92);
  border-bottom-color: var(--border);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}
.nav__logo {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--accent);
  letter-spacing: 0.01em;
}
.nav__links {
  display: flex;
  gap: clamp(20px, 2.4vw, 36px);
  align-items: center;
}
.nav__links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s var(--ease);
}
.nav__links a:hover { color: var(--accent); }

.nav__actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang-toggle {
  font-family: var(--font-en);
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  border: 1px solid var(--border-accent);
  border-radius: 999px;
  color: var(--text-primary);
  transition: all 0.25s var(--ease);
  letter-spacing: 0.04em;
  line-height: 1;
}
.lang-toggle:hover {
  background: var(--accent-glow);
  border-color: var(--accent);
}
.lang-toggle__current { color: var(--accent); }
.lang-toggle__slash   { color: var(--text-muted); margin: 0 2px; }
.lang-toggle__other   { color: var(--text-secondary); }

.nav__toggle {
  display: none;
  width: 40px; height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav__toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-primary);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─────────── HERO ─────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  overflow: hidden;
  background: var(--bg-primary);
}
.hero__video {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero__video iframe {
  position: absolute;
  top: 50%; left: 50%;
  width: 100vw;
  height: 56.25vw;
  min-height: 100vh;
  min-width: 177.78vh;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.hero__glass {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg,
      rgba(10, 10, 15, 0.55) 0%,
      rgba(10, 10, 15, 0.35) 45%,
      rgba(10, 10, 15, 0.90) 100%
    );
  backdrop-filter: blur(2px) saturate(0.9);
  -webkit-backdrop-filter: blur(2px) saturate(0.9);
}
.hero__grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0 0.7 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.hero__inner {
  position: relative;
  z-index: 3;
  padding-block: 120px 100px;
  max-width: 900px;
}
.hero__text {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}
.eyebrow {
  font-family: var(--font-en);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.22em;
}

/* Name — single line, scales with viewport */
.hero__name {
  font-weight: 700;
  /* clamp keeps it big but never wraps on a normal desktop */
  font-size: clamp(2rem, 6.5vw, 5.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
}

.hero__role {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--text-primary);
  font-weight: 500;
  margin-top: 4px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6);
}

/* HOOK — the headline-grade line that makes the visitor scroll */
.hero__hook {
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  color: var(--text-primary);
  font-weight: 500;
  font-style: italic;
  line-height: 1.45;
  margin-top: 10px;
  max-width: 640px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6);
  border-inline-start: 3px solid var(--accent);
  padding-inline-start: 18px;
}

.hero__tagline {
  color: var(--text-secondary);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 4px;
}

.hero__cta {
  display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px;
}

.hero__scroll-hint {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex; flex-direction: column; align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-family: var(--font-en);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
}
.hero__scroll-line {
  width: 1px; height: 36px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scroll-pulse 2.4s ease-in-out infinite;
}
@keyframes scroll-pulse {
  0%, 100% { opacity: 0.4; transform: scaleY(0.7); }
  50%      { opacity: 1;   transform: scaleY(1); }
}

/* ─────────── WORK / MARQUEE ─────────── */
.work-section {
  padding: clamp(60px, 9vw, 130px) 0;
  overflow: hidden;
}
.work__intro {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 640px;
  margin-bottom: 44px;
}

.marquee {
  position: relative;
  overflow: hidden;
  padding: 10px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
}
.marquee + .marquee { margin-top: 22px; }

/*
 * --marquee-distance is set in JS to the exact pixel width of one
 * original set + its trailing gap. The animation translates by
 * exactly that distance, so when it loops the cloned items land
 * pixel-perfectly where the originals started.
 */
.marquee__track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: marquee-scroll linear infinite;
  /* JS sets --marquee-distance and animation-duration per track */
  will-change: transform;
}
.marquee__track--reverse {
  animation-direction: reverse;
}
@keyframes marquee-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(calc(-1 * var(--marquee-distance, 50%)), 0, 0); }
}
/* NOTE: per the latest request, the marquee no longer pauses on hover. */

.reel-card {
  flex-shrink: 0;
  background: var(--bg-card);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.reel-card[data-clickable] { cursor: pointer; }
.reel-card[data-clickable]:hover {
  transform: translateY(-3px);
  border-color: var(--border-accent);
  box-shadow: 0 14px 30px -16px var(--accent);
}
.reel-card--portrait  { width: 240px; }
.reel-card--landscape { width: 460px; }

.reel-card__media {
  position: relative;
  width: 100%;
  background: #000;
  overflow: hidden;
}
.reel-card--portrait  .reel-card__media { aspect-ratio: 9 / 16; }
.reel-card--landscape .reel-card__media { aspect-ratio: 16 / 9; }

.reel-card__media img,
.reel-card__media video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.reel-card__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    repeating-linear-gradient(
      45deg,
      var(--bg-elev) 0,
      var(--bg-elev) 12px,
      var(--bg-card) 12px,
      var(--bg-card) 24px
    );
  color: var(--accent);
  font-family: var(--font-en);
  font-size: 1.8rem;
  font-weight: 600;
  opacity: 0.5;
}

/* ─────────── SERVICES (per-card vivid accent) ─────────── */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

/* Assign --card-c per data-accent value.
   Then the card uses var(--card-c) everywhere instead of --accent. */
.service-card                            { --card-c: var(--c-orange); }
.service-card[data-accent="orange"]      { --card-c: var(--c-orange); }
.service-card[data-accent="violet"]      { --card-c: var(--c-violet); }
.service-card[data-accent="cyan"]        { --card-c: var(--c-cyan); }
.service-card[data-accent="pink"]        { --card-c: var(--c-pink); }
.service-card[data-accent="emerald"]     { --card-c: var(--c-emerald); }
.service-card[data-accent="amber"]       { --card-c: var(--c-amber); }

.service-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 30px 28px;
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 10px;
  isolation: isolate;
}
.service-card__glow {
  position: absolute;
  top: -40%;
  right: -20%;
  width: 320px;
  height: 320px;
  /* uses per-card color */
  background: radial-gradient(circle, color-mix(in srgb, var(--card-c) 35%, transparent), transparent 65%);
  opacity: 0.35;
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease);
  pointer-events: none;
  z-index: 0;
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--card-c) 40%, transparent);
  box-shadow: 0 24px 50px -20px color-mix(in srgb, var(--card-c) 45%, transparent);
}
.service-card:hover .service-card__glow {
  opacity: 1;
  transform: scale(1.15);
}

.service-card__icon-wrap {
  position: relative;
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border-radius: 14px;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--card-c) 22%, transparent),
    color-mix(in srgb, var(--card-c) 5%, transparent)
  );
  border: 1px solid color-mix(in srgb, var(--card-c) 35%, transparent);
  z-index: 1;
}
.service-card__icon {
  font-size: 1.6rem;
  color: var(--card-c);
  line-height: 1;
  position: relative;
  z-index: 2;
  transition: transform 0.5s var(--ease);
}
.service-card__orbit {
  position: absolute;
  inset: -8px;
  border-radius: 18px;
  border: 1px dashed var(--card-c);
  opacity: 0;
  transform: scale(0.7) rotate(0deg);
  transition: opacity 0.4s var(--ease), transform 0.45s var(--ease);
  pointer-events: none;
}
.service-card__orbit::before,
.service-card__orbit::after {
  content: "";
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--card-c);
  box-shadow: 0 0 12px var(--card-c);
}
.service-card__orbit::before { top: -3px; left: 50%; transform: translateX(-50%); }
.service-card__orbit::after  { bottom: -3px; left: 50%; transform: translateX(-50%); opacity: 0.6; }

.service-card:hover .service-card__orbit {
  opacity: 0.85;
  transform: scale(1) rotate(0deg);
  animation: orbit-spin 7s linear infinite;
}
.service-card:hover .service-card__icon {
  transform: scale(1.08);
}
@keyframes orbit-spin { to { transform: scale(1) rotate(360deg); } }

.service-card__title {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--card-c);   /* title in the card's accent color, like screenshot 3 */
  line-height: 1.3;
  position: relative;
  z-index: 1;
}
.service-card__desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-top: 4px;
  position: relative;
  z-index: 1;
}

/* ─────────── ABOUT ─────────── */
.about {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: clamp(80px, 10vw, 140px) 0;
  background: var(--bg-primary);
}
.about__bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scaleX(-1);   /* LTR — body on left */
  z-index: 0;
}
.about__tint {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(10, 10, 15, 0.25) 0%,
    rgba(10, 10, 15, 0.45) 100%
  );
}
.about__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  gap: 40px;
}
.about__glass {
  grid-column: 2;          /* LTR: right. RTL flips to left automatically. */
  background: rgba(10, 10, 15, 0.30);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 3.5vw, 44px) clamp(26px, 3vw, 42px);
  box-shadow:
    0 24px 60px -20px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.about__text {
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--text-secondary);
  margin-bottom: 28px;
}
.about__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

/* ─────────── CONTACT ─────────── */
.contact {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact__headline {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.contact__buttons {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 24px;
}
.contact__socials {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
}
.social {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.25s var(--ease);
}
.social:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -10px var(--accent);
}

/* ─────────── FOOTER ─────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  background: var(--bg-secondary);
  position: relative;
}
.footer::before {
  content: "";
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent), transparent);
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer__logo {
  font-family: var(--font-en);
  font-weight: 700;
  color: var(--accent);
  font-size: 1.1rem;
}
.footer__copy { font-size: 0.85rem; color: var(--text-secondary); text-align: center; }
.footer__tag { font-size: 0.9rem; color: var(--text-secondary); font-style: italic; }

/* ============================================
   6. LIGHTBOX
   ============================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox.is-open {
  display: flex;
  animation: lightbox-fade 0.25s var(--ease);
}
@keyframes lightbox-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(18px) saturate(0.9);    /* the requested 50% blur */
  -webkit-backdrop-filter: blur(18px) saturate(0.9);
}
.lightbox__frame {
  position: relative;
  z-index: 1;
  width: 70vw;
  height: 70vh;
  max-width: 1400px;
  background: #000;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox__media {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox__media video,
.lightbox__media img,
.lightbox__media iframe {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.lightbox__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.20);
  transform: scale(1.08);
}

/* ============================================
   7. LANGUAGE SWITCHING
   ============================================ */
html[lang="ar"] body,
html[lang="ar"] .hero__name,
html[lang="ar"] .section__title,
html[lang="ar"] .contact__headline,
html[lang="ar"] .service-card__title,
html[lang="ar"] .nav__links a,
html[lang="ar"] .btn:not(.lang-toggle),
html[lang="ar"] .hero__role,
html[lang="ar"] .hero__hook,
html[lang="ar"] .hero__tagline,
html[lang="ar"] .about__text,
html[lang="ar"] .work__intro,
html[lang="ar"] .stat-card__label,
html[lang="ar"] .service-card__desc,
html[lang="ar"] .footer__copy,
html[lang="ar"] .footer__tag {
  font-family: var(--font-ar);
}

html[lang="ar"] .nav__logo,
html[lang="ar"] .footer__logo,
html[lang="ar"] .lang-toggle,
html[lang="ar"] .stat-card__num,
html[lang="ar"] .section__label,
html[lang="ar"] .eyebrow,
html[lang="ar"] .social,
html[lang="ar"] .hero__scroll-hint {
  font-family: var(--font-en);
}

html[lang="ar"] .hero__tagline { letter-spacing: 0.03em; }
html[lang="ar"] .hero__hook { font-style: normal; }
html[lang="ar"] .hero__name { line-height: 1.15; white-space: normal; }
html[lang="ar"] .footer__tag { font-style: normal; }

html[dir="rtl"] .about__bg-img { transform: none; }

/* ============================================
   8. RESPONSIVE
   ============================================ */
@media (max-width: 1199px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .about__inner { grid-template-columns: 1fr 1.1fr; }
}

@media (max-width: 900px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed;
    top: 72px; right: 0; left: 0;
    flex-direction: column;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 28px var(--pad-x);
    gap: 22px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-150%);
    transition: transform 0.4s var(--ease);
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__links a { font-size: 1.05rem; }

  .about__inner { grid-template-columns: 1fr; }
  .about__glass { grid-column: 1; }

  .lightbox__frame { width: 92vw; height: 60vh; }
}

@media (max-width: 767px) {
  .hero__inner { padding-block: 110px 80px; }

  /* The single-line name rule needs to give way on phones */
  .hero__name { white-space: normal; font-size: clamp(2rem, 9vw, 3rem); }

  .about {
    min-height: auto;
    padding: 0;
    flex-direction: column;
  }
  .about__bg-img {
    position: relative;
    height: 55vh;
    transform: none;
  }
  html[dir="rtl"] .about__bg-img { transform: none; }
  .about__tint {
    background: linear-gradient(to bottom, transparent 0%, rgba(10,10,15,0.5) 70%, var(--bg-primary) 100%);
  }
  .about__inner {
    grid-template-columns: 1fr;
    padding-block: 0 60px;
    margin-top: -80px;
  }
  .about__glass { grid-column: 1; }
  .about__stats { grid-template-columns: 1fr; }

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

  .reel-card--portrait  { width: 180px; }
  .reel-card--landscape { width: 320px; }

  .footer__inner { flex-direction: column; text-align: center; }
  .btn { padding: 13px 22px; font-size: 0.9rem; }
  .hero__scroll-hint { display: none; }

  .lightbox__frame { width: 94vw; height: 50vh; }
}

@media (max-width: 380px) {
  .hero__name { font-size: 2rem; }
  .nav__inner { height: 64px; gap: 12px; }
  .nav__links { top: 64px; }
  .lang-toggle { padding: 7px 11px; font-size: 0.78rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
  .service-card:hover .service-card__orbit { animation: none; }
}
