/* ============================================================
   File: 06-home.css
   Home page: hero, stats, marquee, counters, service tabs, why-us grid, process strip, testimonials carousel.
   ============================================================ */



/* =========================================================
   HERO STATS
   Clean / Modern / Elegant
   ========================================================= */

/* =========================================================
   HERO STATS
   Clean / Simple / Premium
   ========================================================= */

.hero3d-stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: space-between;
  align-items: center;
  gap: 30px;

  margin-top: 40px;
  padding-top: 28px;

  border-top: 1px solid var(--line);

  direction: rtl;
}


/* =========================
   STAT ITEM
   ========================= */

.hero3d-stat {
  display: flex;
  align-items: center;

  gap: 12px;

  direction: rtl;

  transition: transform 0.25s ease;
}

.hero3d-stat:hover {
  transform: translateY(-2px);
}


/* =========================
   NUMBER BADGE
   ========================= */

.hero3d-stat .num-badge {
  width: 50px;
  height: 50px;

  min-width: 50px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 13px;

  background: linear-gradient(
    135deg,
    #38bdf8,
    #0ea5e9
  );

  color: #fff;

  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;

  line-height: 1;

  box-shadow:
    0 5px 14px rgba(14, 165, 233, 0.18);

  transform: rotate(-4deg);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.hero3d-stat:hover .num-badge {
  transform: rotate(0deg) scale(1.04);

  box-shadow:
    0 7px 18px rgba(14, 165, 233, 0.25);
}


/* =========================
   TEXT WRAPPER
   ========================= */

.hero3d-stat > div {
  display: flex;
  flex-direction: column;

  align-items: flex-start;

  text-align: right;
}


/* =========================
   MAIN TITLE
   ========================= */

.hero3d-stat strong {
  display: block;

  margin: 0;

  color: #000;

  font-family: var(--font-display);

  font-size: 17px;
  font-weight: 900;

  line-height: 1.5;

  white-space: nowrap;

  letter-spacing: -0.25px;
}


/* Arabic title */
html[lang="ar"] .hero3d-stat strong {
  font-family: var(--font-ar-display);

  font-size: 16px;
  font-weight: 900;

  line-height: 1.5;

  letter-spacing: 0;
}


/* =========================
   SECONDARY TEXT
   ========================= */

.hero3d-stat > div > span {
  display: block;

  margin-top: 1px;

  color: #777;

  font-family: var(--font-display);

  font-size: 11.5px;
  font-weight: 500;

  line-height: 1.5;

  white-space: nowrap;
}


/* Arabic secondary text */
html[lang="ar"] .hero3d-stat > div > span {
  font-family: var(--font-ar-display);

  font-size: 12px;
  font-weight: 500;
}


/* =========================
   FIRST — CUSTOMER RATING
   ========================= */

.hero3d-stat:first-child .num-badge {
  background: linear-gradient(
    135deg,
    #38bdf8,
    #0ea5e9
  );

  color: #fff;
}


/* =========================
   SECOND — EXPERIENCE
   ========================= */

.hero3d-stat:nth-child(2) .num-badge {
  background: linear-gradient(
    135deg,
    #0A2540,
    #1e3a5f
  ) !important;

  color: #fff !important;

  box-shadow:
    0 5px 14px rgba(10, 37, 64, 0.18);
}


/* =========================
   THIRD — SERVICES
   ========================= */

.hero3d-stat:nth-child(3) .num-badge {
  background: linear-gradient(
    135deg,
    #F0B400,
    #F59E0B
  ) !important;

  color: #fff !important;

  box-shadow:
    0 5px 14px rgba(245, 158, 11, 0.18);
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 980px) {

  .hero3d-stats {
    gap: 24px;
  }

}


@media (max-width: 640px) {

  .hero3d-stats {
    grid-template-columns: 1fr;

    gap: 14px;

    padding-top: 24px;
    margin-top: 28px;
  }

  .hero3d-stat {
    justify-content: flex-start;
  }

  .hero3d-stat .num-badge {
    width: 48px;
    height: 48px;

    min-width: 48px;

    font-size: 16px;

    border-radius: 13px;
  }

  html[lang="ar"] .hero3d-stat strong {
    font-size: 15px;
  }

}




/* =========================
   MAIN TITLE — FORCE BLACK
   ========================= */

.hero3d-stat strong,
.hero3d-stat strong span {
  color: #000000 !important;
  opacity: 1 !important;
  font-weight: 900 !important;
  text-shadow: none !important;
  filter: none !important;
}


/* Arabic */
html[lang="ar"] .hero3d-stat strong,
html[lang="ar"] .hero3d-stat strong span {
  color: #000000 !important;
  opacity: 1 !important;
  font-family: var(--font-ar-display) !important;
  font-size: 13px;
  font-weight: 900 !important;
  line-height: 1.5;
}



/* Hero 3D layout (replaces older .hero rules) */
.hero3d {
  position: relative;
  padding: 80px 0 0;
  overflow: hidden;
  isolation: isolate;
  min-height: 100vh;
}
.hero3d-inner { position: relative; z-index: 2; }
.hero3d-grid-cols {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 32px 0 64px;
}
@media (max-width: 980px) { .hero3d-grid-cols { grid-template-columns: 1fr; gap: 40px; padding: 24px 0 48px; } }

.hero3d-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6.4vw, 86px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 700;
  margin: 18px 0 22px;
  color: var(--ink);
  text-wrap: balance;
}
html[lang="ar"] .hero3d-title { font-family: var(--font-ar-display); letter-spacing: -0.01em; line-height: 1.15; }

