/* ══════════════════════════════════════════════════════
   TESTIMONIALS — Premium dark glassmorphism marquee
   ══════════════════════════════════════════════════════ */

.testi-section { padding-bottom: 96px }

/* Stage: clips horizontal overflow, pads vertically for zoomed centre card */
.testi-stage {
  overflow: hidden;
  padding: 48px 0;
}

/* Track: CSS drives infinite scroll, rAF never touches animation-play-state */
.testi-track {
  display: flex;
  gap: 24px;
  width: max-content;
  will-change: transform;
  animation: tmarquee 40s linear infinite;
}
@keyframes tmarquee {
  from { transform: translateX(0) }
  to   { transform: translateX(-50%) }
}

/* ─── GLASS CARD ──────────────────────────────────────── */
.tcard {
  position: relative;
  min-width: 300px;
  max-width: 300px;
  flex-shrink: 0;
  padding: 28px;
  border-radius: 20px;
  cursor: default;
  transform-origin: center center;
  will-change: transform, opacity;
  overflow: hidden;

  /* dark near-black glass base */
  background: linear-gradient(
    145deg,
    rgba(16, 12, 32, 0.92) 0%,
    rgba(8,  8, 20, 0.88) 100%
  );
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);

  /* purple-tinted glass border */
  border: 1px solid rgba(139, 92, 246, 0.18);

  /* default depth shadow + subtle inner highlight */
  box-shadow:
    0 4px 28px rgba(0, 0, 0, 0.40),
    0 1px 0   rgba(255, 255, 255, 0.05) inset;
}

/* Top glass light-reflection line */
.tcard::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.20) 50%,
    transparent
  );
  pointer-events: none;
}

/* Bottom ambient glow (rAF intensifies it for centre card) */
.tcard::after {
  content: '';
  position: absolute;
  bottom: -18px; left: 10%; right: 10%;
  height: 18px;
  background: rgba(99, 102, 241, 0.08);
  filter: blur(12px);
  pointer-events: none;
  border-radius: 0 0 20px 20px;
}

/* ─── STARS ───────────────────────────────────────────── */
.tc-stars {
  font-size: .92rem;
  letter-spacing: 2px;
  margin-bottom: 14px;
  color: #fbbf24;
  text-shadow:
    0 0  8px rgba(251, 191, 36, 0.70),
    0 0 20px rgba(251, 191, 36, 0.25);
}

/* ─── QUOTE ───────────────────────────────────────────── */
.tc-text {
  color: rgba(255, 255, 255, 0.82);
  font-size: .875rem;
  line-height: 1.78;
  margin-bottom: 22px;
  font-style: italic;
  /* no margin truncation — rAF changes opacity, not height */
}

/* ─── USER ROW ────────────────────────────────────────── */
.tc-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tc-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .78rem;
  font-weight: 700;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

/* Avatar gradient palette */
.grad-indigo  { background: linear-gradient(135deg, #4F46E5, #7C3AED) }
.grad-violet  { background: linear-gradient(135deg, #7C3AED, #9333EA) }
.grad-blue    { background: linear-gradient(135deg, #2563EB, #4F46E5) }
.grad-teal    { background: linear-gradient(135deg, #0D9488, #0EA5E9) }
.grad-purple  { background: linear-gradient(135deg, #9333EA, #C026D3) }
.grad-emerald { background: linear-gradient(135deg, #059669, #0D9488) }
.grad-rose    { background: linear-gradient(135deg, #E11D48, #DB2777) }
.grad-amber   { background: linear-gradient(135deg, #D97706, #EA580C) }
.grad-cyan    { background: linear-gradient(135deg, #0891B2, #2563EB) }
.grad-pink    { background: linear-gradient(135deg, #DB2777, #9333EA) }

/* Name */
.tc-meta { display: flex; flex-direction: column; gap: 3px }

.tc-name {
  display: block;
  font-size: .88rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

/* Location with pin icon */
.tc-loc {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .72rem;
  color: rgba(255, 255, 255, 0.46);
  letter-spacing: .02em;
}
.tc-loc svg { opacity: .6; flex-shrink: 0 }

/* ─── REDUCED MOTION ──────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .testi-track  { animation: none }
  .tcard        { transform: scale(1) !important; opacity: 1 !important }
}
