
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --testimonial-main-font: "Outfit", sans-serif;
    --testimonial-heading-font:  "Kavoon", serif;
    --testimonial-subtitle-font: "Roboto Condensed", sans-serif;
    --testimonial-letter-space: 3px;
    --testimonial-heading-font-size:50px;
    --testimonial-subtitle-font-size:28px;
    --testimonial-main-font-size:18px;
}
.testimonial-containerbg{
    /* background-color: #eba7f7;  */
    background-color:  #9a5de0ca; 
}
.testimonial-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.testimonial-content {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 270px;
}


.testimonial-heading {
   font-family: var(--testimonial-heading-font);
    text-transform:capitalize; 
     font-size: var(--testimonial-heading-font-size);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: var(--testimonial-letter-space);
  margin-bottom: 20px;
  color: white;
}

.testimonial-highlight {
   font-family: var(--testimonial-heading-font);
    text-transform:capitalize; 
     font-size: var(--testimonial-heading-font-size);
  color: #5D2F77;
}

.testimonial-description {
 font-family: var(--testimonial-main-font);
     font-size: var(--testimonial-main-font-size);
  line-height: 1.6;
  margin-bottom: 30px;
  max-width: 400px;
  color: white;

}

.testimonial-card-slider-container {
  position: relative;
  width: 320px;
  height: 420px;
  perspective: 1000px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.testimonial-card-slider {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
}

.testimonial-card {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 30px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateZ(-100px);
  transition: all 0.5s ease-out;
}

.testimonial-card.active {
  opacity: 1;
  transform: translateZ(0);
  z-index: 10;
}

.testimonial-card.prev,
.testimonial-card.next {
  opacity: 0.4;
}

.testimonial-card.prev {
  transform: translateX(-50%) translateZ(-100px) rotateY(10deg);
}

.testimonial-card.next {
  transform: translateX(50%) translateZ(-100px) rotateY(-10deg);
}

.testimonial-profile-pic {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  margin-bottom: 20px;
}

.testimonial-text {
  flex: 1;
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 20px;
  font-size: 0.95rem;
  color: white;

}

.testimonial-name {
  font-weight: bold;
  font-size: 1.2rem;
  margin-top: auto;
  color: #5D2F77;
}
@media (max-width: 1124px) {
.testimonial-content {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 160px;
}}
/* Responsive */
@media (max-width: 998px) {
  .testimonial-content {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
 .testimonial-heading { font-size: 2.5rem; text-align: center; }
  .testimonial-description { font-size: 1rem; text-align: center; margin: 0 auto 30px; }
  .testimonial-card-slider-container {
    width: 260px;
    height: 350px; /* enough for 3D */
    margin-top: 0px;
  }

  .testimonial-card {
    height: 360px;
  }
}

@media (max-width: 768px) {
  .testimonial-card-slider-container {
    width: 240px;
    height: 330px; /* enough for 3D */
  }

  .testimonial-card {
    height: 340px;
  }
  .testimonial-container {
  padding: 30px 20px;
}
}

@media (max-width: 480px) {
  .testimonial-card-slider-container {
    width: 220px;
    height: 330px; /* enough for mobile 3D */
  }
  .testimonial-heading { font-size: 2rem; }
  .testimonial-description { font-size: 0.95rem; }
  .testimonial-content {
   text-align: center;
  }
  .testimonial-card {
    height: 320px;
    padding: 15px;
  }
}

@media (max-width: 370px) {
  .testimonial-card-slider-container {
    width: 220px;
    height: 320px; /* enough for mobile 3D */
  }
 
}