.hero3d-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.hero3d-stat { display: flex; gap: 12px; align-items: center; }
.hero3d-stat strong { display: block; font-family: var(--font-display); font-size: 14px; color: var(--ink); }
.hero3d-stat span { font-size: 12px; color: var(--ink-3); }
html[lang="ar"] .hero3d-stat strong { font-family: var(--font-ar-display); font-size: 15px; }
@media (max-width: 640px) {
  .hero3d-stats { grid-template-columns: 1fr; gap: 14px; padding-top: 24px; margin-top: 28px; }
  .hero3d-stat .num-badge { width: 48px; height: 48px; font-size: 16px; border-radius: 14px; }
}

/* Stage with deck of floating cards */
.hero3d-stage {
  position: relative;
  perspective: 1400px;
  perspective-origin: 50% 50%;
}
.hero3d-deck {
  position: relative;
  transform-style: preserve-3d;
  animation: deckFloat 8s ease-in-out infinite alternate;
}
@keyframes deckFloat {
  from { transform: rotateY(-6deg) rotateX(4deg); }
  to   { transform: rotateY(6deg)  rotateX(-2deg); }
}
.hero3d-deck > * { transform-style: preserve-3d; }

.float-card {
  position: absolute;
  display: flex; gap: 12px; align-items: center;
  padding: 14px 18px;
  border-radius: 16px;
  z-index: 3;
  font-size: 13px;
}
.float-card .fc-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.float-card strong { display: block; font-size: 14px; color: var(--ink); font-family: var(--font-display); }
.float-card span { font-size: 12px; color: var(--ink-3); }
html[lang="ar"] .float-card strong { font-family: var(--font-ar-display); }

.float-card-a {
  top: -18px;
  inset-inline-end: -28px;
  transform: translateZ(80px) rotate(3deg);
  animation: floatA 6s ease-in-out infinite alternate;
}
.float-card-b {
  bottom: 24px;
  inset-inline-start: -36px;
  transform: translateZ(60px) rotate(-2deg);
  animation: floatB 7s ease-in-out infinite alternate;
}
@keyframes floatA { to { transform: translateZ(80px) translateY(-10px) rotate(2deg); } }
@keyframes floatB { to { transform: translateZ(60px) translateY(8px) rotate(-3deg); } }

.float-strip {
  position: absolute;
  top: 30%;
  inset-inline-start: -54px;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  z-index: 4;
  transform: translateZ(100px) rotate(-90deg);
  white-space: nowrap;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
html[lang="ar"] .float-strip { letter-spacing: 0; text-transform: none; }
.float-strip-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #00D4FF;
  box-shadow: 0 0 12px #00D4FF;
  animation: pulseDot 1.6s ease-in-out infinite;
}
@keyframes pulseDot { 50% { box-shadow: 0 0 22px #00D4FF; transform: scale(1.3); } }

.avatars3d { display: flex; }
.avatars3d span {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  border: 2px solid #fff;
  margin-inline-start: -8px;
}
.avatars3d span:first-child { margin-inline-start: 0; }

@media (max-width: 980px) {
  .hero3d-deck { animation: none; transform: none; }
  .float-card-a { top: 8px; inset-inline-end: 0; transform: rotate(2deg); animation: none; }
  .float-card-b { bottom: 16px; inset-inline-start: 0; transform: rotate(-2deg); animation: none; }
  .float-strip { display: none; }
}
@media (max-width: 520px) {
  .hero3d { padding-top: 60px; min-height: auto; }
  .float-card { padding: 10px 12px; font-size: 12px; }
  .float-card .fc-icon { width: 34px; height: 34px; }
  .float-card strong { font-size: 12.5px; }
  .float-card span { font-size: 11px; }
}





   
/* Home page styles */
.hero {
  position: relative;
  padding: 56px 0 0;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }
.hero-copy h1 {
  margin: 24px 0 20px;
  font-weight: 800;
}
.hero-copy h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-actions { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 28px; margin-top: 40px; flex-wrap: wrap;
  padding-top: 28px; border-top: 1px solid var(--line);
}
.hero-stat { display: flex; flex-direction: column; gap: 2px; }
.hero-stat .v { font-size: 22px; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
.hero-stat .l { font-size: 13px; color: var(--ink-3); }

.hero-visual {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-soft);
  box-shadow: var(--shadow-lg);
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,.3));
}
.hero-badge {
  position: absolute;
  inset-block-start: 20px;
  inset-inline-start: 20px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-radius: var(--radius);
  padding: 12px 16px;
  display: flex; gap: 12px; align-items: center;
  box-shadow: var(--shadow);
  z-index: 1;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(16,185,129,.2); }
