/* ============================================================
   Niyutam — Testimonials section
   ============================================================ */

:root {
  --testi-bg: #0B0F1A;
  --testi-card-bg: rgba(255, 255, 255, 0.03);
  --testi-card-border: rgba(255, 255, 255, 0.08);
  --testi-accent: #A3FF00;
  --testi-text: #ffffff;
  --testi-muted: rgba(255, 255, 255, 0.6);
}

.testimonials {
  position: relative;
  background: var(--testi-bg);
  padding: 100px 0;
  overflow: hidden;
  color: var(--testi-text);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Subtle background gradient glow */
.testimonials::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 60%;
  background: radial-gradient(circle, rgba(163, 255, 0, 0.05), transparent 70%);
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}

.testimonials__header {
  position: relative;
  z-index: 10;
  text-align: center;
  margin-bottom: 60px;
  padding: 0 clamp(1.25rem, 6vw, 3rem);
}

.testimonials__heading {
  font-family: 'Clash Display', sans-serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.testimonials__sub {
  font-family: 'Satoshi', sans-serif;
  font-size: 18px;
  color: var(--testi-muted);
}

/* Carousel */
.testimonials__carousel {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
  display: flex;
  overflow: hidden;
}

/* Edge Fade Overlays */
.testimonials__fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(80px, 15vw, 150px);
  z-index: 50;
  pointer-events: none;
  /* Force hardware acceleration to ensure they render above backdrop-filtered cards */
  transform: translateZ(0);
}

.testimonials__fade--left {
  left: 0;
  background: linear-gradient(to right, #0B0F1A 0%, rgba(11, 15, 26, 0) 100%);
}

.testimonials__fade--right {
  right: 0;
  background: linear-gradient(to left, #0B0F1A 0%, rgba(11, 15, 26, 0) 100%);
}

.testimonials__track {
  display: flex;
  gap: 2rem;
  width: max-content;
  animation: testi-marquee 35s linear infinite;
  padding-top: 20px;
  /* Pause animation on hover */
}

.testimonials__list {
  display: flex;
  gap: 2rem;
}

.testimonials__track:hover {
  animation-play-state: paused;
}

@keyframes testi-marquee {
  to {
    transform: translateX(calc(-50% - 1rem));
  }
}

/* Card */
.testimonials__card {
  width: 380px;
  background: var(--testi-card-bg);
  border: 1px solid var(--testi-card-border);
  border-radius: 20px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  /* Make all cards visually equal by default */
  opacity: 0.85;
}

.testimonials__card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(163, 255, 0, 0.4);
  box-shadow: 0 12px 40px rgba(163, 255, 0, 0.08);
  opacity: 1;
}

.testimonials__rating {
  width: 100px;
  height: auto;
  opacity: 0.9;
}

.testimonials__review {
  font-family: 'Satoshi', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--testi-text);
  flex-grow: 1;
}

.testimonials__author {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}

.testimonials__profile-img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.1);
  background: #222; /* Fallback if img missing */
}

.testimonials__name {
  font-family: 'Satoshi', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--testi-text);
  margin-bottom: 4px;
}

.testimonials__role {
  font-family: 'Satoshi', sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: var(--testi-muted);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .testimonials__card {
    width: 300px;
    padding: 28px 24px;
  }
  
  .testimonials__track {
    gap: 1.5rem;
  }
  
  .testimonials__review {
    font-size: 15px;
  }
}
