.header-img {
  background-image: url("../images/background.webp");
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  height: 100vh; /* Full height of the viewport */
  width: 100%;
}

.hero-overlay {
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4); /* Transparent black overlay */
  text-align: center;
  display: flex;
  flex-direction: column; /* Stack title and slogan vertically */
  justify-content: center;
  align-items: center;
  font-size: 30px;
  font-weight: bolder;
}

#title {
  color: rgb(255, 255, 255);
  text-shadow: 2px 2px 6px #2c3e50;
  animation: slideIn 1.5s ease-out forwards; /* Animation for title */
  opacity: 0; /* Start with opacity 0 for fade-in effect */
  padding-left: 35rem; /* Large padding for desktop */
  letter-spacing: 5px;
}

#slogen {
  color: rgb(255, 255, 255);
  text-shadow: 2px 2px 6px #2c3e50;
  animation: slideInSlogan 1.5s ease-out forwards; /* Animation for slogan */
  opacity: 0; /* Start with opacity 0 for fade-in effect */
  padding-left: 9rem; /* Large padding for desktop */
  font-weight: bolder;
}

/* Animation to scroll title from the right */
@keyframes slideIn {
  0% {
    transform: translateX(100%); /* Start from right */
    opacity: 0; /* Initially invisible */
  }
  100% {
    transform: translateX(0); /* End at normal position */
    opacity: 1; /* Fully visible */
  }
}

/* Animation to slide the slogan after title finishes */
@keyframes slideInSlogan {
  0% {
    transform: translateX(100%); /* Start from right */
    opacity: 0; /* Initially invisible */
  }
  100% {
    transform: translateX(0); /* End at normal position */
    opacity: 1; /* Fully visible */
  }
}

/* Delay the slogan animation until the title finishes */
#slogen {
  animation-delay: 1.5s; /* Delay the slogan animation */
}

/* Media query for phones */
@media (max-width: 768px) {
  .hero-overlay {
    padding-left: 0; /* Remove padding */
    font-size: 24px; /* Adjust font size if needed */
  }

  /* Make the title and slogan slide in without padding */
  #title {
    animation: slideIn 1.5s ease-out forwards;
    opacity: 0;
    padding-left: 0; /* Remove padding for mobile */
  }

  #slogen {
    animation: slideInSlogan 1.5s ease-out forwards;
    opacity: 0;
    animation-delay: 1.5s; /* Delay the slogan animation on small screens too */
    padding-left: 0; /* Remove padding for mobile */
  }
}
.scroll-container {
  position: fixed; /* Changed to fixed for smooth scroll behavior */
  bottom: 32px;
  left: 50%;
  transform: translate(-50%, 0);
  opacity: 1;
  transition: opacity 0.3s ease-out;
  z-index: 20;
}

.mouse {
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 9999px;
  padding: 4px;
  animation: mouseBounce 1.5s ease-in-out infinite;
}

.scroll-dot {
  width: 8px;
  height: 8px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 9999px;
  animation: scrollDot 1.5s ease-in-out infinite;
}

@keyframes mouseBounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(10px);
  }
}

@keyframes scrollDot {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(16px);
  }
}

.scroll-container.fade-out {
  opacity: 0;
  pointer-events: none;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
