/* Testimonial Card Styles - Enhanced Animations */
.testimonials .testimonial-card {
  background: #ffffff;
  color: #333333;
  border-radius: 20px;
  padding: 0; /* Removed padding to allow image to cover edges */
  box-shadow: 0 10px 40px rgba(0,0,0,0.04);
  margin: 30px 10px;
  display: flex;
  flex-direction: column;
  align-items: stretch; /* Stretch children to fill width */
  text-align: center;
  border: 1px solid rgba(0,0,0,0.05);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  height: auto;
  min-height: 500px; /* Increased height for the large image */
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.testimonials .testimonial-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.testimonials .testimonial-card:hover {
  background: linear-gradient(145deg, #ffffff, #f8f9ff);
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0,0,0,0.1);
  border-color: var(--accent-color);
}


.testimonials .testimonial-card:hover::before {
  transform: translateX(100%);
}

.testimonials .user-img {
  width: 100%;
  height: 300px; /* Approx 60% of 500px */
  border-radius: 0;
  overflow: hidden;
  border: none;
  margin-bottom: 20px;
  box-shadow: none;
  transition: all 0.5s ease;
  position: relative;
}



@keyframes glowPulse {
  0% { box-shadow: 0 0 5px rgba(59, 130, 246, 0.2); }
  100% { box-shadow: 0 0 25px rgba(59, 130, 246, 0.6); }
}

@keyframes floatImg {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.testimonials .testimonial-card:hover .user-img {
  transform: scale(1.1) rotate(5deg);
  outline-offset: 5px;
  animation-play-state: paused;
}

.testimonials .user-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.5s ease;
}

.testimonials .testimonial-card:hover .user-img img {
  transform: scale(1.1);
}

.testimonials .testimonial-card h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
  padding: 0 25px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #1a2b3c;
  transition: color 0.3s ease;
}

.testimonials .testimonial-card:hover h3 {
  color: var(--accent-color);
}

.testimonials .role {
  color: var(--accent-color);
  font-weight: 600;
  margin-bottom: 25px;
  font-style: normal;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  opacity: 0.8;
}

.testimonials .testimonial-content {
  position: relative;
  width: 100%;
  padding: 0 25px 30px 25px; /* Added padding here instead of card */
  transition: transform 0.4s ease;
}

.testimonials .testimonial-card:hover .testimonial-content {
  transform: translateY(-5px);
}

.testimonials .quote-icon {
  font-size: 35px;
  color: var(--accent-color);
  opacity: 0.2;
  margin-bottom: 15px;
  display: inline-block;
  transition: all 0.4s ease;
}

.testimonials .testimonial-card:hover .quote-icon {
  opacity: 0.8;
  transform: scale(1.2) rotate(15deg);
  animation: pulseQuote 1.5s ease-in-out infinite;
}

@keyframes pulseQuote {
  0%, 100% { transform: scale(1.2) rotate(15deg); }
  50% { transform: scale(1.4) rotate(15deg); }
}

.testimonials .testimonial-content p {
  font-size: 1rem;
  line-height: 1.8;
  color: #666;
  margin: 0;
  transition: color 0.3s ease;
}

.testimonials .testimonial-card:hover .testimonial-content p {
  color: #333;
}

/* Swiper Pagination Customization */
.testimonials .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: var(--accent-color);
  opacity: 0.3;
}

.testimonials .swiper-pagination-bullet-active {
  width: 30px;
  border-radius: 10px;
  opacity: 1;
  transition: all 0.3s ease;
}

/* Custom AOS Entrance Animation: Flip and Rotate */
[data-aos="flip-rotate"] {
  opacity: 0;
  transform: perspective(2000px) rotateY(-100deg) rotateZ(-15deg) scale(0.6) translateY(50px);
  transition-property: transform, opacity;
}

[data-aos="flip-rotate"].aos-animate {
  opacity: 1;
  transform: perspective(2000px) rotateY(0) rotateZ(0) scale(1) translateY(0);
}

