/* ===== TESTIMONIALS SECTION ===== */
.testimonials-section {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #000;
}

.testimonials-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.testimonials-video-bg {
  position: fixed;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  gap: 0;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.testimonials-video-bg video {
  height: 100%;
  object-fit: cover;
  object-position: center;
  flex-shrink: 0;
}

.testimonials-video-bg video:nth-child(1),
.testimonials-video-bg video:nth-child(3) {
  width: 25%;
}

.testimonials-video-bg video:nth-child(2) {
  width: 50%;
}

.testimonials-container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  width: 100%;
  padding: 3rem 1rem 2rem 1rem;
  text-align: center;
  box-sizing: border-box;
}

.testimonials-title {
  font-size: 3.5rem;
  font-weight: 900;
  color: #FF6135;
  margin: 0 0 0.5rem 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9), 2px 2px 8px rgba(0, 0, 0, 0.7);
  z-index: 10;
  position: relative;
}

/* ===== CAROUSEL STYLES ===== */
.testimonials-carousel-wrapper {
  position: relative;
  max-width: 602px;
  margin: 0 auto;
}

.testimonials-carousel {
  position: relative;
  width: 65%;
  height: 393px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  background: rgba(0, 0, 0, 0.3);
  margin: 0 auto;
}

.testimonial-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 1;
}

.testimonial-slide.active {
  opacity: 1;
  transform: translateX(0);
  z-index: 2;
}

.testimonial-slide.prev {
  transform: translateX(-100%);
  z-index: 1;
}

.testimonial-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 20px;
  transition: transform 0.3s ease;
}

.testimonial-slide:hover .testimonial-image {
  transform: scale(1.02);
}

/* ===== NAVIGATION ===== */
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  background: rgba(255, 97, 53, 0.3);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.carousel-nav:hover {
  background: #FF6135;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(91, 48, 36, 0.4);
}

.carousel-nav-prev {
  left: -30px;
}

.carousel-nav-next {
  right: -30px;
}

/* ===== DOTS NAVIGATION ===== */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-top: 1rem;
  z-index: 10;
  position: relative;
  box-shadow: #000 0 0 10px rgba(0, 0, 0, 0.5);
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.carousel-dot.active {
  background: #FF6135;
  border-color: #FF6135;
  transform: scale(1.2);
}

.carousel-dot:hover {
  border-color: #FF6135;
  background: rgba(255, 97, 53, 0.5);
}

/* ===== DESKTOP STYLES (768px and above) ===== */
@media (min-width: 768px) {
  .testimonials-section {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0f0f0f 100%);
  }

  .testimonials-overlay {
    background: linear-gradient(
      135deg,
      rgba(0, 0, 0, 0.6) 0%,
      rgba(255, 97, 53, 0.05) 30%,
      rgba(0, 0, 0, 0.7) 70%,
      rgba(0, 0, 0, 0.5) 100%
    );
  }

  .testimonials-container {
    padding: 6rem 2rem 4rem 2rem;
    max-width: 1000px;
  }

  .testimonials-title {
    font-size: 4.5rem;
    color: #FF6135;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    margin: 0 0 3rem 0;
  }

  .testimonials-carousel-wrapper {
    max-width: 689px;
  }

  .testimonials-carousel {
    height: 447px;
    border-radius: 30px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(0, 0, 0, 0.2));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
  }

  .testimonial-slide {
    border-radius: 30px;
  }

  .testimonial-image {
    border-radius: 30px;
  }

  .carousel-nav {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(255, 97, 53, 0.9), rgba(255, 138, 101, 0.9));
    border: 2px solid rgba(255, 255, 255, 0.2);
    font-size: 2.2rem;
    backdrop-filter: blur(15px);
  }

  .carousel-nav:hover {
    background: linear-gradient(135deg, #FF6135, #FF8A65);
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 12px 35px rgba(255, 97, 53, 0.5);
  }

  .carousel-nav-prev {
    left: -35px;
  }

  .carousel-nav-next {
    right: -35px;
  }

  .carousel-dots {
    margin-top: 2rem;
    gap: 16px;
  }

  .carousel-dot {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(0, 0, 0, 0.2));
    backdrop-filter: blur(10px);
  }

  .carousel-dot.active {
    background: linear-gradient(135deg, rgba(255, 97, 53, 0.9), rgba(255, 138, 101, 0.9));
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.3);
    box-shadow: 0 0 20px rgba(255, 97, 53, 0.6);
  }

  .carousel-dot:hover {
    border-color: rgba(255, 97, 53, 0.8);
    background: linear-gradient(135deg, rgba(255, 97, 53, 0.3), rgba(255, 138, 101, 0.3));
    transform: scale(1.15);
  }
}

/* Large desktop enhancements */
@media (min-width: 1200px) {
  .testimonials-title {
    font-size: 5rem;
  }

  .testimonials-carousel {
    height: 482px;
    max-width: 1000px;
  }

  .carousel-nav {
    width: 80px;
    height: 80px;
    font-size: 2.5rem;
  }

  .carousel-nav-prev {
    left: -40px;
  }

  .carousel-nav-next {
    right: -40px;
  }
}

/* ===== TABLET AND MOBILE RESPONSIVE ===== */
@media (max-width: 1024px) {
  .testimonials-carousel {
    max-width: 700px;
    height: 500px;
  }
  
  .testimonials-title {
    font-size: 3rem;
  }
  
  .carousel-nav {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
  
  .carousel-nav-prev {
    left: -25px;
  }
  
  .carousel-nav-next {
    right: -25px;
  }
}

@media (max-width: 768px) {
  .testimonials-section {
    height: 100vh;
    padding: 1rem;
  }
  
  .testimonials-container {
    padding: 1rem;
  }
  
  .testimonials-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
  }
  
  .testimonials-carousel {
    height: 400px;
    max-width: 90%;
  }
  
  .carousel-nav {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }
  
  .carousel-nav-prev {
    left: -22px;
  }
  
  .carousel-nav-next {
    right: -22px;
  }
  
  .carousel-dots {
    gap: 8px;
    margin-top: 1.5rem;
  }
  
  .carousel-dot {
    width: 10px;
    height: 10px;
  }
}

@media (max-width: 480px) {
  .testimonials-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }
  
  .testimonials-carousel {
    height: 300px;
  }
  
  .carousel-nav {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  
  .carousel-nav-prev {
    left: -20px;
  }
  
  .carousel-nav-next {
    right: -20px;
  }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  .testimonial-slide,
  .carousel-nav,
  .carousel-dot,
  .testimonial-image {
    transition: none;
  }
}

.carousel-nav:focus-visible {
  outline: 3px solid rgba(255, 97, 53, 0.6);
  outline-offset: 4px;
}

.carousel-dot:focus-visible {
  outline: 2px solid rgba(255, 97, 53, 0.8);
  outline-offset: 3px;
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .testimonials-overlay {
    background: rgba(0, 0, 0, 0.8);
  }
  
  .carousel-nav {
    border: 2px solid white;
  }
  
  .carousel-dot {
    border-width: 3px;
  }
}