:root {
  --bg-primary: #09090b;
  --bg-secondary: #111113;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.05);
  --text-primary: #fafafa;
  --text-secondary: #a1a1aa;
  --text-tertiary: #71717a;
  --accent: #10b981;
  --accent-soft: rgba(16, 185, 129, 0.08);
  --accent-hover: #059669;
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  --font-ar: "IBM Plex Sans Arabic", sans-serif;
  --font-en: "Outfit", sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --nav-height: 64px;
  --container-padding: clamp(18px, 3.5vw, 44px);
  --section-padding: clamp(80px, 10vw, 128px);
  --radius-lg: 24px;
  --radius-md: 16px;
  --shadow-diffuse: 0 20px 40px -15px rgba(0, 0, 0, 0.3);
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.2), 0 0 0 1px var(--border);
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-padding-top: calc(var(--nav-height) + 20px);
}
body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-ar);
  line-height: 1.7;
  overflow-x: hidden;
}
body.menu-open {
  overflow: hidden;
}
html[lang="en"] body {
  font-family: var(--font-en);
}
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 var(--container-padding);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  background: rgba(9, 9, 11, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background 0.4s var(--ease-smooth), border-color 0.4s var(--ease-smooth);
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo img {
  height: 32px;
  width: auto;
  filter: brightness(0) invert(1);
}
.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 32px;
}
.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-tertiary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.01em;
  position: relative;
  transition: color 0.3s var(--ease-out);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  height: 1.5px;
  border-radius: 999px;
  background: var(--accent);
  opacity: 0;
  transform: scaleX(0);
  transform-origin: center;
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.nav-links a:hover {
  color: var(--text-primary);
}
.nav-links a.active {
  color: var(--text-primary);
}
.nav-links a.active::after {
  opacity: 1;
  transform: scaleX(1);
}
nav.nav-scrolled {
  background: rgba(9, 9, 11, 0.88);
  border-bottom-color: var(--border-hover);
}
.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  min-height: 40px;
  padding: 0 18px;
  border-radius: 980px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  font-family: inherit;
}
.lang-switch:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.lang-switch:active {
  transform: scale(0.97);
}
.nav-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  transition: border-color 0.3s var(--ease-out), background 0.3s var(--ease-out), transform 0.2s;
}
.menu-toggle:hover {
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.03);
}
.menu-toggle:active {
  transform: scale(0.95);
}
.menu-toggle span {
  width: 18px;
  height: 1.5px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.3s var(--ease-out), opacity 0.2s var(--ease-out);
}
body.menu-open .menu-toggle span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
body.menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}
body.menu-open .menu-toggle span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}
.mobile-menu-backdrop {
  position: fixed;
  inset: var(--nav-height) 0 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out);
  z-index: 98;
}
.mobile-menu {
  position: fixed;
  top: calc(var(--nav-height) + 12px);
  left: var(--container-padding);
  right: var(--container-padding);
  display: grid;
  gap: 6px;
  padding: 14px;
  background: rgba(17, 17, 19, 0.97);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-lg);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
  transform: translateY(-14px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out), visibility 0.3s;
  z-index: 99;
}
.mobile-menu a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 16px;
  font-size: 15px;
  border-radius: var(--radius-md);
  color: var(--text-primary);
  text-decoration: none;
  background: transparent;
  transition: background 0.3s var(--ease-out), transform 0.2s;
}
.mobile-menu a:hover {
  background: rgba(255, 255, 255, 0.05);
}
.mobile-menu a:active {
  transform: scale(0.98);
}
.mobile-menu a.active {
  background: var(--accent-soft);
  color: var(--accent);
}
body.menu-open .mobile-menu-backdrop,
body.menu-open .mobile-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
body.menu-open .mobile-menu {
  transform: translateY(0);
}

