/* body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #111;
    margin: 0;
    font-family: "Poppins", sans-serif;
} */

.slider {
  position: relative;
  width: 90%;
  max-width: 900px;
  margin: 0 auto;
  /* height: 60vh; */
  height: 69vh;
  max-height: 500px;
  perspective: 1000px;
  overflow: visible;
}

.slide {
  position: absolute;
  top: 0;
  left: 50%;
  width: 70%;
  /* Active slide width */
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.6s ease, opacity 0.6s ease;
  opacity: 0;
  cursor: grab;
  z-index: 0;
  transform: translateX(-50%) scale(0.8);
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Active slide */
.slide.active {
  transform: translateX(-50%) scale(1);
  opacity: 1;
  z-index: 3;
}

/* Partial next/prev slides (25–30% visible) */
.slide.prev {
  transform: translateX(-100%) scale(0.9);
  /* shift left, 30% visible */
  opacity: 1;
  z-index: 2;
}

.slide.next {
  transform: translateX(0%) scale(0.9);
  /* shift right, 30% visible */
  opacity: 1;
  z-index: 2;
}

.text-overlay {
  position: absolute;
  bottom: 30px;
  left: 30px;
  color: white;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  width: calc(100% - 60px);
}

.slide.active .text-overlay {
  opacity: 1;
  transform: translateY(0);
}

.text-overlay h2 {
  margin: 0;
  font-size: 2vw;
  font-weight: 600;
}

.text-overlay p {
  margin-top: 5px;
  font-size: 1vw;
  opacity: 0.9;
}

.controls {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  z-index: 5;
  pointer-events: none;
}

.controls button {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  padding: 15px 20px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  pointer-events: all;
  transition: background 0.3s;
  width: 64px;
  height: 64px;
  border-radius: 50%;
}

.controls button:hover {
  background: rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
  .slide {
    width: 80%;
  }

  .text-overlay h2 {
    font-size: 3vw;
  }

  .text-overlay p {
    font-size: 2vw;
  }
}

@media (max-width: 767px) {
  .slider {
    height: 40vh;
  }
}

@media (max-width: 480px) {
  .slide {
    width: 90%;
  }

  .text-overlay h2 {
    font-size: 4vw;
  }

  .text-overlay p {
    font-size: 3vw;
  }
}