.hero-badge .text { font-size: 13px; font-weight: 600; color: var(--ink); }

.hero-card-floater {
  position: absolute;
  inset-block-end: 24px;
  inset-inline-end: 24px;
  background: #fff;
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow-lg);
  display: flex; gap: 14px; align-items: center;
  z-index: 1;
  max-width: 260px;
}
.hero-card-floater .avatars { display: flex; }
.hero-card-floater .avatars img {
  width: 32px; height: 32px; border-radius: 50%; border: 2px solid #fff;
  margin-inline-start: -8px; object-fit: cover;
}
.hero-card-floater .avatars img:first-child { margin-inline-start: 0; }
.hero-card-floater .text { font-size: 12px; color: var(--ink-2); line-height: 1.35; }
.hero-card-floater .text strong { color: var(--ink); display: block; font-size: 14px; }

.hero-marquee {
  margin-top: 80px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  background: var(--bg-elev);
  overflow: hidden;
  position: relative;
}
.hero-marquee::before, .hero-marquee::after {
  content: "";
  position: absolute; top: 0; bottom: 0; width: 80px; z-index: 1;
  pointer-events: none;
}
.hero-marquee::before { inset-inline-start: 0; background: linear-gradient(90deg, var(--bg-elev), transparent); }
.hero-marquee::after  { inset-inline-end:   0; background: linear-gradient(270deg, var(--bg-elev), transparent); }
html[dir="rtl"] .hero-marquee::before { background: linear-gradient(270deg, var(--bg-elev), transparent); }
html[dir="rtl"] .hero-marquee::after  { background: linear-gradient(90deg, var(--bg-elev), transparent); }
.marquee-track {
  display: flex; gap: 56px; align-items: center;
  width: max-content;
  animation: marquee 35s linear infinite;
  color: var(--ink-3);
  font-size: 14px;
  font-weight: 500;
}
.marquee-track span {
  display: inline-flex; align-items: center; gap: 12px;
  letter-spacing: 0.04em;
}
.marquee-track span::after {
  content: "✦"; color: var(--accent); font-size: 10px;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}
html[dir="rtl"] .marquee-track { animation-direction: reverse; }

/* counters block */
.counters {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-elev);
}
@media (max-width: 720px) { .counters { grid-template-columns: 1fr 1fr; } }
.counters > div {
  padding: 36px 28px;
  border-inline-end: 1px solid var(--line);
  border-block-end: 1px solid var(--line);
}
.counters > div:nth-child(4n) { border-inline-end: none; }
.counters > div:nth-last-child(-n+4) { border-block-end: none; }
@media (max-width: 720px) {
  .counters > div { border-inline-end: 1px solid var(--line); border-block-end: 1px solid var(--line); }
  .counters > div:nth-child(2n) { border-inline-end: none; }
  .counters > div:nth-last-child(-n+2) { border-block-end: none; }
}
.counters .num {
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 700; letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1;
}
.counters .num .suffix { color: var(--accent); }
.counters .lab { font-size: 14px; color: var(--ink-3); margin-top: 10px; }