/* ── HERO (Centered) ── */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-height) + 48px) 24px clamp(56px, 7vw, 72px);
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
  filter: saturate(0.5);
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(9, 9, 11, 0.4) 0%,
    rgba(9, 9, 11, 0.6) 50%,
    var(--bg-primary) 100%
  );
}
.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.hero-canvas canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 720px;
}
.hero-photo {
  width: clamp(104px, 14vw, 148px);
  height: clamp(104px, 14vw, 148px);
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: clamp(24px, 4vw, 36px);
  opacity: 0;
  transform: scale(0.92);
  animation: fadeScale 0.7s var(--ease-out) 0.2s forwards;
  border: 2px solid rgba(16, 185, 129, 0.2);
  box-shadow:
    0 0 0 6px rgba(16, 185, 129, 0.06),
    0 0 40px 8px rgba(16, 185, 129, 0.12),
    0 0 80px 20px rgba(16, 185, 129, 0.06);
  position: relative;
}
@keyframes photoGlow {
  0%, 100% { box-shadow: 0 0 0 6px rgba(16,185,129,0.06), 0 0 40px 8px rgba(16,185,129,0.12), 0 0 80px 20px rgba(16,185,129,0.06); }
  50% { box-shadow: 0 0 0 8px rgba(16,185,129,0.1), 0 0 50px 12px rgba(16,185,129,0.18), 0 0 100px 28px rgba(16,185,129,0.08); }
}
.hero-photo {
  animation: fadeScale 0.7s var(--ease-out) 0.2s forwards, photoGlow 4s ease-in-out 1s infinite;
}
.hero-greeting {
  font-size: 15px;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.6s var(--ease-out) 0.35s forwards;
}
.hero-name {
  font-size: clamp(40px, 6.5vw, 72px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.05;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.6s var(--ease-out) 0.45s forwards;
}
html[lang="en"] .hero-name {
  letter-spacing: -0.05em;
}
.hero-tagline {
  font-size: clamp(16px, 2.2vw, 20px);
  font-weight: 300;
  color: var(--text-secondary);
  max-width: 520px;
  line-height: 1.65;
  margin: 0 auto clamp(28px, 4vw, 40px);
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.6s var(--ease-out) 0.6s forwards;
}
.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: var(--bg-primary);
  text-decoration: none;
  min-height: 50px;
  padding: 0 30px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  transition: all 0.3s var(--ease-out);
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.6s var(--ease-out) 0.75s forwards;
  font-family: inherit;
}
.hero-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.2);
}
.hero-cta:active {
  transform: scale(0.98);
}
.hero-cta svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s var(--ease-out);
}
html[dir="rtl"] .hero-cta svg {
  transform: scaleX(-1);
}
.hero-cta:hover svg {
  transform: translateX(3px);
}
html[dir="rtl"] .hero-cta:hover svg {
  transform: scaleX(-1) translateX(3px);
}
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  opacity: 0;
  animation: fadeUp 0.6s var(--ease-out) 1.1s forwards;
}
.hero-scroll span {
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--text-tertiary), transparent);
  margin: 0 auto;
}

