.carousel-container {
  perspective: 1000px;
  overflow: hidden;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.carousel-3d {
  display: flex;
  justify-content: center;
  align-items: center;
  transform-style: preserve-3d;
  transition: transform 0.6s ease;
  position: relative;
  height: 500px;
}

.carousel-3d img {
  position: absolute;
  width: 400px;
  height: auto;
  padding:50px;
  opacity: 0.4;
  transition: all 0.6s ease;
  transform-origin: center center;
  z-index: 1;
}

.carousel-3d img.active {
  transform: translateX(0) scale(1.2) translateZ(150px);
  opacity: 1;
  z-index: 3;
}

.carousel-3d img.left {
  transform: translateX(-220px) scale(0.9) rotateY(20deg);
  z-index: 2;
  opacity: 0.6;
}

.carousel-3d img.right {
  transform: translateX(220px) scale(0.9) rotateY(-20deg);
  z-index: 2;
  opacity: 0.6;
}

/* Navigation arrows on sides */
.carousel-controls {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  padding: 0 20px;
  pointer-events: none;
}

.carousel-controls button {
  background: none;
  border: none;
  font-size: 25px;
  color: #379407;
  cursor: pointer;
  pointer-events: auto;
  transition: color 0.3s ease;
}

.carousel-controls button:hover {
  color: #000;
}

/* Hide arrows on mobile */
@media (max-width: 767.98px) {
  .carousel-controls {
    display: none;
  }
}
