/* Testimonials Section Styles */
#testimonials {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

#testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23e9ecef" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    z-index: 1;
}

#testimonials .container {
    position: relative;
    z-index: 2;
}

.testimonials-title {
    font-size: 48px !important;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, var(--dark-color), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    position: relative;
}

.testimonials-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    border-radius: 2px;
}

/* Carousel Container */
#testimonial-carousel {
  width: 100%;
  overflow: hidden;
  position: relative;
  margin-top: 0;
  padding: 0 0;
}

.testimonial-container {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.testimonial {
  flex: 0 0 100%;
  padding: 20px 10px;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .testimonial {
    flex: 0 0 50%;
  }
}

@media (min-width: 1024px) {
  .testimonial {
    flex: 0 0 33.333%;
  }
}

.testimonial-card {
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 28px 24px 24px 24px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  height: 320px;
  min-height: 320px;
  max-height: 320px;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(99, 102, 241, 0.1);
  margin: 0 auto;
  max-width: 380px;
  width: 100%;
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 35px rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.3);
}

.card-purple {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(79, 70, 229, 0.05) 100%);
  border: 1px solid rgba(99, 102, 241, 0.15);
}

.card-orange {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(79, 70, 229, 0.05) 100%);
  border: 1px solid rgba(99, 102, 241, 0.15);
}

.card-teal {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(79, 70, 229, 0.05) 100%);
  border: 1px solid rgba(99, 102, 241, 0.15);
}

.card-blue {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(79, 70, 229, 0.05) 100%);
  border: 1px solid rgba(99, 102, 241, 0.15);
}

.card-green {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(79, 70, 229, 0.05) 100%);
  border: 1px solid rgba(99, 102, 241, 0.15);
}

.card-red {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(79, 70, 229, 0.05) 100%);
  border: 1px solid rgba(99, 102, 241, 0.15);
}

.card-pink {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(79, 70, 229, 0.05) 100%);
  border: 1px solid rgba(99, 102, 241, 0.15);
}

.testimonial-content {
  flex: 1;
  margin-bottom: 24px;
}

.testimonial-quote {
  font-size: 1.8rem;
  color: #6366f1;
  margin-bottom: 16px;
  opacity: 0.8;
}

.testimonial-text {
  font-size: 1.1rem;
  color: #4a4a4a;
  line-height: 1.6;
  margin: 0;
  font-style: normal;
  position: relative;
  font-weight: 400;
}

.testimonial-author {
  display: flex;
  align-items: center;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(99, 102, 241, 0.1);
}

.testimonial-info {
  flex: 1;
}

.testimonial-name {
  font-weight: 700;
  font-size: 1.1rem;
  color: #1a1a1a;
  margin-bottom: 4px;
}

.testimonial-position {
  font-size: 0.9rem;
  color: #6366f1;
  font-weight: 600;
}

/* Mobile optimizations */
@media (max-width: 768px) {
  #testimonials {
    padding: 60px 0;
  }
  
  .testimonials-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
  }
  
  #testimonial-carousel {
    padding: 15px 0;
  }
  
  .testimonial {
    padding: 15px 15px;
  }
  
  .testimonial-card {
    padding: 24px 20px 20px 20px;
    height: 300px;
    min-height: 300px;
    max-height: 300px;
  }
  
  .testimonial-quote {
    font-size: 1.5rem;
  }
  
  .testimonial-text {
    font-size: 1rem;
    line-height: 1.5;
  }
  
  .testimonial-name {
    font-size: 1rem;
  }
  
  .testimonial-position {
    font-size: 0.85rem;
  }
  
  .testimonial-author {
    padding-top: 16px;
  }
}

@media (max-width: 576px) {
  #testimonials {
    padding: 40px 0;
  }
  
  .testimonials-title {
    font-size: 2.2rem;
    margin-bottom: 30px;
  }
  
  #testimonial-carousel {
    padding: 10px 0;
  }
  
  .testimonial {
    padding: 10px 15px;
  }
  
  .testimonial-card {
    padding: 20px 16px 16px 16px;
    height: 280px;
    min-height: 280px;
    max-height: 280px;
  }
  
  .testimonial-text {
    font-size: 0.95rem;
    line-height: 1.4;
  }
  
  .testimonial-quote {
    font-size: 1.3rem;
    margin-bottom: 12px;
  }
}

/* Remove old grid styles */
.testimonials-grid {
  display: none;
} 