/* ===== TESTIMONIALS SECTION ===== */
.testimonials {
  position: relative;
  padding: 6rem 0;
  background: #f8f9ff;
  overflow: hidden;
}

.testimonials .section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem;
  position: relative;
  z-index: 2;
}

.testimonials .eyebrow {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 1rem;
  padding: 0.25rem 0.75rem;
  background: rgba(10, 132, 255, 0.1);
  border-radius: 2rem;
}

.testimonials h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: #1a1a1a;
}

.testimonials .section-intro {
  font-size: 1.25rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 3rem;
}

/* Testimonial Slider */
.testimonial-slider {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.testimonial-track {
  position: relative;
  overflow: hidden;
  padding: 2rem 0;
}

.testimonial-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(10, 132, 255, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 1.5rem;
  left: 2rem;
  font-size: 6rem;
  line-height: 1;
  color: rgba(10, 132, 255, 0.1);
  font-family: Georgia, serif;
  z-index: 0;
}

.testimonial-content {
  position: relative;
  z-index: 1;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.testimonial-text {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 1.5rem;
  font-style: italic;
  position: relative;
  padding-left: 1.5rem;
  border-left: 3px solid var(--primary);
}

.testimonial-author {
  display: flex;
  align-items: center;
  margin-top: 2rem;
}

.testimonial-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 1rem;
  border: 3px solid white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-info {
  flex-grow: 1;
}

.testimonial-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 0.25rem;
  line-height: 1.3;
}

.testimonial-role {
  font-size: 0.9rem;
  color: #6c757d;
  margin: 0.25rem 0 1rem 0;
}

.testimonial-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid #eee;
  transition: color 0.2s ease;
}

.testimonial-link:hover {
  color: #0077cc;
  text-decoration: underline;
}

.testimonial-link i {
  font-size: 0.8em;
}

.testimonial-company {
  display: inline-block;
  color: var(--primary);
  font-weight: 600;
}

.testimonial-rating {
  display: flex;
  gap: 0.25rem;
  margin-top: 0.5rem;
}

.testimonial-rating i {
  color: #ffc107;
  font-size: 1rem;
}

/* Navigation Arrows */
.testimonial-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: white;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.testimonial-nav:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  transform: translateY(-50%) scale(1.1);
}

.testimonial-prev {
  left: -24px;
}

.testimonial-next {
  right: -24px;
}

/* Dots Navigation */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

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

.testimonial-dot.active {
  background: var(--primary);
  transform: scale(1.2);
}

/* Company Logos */
.testimonial-companies {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  margin-top: 4rem;
  padding: 2rem 0;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.testimonial-companies:hover {
  opacity: 1;
}

.company-logo {
  height: 32px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%) contrast(0.2);
  transition: all 0.3s ease;
}

.company-logo:hover {
  filter: grayscale(0) contrast(1);
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
  .testimonial-slide {
    padding: 2.5rem 2rem;
  }
  
  .testimonial-text {
    font-size: 1.0625rem;
  }
  
  .testimonial-nav {
    width: 40px;
    height: 40px;
    font-size: 0.875rem;
  }
  
  .testimonial-prev {
    left: 10px;
  }
  
  .testimonial-next {
    right: 10px;
  }
}

@media (max-width: 768px) {
  .testimonials {
    padding: 5rem 0;
  }
  
  .testimonial-slider {
    padding: 0 1rem;
  }
  
  .testimonial-slide {
    padding: 2rem 1.5rem 2rem 2.5rem;
  }
  
  .testimonial-text {
    font-size: 1rem;
    padding-left: 1.25rem;
  }
  
  .testimonial-author {
    flex-direction: column;
    text-align: center;
  }
  
  .testimonial-avatar {
    margin: 0 0 1rem 0;
  }
  
  .testimonial-rating {
    justify-content: center;
  }
  
  .testimonial-companies {
    gap: 1.5rem;
    margin-top: 2.5rem;
  }
  
  .company-logo {
    height: 24px;
  }
}

/* Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.testimonial-slide {
  animation: fadeIn 0.6s ease forwards;
}