/* ── COMMONS ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}
section {
  padding: var(--section-padding) 0;
}
section[id] {
  scroll-margin-top: calc(var(--nav-height) + 20px);
}
.section-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin-bottom: 18px;
}
.section-subtitle {
  font-size: clamp(15px, 2vw, 17px);
  font-weight: 300;
  color: var(--text-secondary);
  max-width: 520px;
  line-height: 1.65;
  margin-bottom: clamp(48px, 7vw, 72px);
}
.divider {
  max-width: 1100px;
  margin: 0 auto;
  height: 1px;
  background: var(--border);
}

/* ── REVEAL SYSTEM ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

/* ── SERVICES (Stacked feature + 2-col row) ── */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.4s var(--ease-out);
  position: relative;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  pointer-events: none;
  z-index: 1;
}
.service-card:nth-child(1) {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
}
.service-card:nth-child(1) .service-img {
  height: 100%;
  min-height: clamp(220px, 22vw, 280px);
}
.service-card:nth-child(1) .service-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.service-card:not(:nth-child(1)) .service-img {
  height: clamp(170px, 18vw, 210px);
}
.service-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-diffuse);
}
.service-card:active {
  transform: translateY(-1px) scale(0.995);
}
.service-img {
  width: 100%;
  overflow: hidden;
  position: relative;
}
.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}
.service-card:hover .service-img img {
  transform: scale(1.04);
}
.placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}
.placeholder-consulting {
  background: linear-gradient(135deg, #0c1a2e 0%, #112240 50%, #0f3460 100%);
}
.placeholder-ai {
  background: linear-gradient(135deg, #0a1628 0%, #0d1f3c 50%, #152a4a 100%);
}
.placeholder-training {
  background: linear-gradient(135deg, #0a1a0a 0%, #142814 50%, #1a331a 100%);
}
.service-body {
  padding: clamp(20px, 3vw, 28px) clamp(18px, 2.5vw, 24px);
}
.service-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.service-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  font-weight: 300;
}

/* ── CASES ── */
.cases-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
#work {
  padding-top: clamp(64px, 8vw, 92px);
  padding-bottom: clamp(68px, 8vw, 96px);
}
#work .section-subtitle {
  margin-bottom: clamp(36px, 5vw, 56px);
}
.case-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.4s var(--ease-out);
  position: relative;
}
.case-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  pointer-events: none;
  z-index: 1;
}
.case-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-diffuse);
}
.case-card:nth-child(even) {
  direction: ltr;
}
html[lang="en"] .case-card:nth-child(even) {
  direction: rtl;
}
.case-card:nth-child(even) .case-text {
  direction: rtl;
}
html[lang="en"] .case-card:nth-child(even) .case-text {
  direction: ltr;
}
.case-img {
  height: 100%;
  min-height: clamp(250px, 30vw, 300px);
  overflow: hidden;
  position: relative;
}
.case-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}
.case-card:hover .case-img img {
  transform: scale(1.03);
}
.placeholder-case-1 {
  background: linear-gradient(160deg, #0a192f 0%, #112240 40%, #1d3461 100%);
}
.placeholder-case-2 {
  background: linear-gradient(160deg, #0d1a2a 0%, #1a2d4e 40%, #112240 100%);
}
.placeholder-case-3 {
  background: linear-gradient(160deg, #0a1a0a 0%, #1a2d1a 40%, #0d2818 100%);
}
.case-img .placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 70%, rgba(16, 185, 129, 0.04), transparent 60%);
}
.case-text {
  padding: clamp(28px, 4vw, 40px) clamp(24px, 3.5vw, 36px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.case-tag {
  font-size: 12px;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 5px 14px;
  border-radius: 980px;
  display: inline-block;
  width: fit-content;
  margin-bottom: 18px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.case-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.025em;
}
.case-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 22px;
}
.case-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.stat {
  min-width: 110px;
  display: flex;
  flex-direction: column;
}
.stat-value {
  display: block;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-family: var(--font-en);
  line-height: 1.1;
  color: var(--accent);
}
.stat-label {
  display: block;
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 4px;
}

/* ── CLIENTS (Minimal Badges — reduced card-ness) ── */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.client-badge {
  background: transparent;
  border: 1px solid var(--border);
  min-height: 64px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--text-secondary);
  transition: all 0.3s var(--ease-out);
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}
.client-badge:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
  background: var(--bg-card);
}
.badge-icon {
  font-size: 20px;
  line-height: 1;
}

/* ── MEDIA ── */
.media-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.media-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all 0.4s var(--ease-out);
  position: relative;
}
.media-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  pointer-events: none;
  z-index: 2;
}
.media-card:first-child {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
}
.media-card:first-child .media-thumb {
  aspect-ratio: auto;
  min-height: 220px;
}
.media-card:first-child .media-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 28px;
}
.media-card:first-child .media-title {
  font-size: 18px;
}
.media-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-diffuse);
}
.media-card:active {
  transform: translateY(-1px) scale(0.995);
}
.media-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-secondary);
}
.media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}
.media-card:hover .media-thumb img {
  transform: scale(1.04);
}
.media-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(9, 9, 11, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: all 0.3s var(--ease-out);
}
.media-play svg {
  width: 22px;
  height: 22px;
  margin-left: 2px;
}
.media-card:hover .media-play {
  background: var(--accent);
  border-color: var(--accent);
  transform: translate(-50%, -50%) scale(1.08);
}
.media-channel {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(9, 9, 11, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 980px;
  letter-spacing: 0.02em;
}
html[dir="rtl"] .media-channel {
  left: auto;
  right: 10px;
}
.media-info {
  padding: 18px 20px;
}
.media-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.media-watch {
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
  transition: color 0.3s var(--ease-out);
}
.media-card:hover .media-watch {
  color: var(--accent-hover);
}

/* ── GALLERY (Masonry-inspired) ── */
.gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-auto-rows: 180px;
  gap: 12px;
}
.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}
.gallery-item:hover img {
  transform: scale(1.05);
}
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.2) 100%);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
}
.gallery-item:hover::after {
  opacity: 1;
}
.gallery-item-tall {
  grid-row: span 2;
}
.gallery-item-wide {
  grid-column: span 2;
}

