/* Modern Testimonials Section */
.modern-testimonials {
  padding: 80px 0;
  /* background: linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 100%); */
  position: relative;
  overflow: hidden;
}

.modern-testimonials::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, rgba(79, 171, 255, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.testimonials-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}

/* Header Section */
.testimonials-header {
  text-align: center;
  margin-bottom: 60px;
}

.testimonials-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  margin: 0 0 20px 0;
  color: #fff;
  line-height: 1.1;
}

.testimonials-title span:first-child {
  display: block;
}

.testimonials-subtitle {
  font-size: 18px;
  color: #9ca3af;
  margin: 0;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Slider Container */
.testimonials-slider-container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.testimonials-track {
  position: relative;
  height: 400px;
  overflow: hidden;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Individual Testimonial Cards */
.testimonial-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: translateX(100px);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: linear-gradient(135deg, rgba(79, 171, 255, 0.08) 0%, rgba(227, 213, 207, 0.08) 100%);
  border-radius: 20px;
}

.testimonial-card.active {
  opacity: 1;
  transform: translateX(0);
}

.testimonial-card.prev {
  opacity: 0;
  transform: translateX(-100px);
}

.testimonial-card.next {
  opacity: 0;
  transform: translateX(100px);
}

/* Testimonial Content */
.testimonial-image {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(79, 171, 255, 0.3);
  margin-bottom: 24px;
  box-shadow: 0 8px 32px rgba(79, 171, 255, 0.2);
}

.testimonial-image-full {
  max-width: 100%;
  max-height: 100%;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.testimonial-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 700px;
}

.testimonial-text {
  font-size: 20px;
  line-height: 1.6;
  color: #e5e7eb;
  margin: 0 0 24px 0;
  font-style: italic;
  position: relative;
}

.testimonial-text::before,
.testimonial-text::after {
  content: '"';
  font-size: 60px;
  color: rgba(79, 171, 255, 0.3);
  position: absolute;
  font-family: serif;
  line-height: 1;
}

.testimonial-text::before {
  top: -20px;
  left: -30px;
}

.testimonial-text::after {
  bottom: -40px;
  right: -30px;
}

.testimonial-author {
  margin-top: auto;
}

.testimonial-name {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 4px 0;
}

.testimonial-role {
  font-size: 14px;
  color: #9ca3af;
  margin: 0;
}

.testimonial-rating {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 20px;
}

.star {
  width: 20px;
  height: 20px;
  color: #fbbf24;
}

/* Navigation Controls */
.testimonials-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin-top: 40px;
}

.testimonials-nav {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #9ca3af;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.testimonials-nav:hover {
  background: rgba(79, 171, 255, 0.1);
  border-color: rgba(79, 171, 255, 0.3);
  color: #4fabff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(79, 171, 255, 0.2);
}

.testimonials-nav:active {
  transform: translateY(0);
}

.testimonials-nav svg {
  width: 20px;
  height: 20px;
}

.testimonials-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none;
}

.testimonials-nav:disabled:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: #9ca3af;
  transform: none;
  box-shadow: none;
}

/* Indicators */
.testimonials-indicators {
  display: flex;
  gap: 8px;
  align-items: center;
}

.testimonial-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  padding: 0;
}

.testimonial-indicator.active {
  background: #4fabff;
  transform: scale(1.2);
  box-shadow: 0 0 10px rgba(79, 171, 255, 0.5);
}

.testimonial-indicator:hover {
  background: rgba(79, 171, 255, 0.6);
  transform: scale(1.1);
}

/* Auto-play indicator animation */
.testimonial-indicator.active::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 50%;
  border: 2px solid #4fabff;
  animation: pulse 3s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.1);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .modern-testimonials {
    padding: 60px 0;
  }
  
  .testimonials-header {
    margin-bottom: 40px;
  }
  
  .testimonials-track {
    height: 450px;
  }
  
  .testimonial-card {
    padding: 30px 20px;
  }
  
  .testimonial-text {
    font-size: 16px;
  }
  
  .testimonial-text::before,
  .testimonial-text::after {
    font-size: 40px;
  }
  
  .testimonial-text::before {
    top: -15px;
    left: -20px;
  }
  
  .testimonial-text::after {
    bottom: -25px;
    right: -20px;
  }
  
  .testimonials-controls {
    gap: 20px;
    margin-top: 30px;
  }
  
  .testimonials-nav {
    width: 44px;
    height: 44px;
  }
  
  .testimonials-nav svg {
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 480px) {
  .testimonial-card {
    padding: 20px 15px;
  }
  
  .testimonial-image {
    width: 60px;
    height: 60px;
    margin-bottom: 16px;
  }
  
  .testimonial-text {
    font-size: 15px;
    line-height: 1.5;
  }
  
  .testimonials-track {
    height: 400px;
  }
}