/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  font-family: Arial, sans-serif;
  color: black;
  overflow-x: hidden;
  background-color: black;
}

/* Video Section */
.video-section {
  position: relative;
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: white;
}


.video-wrapper {
  width: 90%;
  height: 90%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-section video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: white;
  padding: 5vw;
}


.video-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scaleX(2);
  font-family: 'Press Start 2P', cursive;
  font-size: 1.5vw;
  color: #39ff14;
  text-shadow:
    0 0 1px #39ff14,
    0 0 3px #39ff14,
    0 0 5px #0f0;
  text-align: center;
  white-space: nowrap;
  animation: crt-flicker 1.5s infinite;
}
/* Shared Section Styles */
.description-section,
.stats-section, .promo-section {
  width: 100vw;
  min-height: 100vh;
  display: block;
  text-align: left;
  background-color: white;
  align-items: center;
  padding-left: 5vw;
}

.description-section{
  padding-top: 25vh;
  padding-bottom: 25vh;
}


.stats-section{
  padding-top: 20vh;
}

.promo-section{
  padding-top: 25vh;
  padding-bottom: 25vh;
}

.image-section {
    align-items: flex-start; /* or center if you want vertical centering */
    padding-top: 0;
    padding-bottom: 0;
    height: 100vh;
  }

.fullscreen-image {
  width: 100%;
  height: auto;
  object-fit: cover;  /* or 'contain' if you want the entire image visible */
}

/* 8-bit Text Styling with CRT glow */
.description-section p,
.stats-section p {
  font-family: 'Press Start 2P', cursive;
  font-size: 1rem;
  line-height: 2;
  letter-spacing: 0.5px;
  color: black;
  text-shadow:
    0 0 1px black,
    0 0 3px black,
    0 0 5px gray;
  max-width: 90vw;
  animation: crt-flicker 1.5s infinite;
  text-align: left;
}


.promo-section p {
  text-align: left;
  white-space: pre-line;
  font-family: 'Press Start 2P', cursive;
  font-size: 1rem;
  line-height: 2;
  letter-spacing: 0.5px;
  color: black;
  max-width: 90vw;
  text-shadow:
    0 0 1px black,
    0 0 3px black,
    0 0 5px gray;
  animation: crt-flicker 1.5s infinite;
}

.printer-container {
  position: relative;
  height: 60vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 30vh; /* center the first line */
}

.printed-line {
  transform: translateY(0);
  animation: scrollUp 0.3s forwards;
  font-family: 'Press Start 2P', cursive;
  text-shadow:
    0 0 1px black,
    0 0 2px black,
    0 0 4px gray;
  width: 100%;
  text-align: left;
  margin: 0 auto;
    font-size: 1rem;
  line-height: 1.8;
  color: black;
  white-space: pre-wrap;
  padding-bottom: 1.5vh;
}

.section {
  width: 100vw;
  min-height: 100vh;
  background-color: white;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-direction: column;
}



.video-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scaleX(2);
  color: #39ff14;
  text-shadow: 0 0 2px white, 0 0 5px #0f0;
}

/* === UPDATED CSS === */

.scroll-section {
  position: relative;
  min-height: 100vh;
  background: white;
  overflow: hidden;
  display: flex;
  align-items: center; /* Align lines to the bottom */
}

.text-wrapper {
  width: 100%;
  padding: 10vw 15vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
    
}

.text-lines {
  display: flex;
  flex-direction: column;
  transform: translateY(80%);
}

.text-lines.revealed {
  animation: scroll-up-lines 16s linear forwards;
}



.reveal-matte {
  position: absolute;
  bottom: 0;
  width: 100vw;
  height: 20vh;
  background: white;
  filter: blur(10px);
  pointer-events: none;
  z-index: 2;
  transform: translateY(10vh);
}

.image-wrapper {
    width: 100%;
    align-content: center;
    padding-left: 4vw;
    padding-right: 4vw;
    padding-bottom: 4vw;
    transform: translateY(80%);
}

.image-wrapper.revealed {
  animation: scroll-up-lines 12s linear forwards;
}

.full-image {
  width: 100%;
  height: auto;
  display: block;
}

@keyframes scroll-up-lines {
  from {
    transform: translateY(85vh);
  }
  to {
    transform: translateY(0%);
  }
}

/* === MOBILE ADJUSTMENTS === */
@media (max-width: 600px) {
  html, body {
    background-color: #ffffff !important;
    color-scheme: light;
    overscroll-behavior: none;
    -webkit-font-smoothing: antialiased;
    -webkit-overflow-scrolling: touch;
    position: relative;
    z-index: 0;
    font-size: 2.5vw;
  }

  body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    background: #ffffff;
    z-index: -1;
  }

  .video-section,
  .description-section,
  .stats-section,
  .promo-section {
    background-color: #fff !important;
    background-image: none !important;
  }

  
  
  .video-overlay {
    font-size: 2vw;
  }
  
  
  .description-section,
  .stats-section,
  .promo-section {
    width: 100vw;
    height: auto;
    display: flex;
    justify-content: left;     /* ✅ horizontal center of the <p> */
    align-items: flex-start;         /* ✅ vertical center of the <p> */
    background-color: white;
  }
  

  
  .video-section {
    background-color: white; /* already set */
  }

  .video-section video {
    background-color: white; /* ✅ ensure solid base */
    width: 100vw;
    display: block;
    padding: 0;
  }
  
  .video-wrapper {
    width: 100%;
    height: 100%;
    padding: 0;
  }
  

  .image-section {
    align-items: flex-start; /* or center if you want vertical centering */
    padding-top: 0;
    padding-bottom: 0;
    height: 100vh;
  }
  
  .image-wrapper {
    width: 100vw;
    align-content: center;
    transform: translateY(80%);
    padding-right: 0;
    padding-left: 0;
    padding-bottom: 0;
  }
  

    .text-lines.revealed {
      animation: scroll-up-lines 16s linear forwards;
    }
    
    @keyframes scroll-up-lines {
      from {
        transform: translateY(100vh);
      }
      to {
        transform: translateY(0%);
      }
    }
    
}
