/* ════════════════════════════════════════════════════════════════
   TESTIMONIALS MARQUEE — Apple/Stripe Infinite Scroll
   World-Domination Upgrade v1.0
════════════════════════════════════════════════════════════════ */

/* ── Section Override ── */
#testimonials {
  overflow: hidden;
  padding: 72px 0 72px;
}

.testimonials-marquee-wrap {
  position: relative;
  overflow: hidden;
  margin-top: 60px;
  /* edge fade */
  -webkit-mask-image: linear-gradient(90deg,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
  mask-image: linear-gradient(90deg,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
}

/* ── Track ── */
.marquee-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: marqueeScroll 35s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

/* Two rows of cards */
.marquee-track.marquee-reverse {
  animation-direction: reverse;
  animation-duration: 40s;
  margin-top: 20px;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Testimonial Card ── */
.testi-marquee-card {
  width: 320px;
  flex-shrink: 0;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 28px 28px 24px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  cursor: default;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s cubic-bezier(0.16,1,0.3,1);
}

.testi-marquee-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(163,207,43,0.5), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.testi-marquee-card:hover {
  border-color: rgba(163,207,43,0.3);
  box-shadow: 0 12px 40px rgba(163,207,43,0.08);
  transform: translateY(-4px);
}

.testi-marquee-card:hover::before {
  opacity: 1;
}

/* ── Stars ── */
.tmc-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 14px;
}

.tmc-stars span {
  font-size: 13px;
  color: #f59e0b;
  display: inline-block;
  animation: none;
}

.testi-marquee-card:hover .tmc-stars span {
  animation: starPop 0.4s cubic-bezier(0.16,1,0.3,1) both;
}

.tmc-stars span:nth-child(1) { animation-delay: 0s; }
.tmc-stars span:nth-child(2) { animation-delay: 0.05s; }
.tmc-stars span:nth-child(3) { animation-delay: 0.1s; }
.tmc-stars span:nth-child(4) { animation-delay: 0.15s; }
.tmc-stars span:nth-child(5) { animation-delay: 0.2s; }

@keyframes starPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.4); }
  100% { transform: scale(1); }
}

/* ── Quote Text ── */
.tmc-text {
  font-size: 13.5px;
  line-height: 1.75;
  color: rgba(255,255,255,0.65);
  margin-bottom: 20px;
  font-family: 'Cairo', sans-serif;
  font-style: italic;
}

/* ── Author Row ── */
.tmc-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tmc-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  font-family: 'Outfit', sans-serif;
  color: #0a0a0a;
  flex-shrink: 0;
}

.tmc-avatar.av1 { background: linear-gradient(135deg, #a3cf2b, #6fa800); }
.tmc-avatar.av2 { background: linear-gradient(135deg, #00897b, #004d40); color: #fff; }
.tmc-avatar.av3 { background: linear-gradient(135deg, #7c3aed, #4c1d95); color: #fff; }
.tmc-avatar.av4 { background: linear-gradient(135deg, #f59e0b, #b45309); }
.tmc-avatar.av5 { background: linear-gradient(135deg, #ef4444, #991b1b); color: #fff; }
.tmc-avatar.av6 { background: linear-gradient(135deg, #3b82f6, #1d4ed8); color: #fff; }

.tmc-info { flex: 1; }

.tmc-name {
  font-size: 13px;
  font-weight: 700;
  color: #f0f0f0;
  display: block;
  font-family: 'Cairo', sans-serif;
}

.tmc-role {
  font-size: 11.5px;
  color: rgba(255,255,255,0.4);
  display: block;
  margin-top: 2px;
}

.tmc-flag {
  font-size: 18px;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,0.5));
}

/* ── "What they say" divider ── */
.testi-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 400px;
  margin: 0 auto 0;
  opacity: 0.5;
}

.testi-divider span {
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.1);
}

.testi-divider em {
  font-style: normal;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  font-family: 'Outfit', monospace;
  white-space: nowrap;
}
