/* =============================================================
   ذات | Thaat — Homepage stylesheet
   Organised: tokens → base → components → sections → responsive
   ============================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Brand */
  --blue:          #5090c7;
  --blue-dark:     #3276bd;
  --blue-light:    #63a4d4;
  --indigo:        #3f4595;
  --indigo-dark:   #22246d;
  --ink:           #2c2d81;

  /* Neutrals */
  --text:          #374151;
  --muted:         #6b7280;
  --heading:       #1f2433;
  --white:         #ffffff;

  /* Surfaces */
  --bg:            #ffffff;
  --bg-soft:       #f7f9fc;
  --bg-muted:      #e7e8ef;
  --tint-blue:     #e5ecf2;
  --tint-indigo:   #e3e4ec;
  --night:         #1b1d2f;

  /* Type */
  --font: "Neo Sans Arabic", "Tajawal", system-ui, "Segoe UI", sans-serif;

  /* Layout */
  --container: 1200px;
  --radius:    12px;
  --radius-sm: 8px;

  /* Effects */
  --shadow:    0 10px 30px rgba(27, 29, 47, .08);
  --shadow-lg: 0 20px 50px rgba(27, 29, 47, .15);
  --ease:      .3s ease;
  --header-h:  88px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 1rem;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3 { color: var(--heading); line-height: 1.25; font-weight: 700; }

ul { list-style: none; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--blue);
  --btn-fg: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1;
  padding: 14px 26px;
  border: 0;
  border-radius: 5px;               /* semi-sharp corners */
  cursor: pointer;
  transition: background var(--ease), transform var(--ease), box-shadow var(--ease);
  white-space: nowrap;
}
.btn:hover     { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--primary  { --btn-bg: var(--blue); }
.btn--primary:hover  { background: var(--blue-dark); }
.btn--indigo   { --btn-bg: var(--indigo); }
.btn--indigo:hover   { background: var(--indigo-dark); }
.btn--lg       { font-size: 1.15rem; padding: 18px 38px; border-radius: 6px; }
.btn--block    { width: 100%; }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--white); }

.btn--arrow svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: scaleX(-1);            /* point the arrow toward text in RTL */
  transition: transform var(--ease);
}
.btn--arrow:hover svg { transform: scaleX(-1) translateX(4px); }

/* =============================================================
   Header
   ============================================================= */
