@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,500;1,900&display=swap");

/* FONT GLOBAL */
* {
  font-family: "Poppins", cursive;
}

/* === BACKGROUND SOFT PASTEL === */
body {
  color: #ffffff;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  background: linear-gradient(
    180deg,
    #ffffff,
    #ffecef,
    #ffe3eb,
    #ffe9f3,
    #fff4fa
  );
  overflow-x: hidden;
}

/* === MAIN TEXT === */
.greetings {
  font-size: 6rem;
  font-weight: 900;
  text-align: center;
}

/* === GLOW PINK LEMBUT === */
.greetings > span {
  color: #ffffff;
  animation: glow 2.5s ease-in-out infinite;
}

@keyframes glow {
  0%,
  100% {
    color: #f7aec2;
    text-shadow: 0 0 12px rgba(247, 174, 194, 0.9),
      0 0 35px rgba(255, 205, 220, 0.8), 0 0 60px rgba(255, 220, 230, 0.7);
  }
  10%,
  90% {
    color: #ffffff;
    text-shadow: none;
  }
}

/* DELAY HURUF */
.greetings > span:nth-child(1) {
  animation-delay: 0s;
}
.greetings > span:nth-child(2) {
  animation-delay: 0.2s;
}
.greetings > span:nth-child(3) {
  animation-delay: 0.4s;
}
.greetings > span:nth-child(4) {
  animation-delay: 0.6s;
}
.greetings > span:nth-child(5) {
  animation-delay: 0.8s;
}
.greetings > span:nth-child(6) {
  animation-delay: 1s;
}
.greetings > span:nth-child(7) {
  animation-delay: 1.2s;
}
.greetings > span:nth-child(8) {
  animation-delay: 1.4s;
}
.greetings > span:nth-child(9) {
  animation-delay: 1.6s;
}
.greetings > span:nth-child(10) {
  animation-delay: 1.8s;
}
.greetings > span:nth-child(11) {
  animation-delay: 2s;
}

/* === DESCRIPTION === */
.description {
  font-size: 1.5rem;
  margin-bottom: 18px;
  color: #6b5d6d;
}

/* === BUTTON PASTEL === */
button,
.button a,
#playButton {
  background: linear-gradient(135deg, #f9cada, #f7aec2);
  color: #ffffff;
  padding: 12px 35px;
  border-radius: 40px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.2rem;

  box-shadow: 0 6px 20px rgba(255, 180, 200, 0.35),
    0 0 10px rgba(255, 200, 215, 0.4) inset;
  transition: 0.25s ease;
}

button:hover,
.button a:hover,
#playButton:hover {
  transform: scale(1.07);
  box-shadow: 0 10px 28px rgba(255, 160, 185, 0.45),
    0 0 12px rgba(255, 200, 215, 0.6) inset;
}

/* === BACKGROUND RING PASTEL === */
body {
  background: radial-gradient(
    circle at center,
    #ffffff 0%,
    #fff5fa 40%,
    #ffe6f3 70%,
    #ffd8ec 100%
  );
}

/* ===========================================
   🌸 FALLING CRYBABY (RANDOM VIA JS)
=========================================== */
.petal {
  position: fixed;
  top: -20px;
  width: 60px;
  height: 60px;
  background-size: contain;
  background-repeat: no-repeat;
  animation: fall 8s linear infinite;
  z-index: -1;
  opacity: 0.9;
}

@keyframes fall {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(120vh) rotate(360deg);
    opacity: 0;
  }
}

/* ===========================================
   💕 FLOATING CRYBABY (RANDOM VIA JS)
=========================================== */
.heart {
  position: fixed;
  bottom: -40px;
  width: 75px;
  height: 75px;
  background-size: contain;
  background-repeat: no-repeat;
  animation: floatUp 7s ease-in infinite;
  left: calc(5% + 90% * var(--pos));
  z-index: -1;
  opacity: 0.85;
}

@keyframes floatUp {
  0% {
    transform: translateY(0) rotate(45deg);
    opacity: 0.7;
  }
  100% {
    transform: translateY(-120vh) rotate(45deg);
    opacity: 0;
  }
}

/* ===========================================
   ✨ SPARKLE CRYBABY (RANDOM VIA JS)
=========================================== */
.sparkle {
  position: fixed;
  width: 40px;
  height: 40px;
  background-size: contain;
  background-repeat: no-repeat;
  animation: sparkleFloat 4s ease-in-out infinite;
  z-index: -1;
  opacity: 0.9;
}

@keyframes sparkleFloat {
  0% {
    transform: scale(0.3);
    opacity: 0.2;
  }
  50% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(0.3);
    opacity: 0.2;
  }
}

/* ===========================================
   📱 FIX UTAMA: Fullscreen Tanpa Scroll di HP
=========================================== */
@media (max-width: 768px) {

  html,
  body {
    height: 100vh !important;
    overflow: hidden !important;
    /* hilangkan scroll panjang */
  }

  body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* center vertikal */
    align-items: center;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* Konten utama */
  .greetings {
    font-size: 3.5rem !important;
    line-height: 1.05;
    margin: 0 0 8px 0;
    text-align: center;
  }

  .description {
    font-size: 1.2rem !important;
    margin-bottom: 10px;
  }

  button,
  .button a,
  #playButton {
    font-size: 1rem !important;
    padding: 10px 26px;
    border-radius: 40px;
  }

  /* =====================================
     BATASI ANIMASI BIAR TIDAK BIKIN PANJANG
  ====================================== */
  .petal,
  .heart,
  .sparkle {
    position: absolute !important;
    width: 26px !important;
    height: 26px !important;
    opacity: 0.65;
  }

  /* Animasi dibatasi ke 100vh (bukan 120vh) */
  @keyframes fall {
    0% {
      transform: translateY(-10vh) rotate(0deg);
      opacity: 1;
    }

    100% {
      transform: translateY(100vh) rotate(360deg);
      opacity: 0;
    }
  }

  @keyframes floatUp {
    0% {
      transform: translateY(10vh) rotate(45deg);
      opacity: 0.7;
    }

    100% {
      transform: translateY(-100vh) rotate(45deg);
      opacity: 0;
    }
  }
}

/* ======================================================
   📱 KHUSUS IPHONE 13 (390px) AGAR MUAT LEBIH RAPIH
====================================================== */
@media (max-width: 420px) {
  .greetings {
    font-size: 3rem !important;
  }

  .description {
    font-size: 1.1rem !important;
  }

  button,
  .button a,
  #playButton {
    font-size: 0.95rem !important;
    padding: 9px 22px;
  }

  .petal,
  .heart,
  .sparkle {
    width: 22px !important;
    height: 22px !important;
  }
}
