/* ===================================================================
   Testimonials Component
   Reusable customer testimonials carousel
   =================================================================== */

/* ===== TESTIMONIAL SECTION ===== */
.testimonial-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--bg-cream) 0%, var(--bg-warm) 100%);
  position: relative;
  overflow: hidden;
}

.testimonial-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="testimonial-pattern" width="50" height="50" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1.5" fill="%23ff7a59" opacity="0.05"/><circle cx="10" cy="40" r="0.8" fill="%23ff8f73" opacity="0.03"/></pattern></defs><rect width="100" height="100" fill="url(%23testimonial-pattern)"/></svg>');
  pointer-events: none;
}

/* ===== SECTION HEADER ===== */
.testimonial-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
  position: relative;
  z-index: 2;
}

.testimonial-title {
  font-size: 2.5rem;
  font-weight: var(--font-weight-bold);
  color: var(--text-color);
  margin-bottom: var(--space-md);
  font-family: var(--font-primary);
  letter-spacing: -0.02em;
}

.testimonial-subtitle {
  font-size: var(--font-size-xl);
  color: var(--text-subtitle);
  max-width: 600px;
  margin: 0 auto;
  line-height: var(--line-height-relaxed);
  font-family: var(--font-primary);
}

/* ===== TESTIMONIAL CAROUSEL ===== */
.testimonial-carousel {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.testimonial-slide {
  display: none;
  text-align: center;
  padding: 40px 20px;
  animation: fadeInUp var(--transition-slow) ease-out;
}

.testimonial-slide.active {
  display: block;
}

/* ===== TESTIMONIAL CONTENT ===== */
.testimonial-content {
  background: white;
  border-radius: 20px;
  padding: 40px;
  margin-bottom: 30px;
  position: relative;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 122, 89, 0.1);
}

.testimonial-content::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: 40px;
  font-size: 4rem;
  color: var(--primary-color);
  font-weight: var(--font-weight-bold);
  line-height: 1;
}

.testimonial-text {
  font-size: 1.2rem;
  line-height: var(--line-height-relaxed);
  color: var(--text-color);
  margin: 0;
  font-style: italic;
  font-family: var(--font-primary);
}

/* ===== TESTIMONIAL AUTHOR ===== */
.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.customer-image {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary-color);
  box-shadow: 0 4px 15px rgba(255, 122, 89, 0.2);
  transition: all var(--transition-normal);
}

.customer-image:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(255, 122, 89, 0.3);
}

.author-info {
  text-align: left;
  flex-grow: 1;
  min-width: 200px;
}

.author-name {
  font-size: 1.1rem;
  font-weight: var(--font-weight-semibold);
  color: var(--text-color);
  margin-bottom: 5px;
  font-family: var(--font-primary);
}

.author-position {
  color: #6c757d;
  font-size: 0.9rem;
  margin-bottom: 3px;
  font-family: var(--font-primary);
}

.author-company {
  color: var(--primary-color);
  font-weight: var(--font-weight-semibold);
  font-size: 0.9rem;
  font-family: var(--font-primary);
}

.company-logo {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  background: #f8f9fa;
  padding: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--font-weight-semibold);
  font-size: 1.1rem;
  border: 1px solid var(--border-light);
  transition: all var(--transition-normal);
}

.company-logo:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.company-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* ===== CAROUSEL CONTROLS ===== */
.carousel-controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 122, 89, 0.3);
  border: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
}

.carousel-dot:hover {
  background: rgba(255, 122, 89, 0.6);
  transform: scale(1.1);
}

.carousel-dot.active {
  background: var(--primary-color);
  transform: scale(1.2);
  box-shadow: 0 2px 8px rgba(255, 122, 89, 0.3);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .testimonial-section {
    padding: 60px 0;
  }
  
  .testimonial-title {
    font-size: 2rem;
  }
  
  .testimonial-slide {
    padding: 20px 10px;
  }
  
  .testimonial-content {
    padding: 30px 25px;
    margin-bottom: 25px;
  }
  
  .testimonial-content::before {
    font-size: 3rem;
    left: 25px;
    top: -15px;
  }
  
  .testimonial-text {
    font-size: 1.1rem;
  }
  
  .testimonial-author {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
  
  .author-info {
    text-align: center;
    min-width: auto;
  }
  
  .customer-image {
    width: 70px;
    height: 70px;
  }
  
  .company-logo {
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 480px) {
  .testimonial-content {
    padding: 25px 20px;
    border-radius: 15px;
  }
  
  .testimonial-text {
    font-size: 1rem;
  }
  
  .customer-image {
    width: 60px;
    height: 60px;
  }
}