/* ============================================================
   MARCH 8 — International Women's Day
   ============================================================ */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ff3c55 0%, #ff5c6f 100%);
  overflow: hidden;
  animation: bgFadeIn .5s ease forwards;
}

/* ── Back button ── */
.back-btn {
  position: fixed;
  top: 24px;
  left: 24px;
  z-index: 100;
  font-family: 'Montserrat', sans-serif;
  font-size: .75rem;
  font-weight: 400;
  letter-spacing: .14em;
  text-decoration: none;
  color: rgba(255, 255, 255, .7);
  transition: color .2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.back-btn:hover {
  color: #fff;
}

.back-btn::before {
  content: '←';
  font-size: 1rem;
}

/* ── Scene ── */
.scene {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 10;
}

/* ── The digit 8 ── */
.eight-wrap {
  position: relative;
  width: 320px;
  height: 500px;
  cursor: default;
  opacity: 0;
  transform: scale(.6);
  animation: eightIn .8s .3s cubic-bezier(.34, 1.56, .64, 1) forwards;
  transition: transform .35s ease;
}

.eight-wrap:hover {
  transform: scale(1.05);
}

.eight {
  width: 100%;
  height: 100%;
  position: relative;
}

/* Two circles forming the 8 */
.eight__top,
.eight__bottom {
  position: absolute;
  left: 50%;
  border-radius: 50%;
  background: #f7c7cc;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .15);
}

.eight__top {
  width: 200px;
  height: 200px;
  top: 0;
  transform: translateX(-50%);
}

.eight__bottom {
  width: 260px;
  height: 260px;
  bottom: 0;
  transform: translateX(-50%);
}

/* Inner holes */
.eight__top-hole,
.eight__bottom-hole {
  position: absolute;
  left: 50%;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff3c55 0%, #ff5c6f 100%);
}

.eight__top-hole {
  width: 100px;
  height: 100px;
  top: 50px;
  transform: translateX(-50%);
}

.eight__bottom-hole {
  width: 130px;
  height: 130px;
  bottom: 65px;
  transform: translateX(-50%);
}

/* ── Tulip SVG ── */
.tulip {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 260px;
  height: 350px;
  z-index: 5;
  opacity: 0;
  animation: tulipIn 1s .6s ease forwards;
}

.tulip svg {
  width: 100%;
  height: 100%;
  animation: tulipSway 3s ease-in-out infinite;
  transform-origin: bottom center;
}

/* ── Text ── */
.text-block {
  margin-top: 32px;
  text-align: center;
  opacity: 0;
  animation: textIn .8s 1s ease forwards;
}

.text-march {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(3rem, 8vw, 5.5rem);
  color: #fff;
  line-height: 1.1;
  text-shadow: 0 4px 12px rgba(0, 0, 0, .12);
}

.text-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(.7rem, 2vw, 1rem);
  font-weight: 300;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .85);
  margin-top: 8px;
}

/* ── Congratulations button ── */
.congrats-btn {
  display: inline-block;
  margin-top: 36px;
  padding: 14px 42px;
  border: 1.5px solid rgba(255, 255, 255, .7);
  border-radius: 50px;
  font-family: 'Montserrat', sans-serif;
  font-size: .72rem;
  font-weight: 400;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  background: transparent;
  cursor: pointer;
  transition: background .3s, color .3s, transform .2s;
  opacity: 0;
  animation: textIn .8s 1.3s ease forwards;
}

.congrats-btn:hover {
  background: #fff;
  color: #ff3c55;
  transform: scale(1.04);
}

/* ── Falling petals ── */
.petals {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.petal {
  position: absolute;
  top: -40px;
  width: 18px;
  height: 24px;
  background: rgba(255, 200, 210, .5);
  border-radius: 50% 50% 50% 0;
  animation: petalFall linear infinite;
  opacity: 0;
}

.petal:nth-child(1)  { left: 5%;  width: 14px; height: 20px; animation-duration: 8s;  animation-delay: 0s;   }
.petal:nth-child(2)  { left: 15%; width: 20px; height: 26px; animation-duration: 10s; animation-delay: 1.5s; }
.petal:nth-child(3)  { left: 25%; width: 16px; height: 22px; animation-duration: 9s;  animation-delay: 3s;   }
.petal:nth-child(4)  { left: 35%; width: 12px; height: 18px; animation-duration: 11s; animation-delay: 0.8s; }
.petal:nth-child(5)  { left: 45%; width: 18px; height: 24px; animation-duration: 8.5s;animation-delay: 2.2s; }
.petal:nth-child(6)  { left: 55%; width: 22px; height: 28px; animation-duration: 12s; animation-delay: 4s;   }
.petal:nth-child(7)  { left: 65%; width: 15px; height: 21px; animation-duration: 9.5s;animation-delay: 1s;   }
.petal:nth-child(8)  { left: 75%; width: 19px; height: 25px; animation-duration: 10.5s;animation-delay: 3.5s;}
.petal:nth-child(9)  { left: 85%; width: 13px; height: 19px; animation-duration: 7.5s;animation-delay: 2s;   }
.petal:nth-child(10) { left: 92%; width: 17px; height: 23px; animation-duration: 11s; animation-delay: 5s;   }
.petal:nth-child(11) { left: 10%; width: 21px; height: 27px; animation-duration: 13s; animation-delay: 6s;   }
.petal:nth-child(12) { left: 50%; width: 11px; height: 16px; animation-duration: 8s;  animation-delay: 7s;   }
.petal:nth-child(13) { left: 70%; width: 16px; height: 22px; animation-duration: 9s;  animation-delay: 4.5s; }
.petal:nth-child(14) { left: 30%; width: 20px; height: 26px; animation-duration: 10s; animation-delay: 5.5s; }
.petal:nth-child(15) { left: 80%; width: 14px; height: 20px; animation-duration: 11s; animation-delay: 3s;   }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes bgFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes eightIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes tulipIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes tulipSway {
  0%, 100% { transform: rotate(-2deg); }
  50%      { transform: rotate(2deg); }
}

@keyframes textIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes petalFall {
  0% {
    opacity: 0;
    transform: translateY(-40px) rotate(0deg) translateX(0);
  }
  10% {
    opacity: .6;
  }
  100% {
    opacity: 0;
    transform: translateY(105vh) rotate(360deg) translateX(60px);
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 767px) {
  .eight-wrap {
    width: 200px;
    height: 320px;
  }

  .eight__top {
    width: 130px;
    height: 130px;
  }

  .eight__bottom {
    width: 170px;
    height: 170px;
  }

  .eight__top-hole {
    width: 65px;
    height: 65px;
    top: 32px;
  }

  .eight__bottom-hole {
    width: 84px;
    height: 84px;
    bottom: 43px;
  }

  .tulip {
    width: 165px;
    height: 225px;
    top: 6px;
  }

  .text-march {
    font-size: 2.6rem;
  }

  .back-btn {
    top: 16px;
    left: 16px;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .eight-wrap {
    width: 260px;
    height: 400px;
  }

  .eight__top {
    width: 160px;
    height: 160px;
  }

  .eight__bottom {
    width: 210px;
    height: 210px;
  }

  .eight__top-hole {
    width: 80px;
    height: 80px;
    top: 40px;
  }

  .eight__bottom-hole {
    width: 105px;
    height: 105px;
    bottom: 52px;
  }

  .tulip {
    width: 210px;
    height: 280px;
    top: 8px;
  }
}
