section#home {
  width: 100%;
  min-height: 100vh;              /* ensures it's at least full height but expands if needed */
  overflow-x: hidden;             /* prevent horizontal scroll, allow vertical scroll */
  margin: 0;
  padding: 0;
  position: relative;
  background: #222222;            /* fallback color for image banners */
}

.carousel-container {
  width: 100%;
  height: 100vh;                 /* full viewport height */
  position: relative;
  overflow: hidden;              /* hide overflow to prevent scrollbars */
}

/* Slides */
.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: scale(1.02);           
  transition: opacity 1s ease, transform 1s ease; 
  pointer-events: none;
  z-index: 0;
}

.carousel-slide.active {
  opacity: 1;
  transform: scale(1);              
  pointer-events: auto;
  z-index: 1;
}

.carousel-slide-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4); /* black with 40% opacity */
  pointer-events: none;
  z-index: 1;
}

/* Image styling */
.carousel-slide-inner img {
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  display: block;
}

/* Caption */
.carousel-caption {
  position: absolute;
  top: 50%;
  left: 40px;                  /* place it on the left side with some padding */
  transform: translateY(-50%); /* vertically center */
  color: rgb(255, 255, 255);
  background-color: transparent; /* no background */
  padding: 0;
  font-size: 2.5rem;
  max-width: 30%;
  text-align: right;
  line-height: 1.2;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
  z-index: 2;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .carousel-caption {
    font-size: 1.5rem;    /* increased from 1.2rem */
    max-width: 90%;       
    left: 20px;           
    text-align: left;     
    transform: translateY(-50%);
    padding: 10px 16px;   /* moved padding here */
  }
}