.hero {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 5%;
  
  background: #090909;
  position: relative;
  overflow: hidden;
  
  /* Animation */
  animation: backgroundFadeIn 3s ease forwards;
  animation-delay: 1.5s; 
}

.hero-content {
  width: 80vw;            /* always 80% of viewport width */
  max-width: 1200px;      /* optional: prevent it from being too wide on big screens */
  margin: 0 auto;         /* center horizontally */
}

.hero h1 {
  font-size: 8rem;
  /* white-space: nowrap; */
  margin: 0;
  position: relative;
  z-index: 1;
  color: #090909;
  /* bottom: 20px; */

  /* Animation */
  animation: textFadeIn 1.5s ease forwards;
  animation-delay: 0.5s; 
}

.hero ul {
  list-style: none;
  display: flex;
  justify-content: space-around;
  /* position: relative; */
  /* list-style: none; */
  /* padding: 15px 0; */
  width: 100%;
  /* justify-self: center; */
  max-width: 800px; /* optional: limit maximum width */
  margin: 0 auto;
}

.hero p {
  font-size: clamp(16px, 4vw, 36px);
  /* white-space: nowrap; */
  margin: 0;
  z-index: 1;
  color: transparent;
  /* bottom: 60px; */
  /* position: relative; */
  /* transform: translate(50%, 50%); */
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;

  /* Animation */
  animation: smallTextFadeIn 1.5s ease forwards;
  animation-delay: 3s; 
}

@keyframes backgroundFadeIn {
  0% { background:#090909; }
  100% { background: transparent; }
  /* 100% { background: linear-gradient(to bottom right, #fa97c8 0%, #b485d3 50%, #88defe 100%); } */
}

@keyframes textFadeIn {
  0% { color: #090909; }
  100% { color: white; }
}

@keyframes smallTextFadeIn {
  0% { opacity: 0%; color: #090909; transform: translate(0, -20px); }
  100% { opacity: 100%; color: #f1f2f3; transform: translate(0, 0); }
}

#scene-container {
  position: fixed;   /* stay behind everything */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;       /* behind all content */
}

/* Scroll Down Prompt */
.scroll-down {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  font-family: sans-serif;
  font-size: 14px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.5s ease; /* fade transition */
}

.scroll-down span {
  margin-bottom: 5px;
}

.scroll-down i {
  font-size: 18px;
  animation: bounce 1.2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(5px); }
  60% { transform: translateY(3px); }
}

.scroll-down:hover {
  opacity: 1;
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 3rem;
  }

  .hero ul {
    gap: 6px;
  }
}