/* ============================================================
   PARTICLES.CSS — Kelopak Bunga Gugur & Pendar Cahaya
   ============================================================ */

#particles-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

/* ── Kelopak Bunga ─────────────────────────────────────────── */
.petal {
  position: absolute;
  top: -60px;
  width: 14px;
  height: 14px;
  border-radius: 50% 0 50% 0;
  opacity: 0;
  animation: petalFall linear infinite;
  transform-origin: center center;
}

/* Warna variasi kelopak */
.petal:nth-child(odd)  { background: rgba(255, 182, 193, 0.75); }
.petal:nth-child(3n)   { background: rgba(255, 218, 185, 0.70); }
.petal:nth-child(4n)   { background: rgba(255, 240, 245, 0.80); }
.petal:nth-child(5n)   { background: rgba(221, 160, 221, 0.65); }
.petal:nth-child(6n)   { background: rgba(255, 192, 203, 0.70); }

/* posisi horizontal & timing masing-masing kelopak */
.petal:nth-child(1)  { left: 5%;   width: 10px; height: 10px; animation-duration: 9s;  animation-delay: 0s;   }
.petal:nth-child(2)  { left: 12%;  width: 16px; height: 16px; animation-duration: 12s; animation-delay: 1.5s; }
.petal:nth-child(3)  { left: 20%;  width: 8px;  height: 8px;  animation-duration: 8s;  animation-delay: 3s;   }
.petal:nth-child(4)  { left: 28%;  width: 13px; height: 13px; animation-duration: 11s; animation-delay: 0.5s; }
.petal:nth-child(5)  { left: 37%;  width: 18px; height: 18px; animation-duration: 14s; animation-delay: 2s;   }
.petal:nth-child(6)  { left: 45%;  width: 11px; height: 11px; animation-duration: 10s; animation-delay: 4s;   }
.petal:nth-child(7)  { left: 53%;  width: 9px;  height: 9px;  animation-duration: 7s;  animation-delay: 1s;   }
.petal:nth-child(8)  { left: 62%;  width: 15px; height: 15px; animation-duration: 13s; animation-delay: 2.5s; }
.petal:nth-child(9)  { left: 70%;  width: 12px; height: 12px; animation-duration: 9s;  animation-delay: 0.8s; }
.petal:nth-child(10) { left: 78%;  width: 17px; height: 17px; animation-duration: 11s; animation-delay: 3.5s; }
.petal:nth-child(11) { left: 85%;  width: 10px; height: 10px; animation-duration: 8s;  animation-delay: 5s;   }
.petal:nth-child(12) { left: 92%;  width: 14px; height: 14px; animation-duration: 12s; animation-delay: 1.2s; }
.petal:nth-child(13) { left: 8%;   width: 20px; height: 20px; animation-duration: 15s; animation-delay: 6s;   }
.petal:nth-child(14) { left: 33%;  width: 8px;  height: 8px;  animation-duration: 9s;  animation-delay: 2.8s; }
.petal:nth-child(15) { left: 58%;  width: 16px; height: 16px; animation-duration: 10s; animation-delay: 4.5s; }
.petal:nth-child(16) { left: 72%;  width: 11px; height: 11px; animation-duration: 13s; animation-delay: 0.3s; }
.petal:nth-child(17) { left: 88%;  width: 14px; height: 14px; animation-duration: 8s;  animation-delay: 7s;   }
.petal:nth-child(18) { left: 42%;  width: 9px;  height: 9px;  animation-duration: 11s; animation-delay: 3.2s; }
.petal:nth-child(19) { left: 16%;  width: 18px; height: 18px; animation-duration: 14s; animation-delay: 5.5s; }
.petal:nth-child(20) { left: 96%;  width: 12px; height: 12px; animation-duration: 10s; animation-delay: 1.8s; }

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

/* ── Pendar Cahaya / Light Orbs ────────────────────────────── */
.light-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(6px);
  animation: orbFloat ease-in-out infinite alternate;
  pointer-events: none;
}

.light-orb:nth-child(1) {
  width: 8px; height: 8px;
  background: rgba(255, 223, 150, 0.9);
  top: 20%; left: 10%;
  animation-duration: 4s;
  animation-delay: 0s;
  box-shadow: 0 0 12px 4px rgba(255, 200, 100, 0.6);
}
.light-orb:nth-child(2) {
  width: 6px; height: 6px;
  background: rgba(200, 180, 255, 0.85);
  top: 50%; left: 25%;
  animation-duration: 5.5s;
  animation-delay: 1s;
  box-shadow: 0 0 10px 3px rgba(180, 150, 255, 0.5);
}
.light-orb:nth-child(3) {
  width: 10px; height: 10px;
  background: rgba(255, 190, 220, 0.8);
  top: 30%; left: 70%;
  animation-duration: 6s;
  animation-delay: 0.5s;
  box-shadow: 0 0 14px 5px rgba(255, 150, 200, 0.5);
}
.light-orb:nth-child(4) {
  width: 7px; height: 7px;
  background: rgba(150, 230, 200, 0.85);
  top: 70%; left: 80%;
  animation-duration: 4.5s;
  animation-delay: 2s;
  box-shadow: 0 0 10px 3px rgba(100, 210, 180, 0.5);
}
.light-orb:nth-child(5) {
  width: 5px; height: 5px;
  background: rgba(255, 240, 180, 0.9);
  top: 85%; left: 45%;
  animation-duration: 7s;
  animation-delay: 1.5s;
  box-shadow: 0 0 8px 3px rgba(255, 220, 120, 0.6);
}
.light-orb:nth-child(6) {
  width: 9px; height: 9px;
  background: rgba(255, 180, 180, 0.8);
  top: 15%; left: 55%;
  animation-duration: 5s;
  animation-delay: 3s;
  box-shadow: 0 0 12px 4px rgba(255, 140, 140, 0.5);
}
.light-orb:nth-child(7) {
  width: 6px; height: 6px;
  background: rgba(180, 210, 255, 0.85);
  top: 60%; left: 15%;
  animation-duration: 8s;
  animation-delay: 0.2s;
  box-shadow: 0 0 10px 3px rgba(150, 180, 255, 0.5);
}
.light-orb:nth-child(8) {
  width: 8px; height: 8px;
  background: rgba(255, 210, 150, 0.8);
  top: 40%; left: 90%;
  animation-duration: 6.5s;
  animation-delay: 2.5s;
  box-shadow: 0 0 12px 4px rgba(255, 180, 100, 0.5);
}

@keyframes orbFloat {
  0%   { transform: translateY(0px) scale(1);   opacity: 0.5; }
  50%  { transform: translateY(-30px) scale(1.2); opacity: 1;   }
  100% { transform: translateY(-60px) scale(0.8); opacity: 0.3; }
}
