/* Sakura Petals Container */
.petals-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
  overflow: hidden;
}

/* Individual Petal */
.petal {
  position: absolute;
  top: -40px;
  width: 14px;
  height: 14px;
  background: radial-gradient(ellipse at center, #F2E0E3 0%, #E8C4C8 50%, #D4A0A8 100%);
  border-radius: 50% 0 50% 50%;
  opacity: 0.5;
  animation: petalFall linear infinite, petalSway ease-in-out infinite;
}

@keyframes petalFall {
  0% {
    top: -40px;
    opacity: 0;
  }
  10% {
    opacity: 0.5;
  }
  90% {
    opacity: 0.5;
  }
  100% {
    top: 105vh;
    opacity: 0;
  }
}

@keyframes petalSway {
  0%, 100% {
    transform: translateX(0) rotate(0deg) scale(1);
  }
  25% {
    transform: translateX(30px) rotate(90deg) scale(0.9);
  }
  50% {
    transform: translateX(-20px) rotate(180deg) scale(1.05);
  }
  75% {
    transform: translateX(25px) rotate(270deg) scale(0.95);
  }
}

/* Fade-in animation for sections */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .petal {
    animation: none;
    display: none;
  }

  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }
}
