/* css/animations.css */
/* Animations functionality, Keyframes, and Transitions */

/* Particle system */
.particles-container { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.particle { position: absolute; width: 2px; height: 2px; background: var(--red); border-radius: 50%; opacity: .35; animation: floatParticle 20s infinite ease-in-out; will-change: transform; }

@keyframes floatParticle {
  0%, 100% { transform: translate(0,0); opacity: .2; }
  25% { transform: translate(50px,-70px); opacity: .6; }
  50% { transform: translate(-30px,-140px); opacity: .4; }
  75% { transform: translate(-70px,-55px); opacity: .6; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(1.4); }
}

.hero-image-wrapper { position: relative; width: 100%; max-width: 460px; animation: floatImg 6s ease-in-out infinite; will-change: transform; }

@keyframes floatImg {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-16px) rotate(1.5deg); }
  66% { transform: translateY(-7px) rotate(-1deg); }
}

.hero-image-glow { position: absolute; bottom: -22px; left: 15%; right: 15%; height: 32px; background: radial-gradient(ellipse at center, rgba(204,0,0,.45) 0%, transparent 70%); pointer-events: none; filter: blur(14px); animation: glowPulse 4s ease-in-out infinite; border-radius: 50%; }

@keyframes glowPulse {
  0%, 100% { opacity: .4; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

.scroll-indicator { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; color: rgba(255,255,255,.35); font-size: .68rem; letter-spacing: .1em; }
.scroll-mouse { width: 20px; height: 32px; border: 2px solid rgba(255,255,255,.25); border-radius: 12px; display: flex; justify-content: center; padding-top: 5px; }
.scroll-wheel { width: 3px; height: 7px; background: rgba(255,255,255,.4); border-radius: 2px; animation: scrollWheel 2s infinite; }

@keyframes scrollWheel {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(9px); opacity: 0; }
}

/* Hero Animations */
.animate-fade-up { animation: fadeUp .8s cubic-bezier(.16,1,.3,1) both; }
.animate-fade-up.delay-1 { animation-delay: .15s; }
.animate-fade-up.delay-2 { animation-delay: .3s; }
.animate-fade-up.delay-3 { animation-delay: .45s; }
.animate-fade-up.delay-4 { animation-delay: .6s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: none; }
}

.animate-scale-in { animation: scaleIn .6s cubic-bezier(.68,-.55,.27,1.55) both; animation-delay: .5s; }

@keyframes scaleIn {
  from { opacity: 0; transform: scale(.8); }
  to { opacity: 1; transform: scale(1); }
}

.animate-fade-rotate { animation: fadeRotate 1.2s cubic-bezier(.16,1,.3,1) both; animation-delay: .2s; }

@keyframes fadeRotate {
  from { opacity: 0; transform: translateX(36px) rotate(3deg); }
  to { opacity: 1; transform: none; }
}

@keyframes scrollBrands {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Scroll Reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: .1s; }
.delay-2 { transition-delay: .2s; }
.delay-3 { transition-delay: .3s; }
.delay-4 { transition-delay: .4s; }

@media(max-width: 480px) {
  .particle:nth-child(n+20) { display: none; }
}
