/* Testimonials Section Styles */
.testimonials {
  background-color: none;
  position: relative;
}


#shortcode-theme_testimonials .section-title {
  color: var(--color-white);
}

.testimonials::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: none;
  pointer-events: none;
}

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

.testimonials-slider {
  position: relative;
  margin-top: var(--spacing-4xl);
  overflow: hidden;
  border-radius: var(--radius-2xl);
}

.testimonial-slide {
  display: none;
  opacity: 0;
  transform: translateX(30px);
  transition: all var(--transition-slow);
}

.testimonial-slide.active {
  display: block;
  opacity: 1;
  transform: translateX(0);
  animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.testimonial-content {
  background-color: var(--color-white);
  border-radius: var(--radius-2xl);
  padding: var(--spacing-3xl);
  box-shadow: var(--shadow-xl);
  text-align: center;
  position: relative;
  border: 1px solid var(--color-border);
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden; /* ensure top bar respects rounded corners */
}

.testimonial-content::before {
  content: '';
  position: absolute;
  top: -1px; /* sit over the 1px border so it doesn't get hidden */
  left: 0;
  right: 0;
  height: 5px; /* cover border thickness visually */
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-normal);
  z-index: 5;
  pointer-events: none;
}


.testimonial-content::before {
  transform: scaleX(1);
}

.testimonial-content:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-2xl);
  border-color: var(--color-primary);
}

/* Accent bar like skills/why cards */
.testimonial-content::after {
  content: none;

}

.testimonial-text {
  margin-bottom: var(--spacing-2xl);
}

.testimonial-text p {
  font-size: var(--font-size-lg);
  line-height: var(--line-height-relaxed);
  color: var(--color-text);
  font-style: italic;
  margin: 0;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-lg);
}

.author-info h4 {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  margin-bottom: var(--spacing-xs);
}

.author-info span {
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
  font-weight: var(--font-weight-medium);
}

/* Testimonial Dots Navigation */
.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
  margin-top: var(--spacing-2xl);
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
  background-color: var(--color-border);
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}

.dot:hover {
  background-color: var(--color-primary-light);
  transform: scale(1.2);
}

.dot.active {
  background-color: var(--color-text);
  transform: scale(1.3);
}

.dot.active::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border: 2px solid var(--color-text);
  border-radius: var(--radius-full);
  opacity: 0.3;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.1;
  }
  100% {
    transform: scale(1);
    opacity: 0.3;
  }
}

/* Hover Effects */
.testimonial-content:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2xl);
  border-color: var(--color-primary);
}

.testimonial-content:hover::after { transform: scaleX(1); }
/* Also trigger when hovering the entire slide wrapper */
.testimonial-slide:hover .testimonial-content::after { transform: scaleX(1); }
/* And mirror border/raise effect when hovering slide wrapper */
.testimonial-slide:hover .testimonial-content {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2xl);
  border-color: var(--color-primary);
}

/* Individual Testimonial Styling */
.testimonial-slide:nth-child(1) .testimonial-content::before {
  color: var(--color-primary);
}

.testimonial-slide:nth-child(2) .testimonial-content::before {
  color: var(--color-secondary);
}

.testimonial-slide:nth-child(3) .testimonial-content::before {
  color: var(--color-accent);
}

/* Auto-slide Animation */
.testimonials-slider {
  animation: autoSlide 15s infinite;
}

@keyframes autoSlide {
  0%, 30% { /* Show first slide */
    /* Handled by JavaScript */
  }
  33%, 63% { /* Show second slide */
    /* Handled by JavaScript */
  }
  66%, 96% { /* Show third slide */
    /* Handled by JavaScript */
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .testimonial-content {
    padding: var(--spacing-2xl);
  }
  
  .testimonial-text p {
    font-size: var(--font-size-base);
  }
  
  .testimonial-content::before {
    font-size: 80px;
    top: -15px;
  }
}

@media (max-width: 768px) {
  .testimonial-content {
    padding: var(--spacing-xl);
    margin: 0 var(--spacing-md);
  }
  
  .testimonial-text p {
    font-size: var(--font-size-sm);
  }
  
  .testimonial-author {
    flex-direction: column;
    gap: var(--spacing-sm);
    text-align: center;
  }
  
  .author-info h4 {
    font-size: var(--font-size-base);
  }
  
  .author-info span {
    font-size: var(--font-size-xs);
  }
  
  .testimonial-content::before {
    font-size: 60px;
    top: -10px;
  }
}

@media (max-width: 480px) {
  .testimonial-content {
    padding: var(--spacing-lg);
    margin: 0;
  }
  
  .testimonial-text {
    margin-bottom: var(--spacing-lg);
  }
  
  .testimonial-text p {
    font-size: var(--font-size-xs);
    line-height: var(--line-height-normal);
  }
  
  .testimonial-dots {
    gap: var(--spacing-sm);
  }
  
  .dot {
    width: 10px;
    height: 10px;
  }
}