.site-header {
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 50;
  padding-block: 18px;
  border-bottom: 0;                 /* no line */
  transition: background var(--ease), box-shadow var(--ease), padding var(--ease);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-header__logo { height: 56px; width: auto; }
.site-header__logo--dark { display: none; }     /* navy hero → white logo by default */

.site-nav {
  display: flex;
  gap: 40px;
  margin-inline: auto;            /* centred between the logo and the actions */
  font-size: 1.05rem;
}
.site-nav a { color: var(--white); transition: color var(--ease); }
.site-nav a:hover,
.site-nav a.is-active { color: #cfe0f1; }

.site-header__actions { display: flex; gap: 12px; align-items: center; }
/* standard (compact) button size inside the header bar */
.site-header__actions .btn {
  padding: 11px 18px;
  font-size: .88rem;
  border-radius: 7px;             /* softly rounded */
}

/* Language toggle — single plain-text button (shows the other language), no box */
.lang-switch {
  background: none;
  border: 0;
  padding: 2px 4px;
  margin-inline-start: 4px;       /* sits after the action buttons */
  cursor: pointer;
  font-size: .95rem;
  font-weight: 700;
  line-height: 1;
  color: rgba(255, 255, 255, .75);
  transition: color var(--ease);
}
.lang-switch:hover { color: var(--white); }

/* Signed-in user chip + dropdown menu */
.user-menu { position: relative; }
.user-menu__trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, .1);
  border: 0;
  border-radius: 8px;
  padding: 5px 12px 5px 14px;
  cursor: pointer;
  color: var(--white);
  transition: background var(--ease);
}
.user-menu__trigger:hover { background: rgba(255, 255, 255, .18); }
.user-menu__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5090c7, #3f4595);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: .95rem;
  color: #fff;
  flex: none;
}
.user-menu__meta { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.25; }
.user-menu__name { font-weight: 700; font-size: .88rem; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-menu__type { font-size: .68rem; color: rgba(255, 255, 255, .65); font-weight: 600; }
.user-menu__chev { transition: transform .18s ease; opacity: .75; }
.user-menu__chev.is-open { transform: rotate(180deg); }

.user-menu__panel {
  position: absolute;
  top: calc(100% + 10px);
  inset-inline-end: 0;
  min-width: 215px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(10, 12, 35, .22);
  padding: 7px;
  z-index: 600;
  animation: menu-in .16s ease;
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.user-menu__panel a,
.user-menu__panel .user-menu__logout {
  display: block;
  width: 100%;
  text-align: start;
  padding: 10px 13px;
  border-radius: 9px;
  color: #374151;
  font-size: .88rem;
  font-weight: 600;
  background: none;
  border: 0;
  cursor: pointer;
  transition: background .12s ease, color .12s ease;
}
.user-menu__panel a:hover,
.user-menu__panel .user-menu__logout:hover { background: #f3f5f9; color: #14173c; }
.user-menu__logout {
  color: #c2452d !important;
  margin-top: 5px;
  border-top: 1px solid #eef0f5 !important;
  border-radius: 0 0 9px 9px !important;
}
.user-menu__logout:hover { background: #fdf0ee !important; color: #a63a24 !important; }

/* Sticky / scrolled state — dark translucent glass bar (text stays light) */
.site-header.is-scrolled {
  position: fixed;
  background: rgba(20, 23, 60, .5);          /* #14173C glass — readable on any section */
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 30px rgba(10, 12, 35, .25);
  padding-block: 12px;
  animation: drop-in .35s ease;
}

@keyframes drop-in { from { transform: translateY(-100%); } to { transform: translateY(0); } }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 40px;
  padding: 6px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle span {
  height: 3px;
  border-radius: 3px;
  background: var(--white);
  transition: transform var(--ease), opacity var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: absolute;
  inset-block-start: 100%;
  inset-inline: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  padding: 28px 24px 36px;
  background: rgba(27, 29, 47, .97);
  backdrop-filter: blur(8px);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu > a:not(.btn) {
  color: var(--white);
  font-size: 1.1rem;
  text-align: center;
  padding-block: 6px;
}
.mobile-menu > a.is-active { color: var(--blue-light); }

/* =============================================================
   Hero — full screen with motion effects
   ============================================================= */
.hero {
  position: relative;
  /* Fixed frame: the two slides have different text lengths, so a content-
     driven height made the section jump between them. Clamp keeps one height. */
  min-height: 710px;
  display: flex;
  align-items: stretch;           /* inner fills full height so the image can reach the bottom */
  padding-block: calc(var(--header-h) - 14px) 46px;   /* trimmed 40px */
  color: var(--white);            /* light text on the navy shader */
  background: linear-gradient(120deg, #181b45, #222657);
  isolation: isolate;
  overflow: hidden;
}
/* CSS fallback — navy satin drift, shown only while the WebGL shader loads
   or if WebGL is unavailable (the real shader canvas covers it otherwise). */
.hero::before {
  content: "";
  position: absolute;
  inset: -12%;
  z-index: -3;
  background: linear-gradient(118deg,
    #222657 0%, #1b1e49 12%, #2b2f68 24%, #181b41 36%,
    #2e3370 49%, #1b1e49 62%, #2b2f68 75%, #17193e 88%, #222657 100%);
  background-size: 230% 230%;
  filter: blur(6px);
  animation: silk-a 19s ease-in-out infinite alternate;
}
.hero::after {
  content: "";
  position: absolute;
  inset: -12%;
  z-index: -2;
  background: linear-gradient(242deg,
    transparent 8%, rgba(80, 144, 199, .35) 28%, transparent 46%,
    rgba(99, 164, 212, .28) 64%, transparent 84%);
  background-size: 250% 250%;
  filter: blur(10px);
  animation: silk-b 25s ease-in-out infinite alternate;
}
.hero__silk { display: none; }   /* chroma handled by the real shader */
/* orbs not used here */
.hero__orb { display: none; }

/* Real WebGL shader background — sits above the CSS fallback, below content.
   pointer-events:none so it never blocks clicks (ChromaFlow tracks the mouse
   via window events, so it still reacts to cursor movement). */
.hero__shader {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero__shader > div,
.hero__shader canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr .85fr;   /* text column wide enough for 2-line titles */
  /* fr tracks default to min-width:auto, so the wide slide-2 artwork was
     squeezing the text column (and forcing 4-line titles). Pin both tracks. */
  align-items: center;
  gap: 40px;
  width: 100%;
}
.hero__content { max-width: 650px; min-width: 0; position: relative; z-index: 1; transform: translateY(-35px); }

/* staggered entrance — re-triggered by JS on every slide change */
.hero__kicker,
.hero__title,
.hero__text,
#heroBtn,
.hero__dots { animation: hero-up .7s both; }
.hero__kicker { animation-delay: .05s; }
.hero__title  { animation-delay: .18s; }
.hero__text   { animation-delay: .32s; }
#heroBtn      { animation-delay: .46s; }
.hero__dots   { animation-delay: .60s; }

/* plain kicker text (no capsule) */
.hero__kicker {
  margin-bottom: 16px;
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #9fb6e6;
}
.hero__title {
  font-size: clamp(1.84rem, 4vw, 3.04rem);   /* 20% smaller than the original */
  line-height: 1.3;
  white-space: pre-line;          /* honour the explicit line break per slide */
  margin-bottom: 22px;
  color: #ffffff;                 /* solid, unified colour */
  text-shadow: 0 4px 22px rgba(10, 12, 40, .35);
}
.hero__text {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: #e6ebf5;
  white-space: pre-line;          /* respect line breaks from data */
  max-width: 430px;               /* identical copy width on every slide */
  margin-bottom: 34px;
}
#heroBtn {
  font-size: 1rem;                /* was 1.15rem (.btn--lg) */
  padding: 13px 28px;             /* was 18px 38px */
  box-shadow: 0 12px 30px rgba(80, 144, 199, .4);
  position: relative;
  overflow: hidden;
}
#heroBtn.btn--indigo { box-shadow: 0 12px 30px rgba(63, 69, 149, .4); }   /* indigo glow for the company slide */
/* sliding sheen across the CTA */
#heroBtn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: sheen 4.5s ease-in-out 1.5s infinite;
}

/* bottom-align the slide images so they "stand" on the hero edge and the
   cut-out / photo edge bleeds off-screen (content stays vertically centered) */
.hero__media {
  min-width: 0;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  align-self: end;
  margin-bottom: -46px;          /* cancel the hero's bottom padding → reach the edge */
}
.hero__glow {
  position: absolute;
  inset: 6% 6% 10%;
  z-index: -1;
  background: radial-gradient(circle at 50% 45%, rgba(80, 144, 199, .5), transparent 62%);
  filter: blur(32px);
}
.hero__image {
  width: 100%;
  max-width: 600px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 26px 40px rgba(10, 12, 35, .4));
  animation: hero-zoom .8s ease both;
}
/* Slide 2 (employers): a narrower paragraph frees space so the wide desk
   artwork can sit closer to the text. The title keeps the full column width. */
/* Anchor the desk artwork's outer edge to the container edge, level with the
   slide-1 figure (it overflows its column toward the copy, as designed). */
.hero[data-slide="1"] .hero__media { justify-content: flex-end; }
[dir='rtl'] .hero[data-slide="1"] .hero__media { transform: translateX(-33px); }
[dir='ltr'] .hero[data-slide="1"] .hero__media { transform: translateX(33px); }

/* per-slide sizing — capped by HEIGHT so the hero never grows past its
   72vh frame (width-based sizing let the tall figure stretch the section) */
/* Fixed pixel heights: vh units made the artwork shrink whenever the window
   was resized. Desktop keeps one constant size (mobile overrides further down). */
#heroImage[src$="find-work.png"] { width: auto; max-width: none; height: 624px; max-height: none; }
#heroImage[src$="find-emp.png"]  { width: auto; max-width: none; height: 450px; max-height: none; }

.hero__dots { display: flex; justify-content: flex-start; gap: 12px; margin-top: 38px; }
.hero__dots button {
  width: 56px;
  height: 4px;
  border: 0;
  border-radius: 4px;
  background: rgba(255, 255, 255, .35);
  cursor: pointer;
  transition: background var(--ease), width var(--ease);
  position: relative;
  overflow: hidden;
}
.hero__dots button.is-active { background: rgba(255, 255, 255, .35); width: 80px; }
/* progress fill on the active dot */
.hero__dots button.is-active::after {
  content: "";
  position: absolute;
  inset: 0;
  inset-inline-start: 0;
  background: var(--white);
  transform-origin: inline-start;
  animation: dot-progress 9s linear;
}

/* Scroll-down indicator */
.hero__scroll {
  position: absolute;
  z-index: 2;
  inset-block-end: 26px;
  inset-inline: 0;
  margin-inline: auto;            /* direction-agnostic centring */
  width: fit-content;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, .75);
  font-size: .82rem;
  animation: float-y 2.2s ease-in-out infinite;
}
.hero__scroll-mouse {
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, .6);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 7px;
}
.hero__scroll-mouse span {
  width: 4px;
  height: 8px;
  border-radius: 4px;
  background: var(--white);
  animation: scroll-wheel 1.8s ease-in-out infinite;
}
.hero__scroll:hover { color: var(--white); }

/* =============================================================
   Audiences — ذات as the connector between both sides
   ============================================================= */
.audiences {
  background: #f6f8fc url("../assets/bg1.jpg") center/cover no-repeat;
  padding-block: 84px 104px;
}

/* Connection statement */
.audiences__intro { max-width: 760px; margin: 0 auto 52px; text-align: center; }
.audiences__kicker {
  margin-bottom: 14px;
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--indigo);
}
.audiences__heading {
  font-size: clamp(1.55rem, 3.4vw, 2.6rem);
  line-height: 1.4;
  font-weight: 700;
  color: var(--heading);
}
.u-blue   { color: var(--blue); }
.u-indigo { color: var(--indigo); }
.audiences__sub { margin-top: 16px; color: var(--muted); font-size: 1.08rem; }

/* ---- Creative "orbit" hub: the features curve around the central ذات ---- */
.audiences__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr clamp(200px, 21vw, 244px) 1fr;
  align-items: center;
  gap: 8px;
}

