/* RESET */
* {
  margin: 0;
  box-sizing: border-box;
}

body {
  font-family: Inter, system-ui, sans-serif;
  color: white;
  overflow-x: hidden;

  /* PREMIUM GRADIENT BACKGROUND */
  background: linear-gradient(
    120deg,
    #0f0f0f,
    #121212,
    #1a1a1a
  );
  background-size: 300% 300%;
  animation: bgMove 20s ease infinite;
}

@keyframes bgMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* SLIDES */
.slide {
  height: 100vh;
  padding: 5vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;

  opacity: 0;
  transform: translateY(40px) scale(0.96);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.2,.8,.2,1);
}

.slide.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* INTRO */
.intro h1 {
  font-size: clamp(4rem, 15vw, 12rem);
  letter-spacing: -0.06em;
  animation: floatIn 1.2s ease forwards;
}

.intro p {
  margin-top: 20px;
  opacity: 0;
  animation: fadeUp 1s ease forwards;
  animation-delay: 0.4s;
}

/* TEXT SLIDES */
.text h2 {
  font-size: clamp(2.5rem, 6vw, 6rem);
  letter-spacing: -0.03em;
}

/* STAT */
.stat p {
  opacity: 0.6;
  margin-bottom: 10px;
}

.stat h1 {
  font-size: clamp(6rem, 20vw, 14rem);
  letter-spacing: -0.05em;
  animation: pulse 2s infinite alternate ease-in-out;
}

/* MOST SAID WORD */
.most-word p {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.8rem;
  opacity: 0.6;
}

.most-word .word {
  font-size: clamp(4rem, 14vw, 10rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  animation: wobble 3s infinite ease-in-out;
}

.most-word .count {
  margin-top: 20px;
  font-size: 2rem;
  opacity: 0.7;
}

.flood {
  width: 100%;
  overflow: hidden;
  display: block;
  padding: 5vw;
}

.flood-word {
  display: inline-block; /* allows wrapping */
  font-size: clamp(3rem, 8vw, 10rem);
  font-weight: 900;
  opacity: 0.1;
  white-space: normal; /* allows wrapping */
  animation: drift 5s ease-in-out infinite alternate;
}

@keyframes drift {
  0% { transform: translateX(0); }
  100% { transform: translateX(10%); }
}


/* Animation moves the word from left to right repeatedly */
@keyframes floatWord {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}



/* LETTER ANIMATION */
.letters span {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px);
  animation: rise 0.6s forwards;
}

/* BREATHE */
.breathe h1 {
  font-size: clamp(2.5rem, 6vw, 6rem);
  animation: breathe 4s ease-in-out infinite;
}

/* FINALE */
.finale h2 {
  font-size: clamp(3rem, 8vw, 7rem);
  letter-spacing: -0.04em;
}

/* ANIMATIONS */
@keyframes fadeUp {
  to {
    opacity: 0.7;
    transform: translateY(0);
  }
}

@keyframes floatIn {
  from { transform: translateY(60px); }
  to { transform: translateY(0); }
}

@keyframes pulse {
  from { transform: scale(1); }
  to { transform: scale(1.05); }
}

@keyframes wobble {
  0% { transform: rotate(-1deg); }
  50% { transform: rotate(1deg); }
  100% { transform: rotate(-1deg); }
}



@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes breathe {
  0%,100% { opacity: 0.6; transform: scale(0.98); }
  50% { opacity: 1; transform: scale(1); }
}
/* ===== ENTRANCE EFFECTS ===== */

/* SWOOSH UP */
.swoosh {
  opacity: 0;
  transform: translateY(40px);
}

.slide.active .swoosh {
  animation: swooshUp 0.8s cubic-bezier(.2,.8,.2,1) forwards;
}

@keyframes swooshUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* SCALE POP */
.pop {
  opacity: 0;
  transform: scale(0.8);
}

.slide.active .pop {
  animation: popIn 0.7s cubic-bezier(.2,.8,.2,1) forwards;
}

@keyframes popIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* TYPEWRITER */
.type {
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid rgba(255,255,255,0.6);
  width: 0;
}

.slide.active .type {
  animation:
    typing 1.8s steps(30, end) forwards,
    blink 0.8s step-end infinite;
}

@keyframes typing {
  to { width: 100%; }
}

@keyframes blink {
  50% { border-color: transparent; }
}

/* SOFT STREAK (UNDERLINE SWOOSH) */
.streak {
  position: relative;
}

.streak::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -12px;
  width: 0%;
  height: 6px;
  background: linear-gradient(90deg, #1db954, #ff2d95);
  border-radius: 6px;
}

.slide.active .streak::after {
  animation: streakIn 0.8s ease forwards;
}

@keyframes streakIn {
  to { width: 100%; }
}



.voice-graph {
  position: relative;
  width: 60%;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  margin-top: 20px;
  overflow: hidden;
}

