:root {
  --navy: #021540;          /* base navy, extracted from the LinkedIn banner */
  --navy-deep: #010c2c;     /* darker shade of the same navy */
  --navy-raise: #0a2257;    /* lighter shade of the same navy (cards) */
  --white: #ffffff;
  --muted: rgba(255, 255, 255, 0.72);
  --line: rgba(255, 255, 255, 0.12);
  --accent: #6ec6ff;        /* sky blue: buttons and links */
  --accent-ink: #021540;

  --radius: 18px;
  --gap: clamp(12px, 2.4vw, 28px);
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 12vw, 140px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--navy);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--navy);
  color: var(--white);
  font-family: "Almarai", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.is-locked { overflow: hidden; }

img, video { display: block; max-width: 100%; }

a { color: var(--accent); text-decoration: none; }

h1, h2, h3, p { margin: 0; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 50;
  padding: 10px 16px; border-radius: 10px;
  background: var(--accent); color: var(--accent-ink); font-weight: 800;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border-radius: 999px;
  font: inherit; font-weight: 800; font-size: 17px; line-height: 1;
  transition: transform 0.25s var(--ease), background-color 0.25s, color 0.25s, border-color 0.25s;
}
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--ghost { border: 1.5px solid var(--line); color: var(--white); }
@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); }
  .btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-block: clamp(36px, 8vw, 96px) clamp(48px, 9vw, 110px);
  background:
    radial-gradient(60% 55% at 18% 40%, rgba(7, 75, 165, 0.55), transparent 70%),
    radial-gradient(45% 40% at 90% 10%, rgba(110, 198, 255, 0.10), transparent 70%),
    linear-gradient(180deg, var(--navy-deep), var(--navy));
}
.hero__grid { position: relative; z-index: 1; }

/* decorative layer, after the LinkedIn banner: light streaks, glass shapes, glowing dots */
.hero__deco { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero__deco::before {
  /* faint dot grid that fades out toward the edges */
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.10) 1px, transparent 1.5px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(60% 60% at 30% 45%, #000 0%, transparent 75%);
  mask-image: radial-gradient(60% 60% at 30% 45%, #000 0%, transparent 75%);
}
.hero__deco::after {
  /* soft fade into the next section */
  content: ""; position: absolute; inset: auto 0 0; height: 120px;
  background: linear-gradient(180deg, transparent, var(--navy));
}

.hero__streaks { position: absolute; inset: 0; width: 100%; height: 100%; }
.streak { fill: none; stroke-linecap: round; }
.streak--glow { opacity: 0.7; }
.streak--pulse {
  stroke-dasharray: 90 1900;
  stroke-dashoffset: 1990;
  opacity: 0.8;
  animation: streak-run 7s linear infinite;
}
@keyframes streak-run { to { stroke-dashoffset: 0; } }

.glass {
  position: absolute;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(135deg, rgba(110, 198, 255, 0.16), rgba(110, 198, 255, 0.03));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 20px 40px -20px rgba(0, 0, 0, 0.6);
  animation: float 9s ease-in-out infinite;
}
.glass--1 { width: 92px;  height: 58px; top: 14%; left: 6%;   --r: -14deg; }
.glass--2 { width: 64px;  height: 40px; top: 66%; left: 34%;  --r: 12deg; animation-delay: -3s; animation-duration: 11s; }
.glass--3 { width: 120px; height: 72px; top: 8%;  right: -30px; --r: 18deg; animation-delay: -6s; opacity: 0.7; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(var(--r)); }
  50% { transform: translateY(-14px) rotate(var(--r)); }
}

.orb {
  position: absolute;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px 3px rgba(110, 198, 255, 0.6);
  animation: twinkle 4s ease-in-out infinite;
}
.orb--1 { top: 22%; left: 30%; }
.orb--2 { top: 74%; left: 12%; width: 4px; height: 4px; animation-delay: -1s; }
.orb--3 { top: 38%; right: 8%; width: 5px; height: 5px; animation-delay: -2s; }
.orb--4 { top: 86%; right: 30%; width: 4px; height: 4px; animation-delay: -3s; }
@keyframes twinkle { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }

@media (max-width: 899px) {
  /* phone sits under the text on small screens: keep the shapes clear of the copy */
  .glass--1 { top: auto; bottom: 30%; left: -24px; }
  .glass--2 { top: auto; bottom: 8%; left: auto; right: 8%; }
  .glass--3 { top: 3%; right: -48px; width: 96px; height: 58px; }
  .orb--1 { top: 52%; left: 14%; }
  .orb--3 { top: 60%; right: 10%; }
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 7vw, 64px);
  align-items: center;
}

