body,
html {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow-x: hidden; /* Prevent horizontal scrollbar */


}

#slider-container {
  position: relative;
  width: 100%;
  height: 50vh; /* Default height for desktop */
  overflow: hidden;
  background-size: cover;
  background-position: center;
  transition: background-image 1s ease-in-out;
  background-blend-mode: darken;
  background-color: rgba(0, 0, 0, 0.1);
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  pointer-events: none;
}

.slide.active {
  opacity: 1;
  pointer-events: auto;
}

.heading-container {
  position: absolute;
  top: 0;
  width: 100%;
  text-align: center;
  z-index: 2;
  transform: translateY(-100%);
  transition: transform 1s ease-out;
  padding: 0 10px;
  box-sizing: border-box;
}

.slide.active .heading-container {
  transform: translateY(0);
}

.heading-container h1 {
  font-family: "Montserrat", sans-serif;
  font-size: 6vw;
  font-weight: 800;
  text-transform: uppercase;
  margin: 0;
  margin-top: 100px;

  white-space: normal;
  word-break: break-word;
}

.content-container {
  position: absolute;
  bottom: 25%;
  width: 80%;
  text-align: center;
  z-index: 2;
}

.content-container h2 {
  font-family: "Montserrat", sans-serif;
  text-transform: uppercase;
  font-size: 2.5em;
  margin-bottom: 10px;
  text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.6);
  color: rgba(255, 255, 255, 0.95);

  display: block;
  white-space: normal;
  overflow: hidden;
}

.content-container h2 span {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
  white-space: pre;
}

.slide.active .content-container h2 span {
  opacity: 1;
  transform: translateY(0);
}

.content-container p {
  font-size: 1.5em;
  line-height: 1.5;
  text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.6);
  color: rgba(255, 255, 255, 0.9);
  max-width: 900px;
  margin: 0 auto;
}

.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3em;
  cursor: pointer;
  z-index: 3;
  color: rgba(255, 255, 255, 0.7);
  user-select: none;
  padding: 10px 15px;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 5px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 1.5em;
}

.nav-arrow:hover {
  color: rgba(255, 255, 255, 1);
  background-color: rgba(0, 0, 0, 0.5);
}

#prev-arrow {
  left: 20px;
}

#next-arrow {
  right: 20px;
}

.dots-container {
  position: absolute;
  bottom: 20px;
  width: 100%;
  text-align: center;
  z-index: 3;
}

.dot {
  height: 15px;
  width: 15px;
  margin: 0 5px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
  cursor: pointer;
}

.dot.active {
  background-color: rgba(255, 255, 255, 0.9);
}

/* --- Media Queries for Responsiveness --- */
@media (max-width: 768px) {
  #slider-container {
    height: 75vh; /* Slider is 75% of viewport height on screens <= 768px */
  }

  .heading-container h1 {
    font-size: clamp(60px, 12vw, 100px);
    margin-top: -20px;
  }

  .content-container {
    bottom: 15%;
    width: 90%;
  }

  .content-container h2 {
    font-size: 1.8em;
    margin-bottom: 5px;
  }

  .content-container p {
    font-size: 1em;
    line-height: 1.4;
  }

  .nav-arrow {
    font-size: 2em;
    padding: 8px 12px;
  }

  #prev-arrow {
    left: 10px;
  }

  #next-arrow {
    right: 10px;
  }

  .dots-container {
    bottom: 10px;
  }

  .dot {
    height: 10px;
    width: 10px;
    margin: 0 3px;
  }
}

@media (max-width: 480px) {
  #slider-container {
    height: 75vh; /* Maintain 75% for smaller phones too */
  }
  .heading-container h1 {
    font-size: clamp(45px, 15vw, 70px);
    margin-top: -10px;
  }

  .content-container {
    bottom: 10%;
    width: 95%;
  }

  .content-container h2 {
    font-size: 1.5em;
  }

  .content-container p {
    font-size: 0.9em;
  }

  .nav-arrow {
    font-size: 1.5em;
  }
}