/* ========================================
   Testimonials Styles - NexzenSoft Website
   ======================================== */

/* === Testimonials Section === */
.testimonials-section {
  background: linear-gradient(135deg, var(--light-bg) 0%, #e9ecef 100%);
  position: relative;
  overflow: hidden;
  padding: 6rem 0;
}

.testimonials-section::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 5%;
  width: 120px;
  height: 120px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23F36C21' opacity='0.08'%3E%3Cpath d='M14.017 21v-7.391c0-5.704 3.731-9.57 8.983-10.609l.995 2.151c-2.432.917-3.995 3.638-3.995 5.849h4v10h-9.983zm-14.017 0v-7.391c0-5.704 3.748-9.57 9-10.609l.996 2.151c-2.433.917-3.996 3.638-3.996 5.849h3.983v10h-9.983z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  z-index: 1;
  animation: float 8s ease-in-out infinite;
}

.testimonials-section::after {
  content: '';
  position: absolute;
  bottom: 15%;
  right: 8%;
  width: 80px;
  height: 80px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231A2A6C' opacity='0.08'%3E%3Cpath d='M14.017 21v-7.391c0-5.704 3.731-9.57 8.983-10.609l.995 2.151c-2.432.917-3.995 3.638-3.995 5.849h4v10h-9.983zm-14.017 0v-7.391c0-5.704 3.748-9.57 9-10.609l.996 2.151c-2.433.917-3.996 3.638-3.996 5.849h3.983v10h-9.983z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  z-index: 1;
  animation: float 10s ease-in-out infinite reverse;
}

.testimonials-section .container {
  position: relative;
  z-index: 2;
}

.testimonial-stat {
  text-align: center;
  font-size: 1.8rem;
  color: var(--accent-orange);
  font-weight: 600;
  margin-bottom: 3rem;
  position: relative;
  font-style: italic;
}

.testimonial-stat::before {
  content: '"';
  position: absolute;
  left: -30px;
  top: -15px;
  font-size: 5rem;
  color: rgba(243, 108, 33, 0.15);
  font-family: serif;
  z-index: -1;
}

.testimonial-stat::after {
  content: '"';
  position: absolute;
  right: -30px;
  bottom: -40px;
  font-size: 5rem;
  color: rgba(243, 108, 33, 0.15);
  font-family: serif;
  z-index: -1;
}

.testimonial-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  margin-bottom: 3rem;
  height: 100%;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  border: 1px solid rgba(26, 42, 108, 0.08);
  overflow: hidden;
}

.testimonial-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-blue), var(--accent-orange));
  z-index: 2;
}

.testimonial-card::after {
  content: '';
  position: absolute;
  top: 25px;
  left: 25px;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary-blue), var(--accent-orange));
  border-radius: 50%;
  opacity: 0.1;
  z-index: 1;
}

.testimonial-card:hover {
  transform: translateY(-15px) scale(1.03);
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  border-color: var(--accent-orange);
}

.testimonial-card:hover::after {
  opacity: 0.2;
  transform: scale(1.2);
}

.testimonial-quote {
  color: var(--accent-orange);
  font-size: 2rem;
  margin-bottom: 1.5rem;
  opacity: 0.8;
  position: relative;
  z-index: 3;
}

.testimonial-text {
  font-style: italic;
  color: var(--black);
  margin-bottom: 2rem;
  font-size: 1.1rem;
  line-height: 1.7;
  position: relative;
  z-index: 3;
  font-weight: 400;
}

.testimonial-author-info {
  border-top: 2px solid rgba(26, 42, 108, 0.1);
  padding-top: 1.5rem;
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
}

.testimonial-author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-blue), var(--accent-orange));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  margin-right: 1rem;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(26, 42, 108, 0.3);
  flex-shrink: 0;
}

.testimonial-author-details {
  flex: 1;
}

.testimonial-author-name {
  color: var(--primary-blue);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
  display: block;
}

.testimonial-author-company {
  color: var(--neutral-gray);
  font-size: 0.95rem;
  font-weight: 500;
  margin: 0;
}

.testimonial-rating {
  display: flex;
  margin-bottom: 1rem;
  position: relative;
  z-index: 3;
}

.testimonial-star {
  color: #ffd700;
  font-size: 1.2rem;
  margin-right: 0.25rem;
}

.testimonial-star.empty {
  color: rgba(26, 42, 108, 0.2);
}

/* === Enhanced Animations === */
@keyframes testimonialSlideIn {
  from {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.testimonial-card:nth-child(1) { animation: testimonialSlideIn 0.8s ease-out; }
.testimonial-card:nth-child(2) { animation: testimonialSlideIn 0.8s ease-out 0.2s; animation-fill-mode: both; }
.testimonial-card:nth-child(3) { animation: testimonialSlideIn 0.8s ease-out 0.4s; animation-fill-mode: both; }

/* === Floating Animation === */
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-10px) rotate(1deg); }
  66% { transform: translateY(5px) rotate(-1deg); }
}

/* === Responsive Design === */
@media (max-width: 992px) {
  .testimonials-section {
    padding: 4rem 0;
  }

  .testimonial-stat {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
  }

  .testimonial-card {
    padding: 2rem;
    margin-bottom: 2.5rem;
  }
}

@media (max-width: 768px) {
  .testimonials-section::before,
  .testimonials-section::after {
    display: none;
  }

  .testimonial-card {
    padding: 1.5rem;
    margin-bottom: 2rem;
  }

  .testimonial-quote {
    font-size: 1.5rem;
  }

  .testimonial-text {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .testimonial-author-avatar {
    width: 40px;
    height: 40px;
    font-size: 1rem;
    margin-right: 0.75rem;
  }

  .testimonial-author-name {
    font-size: 1rem;
  }

  .testimonial-author-company {
    font-size: 0.9rem;
  }

  .testimonial-stat::before,
  .testimonial-stat::after {
    display: none;
  }
}

@media (max-width: 576px) {
  .testimonials-section {
    padding: 3rem 0;
  }

  .testimonial-stat {
    font-size: 1.3rem;
    margin-bottom: 2rem;
  }

  .testimonial-card {
    padding: 1.25rem;
    border-radius: 15px;
  }

  .testimonial-quote {
    font-size: 1.2rem;
    margin-bottom: 1rem;
  }

  .testimonial-text {
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
  }

  .testimonial-author-info {
    padding-top: 1.25rem;
  }

  .testimonial-author-avatar {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }
}