/* services tabs */
.services-shell { display: grid; grid-template-columns: 320px 1fr; gap: 56px; align-items: start; }
@media (max-width: 980px) { .services-shell { grid-template-columns: 1fr; } }
.tabs {
  display: flex; flex-direction: column; gap: 8px;
  position: sticky; top: 96px;
}
@media (max-width: 980px) {
  .tabs { flex-direction: row; overflow-x: auto; position: static; }
  .tabs button { white-space: nowrap; }
}
.tabs button {
  text-align: start;
  padding: 18px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-elev);
  font-weight: 600;
  font-size: 16px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  transition: border-color .2s, color .2s, background .2s;
}
.tabs button:hover { border-color: var(--line-2); }
.tabs button.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.tabs button .count {
  font-size: 12px;
  background: var(--bg-soft);
  color: var(--ink-3);
  padding: 4px 10px; border-radius: var(--radius-pill);
  font-weight: 600;
}
.tabs button.active .count { background: rgba(255,255,255,.14); color: #fff; }

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.service-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  display: flex; flex-direction: column;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-2); }
.service-card .img {
  aspect-ratio: 4/3;
  position: relative;
  overflow: hidden;
  background: var(--bg-soft);
}
.service-card .img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.service-card:hover .img img { transform: scale(1.05); }
.service-card .img .icon-pill {
  position: absolute;
  inset-block-start: 14px; inset-inline-start: 14px;
  background: rgba(255,255,255,.94);
  border-radius: var(--radius-pill);
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-ink);
  display: inline-flex; align-items: center; gap: 6px;
}
.service-card .body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.service-card h3 { font-size: 18px; font-weight: 700; }
.service-card p { font-size: 14.5px; color: var(--ink-3); }
.service-card .read {
  margin-block-start: auto;
  display: inline-flex; gap: 8px; align-items: center;
  color: var(--accent-2); font-weight: 600; font-size: 14px; padding-top: 6px;
}

/* why us — wide grid */
.why-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (max-width: 820px) { .why-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .why-grid { grid-template-columns: 1fr; } }
.why-cell {
  background: var(--bg-elev);
  padding: 32px 28px;
  display: flex; flex-direction: column; gap: 14px;
  transition: background .2s;
  min-height: 220px;
}
.why-cell:hover { background: #fafdfb; }
.why-cell .ico {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  display: grid; place-items: center;
}
.why-cell h3 { font-size: 18px; }
.why-cell p { font-size: 14.5px; color: var(--ink-3); }

/* process strip */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 820px) { .process-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .process-grid { grid-template-columns: 1fr; } }
.process-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
}
.process-card .num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-2);
  letter-spacing: 0.1em;
}
.process-card h3 { margin: 14px 0 8px; font-size: 20px; }
.process-card p { font-size: 14.5px; color: var(--ink-3); }
.process-card::before {
  content: "";
  position: absolute; top: 0; inset-inline-start: 0;
  width: 36px; height: 3px; background: var(--accent);
  border-radius: 0 0 3px 3px;
}

/* testimonials carousel */
.t-carousel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.t-track {
  display: flex; gap: 20px; overflow: hidden;
  scroll-snap-type: x mandatory;
  padding-bottom: 4px;
}
.t-card {
  flex: 0 0 calc((100% - 40px) / 3);
  scroll-snap-align: start;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex; flex-direction: column; gap: 16px;
  min-height: 280px;
}
@media (max-width: 980px) { .t-card { flex: 0 0 calc((100% - 20px) / 2); } }
@media (max-width: 640px) { .t-card { flex: 0 0 100%; } }
.t-card .stars { color: var(--accent); letter-spacing: 2px; font-size: 14px; }
.t-card .body { color: var(--ink-2); font-size: 15.5px; line-height: 1.6; flex: 1; }
.t-card .who {
  display: flex; gap: 12px; align-items: center;
  border-top: 1px solid var(--line); padding-top: 14px;
}
.t-card .who img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.t-card .who .n { font-weight: 600; font-size: 14px; }
.t-card .who .r { font-size: 12px; color: var(--ink-3); }
.t-controls {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.t-arrows { display: flex; gap: 8px; }
.t-arrow {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-2);
  display: grid; place-items: center;
  background: #fff;
  transition: background .2s, border-color .2s;
}
.t-arrow:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
html[dir="rtl"] .t-arrow svg { transform: scaleX(-1); }

.t-dots { display: flex; gap: 6px; }
.t-dot {
  width: 28px; height: 4px; border-radius: 4px;
  background: var(--line);
  transition: background .2s, width .25s;
}
.t-dot.active { background: var(--accent); width: 44px; }

/* counter-card hover */
.counters > div {
  transition: background .3s, transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s;
  will-change: transform;
}
.counters > div:hover {
  background: var(--bg-soft);
  transform: translateY(-60px);
  box-shadow: 0 20px 40px -18px rgba(10,37,64,.25);
}