.voice-graph .bar {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #00f260, #0575e6);
  border-radius: 20px;
  transition: width 2s ease;
}

.voice-graph .hours {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 700;
  opacity: 0.8;
}
.swoosh {
  opacity: 0;
  transform: translateY(40px);
}

.slide.active .swoosh {
  animation: swooshUp 0.8s cubic-bezier(.2,.8,.2,1) forwards;
}

@keyframes swooshUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.voice-graph line:nth-child(2) {
  stroke-dasharray: 800;
  stroke-dashoffset: 800;
}
/* THANK YOU MEMBERS */
.thank-you h2 {
  font-size: clamp(3rem, 8vw, 6rem);
  margin-bottom: 40px;
}

.members-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.members-list li {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s forwards;
}

.members-list li:nth-child(1) { animation-delay: 0.2s; }
.members-list li:nth-child(2) { animation-delay: 0.4s; }
.members-list li:nth-child(3) { animation-delay: 0.6s; }
.members-list li:nth-child(4) { animation-delay: 0.8s; }
.members-list li:nth-child(5) { animation-delay: 1s; }
.members-list li:nth-child(6) { animation-delay: 1.2s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ROBLOX GAMES */
.roblox-games h2 {
  font-size: clamp(3rem, 8vw, 6rem);
  margin-bottom: 40px;
}

.games-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.game-item {
  display: inline-block;
  padding: 15px 25px;
  background: linear-gradient(135deg, #ff5f6d, #ffc371);
  border-radius: 12px;
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 700;
  color: white;
  text-decoration: none;
  opacity: 0;
  transform: scale(0.8) translateY(20px);
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.slide.active .game-item {
  animation: popIn 0.6s forwards;
}

.game-item:hover {
  transform: scale(1.05) translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}
/* BUILT GAMES */
.built-games h2 {
  font-size: clamp(3rem, 8vw, 6rem);
  margin-bottom: 30px;
}

.built-list {
  list-style: none;
  padding: 0;
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.built-list li {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  background: rgba(255,255,255,0.1);
  padding: 10px 20px;
  border-radius: 10px;
  opacity: 0;
  transform: translateY(-30px);
  animation: dropDown 0.6s forwards;
}

.built-list li:nth-child(1) { animation-delay: 0.2s; }
.built-list li:nth-child(2) { animation-delay: 0.4s; }
.built-list li:nth-child(3) { animation-delay: 0.6s; }
.built-list li:nth-child(4) { animation-delay: 0.8s; }
.built-list li:nth-child(5) { animation-delay: 1s; }

@keyframes dropDown {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* BUILT GAMES PHOTOS */
.built-photos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.built-photos img {
  width: clamp(150px, 25%, 250px);
  border-radius: 12px;
  opacity: 0;
  transform: scale(0.9) translateY(20px);
  transition: all 0.6s ease;
}

.built-photos img.active {
  opacity: 1;
  transform: scale(1) translateY(0);
}
/* FAVORITE GAME GENRES SECTION */
.game-genres {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 5vw;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 10%, rgba(0,0,0,1) 90%, rgba(0,0,0,0) 100%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 10%, rgba(0,0,0,1) 90%, rgba(0,0,0,0) 100%);
}

/* Ripple Background Shapes */
.ripple-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 10%, transparent 70%);
  animation: rippleMove 30s linear infinite;
  z-index: 0;
  pointer-events: none;
  transform: translate(-25%, -25%);
}

/* Animate background */
@keyframes rippleMove {
  0% { transform: translate(-25%, -25%) rotate(0deg); }
  100% { transform: translate(-25%, -25%) rotate(360deg); }
}

/* Genres List */
.game-genres h2 {
  font-size: clamp(3rem, 8vw, 6rem);
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

.genres-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  position: relative;
  z-index: 1;
}

.genres-list li {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  background: rgba(255,255,255,0.1);
  padding: 10px 25px;
  border-radius: 15px;
  opacity: 0;
  transform: translateY(30px) scale(0.8);
  animation: genrePop 0.6s forwards;
}

/* Add delay for sequential animation */
.genres-list li:nth-child(1) { animation-delay: 0.2s; }
.genres-list li:nth-child(2) { animation-delay: 0.4s; }
.genres-list li:nth-child(3) { animation-delay: 0.6s; }
.genres-list li:nth-child(4) { animation-delay: 0.8s; }
.genres-list li:nth-child(5) { animation-delay: 1s; }
.genres-list li:nth-child(6) { animation-delay: 1.2s; }
.genres-list li:nth-child(7) { animation-delay: 1.4s; }

@keyframes genrePop {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
#restart-btn {
  position: fixed;
  bottom: 40px;
  right: 40px;
  padding: 15px 25px;
  font-size: 1.2rem;
  font-weight: 700;
  color: white;
  background: linear-gradient(135deg, #ff5f6d, #ffc371);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  z-index: 1000;
}

#restart-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}
