/* Testimonials 3D Carousel Styles */
.carousel-3d-container {
  position: relative;
  height: 750px;
  perspective: 2000px;
  margin: 0 auto;
}

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

.carousel-3d-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 540px;
  height: 680px;
  transform-origin: center;
  transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  border-radius: 24px;
  overflow: hidden;
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

.carousel-3d-card .video-player-3d {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 1000 !important;
  background: #000 !important;
  border-radius: 24px !important;
  object-fit: cover !important;
  display: none;
}

.carousel-3d-card.active {
  transform: translate(-50%, -50%) scale(1) rotateY(0deg);
  opacity: 1;
  pointer-events: all;
  z-index: 10;
}

.carousel-3d-card.prev {
  transform: translate(-140%, -50%) scale(0.85) rotateY(35deg);
  opacity: 0.5;
  filter: brightness(0.6);
  z-index: 5;
}

.carousel-3d-card.next {
  transform: translate(40%, -50%) scale(0.85) rotateY(-35deg);
  opacity: 0.5;
  filter: brightness(0.6);
  z-index: 5;
}

.carousel-3d-card:not(.active):not(.prev):not(.next) {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.7);
  pointer-events: none;
  z-index: 1;
}

.card-video-wrapper-3d {
  width: 100%;
  height: 340px;
  overflow: hidden;
  position: relative;
}

.video-container-3d {
  width: 100%;
  height: 100%;
  position: relative;
}

.video-thumbnail-3d {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
}

.play-button-3d {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(36, 101, 247, 0.9);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  box-shadow: 0 8px 24px rgba(36, 101, 247, 0.4);
}

.play-button-3d:hover {
  background: rgba(36, 101, 247, 1);
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 12px 32px rgba(36, 101, 247, 0.6);
}

.card-content-3d {
  padding: 24px 30px 30px;
  display: flex;
  flex-direction: column;
}

.card-header-3d {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.card-logo-3d {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  object-fit: contain;
  background: white;
  padding: 4px;
}

.card-info-3d h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 4px 0;
  color: #1a1a1a;
}

.card-info-3d p {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
}

.card-content-3d blockquote {
  font-size: 15px;
  line-height: 1.7;
  color: #374151;
  margin: 0;
  font-style: italic;
}

/* Carousel Controls */
.carousel-3d-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #1a1a1a;
  cursor: pointer;
  transition: all 0.3s;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.carousel-3d-btn:hover {
  background: #2465f7;
  border-color: #2465f7;
  color: white;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 8px 20px rgba(36, 101, 247, 0.3);
}

.prev-btn-3d {
  left: 20px;
}

.next-btn-3d {
  right: 20px;
}

.carousel-3d-dots {
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
}

.dot-3d {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d1d5db;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  padding: 0;
}

.dot-3d.active {
  width: 32px;
  border-radius: 4px;
  background: linear-gradient(90deg, #2465f7, #00d4ff);
}

/* Responsive */
@media (max-width: 1200px) {
  .carousel-3d-container {
    height: 650px;
  }

  .carousel-3d-card {
    width: 480px;
    height: 600px;
  }

  .card-video-wrapper-3d {
    height: 280px;
  }
}

@media (max-width: 768px) {
  .carousel-3d-container {
    height: 550px;
    perspective: 1000px;
  }

  .carousel-3d-card {
    width: 360px;
    height: 520px;
  }

  .carousel-3d-card.active {
    transform: translate(-50%, -50%) scale(0.95) rotateY(0deg);
  }

  .carousel-3d-card.prev {
    transform: translate(-160%, -50%) scale(0.7) rotateY(45deg);
  }

  .carousel-3d-card.next {
    transform: translate(60%, -50%) scale(0.7) rotateY(-45deg);
  }

  .card-video-wrapper-3d {
    height: 240px;
  }

  .card-content-3d {
    padding: 20px 24px 24px;
  }

  .card-logo-3d {
    width: 50px;
    height: 50px;
  }

  .card-info-3d h3 {
    font-size: 18px;
  }

  .card-content-3d blockquote {
    font-size: 14px;
  }

  .carousel-3d-btn {
    width: 44px;
    height: 44px;
  }

  .prev-btn-3d {
    left: 10px;
  }

  .next-btn-3d {
    right: 10px;
  }

  .play-button-3d {
    width: 64px;
    height: 64px;
  }

  .play-button-3d svg {
    width: 24px;
    height: 24px;
  }
}

@media (max-width: 480px) {
  .carousel-3d-container {
    height: 500px;
  }

  .carousel-3d-card {
    width: 320px;
    height: 480px;
  }

  .card-video-wrapper-3d {
    height: 200px;
  }

  .carousel-3d-card.prev,
  .carousel-3d-card.next {
    opacity: 0.3;
  }
}