.hero__text { text-align: center; }

.hero__logo { width: 104px; height: auto; margin: 0 auto 28px; }

.hero__title {
  font-weight: 800;
  font-size: clamp(26px, 8.6vw, 72px);
  white-space: nowrap;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.hero__sep { color: var(--accent); font-weight: 400; margin-inline: 0.08em; }

.hero__lead {
  margin-top: 16px;
  font-size: clamp(18px, 4.6vw, 24px);
}

.hero__services {
  margin-top: 6px;
  color: var(--muted);
  font-size: clamp(15px, 3.8vw, 18px);
}

.hero__cta {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
  margin-top: 32px;
}

.hero__phone { display: flex; justify-content: center; }

/* phone frame whose screen is exactly 9:16, like a reel */
.phone {
  position: relative;
  z-index: 1;
  width: min(62vw, 270px);
  padding: 9px;
  border-radius: 34px;
  background: #050a1a;
  box-shadow:
    0 0 0 1.5px rgba(255, 255, 255, 0.14),
    0 30px 80px -20px rgba(0, 0, 0, 0.7),
    0 0 120px -30px rgba(110, 198, 255, 0.45);
}
.phone__video {
  width: 100%; height: auto;
  aspect-ratio: 9 / 16;
  border-radius: 26px;
  object-fit: cover;
  background: var(--navy-raise);
}

@media (min-width: 900px) {
  .hero {
    min-height: min(100vh, 900px);
    display: flex; align-items: center;
    padding-block: clamp(32px, 7vh, 96px);
  }
  .hero__grid { grid-template-columns: 1.25fr 1fr; }
  .hero__text { text-align: start; }
  .hero__title { font-size: clamp(44px, 4.4vw, 64px); white-space: nowrap; }
  .hero__logo { margin-inline: 0; }
  .hero__cta { justify-content: flex-start; }
  .hero__phone { justify-content: center; }
  /* fit the phone inside short laptop screens */
  .phone { width: min(310px, calc((100vh - 130px) * 9 / 16 + 18px)); }
}

/* ---------- sections ---------- */

.section { padding-block: var(--section); }
.section + .section { padding-top: 0; }

.section__title {
  font-weight: 800;
  font-size: clamp(28px, 6.4vw, 44px);
  line-height: 1.3;
  margin-bottom: clamp(28px, 5vw, 48px);
}

/* ---------- works grid ---------- */

.grid {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
}
@media (min-width: 768px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.card { min-width: 0; }
.card--wide { grid-column: 1 / -1; }

.card__btn {
  display: block; width: 100%; padding: 0; border: 0; margin: 0;
  background: none; color: inherit; font: inherit; text-align: inherit;
  cursor: pointer;
}

.card__media {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy-raise);
  box-shadow: 0 0 0 1px var(--line);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.card--wide .card__media { aspect-ratio: 16 / 9; }

.card__media video,
.card__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

.card__play {
  position: absolute; bottom: 12px; inset-inline-start: 12px;
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(1, 12, 44, 0.55);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0.9;
  transition: background-color 0.25s, transform 0.25s var(--ease);
}
.card__play svg { width: 16px; height: 16px; fill: var(--white); margin-inline-start: 2px; }

@media (hover: hover) {
  .card__btn:hover .card__media {
    transform: translateY(-4px);
    box-shadow: 0 0 0 1px rgba(110, 198, 255, 0.5), 0 20px 50px -24px rgba(0, 0, 0, 0.8);
  }
  .card__btn:hover .card__play { background: var(--accent); transform: scale(1.06); }
  .card__btn:hover .card__play svg { fill: var(--accent-ink); }
}

.card__info { padding: 14px 4px 0; }
.card__head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.card__name { font-weight: 800; font-size: clamp(16px, 2.2vw, 20px); line-height: 1.4; }
.card__desc { color: var(--muted); font-size: clamp(14px, 1.8vw, 16px); line-height: 1.5; margin-top: 2px; }

.badge {
  display: inline-block;
  padding: 3px 10px 2px;
  border-radius: 999px;
  font-size: 12px; font-weight: 800; line-height: 1.5;
  border: 1px solid var(--line);
  color: var(--muted);
}
.badge--client { border-color: var(--accent); color: var(--accent); }

@media (max-width: 480px) {
  .card__info { padding-top: 10px; }
  .card__play { width: 34px; height: 34px; bottom: 8px; inset-inline-start: 8px; }
  .card__play svg { width: 13px; height: 13px; }
  .badge { font-size: 11px; padding: 2px 8px 1px; }
}

/* ---------- about ---------- */

.about__inner {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 28px;
  max-width: 860px;
  text-align: center;
}
.about__photo {
  width: clamp(150px, 40vw, 200px); height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 4px var(--navy), 0 0 0 5.5px rgba(110, 198, 255, 0.5);
}
.about__text { font-size: clamp(17px, 2.4vw, 21px); line-height: 1.9; }

@media (min-width: 768px) {
  .about__inner { grid-template-columns: auto 1fr; justify-items: start; text-align: start; gap: 48px; align-items: center; }
}

/* ---------- contact ---------- */

.contact { text-align: center; }
.contact .section__title { max-width: 18ch; margin-inline: auto; }

/* flex + wrap so an incomplete last row stays centred, whatever buttons are filled in */
.contact__list {
  --cols: 2;
  --gap: 12px;
  list-style: none; margin: 0 auto; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: var(--gap);
  max-width: 760px;
}
.contact__list > li { flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); min-width: 0; }
/* the primary button (WhatsApp) gets its own full row on phones */
.contact__list > li:has(.contact__link--primary) { flex-basis: 100%; }
@media (min-width: 768px) {
  .contact__list { --cols: 3; --gap: 16px; }
  .contact__list > li:has(.contact__link--primary) { flex-basis: calc((100% - 2 * var(--gap)) / 3); }
}

.contact__link {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 64px; padding: 0 16px;
  border-radius: 16px;
  border: 1.5px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--white);
  font-weight: 800; font-size: 17px;
  transition: transform 0.25s var(--ease), border-color 0.25s, background-color 0.25s, color 0.25s;
}
.contact__link svg { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact__link--primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

@media (hover: hover) {
  .contact__link:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--accent); }
  .contact__link--primary:hover { color: var(--accent-ink); background: #8fd4ff; }
}