/* ── TRAINING COURSES ── */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.course-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s var(--ease-out);
  position: relative;
}
.course-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  pointer-events: none;
  z-index: 1;
}
.course-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-diffuse);
}
.course-card:active {
  transform: translateY(-1px) scale(0.995);
}

/* Featured first card */
.course-card:first-child {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 0.45fr 0.55fr;
}
.course-card:first-child .course-card-img {
  height: 100%;
  min-height: 280px;
}
.course-card:first-child .course-card-img img {
  height: 100%;
  object-fit: cover;
}
.course-card:first-child .course-card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 3vw, 36px) clamp(22px, 3vw, 32px);
}
.course-card:first-child .course-card-title {
  font-size: clamp(20px, 2.5vw, 26px);
  letter-spacing: -0.025em;
}
.course-card:first-child .course-card-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  font-weight: 300;
  margin-top: 10px;
}
.course-card:first-child .course-featured-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--bg-primary);
  background: var(--accent);
  padding: 4px 12px;
  border-radius: 980px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
  width: fit-content;
}

.course-card-img {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--bg-secondary);
}
.course-card-img img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  transition: transform 0.7s var(--ease-out);
}
.course-card:hover .course-card-img img {
  transform: scale(1.04);
}
.course-duration {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(9, 9, 11, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 980px;
  letter-spacing: 0.02em;
  z-index: 2;
}
html[dir="ltr"] .course-duration {
  right: 10px;
  left: auto;
}
.course-card-body {
  padding: 16px 18px 20px;
}
.course-card-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

/* ── COURSE MODAL ── */
.course-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease-out), visibility 0.3s;
}
.course-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}
body.modal-open {
  overflow: hidden;
}
.course-modal-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 640px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  position: relative;
  transform: scale(0.95) translateY(12px);
  transition: transform 0.3s var(--ease-out);
}
.course-modal-overlay.active .course-modal-content {
  transform: scale(1) translateY(0);
}
.course-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(9, 9, 11, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease-out);
}
html[dir="rtl"] .course-modal-close {
  right: auto;
  left: 12px;
}
.course-modal-close:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.08);
}
.course-modal-close svg {
  width: 18px;
  height: 18px;
}
.course-modal-banner {
  width: 100%;
  aspect-ratio: 16 / 8;
  overflow: hidden;
  background: var(--bg-primary);
}
.course-modal-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.course-modal-body {
  padding: 28px 28px 32px;
}
.course-modal-duration {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 5px 14px;
  border-radius: 980px;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}
.course-modal-title {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.25;
  margin-bottom: 24px;
}
.course-modal-audience {
  background: var(--accent-soft);
  border: 1px solid rgba(16, 185, 129, 0.12);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 24px;
}
.course-modal-audience h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 8px;
}
.course-modal-audience p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  font-weight: 300;
}
.course-modal-learnings h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 14px;
}
.course-modal-learnings ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.course-modal-learnings li {
  position: relative;
  padding-inline-start: 20px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  font-weight: 300;
}
.course-modal-learnings li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ── CONTACT ── */
.contact-section {
  text-align: center;
  padding: clamp(96px, 14vw, 148px) 0;
  position: relative;
  overflow: hidden;
}
.contact-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.contact-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
  filter: saturate(0.5);
}
.contact-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 0%, var(--bg-primary) 65%);
}
.contact-content {
  position: relative;
  z-index: 1;
}
.contact-title {
  font-size: clamp(32px, 5vw, 50px);
  font-weight: 700;
  letter-spacing: -0.04em;
  margin-bottom: 18px;
  line-height: 1.1;
}
.contact-subtitle {
  font-size: clamp(15px, 2vw, 17px);
  color: var(--text-secondary);
  font-weight: 300;
  max-width: 460px;
  margin: 0 auto clamp(36px, 6vw, 52px);
  line-height: 1.65;
}
.contact-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
}
.contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  min-width: 200px;
  padding: 0 28px;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.3s var(--ease-out);
  font-family: inherit;
}
.contact-btn.primary {
  background: var(--accent);
  color: var(--bg-primary);
}
.contact-btn.primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.2);
}
.contact-btn.primary:active {
  transform: scale(0.98);
}
.contact-btn.secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.contact-btn.secondary:hover {
  border-color: var(--text-tertiary);
  transform: translateY(-1px);
}
.contact-btn.secondary:active {
  transform: scale(0.98);
}
.contact-btn svg {
  width: 18px;
  height: 18px;
}

