/* === TESTIMONIAL SECTION (Revamped Neon Gradient Style) === */
.testimonial-section {
  position: relative;
  padding: 100px 7%;
  background: radial-gradient(circle at top left, #020617, #0b0f1a);
  color: #f8fafc;
  text-align: center;
  overflow: hidden;
}

/* Subtle animated gradient overlay */
.testimonial-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(59, 130, 246, 0.1), rgba(16, 185, 129, 0.1));
  mix-blend-mode: overlay;
  animation: hueRotate 10s infinite linear;
  z-index: 0;
}

@keyframes hueRotate {
  from { filter: hue-rotate(0deg); }
  to { filter: hue-rotate(360deg); }
}

/* Heading */
.testimonial-heading h2 {
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: 1px;
  background: linear-gradient(90deg, #06b6d4, #9333ea);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 50px;
  position: relative;
  z-index: 2;
  background-clip: text;
  color: transparent;
}

/* Carousel */
.testimonial-carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1200px;
  margin: auto;
  position: relative;
  z-index: 5;
  gap: 10px;
}

/* Carousel buttons */
/* Ensure buttons stay clickable and above the track */
.carousel-btn {
  position: relative;
  z-index: 10;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #22d3ee;
  font-size: 2rem;
  border-radius: 50%;
  padding: 12px 15px;
  margin: 0 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.carousel-btn:hover {
  background: linear-gradient(135deg, #06b6d4, #9333ea);
  color: #fff;
  box-shadow: 0 0 25px rgba(147, 51, 234, 0.6);
}

/* Track */
.testimonial-track {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 30px 0;
  max-width: 100%;
  scrollbar-width: none;
  -ms-overflow-style: none;
  pointer-events: auto;
}

.testimonial-track::-webkit-scrollbar {
  display: none;
}

/* Card */
.testimonial-card {
  flex: 0 0 85%;
  max-width: 500px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 40px 25px;
  scroll-snap-align: center;
  text-align: left;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.4);
  transition: all 0.4s ease;
  backdrop-filter: blur(12px);
  margin: 0 auto;
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 40px rgba(6, 182, 212, 0.3);
  border-color: rgba(6, 182, 212, 0.3);
}

/* Image */
.testimonial-img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 12px;
  border: 2px solid rgba(6, 182, 212, 0.4);
}

/* Text Elements */
.client-name {
  color: #22d3ee;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.client-role {
  font-size: 0.9rem;
  color: #94a3b8;
  margin-bottom: 10px;
}

.stars {
  color: #facc15;
  font-size: 1.1rem;
  margin-bottom: 18px;
}

.testimonial-text {
  font-size: 1rem;
  line-height: 1.7;
  color: #cbd5e1;
  font-weight: 400;
}

/* Responsive Adjustments */
/* === RESPONSIVE DESIGN FIX === */
@media (max-width: 768px) {
  .testimonial-heading h2 {
    font-size: 2rem;
  }

  .testimonial-carousel {
    overflow: hidden;
    padding: 0 10px;
  }

  .testimonial-track {
    gap: 20px;
    padding: 20px 0;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; /* Smooth iOS scrolling */
  }

  .testimonial-card {
    flex: 0 0 95%; /* slightly wider, for easier swiping */
    max-width: 95%;
    margin: 0 auto;
  }

  .carousel-btn {
    display: none; /* hide arrows on mobile, rely on swipe */
  }
}

@media (max-width: 480px) {
  .testimonial-heading h2 {
    font-size: 1.7rem;
  }

  .testimonial-text {
    font-size: 0.9rem;
  }

  .testimonial-card {
    flex: 0 0 100%;
  }
}
