/* ============================================================
   TESTIMONIALS.CSS — BachatAI
   Dual infinite marquee — dark navy cards on white
   ============================================================ */

/* ── SECTION ──────────────────────────────────────────────── */
#testimonials {
  background: #fff;
  padding: 120px 0 140px;
  overflow: hidden;
}

/* ── HEADER ───────────────────────────────────────────────── */
.testi-header {
  text-align: center;
  padding: 0 40px;
  margin-bottom: 64px;
  /* GSAP animates this in — fallback: visible */
}

.testi-heading {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 60px);
  font-weight: 800;
  color: var(--color-navy);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 8px 0 16px;
}

.testi-subhead {
  font-size: var(--text-base);
  color: var(--color-muted);
  font-weight: 500;
}

/* ── TRACK WRAPPER — clips overflow ──────────────────────── */
.testi-track-wrap {
  overflow: hidden;
  margin-bottom: 20px;
  /* Fade edges with mask */
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
}

/* ── SCROLLING TRACK ──────────────────────────────────────── */
.testi-track {
  display: flex;
  gap: 20px;
  width: max-content;
  /* Pause on hover via JS class */
}

/* Row 1 scrolls left */
.testi-track--left {
  animation: testiLeft 32s linear infinite;
}

/* Row 2 scrolls right — starts offset so rows feel different */
.testi-track--right {
  animation: testiRight 28s linear infinite;
}

/* Paused state — added by JS on hover */
.testi-track--paused {
  animation-play-state: paused !important;
}

@keyframes testiLeft {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes testiRight {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

/* ── CARD ─────────────────────────────────────────────────── */
.testi-card {
  flex-shrink: 0;
  width: 340px;
  background: var(--color-navy);
  border-radius: 24px;
  padding: 32px;
  border: 1px solid rgba(255,255,255,0.06);

  /* Individual rotation via CSS var set inline */
  transform: rotate(var(--r, 0deg));

  /* Hover straightens and lifts */
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1),
              box-shadow 0.35s ease;

  box-shadow:
    0 4px 20px rgba(11,31,75,0.12),
    0 1px 4px rgba(11,31,75,0.08);

  cursor: default;
}

.testi-card:hover {
  transform: rotate(0deg) translateY(-8px) !important;
  box-shadow:
    0 20px 48px rgba(11,31,75,0.2),
    0 4px 12px rgba(11,31,75,0.1);
  z-index: 2;
}

/* ── STARS ────────────────────────────────────────────────── */
.testi-stars {
  color: #FFD700;
  font-size: 15px;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

/* ── QUOTE ────────────────────────────────────────────────── */
.testi-quote {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255,255,255,0.8);
  margin-bottom: 24px;
  font-style: italic;
}

/* ── AUTHOR ───────────────────────────────────────────────── */
.testi-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.testi-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800;
  color: #fff; flex-shrink: 0;
  letter-spacing: 0.5px;
}

.testi-name {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 3px;
}

.testi-role {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 768px) {
  #testimonials {
    padding: 80px 0 100px;
  }

  .testi-card {
    width: 290px;
    padding: 24px;
  }

  /* Reduce rotation on mobile */
  .testi-card {
    transform: rotate(calc(var(--r, 0deg) * 0.5));
  }
}