/* no box — content sits directly on the section background */
.audience { position: relative; padding: 8px 22px 0; }

.audience__head { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-bottom: 28px; text-align: center; }
.audience__icon { width: 96px; height: 96px; }
.audience__title { font-size: 1.7rem; font-weight: 700; }
.audience--seekers   .audience__title { color: var(--blue); }
.audience--companies .audience__title { color: var(--indigo); }

.audience__list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 34px; }
.audience__list li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 1.02rem;
  transition: margin .4s var(--ease), background var(--ease);
}
.audience__list li::before {
  content: "";
  flex: none;
  width: 20px;
  height: 20px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.2l-3.5-3.5a1 1 0 1 0-1.4 1.4l4.2 4.2a1 1 0 0 0 1.4 0l9.9-9.9a1 1 0 1 0-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.2l-3.5-3.5a1 1 0 1 0-1.4 1.4l4.2 4.2a1 1 0 0 0 1.4 0l9.9-9.9a1 1 0 1 0-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.audience--seekers   .audience__list li { background: var(--tint-blue);   color: #5e95c4; }
.audience--companies .audience__list li { background: var(--tint-indigo); color: #6c70ac; }

/* concave curve so the inner edges hug the central circle (no overlap) */
.audience--seekers   .audience__list li:nth-child(2),
.audience--seekers   .audience__list li:nth-child(4) { margin-inline-end: 18px; }
.audience--seekers   .audience__list li:nth-child(3) { margin-inline-end: 34px; }
.audience--companies .audience__list li:nth-child(2),
.audience--companies .audience__list li:nth-child(4) { margin-inline-start: 18px; }
.audience--companies .audience__list li:nth-child(3) { margin-inline-start: 34px; }

.audience .btn { width: 100%; }

/* ---- Central ذات hub (glowing, pulsing, sits in the curved gap) ---- */
.hub {
  position: relative;
  z-index: 3;                 /* always above the pills */
  align-self: center;
  width: 100%;
  display: grid;
  place-items: center;
}
.hub__beam, .hub__flow { display: none; }   /* replaced by the orbit layout */

.hub__badge {
  position: relative;
  z-index: 2;
  width: 188px;
  height: 188px;
  display: grid;
  place-items: center;
  background: var(--white);
  border-radius: 50%;
  box-shadow: 0 22px 48px rgba(34, 38, 87, .22), 0 0 0 9px rgba(255, 255, 255, .7);
}
.hub__badge img { width: 116px; }
.hub__pulse {
  position: absolute;
  width: 188px;
  height: 188px;
  border-radius: 50%;
  border: 2px solid var(--blue);
  animation: pulse-ring 3s ease-out infinite;
}
.hub__pulse--2 { border-color: var(--indigo); animation-delay: 1.5s; }

/* =============================================================
   Why Thaat
   ============================================================= */
.why {
  color: var(--white);
  background: #141639;              /* matches the whythaat.png background */
  padding-block: 80px;
}
.why__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: center;
  gap: 50px;
}
.why__title { color: var(--white); font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: 20px; }
.why__lead  { color: #d8deea; font-size: 1.1rem; max-width: 60ch; margin-bottom: 32px; }
.why__features { display: flex; flex-direction: column; gap: 22px; }
.why__features li { padding-inline-start: 22px; border-inline-start: 3px solid var(--blue); }
.why__features strong { display: block; color: var(--white); font-size: 1.15rem; margin-bottom: 4px; }
.why__features li { color: #c9d0de; }
.why__media { display: flex; justify-content: center; }
.why__image { width: 100%; max-width: 460px; }

/* =============================================================
   Testimonials
   ============================================================= */
.testimonials { background: var(--bg-muted); padding-block: 90px; }
.testimonials__intro { max-width: 720px; text-align: center; margin-inline: auto; }
.testimonials__title { color: var(--ink); font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 20px; }
.testimonials__intro p { color: var(--muted); font-size: 1.08rem; line-height: 1.9; }
.testimonials__intro .btn { margin-top: 28px; }

/* Continuous marquee row — cards sit side by side and drift slowly.
   Arabic reads right-to-left, so the strip travels left→right there and
   right→left in English (mirrored), which matches the reading direction. */
.testimonials__viewport {
  overflow: hidden;
  margin-top: 48px;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}
.testimonials__track {
  display: flex;
  width: max-content;
  animation: t-marquee-ltr 60s linear infinite;
}
[dir='rtl'] .testimonials__track { animation-name: t-marquee-rtl; }
.testimonials__viewport:hover .testimonials__track { animation-play-state: paused; }
.testimonials__list { display: flex; gap: 24px; padding-inline: 12px; }

@keyframes t-marquee-ltr {   /* content drifts right → left */
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes t-marquee-rtl {   /* content drifts left → right */
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
  .testimonials__track { animation: none; }
}
/* testimonial cards */
.testimonial {
  position: relative;
  flex: 0 0 380px;                /* even card widths across the marquee */
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--white);
  border: 0;
  border-radius: 18px;
  padding: 28px 26px 24px;
  box-shadow: 0 8px 24px rgba(20, 22, 50, .05);
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.testimonial::before {
  content: "\201D";
  position: absolute;
  inset-block-start: 2px;
  inset-inline-end: 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 5rem;
  line-height: 1;
  color: rgba(80, 144, 199, .13);
  pointer-events: none;
}
.testimonial:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 42px rgba(20, 22, 50, .1);
}
.testimonial__stars { color: #f5a623; letter-spacing: 3px; font-size: 1rem; }
.testimonial blockquote { color: #4b5563; font-size: 1.02rem; line-height: 1.8; flex: 1; }
.testimonial__author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
  padding-top: 18px;
  border-top: 1px solid #eef0f5;
}
.testimonial__avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(20, 22, 50, .12);
}
.testimonial__avatar--placeholder {
  background: #c7cbd8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M12 12c2.7 0 5-2.3 5-5s-2.3-5-5-5-5 2.3-5 5 2.3 5 5 5zm0 2c-3.3 0-10 1.7-10 5v3h20v-3c0-3.3-6.7-5-10-5z'/%3E%3C/svg%3E") center/66% no-repeat;
}
.testimonial__name { display: block; color: #1f2937; font-weight: 700; }
.testimonial__role { display: block; color: #4d64b2; font-size: .85rem; margin-top: 2px; }

/* =============================================================
   Partners marquee
   ============================================================= */
.partners { background: linear-gradient(180deg, #1b1d2f, #181a2d); padding-block: 52px; }
.partners__viewport {
  overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.partners__track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.partners__viewport:hover .partners__track { animation-play-state: paused; }
.partners__list { display: flex; align-items: center; gap: 60px; padding-inline: 30px; }
.partner-card { display: grid; place-items: center; }
.partner-card img {
  height: 40px;
  width: auto;
  max-width: 132px;
  object-fit: contain;
  filter: brightness(0) invert(1);   /* render any logo as clean white on the dark strip */
  opacity: .55;
  transition: opacity var(--ease);
}
.partner-card:hover img { opacity: 1; }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(50%); }   /* RTL: slide toward start */
}

/* =============================================================
   Stats
   ============================================================= */
/* Stats — a clean card in its own light band, clearly separated from the hero */
.stats {
  background: #f7f9fc;
  padding-block: 58px 62px;
}
.stats__card {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  max-width: 1000px;
  margin-inline: auto;
  padding: 6px;
  background: var(--white);
  border: 0;
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(20, 22, 50, .07);
}
.stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
  padding: 26px 16px;
  border-radius: 13px;
  transition: background var(--ease);
}
.stat:hover { background: #f4f7fb; }
.stat__number {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-weight: 400;               /* lighter figures, no bold */
  line-height: 1;
  color: var(--blue-dark);
  font-variant-numeric: tabular-nums;
}
.stat__label { color: var(--muted); font-size: .96rem; }
.stats__divider { flex: 0 0 1px; width: 1px; align-self: center; height: 48px; background: #e7eaf1; }

/* =============================================================
   Footer
   ============================================================= */
/* Professional dark footer */
.site-footer {
  position: relative;
  background: linear-gradient(180deg, #1b1d2f, #14162a);
  color: #c3c9dc;
}
/* top accent line */
.site-footer::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--indigo));
}

/* closing CTA band */
.site-footer__cta {
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .02);
}
.site-footer__cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 40px;
}
.site-footer__cta-text h3 { color: #fff; font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin-bottom: 8px; }
.site-footer__cta-text p  { color: #939bb6; font-size: 1rem; }
.site-footer__cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.site-footer__cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  padding: 13px 24px;
  border-radius: 6px;
  font-size: .98rem;
  font-weight: 600;
  color: #fff;
  background: var(--blue);
  transition: background var(--ease), transform var(--ease);
}
.site-footer__cta-btn:hover { background: var(--blue-dark); transform: translateY(-2px); }
.site-footer__cta-btn--indigo { background: var(--indigo); }
.site-footer__cta-btn--indigo:hover { background: var(--indigo-dark); }

/* main columns */
.site-footer__inner {
  display: grid;
  grid-template-columns: 1.9fr 1fr 1fr 1.2fr;
  gap: 40px 48px;
  align-items: start;
  padding-block: 60px 48px;
}

/* brand */
.site-footer__logo { height: 74px; width: auto; margin-bottom: 20px; }
.site-footer__tagline {
  color: #939bb6;
  font-size: .98rem;
  line-height: 1.85;
  max-width: 42ch;
  margin-bottom: 24px;
}
.site-footer__social { display: flex; gap: 12px; }
.site-footer__social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  border: 0;
  color: #c3c9dc;
  transition: background var(--ease), color var(--ease), transform var(--ease);
}
.site-footer__social a:hover { background: var(--blue); color: #fff; transform: translateY(-3px); }
.site-footer__social svg { width: 18px; height: 18px; fill: currentColor; }

/* link + contact columns */
.site-footer__col { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.site-footer__heading {
  position: relative;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  padding-bottom: 10px;
}
.site-footer__heading::after {
  content: "";
  position: absolute;
  inset-block-end: 0;
  inset-inline-start: 0;
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--blue);
}
.site-footer__col a { color: #939bb6; font-size: .98rem; transition: color var(--ease); }
.site-footer__col a:hover { color: #fff; }
.site-footer__contact a { display: flex; align-items: center; gap: 9px; }
.site-footer__contact svg { width: 17px; height: 17px; flex: none; color: var(--blue-light); }

/* bottom bar */
.site-footer__bar { border-top: 1px solid rgba(255, 255, 255, .08); }
.site-footer__bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-block: 22px;
}
.site-footer__bar p { color: #7b8299; font-size: .9rem; }
.site-footer__bar a { color: #7aa8d6; font-size: .9rem; }
.site-footer__bar a:hover { color: #a9cef0; }

/* =============================================================
   Animations
   ============================================================= */
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* Hero motion */
@keyframes ken-burns {
  from { transform: scale(1) translate(0, 0); }
  to   { transform: scale(1.12) translate(1.5%, -1.5%); }
}
@keyframes hero-up {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: none; }
}
@keyframes hero-zoom {
  from { opacity: 0; transform: scale(.92) translateY(16px); }
  to   { opacity: 1; transform: none; }
}
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-16px); }
}
/* Silk: drifting positions + gentle skew = flowing satin folds */
@keyframes silk-a {
  0%   { background-position:   0%   0%; transform: skewY(-5deg) translateX(-4%) scale(1.05); }
  50%  { background-position:  60%  45%; transform: skewY(4deg)  translateX(4%)  scale(1.12); }
  100% { background-position: 100%  85%; transform: skewY(-3deg) translateX(-2%) scale(1.05); }
}
@keyframes silk-b {
  0%   { background-position: 100% 100%; transform: skewX(6deg)  translateY(4%)  scale(1.08); }
  50%  { background-position:  35%  50%; transform: skewX(-5deg) translateY(-4%) scale(1.15); }
  100% { background-position:   0%   0%; transform: skewX(4deg)  translateY(2%)  scale(1.08); }
}
@keyframes sheen {
  0%, 22%  { transform: translateX(-120%); }
  45%, 100% { transform: translateX(120%); }
}
@keyframes dot-progress {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
@keyframes scroll-wheel {
  0%   { opacity: 0; transform: translateY(-6px); }
  40%  { opacity: 1; }
  80%  { opacity: 0; transform: translateY(10px); }
  100% { opacity: 0; }
}

/* Hub connector: particles flowing between the two sides + pulsing rings */
@keyframes flow-x-rl {
  0%      { opacity: 0; transform: translate(-50%, -50%) translateX(200px); }
  12%, 88% { opacity: 1; }
  100%    { opacity: 0; transform: translate(-50%, -50%) translateX(-200px); }
}
@keyframes flow-x-lr {
  0%      { opacity: 0; transform: translate(-50%, -50%) translateX(-200px); }
  12%, 88% { opacity: 1; }
  100%    { opacity: 0; transform: translate(-50%, -50%) translateX(200px); }
}
@keyframes flow-y-tb {
  0%      { opacity: 0; transform: translate(-50%, -50%) translateY(-72px); }
  12%, 88% { opacity: 1; }
  100%    { opacity: 0; transform: translate(-50%, -50%) translateY(72px); }
}
@keyframes flow-y-bt {
  0%      { opacity: 0; transform: translate(-50%, -50%) translateY(72px); }
  12%, 88% { opacity: 1; }
  100%    { opacity: 0; transform: translate(-50%, -50%) translateY(-72px); }
}
@keyframes pulse-ring {
  0%   { transform: scale(1);   opacity: .5; }
  100% { transform: scale(1.65); opacity: 0; }
}

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* =============================================================
   Responsive
   ============================================================= */
@media (max-width: 1024px) {
  .testimonials__intro { text-align: center; }
}

@media (max-width: 880px) {
  .site-nav,
  .site-header__actions { display: none; }
  .nav-toggle { display: flex; }

  .hero { text-align: center; padding-block: calc(var(--header-h) + 20px) 50px; }
  .hero__inner { grid-template-columns: 1fr; gap: 18px; }
  .hero__content { max-width: none; order: 2; }
  .hero__kicker  { margin-bottom: 12px; }
  .hero__media   { order: 1; align-self: auto; margin-bottom: 0; }
  .hero__image   { max-width: 360px; }
  /* height:auto resets the fixed desktop heights so mobile scales by width */
  #heroImage[src$="find-work.png"] { width: 100%; max-width: 430px; height: auto; }
  #heroImage[src$="find-emp.png"]  { width: 100%; max-width: 380px; height: auto; }
  .hero__dots    { justify-content: center; margin-top: 28px; }
  .hero__scroll  { display: none; }       /* redundant on mobile */
  .hero__orb     { filter: blur(50px); }

  /* stacked vertically: seekers → ذات → companies (no curve when stacked) */
  .audiences__grid { grid-template-columns: 1fr; gap: 0; }
  .audience__list li { margin-inline: 0; }
  .hub { width: 100%; height: 150px; }
  .hub__badge, .hub__pulse { width: 142px; height: 142px; }
  .hub__badge img { width: 88px; }

  .stats { padding-block: 44px; }
  .stat { padding: 20px 12px; }
  .stat__label { font-size: .9rem; }
  .stats__divider { height: 40px; }

  .why__inner { grid-template-columns: 1fr; text-align: center; gap: 36px; }
  .why__media { order: -1; }
  .why__lead  { margin-inline: auto; }
  .why__features li { border-inline: 0; padding-inline: 0; }

  .testimonial { flex-basis: 300px; max-width: 300px; }

  /* footer: brand on top (full width), links in 3 columns below */
  .site-footer__inner { grid-template-columns: repeat(3, 1fr); gap: 32px 28px; padding-block: 52px 40px; }
  .site-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  .container { padding-inline: 18px; }
  .audience { padding: 30px 22px; }
  .stats__card { flex-wrap: wrap; padding: 20px 16px; }
  .stat { flex: 0 0 50%; padding-block: 12px; }
  .stats__divider { display: none; }
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
  .site-footer__cta-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .site-footer__cta-actions { width: 100%; }
  .site-footer__cta-btn { flex: 1; }
  .site-footer__bar-inner { justify-content: center; text-align: center; }
}

/* footer social channels — sit under the brand tagline */
.site-footer__social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  list-style: none;
  padding: 0;
}
.site-footer__social a {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .8);
  transition: background var(--ease), color var(--ease), transform var(--ease);
}
.site-footer__social a:hover { background: var(--blue); color: #fff; transform: translateY(-2px); }
.site-footer__social svg { width: 17px; height: 17px; }

/* footer bottom bar — legal links */
.site-footer__legal { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer__legal a { transition: color var(--ease); }
.site-footer__legal a:hover { color: #fff; text-decoration: underline; }

/* build tag — deliberately faint, present for support not for reading */
.site-footer__version {
  font-size: .68rem;
  letter-spacing: .5px;
  color: rgba(255, 255, 255, .22);
  user-select: all;
}
