/* ═══════════════════════════════════════════
   NIZUMO — animations.css
   Petals, Transitions, Keyframes
═══════════════════════════════════════════ */

/* ── PETAL CONTAINER ── */
.petal-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

/* ── PETAL BASE ── */
.petal {
  position: absolute;
  top: -120px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0;
  animation: petalFall linear infinite;
  will-change: transform, opacity;
}

.petal-1 { background-image: var(--petal1); }
.petal-2 { background-image: var(--petal2); }
.petal-3 { background-image: var(--petal3); }

@keyframes petalFall {
  0% {
    transform: translateY(-100px) rotate(0deg) translateX(0px);
    opacity: 0;
  }
  5% { opacity: 0.7; }
  85% { opacity: 0.4; }
  100% {
    transform: translateY(110vh) rotate(720deg) translateX(80px);
    opacity: 0;
  }
}

@keyframes petalSway {
  0%, 100% { margin-left: 0; }
  25% { margin-left: 30px; }
  75% { margin-left: -30px; }
}

/* ── FADE IN ── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

/* ── GLOW PULSE ── */
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(240,98,164,0.3); }
  50%       { box-shadow: 0 0 40px rgba(240,98,164,0.6); }
}

@keyframes glowPulseText {
  0%, 100% { text-shadow: 0 0 20px rgba(240,98,164,0.4); }
  50%       { text-shadow: 0 0 40px rgba(240,98,164,0.8); }
}

/* ── FLOAT ── */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-8px); }
}

/* ── SPIN ── */
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── SHIMMER ── */
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* ── SLIDE IN ── */
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes slideInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── BOUNCE DOT (typing) ── */
@keyframes bounceDot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30%            { transform: translateY(-6px); opacity: 1; }
}

/* ── UTILITY ANIMATION CLASSES ── */
.anim-fade-in    { animation: fadeIn 0.4s ease forwards; }
.anim-fade-up    { animation: fadeInUp 0.5s ease forwards; }
.anim-scale-in   { animation: fadeInScale 0.3s ease forwards; }
.anim-float      { animation: float 3s ease-in-out infinite; }
.anim-glow       { animation: glowPulse 2s ease-in-out infinite; }
.anim-spin       { animation: spin 0.7s linear infinite; }

/* ── STAGGER DELAYS ── */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* ── PAGE TRANSITION ── */
.page-enter {
  animation: fadeIn 0.4s ease forwards;
}

/* ── GRADIENT TEXT ANIMATION ── */
.grad-animate {
  background: linear-gradient(135deg, var(--pink), var(--pink2), var(--purple), var(--pink));
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradShift 4s ease infinite;
}

@keyframes gradShift {
  0%, 100% { background-position: 0% 50%; }
  50%       { background-position: 100% 50%; }
}
