@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');

.s1 {
  position: relative;
  width: 100%;
  background-color: rgb(0, 0, 0);
  background-image: url("../img/Section1/Section1-BG.webp");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: auto 100%;
  overflow: hidden;
}

.s1flex {
  display: flex;
  align-items: center;
  flex-direction: column;
}


.s1logowhite {
  margin-top: 80px;
  max-width: 50%;
}

.s1spotlogo {
  max-width: 50%;
  margin-top: 60px;
}

.s1captureillustration {
  margin-top: 40px;
  width: 60%;
  z-index: 30;
}

.s1form {
  z-index: 10;
  min-height: 50vh;
  max-width: 70%;
  margin-top: 40px;
}

.s1stadium {
  height: 200vh;
  width: 100%;
}

.s1stadiumbase {
  position: absolute;
  width: 100%;
  z-index: 8;
}

.s1stadiumbaseextended{
    position: absolute;
  width: 100%;
  z-index: 7;
}

.s1stadiumtop {
  position: absolute;
  max-width: 100%;
  z-index: 8;

  animation: stadiumFade 3s ease-in-out infinite;
}

@keyframes stadiumFade {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
  100% {
    opacity: 1;
  }
}

.s1stadiumlights {
  position: absolute;
  max-width: 100%;
  z-index: 7;
  transform: translateY(0);
  will-change: transform;
}

.s1stadiumlightrays {
  position: absolute;
  max-width: 100%;
  z-index: 10; /* Higher than lights (7) so it glows on top */
  transform: translateY(0);
  will-change: transform;
  pointer-events: none; /* Good practice so clicks pass through to the form/video */
  opacity: 0; /* Start invisible */
  transition: opacity 0.1s linear; /* Optional: smooths out fast scrolls */
}

@keyframes drift-left {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-40px);
  }
}

@keyframes drift-right {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(40px);
  }
}

@keyframes float {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-30px);
  }

  100% {
    transform: translateY(0);
  }
}

.s1clouds1 {
  position: absolute;
  max-width: 20%;
  top: 2%;
  left: 5%;
  animation:
    drift-right 30s linear infinite,
    float 8s ease-in-out infinite;
}

.s1clouds2 {
  position: absolute;
  max-width: 30%;
  top: 2%;
  right: -15%;
  animation:
    drift-left 20s linear infinite,
    float 10s ease-in-out infinite;
}

.s1clouds3 {
  position: absolute;
  max-width: 30%;
  top: 12%;
  left: -15%;
  animation:
    drift-right 30s linear infinite,
    float 12s ease-in-out infinite;
}

.s1clouds4 {
  position: absolute;
  max-width: 15%;
  top: 12%;
  right: 5%;
  animation:
    drift-left 30s linear infinite,
    float 9s ease-in-out infinite;
}

.s1clouds5 {
  position: absolute;
  max-width: 15%;
  top: 24%;
  left: 5%;
  animation:
    drift-right 30s linear infinite,
    float 14s ease-in-out infinite;
}

.s1clouds6 {
  position: absolute;
  max-width: 25%;
  top: 20%;
  right: -5%;
  animation:
    drift-left 30s linear infinite,
    float 11s ease-in-out infinite;
}

.s1player {
  position: absolute;
  width: 50%;
  z-index: 9;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 20%;
}

.s1text {
  position: absolute;
  width: 80%;
  z-index: 9;
  left: 50%;
  top: 87%;              /* 🔥 control vertical position */
  transform: translate(-50%, -50%);

  font-family: "Bebas Neue", sans-serif;
  font-weight: 500;
  font-style: normal;

  font-size: clamp(0.9rem, 3.5vw, 3rem);
  line-height: 1.1;
  text-align: center;
  color: white;
}

@media screen and (max-width: 600px) {
  /* CSS styles to apply when the screen width is 600px or less */
  .s1stadium {
    height: 50vh;
  }

  .s1text{
    top: 92%
  }
}

@media screen and (max-width: 600px) {

  /* 🔥 Make logos bigger on phone */
  .s1logowhite {
    max-width: 60%;
    margin-top: 40px;
  }

  .s1spotlogo {
    max-width: 60%;
    margin-top: 24px;
  }

  /* 🎯 Hero gif slightly larger but controlled */
  .s1captureillustration {
    width: 85%;
    margin-top: 24px;
  }

  /* 📦 Make form smaller + tighter */
  .s1form {
    max-width: 88%;
    min-height: auto;
    margin-top: 24px;
    transform: scale(0.75);   /* 👈 clean proportional shrink */
    transform-origin: top center;
  }

  /* Optional: reduce stadium height you already did */
  .s1stadium {
    height: 50vh;
  }

  .s1text {
    top: 89%;
  }
}