/* ── SOCIAL LINKS ── */
.social-links {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 32px;
}
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-tertiary);
  text-decoration: none;
  transition: all 0.3s var(--ease-out);
}
.social-links a:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}
.social-links a:active {
  transform: scale(0.95);
}
.social-links a svg {
  width: 18px;
  height: 18px;
}

/* ── FOOTER ── */
footer {
  text-align: center;
  padding: 36px 24px;
  border-top: 1px solid var(--border);
}
footer p {
  font-size: 13px;
  color: var(--text-tertiary);
  font-weight: 300;
  letter-spacing: 0.01em;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeScale {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  .service-card:nth-child(1) {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }
  .clients-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .courses-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .course-card:first-child {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
  }
  .course-card:first-child .course-card-img {
    min-height: 220px;
  }
  .media-grid {
    grid-template-columns: 1fr;
  }
  .media-card:first-child {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 160px;
  }
  .case-text {
    padding: 24px 22px;
  }
}
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
  .menu-toggle {
    display: inline-flex;
  }
}
@media (max-width: 768px) {
  nav {
    padding: 0 20px;
  }
  section {
    padding: 72px 0;
  }
  .container {
    padding: 0 20px;
  }
  .hero {
    min-height: auto;
    padding: calc(var(--nav-height) + 36px) 20px 56px;
  }
  .case-card {
    grid-template-columns: 1fr;
  }
  .case-card:nth-child(even) {
    direction: rtl;
  }
  html[lang="en"] .case-card:nth-child(even) {
    direction: ltr;
  }
  .case-img {
    min-height: 220px;
  }
  .case-text {
    padding: 22px 20px;
  }
  .contact-section {
    padding: 72px 0;
  }
  .hero-scroll {
    display: none;
  }
  .hero-photo,
  .hero-greeting,
  .hero-name,
  .hero-tagline,
  .hero-cta,
  .hero-secondary-cta {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .service-card:nth-child(1) {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }
  .media-grid {
    grid-template-columns: 1fr;
  }
  .media-card:first-child {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .services-grid,
  .clients-grid,
  .media-grid,
  .courses-grid {
    grid-template-columns: 1fr;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 150px;
  }
  .gallery-item-wide {
    grid-column: span 1;
  }
  .case-stats {
    flex-direction: column;
    gap: 12px;
  }
  .hero-cta,
  .hero-secondary-cta {
    min-width: 180px;
  }
  .contact-buttons {
    flex-direction: column;
    align-items: stretch;
    max-width: 340px;
    margin: 0 auto;
  }
  .contact-btn {
    width: 100%;
    justify-content: center;
  }
}
@media (max-width: 480px) {
  nav,
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
  .mobile-menu {
    left: 16px;
    right: 16px;
  }
  .course-modal-overlay {
    padding: 12px;
  }
  .course-modal-body {
    padding: 20px 18px 24px;
  }
  .hero {
    padding-left: 16px;
    padding-right: 16px;
  }
  .hero-name {
    font-size: clamp(34px, 11vw, 44px);
  }
  .hero-tagline {
    font-size: 15px;
  }
  .service-card:nth-child(1) .service-img,
  .service-card:not(:nth-child(1)) .service-img {
    height: 180px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal,
  .hero-photo,
  .hero-greeting,
  .hero-name,
  .hero-tagline,
  .hero-cta,
  .hero-secondary-cta,
  .hero-scroll {
    opacity: 1;
    transform: none;
  }
}
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-tertiary);
}
