@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: cover;
  overflow: hidden;
  height: 900px;
}

.s1flex {
  display: flex;
  align-items: flex-start;
  flex-direction: row;
  flex-wrap: wrap;
  width: 100%;
}

/* ── LEFT column: logos + gif ── */
.s1-left {
  flex: 1 1 45%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding-top: 40px;
}

/* ── RIGHT column: form ── */
.s1-right {
  flex: 1 1 45%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 16%;
}


.s1logowhite {
  margin-top: 10px;
  max-width: 45%;
  position: relative;
    left: -6%;
}

.s1spotlogo {
  max-width: 55%;
  margin-top: 30px;
}

.s1captureillustration {
  /* margin-top: 20px; */
  width: 65%;
  z-index: 30;
      position: relative;
    right: -2%;
}


.s1form {
  /* z-index: 10; */
   position: relative;   /* ← ADD THIS — activates z-index */
  z-index: 20; 
  width: 100%;
  max-width: 420px;
  margin-top: 0;
}

.s1stadium {
  height: 200vh;
  width: 100%;
  margin-top:-10%;
}

.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;
  margin-top:-2%;
}

.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: 39%;
  animation:
    drift-right 30s linear infinite,
    float 8s ease-in-out infinite;
}

.s1clouds2 {
  position: absolute;
  max-width: 10%;
  top: 31%;
  right: 38%;
  animation:
    drift-left 20s linear infinite,
    float 10s ease-in-out infinite;
    display: none;
}

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

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

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

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

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

.s1text {
  position: absolute;
  width: 80%;
  z-index: 9;
  left: 50%;
  top: 84%;              /* 🔥 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, 2rem);
  line-height: 1.1;
  text-align: center;
  color: white;
}

@media screen and (max-width: 600px) {
  .s1stadium {
    height: 50vh;
  }

  .s1text {
    top: 92%;
  }
}


@media only screen and (max-width: 768px) {
  .s1flex {
    flex-direction: column;
    align-items: center;
  }

  .s1-left,
  .s1-right {
    flex: 1 1 100%;
    width: 100%;
    padding-top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* Hide center col on mobile — logo shown inline in left col instead */
  .s1-center {
    display: none;
  }

  /* Show logo inside left col on mobile via a duplicate hidden on desktop */
  .s1-left::before {
    content: none;
  }

  .s1logowhite {
    margin-top: 20px;
    max-width: 60%;
  }

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

  .s1captureillustration {
    width: 85%;
    margin-top: 24px;
  }

  .s1form {
    max-width: 88%;
    margin-top: 24px;
    transform: scale(0.75);
    transform-origin: top center;
  }

  .s1-right {
    padding-top: 0;
  }

  .s1player {
    width: 50%;
    margin-top: 21%;
  }

  .s1text {
    top: 92%;
  }

  .s1 {
    height: auto;
    min-height: 750px;
  }

  .s1clouds1,
  .s1clouds2 {
    display: none;
  }

  .s1stadium {
    height: 20vh;
  }
}

/* Bottom row — default: acts as passthrough on mobile */
.s1-bottom-row {
  display: contents; /* children behave as direct children of s1flex on mobile */
}

/* Center column hidden by default — shown only on desktop via media query */
.s1-center {
  display: none;
}

/* for desktop view */
@media (min-width: 1025px) {
  .s1clouds1 { display: none; }
  .s1clouds5 { display: none; }

  /* Hide the mobile-only logo in left col */
  .s1logo-mobile { display: none; }

  /* ── Desktop layout: logo on top, two columns below ── */
  .s1flex {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    width: 100%;
  }

  /* Top row: GreenDotBall logo centered */
  .s1-center {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding-top: 30px;
    padding-bottom: 10px;
  }

  .s1logowhite {
    max-width: 22%;
    left: 0;
    margin-top: 0;
  }

  /* Bottom row: left + right side by side */
  .s1-bottom-row {
    display: flex;
    flex-direction: row;
    width: 100%;
    align-items: flex-start;
  }

  /* Bottom row: left + right as two equal columns */
  .s1-bottom-row {
    display: flex;
    flex-direction: row;
    width: 100%;
    align-items: flex-start;
  }

  /* Col 1: SpotAnyGreenDot + GIF */
  .s1-left {
    flex: 0 0 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px;
  }

  /* Col 2: Form */
  .s1-right {
    flex: 0 0 50%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 4%;
    position: static;
    width: auto;
    pointer-events: all;
  }

  .s1spotlogo {
    max-width: 55%;
    margin-top: 0;
    margin-left: 0;
  }

  .s1captureillustration {
    width: 67%;
    margin-left: 0;
  }

  .s1form {
    pointer-events: all;
  }
}