/* =========================================
   ANIMATIONS
   ========================================= */

/* Reveal */
.fade-up, .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.1s var(--ease-slow), transform 1.1s var(--ease-slow);
}
.fade-up.in, .reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* Scroll Hint */
@keyframes scrollLine {
  0% { transform: scaleY(0.3); transform-origin: top; opacity: 0.3; }
  50% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(0.3); transform-origin: bottom; opacity: 0.3; }
}

/* Ambient Particles */
.particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent-secondary);
  box-shadow: 0 0 10px rgba(134, 239, 172, 0.6);
  opacity: 0;
  animation: floatParticle 20s linear infinite;
}
.particle:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 22s; }
.particle:nth-child(2) { left: 22%; animation-delay: 3s; animation-duration: 28s; background: var(--accent-highlight); }
.particle:nth-child(3) { left: 38%; animation-delay: 7s; animation-duration: 24s; }
.particle:nth-child(4) { left: 52%; animation-delay: 2s; animation-duration: 30s; background: var(--accent-primary); }
.particle:nth-child(5) { left: 66%; animation-delay: 9s; animation-duration: 26s; }
.particle:nth-child(6) { left: 78%; animation-delay: 5s; animation-duration: 22s; background: var(--accent-highlight); }
.particle:nth-child(7) { left: 88%; animation-delay: 11s; animation-duration: 28s; }
.particle:nth-child(8) { left: 45%; animation-delay: 13s; animation-duration: 32s; background: var(--accent-primary); }
.particle:nth-child(9) { left: 72%; animation-delay: 16s; animation-duration: 25s; }

@keyframes floatParticle {
  0% {
    transform: translateY(100vh) translateX(0) scale(0.5);
    opacity: 0;
  }
  10% { opacity: 0.4; }
  50% { transform: translateY(50vh) translateX(30px) scale(1); opacity: 0.8; }
  90% { opacity: 0.3; }
  100% {
    transform: translateY(-10vh) translateX(-20px) scale(0.5);
    opacity: 0;
  }
}

/* Soft page entry */
body { animation: pageEnter 1.2s var(--ease-slow); }
@keyframes pageEnter {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Logo soft pulse */
.logo-mark {
  animation: softPulse 4s ease-in-out infinite;
}
@keyframes softPulse {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(45, 212, 191, 0.4)); }
  50% { filter: drop-shadow(0 0 16px rgba(45, 212, 191, 0.7)); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .particle { display: none; }
}