/* Testimonials Section - Professional & Modern */
.testimonials-section {
  padding: 60px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  position: relative;
}

.testimonials-section::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="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="%23ffffff" opacity="0.05"/><circle cx="10" cy="60" r="0.5" fill="%23ffffff" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  pointer-events: none;
}

/* Section Header */
.testimonials-section .section-badge {
  display: inline-block;
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: white;
  padding: 10px 24px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.testimonials-section .section-title {
  font-size: 2.8rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 15px;
  line-height: 1.2;
}

.testimonials-section .section-subtitle {
  font-size: 1.2rem;
  color: #6c757d;
  margin-bottom: 50px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* Testimonial Cards */
.testimonial-card {
  background: white;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
  border: 1px solid rgba(0, 123, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.testimonial-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #007bff, #28a745, #ffc107);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.testimonial-card:hover::before {
  opacity: 1;
}

/* Testimonial Header */
.testimonial-header {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f1f3f4;
}

.client-avatar {
  width: 70px;
  height: 70px;
  border-radius: 15px;
  overflow: hidden;
  margin-right: 20px;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.client-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.testimonial-card:hover .client-logo {
  filter: grayscale(0%);
}

.client-info {
  flex: 1;
}

.client-name {
  font-size: 1.3rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 5px;
  line-height: 1.2;
}

.client-industry {
  font-size: 0.95rem;
  color: #6c757d;
  margin-bottom: 8px;
  font-weight: 500;
}

/* Star Rating */
.rating {
  display: flex;
  gap: 3px;
}

.rating i {
  color: #ffc107;
  font-size: 16px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Testimonial Content */
.testimonial-content {
  position: relative;
}

.quote-icon {
  position: absolute;
  top: -10px;
  left: -5px;
  font-size: 2.5rem;
  color: #007bff;
  opacity: 0.2;
  z-index: 1;
}

.testimonial-content p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #495057;
  font-style: italic;
  margin: 0;
  padding-left: 25px;
  position: relative;
  z-index: 2;
}

/* Responsive Design */
@media (max-width: 992px) {
  .testimonials-section .section-title {
    font-size: 2.4rem;
  }
  
  .testimonial-card {
    padding: 25px;
  }
  
  .client-avatar {
    width: 60px;
    height: 60px;
    margin-right: 15px;
  }
  
  .client-name {
    font-size: 1.2rem;
  }
}

@media (max-width: 768px) {
  .testimonials-section {
    padding: 40px 0;
  }
  
  .testimonials-section .section-title {
    font-size: 2rem;
  }
  
  .testimonials-section .section-subtitle {
    font-size: 1.1rem;
  }
  
  .testimonial-card {
    padding: 20px;
    margin-bottom: 20px;
  }
  
  .testimonial-header {
    flex-direction: column;
    text-align: center;
    margin-bottom: 20px;
  }
  
  .client-avatar {
    margin-right: 0;
    margin-bottom: 15px;
  }
  
  .testimonial-content p {
    padding-left: 15px;
    font-size: 1rem;
  }
  
  .quote-icon {
    font-size: 2rem;
  }
}

@media (max-width: 576px) {
  .testimonials-section .section-title {
    font-size: 1.8rem;
  }
  
  .testimonial-card {
    padding: 15px;
  }
  
  .client-name {
    font-size: 1.1rem;
  }
  
  .testimonial-content p {
    font-size: 0.95rem;
    line-height: 1.6;
  }
}

/* Animation for cards on scroll */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.testimonial-card {
  animation: fadeInUp 0.6s ease forwards;
}

.testimonial-card:nth-child(1) { animation-delay: 0.1s; }
.testimonial-card:nth-child(2) { animation-delay: 0.2s; }
.testimonial-card:nth-child(3) { animation-delay: 0.3s; }
.testimonial-card:nth-child(4) { animation-delay: 0.4s; }
.testimonial-card:nth-child(5) { animation-delay: 0.5s; }
.testimonial-card:nth-child(6) { animation-delay: 0.6s; }