/* ---------- footer ---------- */

.footer { padding-block: 40px calc(40px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--navy-deep); }
.footer__inner { display: flex; align-items: center; justify-content: center; gap: 16px; color: var(--muted); font-size: 15px; }
.footer__inner img { width: 52px; height: auto; opacity: 0.85; }

/* ---------- lightbox ---------- */

.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: max(56px, env(safe-area-inset-top)) 12px max(24px, env(safe-area-inset-bottom));
  background: rgba(1, 8, 28, 0.94);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  animation: fade-in 0.25s ease;
}
.lightbox[hidden] { display: none; }

.lightbox__stage {
  margin: 0;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  max-width: 100%; max-height: 100%;
}
.lightbox__video {
  max-width: min(100%, 1100px);
  max-height: calc(100vh - 140px);
  border-radius: 14px;
  background: #000;
}
@supports (height: 100dvh) {
  .lightbox__video { max-height: calc(100dvh - 140px); }
}
.lightbox__caption { font-weight: 800; font-size: 16px; text-align: center; }
.lightbox__caption span { font-weight: 400; color: var(--muted); }

.lightbox__btn {
  position: absolute; z-index: 2;
  display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.lightbox__btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lightbox__btn:hover { background: var(--accent); color: var(--accent-ink); }
.lightbox__close { top: max(10px, env(safe-area-inset-top)); left: 10px; }
.lightbox__nav { top: 50%; margin-top: -24px; }
.lightbox__prev { right: 10px; }
.lightbox__next { left: 10px; }

@media (max-width: 767px) {
  .lightbox__nav { top: auto; bottom: max(14px, env(safe-area-inset-bottom)); margin-top: 0; }
  .lightbox { padding-bottom: 80px; }
  .lightbox__video { max-height: calc(100dvh - 200px); }
}

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------- reveal on scroll ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .hero__deco * { animation: none !important; }
  .streak--pulse { display: none; }
}

.nowrap { white-space: nowrap; }
