/* General styles for the body to ensure background and font */
body {
  margin: 0;
  padding: 0;
  font-family: "Google Sans Custom", sans-serif;
  background: #FFFFFF;
  color: #3e9e47;
}

/* Banner section styles */
.banner {
  position: relative;
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  padding: 60px 100px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: background-image 0.5s ease-in-out;
  will-change: transform;
}

/* Overlay for the banner background image */
.banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.9));
  z-index: 1;
  will-change: transform;
}

/* Content area within the banner (e.g., "Explore Blockbusters") */
.content {
  position: relative;
  z-index: 2;
  max-width: 500px;
  animation: fadeIn 1s ease;
  will-change: transform;
}

/* Carousel container */
.carousel-box {
  position: relative;
  z-index: 2;
  backdrop-filter: blur(10px);
  border-radius: 15px;
  display: flex;
  gap: 20px;
  padding: 20px;
  overflow-x: hidden;
  scroll-behavior: smooth;
  will-change: transform;
  /* Enables smooth scrolling for carousel */
}

/* Individual carousel item */
.carousel-item {
  flex: 0 0 auto;
  scroll-snap-align: center;
  cursor: pointer;
  transition: transform 0.4s ease, opacity 0.4s ease;
  position: relative;
  will-change: transform;
}

/* Image within the carousel item */
.carousel-item img {
  width: 160px;
  height: 230px;
  border-radius: 10px;
  object-fit: cover;
  opacity: 0.6;
  transition: all 0.4s ease;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
  will-change: transform;
}

/* Hover effect for carousel images */
.carousel-item:hover img {
  transform: scale(1.08);
  opacity: 0.85;
  will-change: transform;
}

/* Active carousel item styling (centered and zoomed) */
.carousel-item.active img {
  transform: scale(1.15);
  /* Zoom effect */
  opacity: 1;
  will-change: transform;
}

/* Fade-in animation for content */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Title overlay on images */
.image-title {
  position: absolute;
  bottom: 0px; /* This moves it to the exact bottom */
  left: 50%;
  transform: translateX(-50%); /* This centers it horizontally */
  color: #fff; /* Changed from 'white' for consistency with earlier request */
  padding: 6px 14px; /* From your earlier request */
  font-size: 17px; /* From your earlier request */
  font-weight: 600; /* From your earlier request */
  white-space: nowrap; /* From your earlier request */
  border-bottom-left-radius: 6px; /* From your earlier request */
  border-bottom-right-radius: 6px; /* From your earlier request */
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8); /* Kept from your last code for readability */
  /* You can remove 'border-radius: 8px;' if you only want the bottom corners rounded as per your earlier request */
}
/* Media queries for responsiveness */
@media (max-width: 768px) {
  .banner {
    padding: 40px 20px;
  }

  .carousel-box {
    gap: 12px;
    padding: 12px;
  }

  .carousel-item img {
    width: 100px;
    height: 150px;
  }

 .image-title {
  font-size: 0.9rem; /* Quite small */
} }

  .content h1 {
    font-size: 30px;
  }

  .content p {
    font-size: 16px;
  }

.carousel-box {
  display: flex;
  gap: 20px;
  padding: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.carousel-item {
  flex: 0 0 auto;
  scroll-snap-align: center;
}
