/* ============================= */
/* Slider Container */
/* ============================= */
#slider-container {
  position: relative;
  width: 100%;
  height: 550px; /* Adjust height as needed */
  overflow: hidden;
  margin-top: 40px;
}

/* ============================= */
/* Individual Slide Styles */
/* ============================= */
.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

/* Show the active slide */
.slide.current {
  opacity: 1;
}

/* ============================= */
/* Caption Styles */
/* ============================= */

.carousel-caption{
  position: absolute;
  top: 50px;
  text-align: center;
  font-weight: 900;
}
  
.caption {
  position: absolute;
  bottom: 50px; /* Increased bottom space */
  left: 60px; /* More left margin */
  background: rgba(0, 0, 0, 0.85); /* Slightly darker for better contrast */
  color: #fff;
  padding: 25px;
  border-radius: 10px;
  max-width: 450px;
  box-shadow: 3px 3px 20px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

/* Caption Heading */
.caption-heading h1 {
  font-size: 28px; /* Bigger title */
  font-weight: bold;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #ffcc00; /* Brighter gold for attention */
  text-shadow: 2px 2px 10px rgba(255, 204, 0, 0.5);
}

/* Caption Subtext */
.caption-subhead {
  font-size: 18px;
  font-weight: 400;
  margin-top: 12px;
  font-style: italic;
  color: #f1f1f1;
  text-shadow: 1px 1px 5px rgba(255, 255, 255, 0.2);
}

/* ============================= */
/* Different Caption Animations for Each Slide */
/* ============================= */

/* First Slide - Zoom In */
.current-caption {
  animation: zoomIn 1.2s ease-out forwards;
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Second Slide - Slide In from Left */
.second-caption {
  animation: slideInLeft 1.2s ease-out forwards;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Third Slide - Slide In from Right */
.third-caption {
  animation: slideInRight 1.2s ease-out forwards;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Fourth Slide - Rotate In from Left */
.fourth-caption {
  animation: rotateInLeft 1.2s ease-out forwards;
}

@keyframes rotateInLeft {
  from {
    opacity: 0;
    transform: rotate(-10deg);
  }
  to {
    opacity: 1;
    transform: rotate(0);
  }
}


/* ============================= */
/* Navigation Arrows (Optional) */
/* ============================= */
#prev-slide, #next-slide {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  padding: 20px;
  cursor: pointer;
}

#prev-slide { left: 20px; }
#next-slide { right: 20px; }
