/* ============================================
   FULU Landing Page — Animations
   ============================================ */

/* Hero Reveal Animations */
.hero-line,
.hero .hero-subtitle,
.hero .hero-ctas,
.hero .hero-stats .stat {
  opacity: 0;
  transform: translateY(40px);
  animation: heroReveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-play-state: paused;
}

.hero.revealed .hero-line,
.hero.revealed .hero-subtitle,
.hero.revealed .hero-ctas,
.hero.revealed .hero-stats .stat {
  animation-play-state: running;
}

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

/* 3D Holographic Machine Animations */
@keyframes holoRotate {
  0%   { transform: rotateY(-20deg) rotateX(2deg); }
  50%  { transform: rotateY(10deg) rotateX(-2deg); }
  100% { transform: rotateY(-20deg) rotateX(2deg); }
}

@keyframes holoFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -12px; }
}

@keyframes holoScan {
  0% { top: 0; }
  100% { top: 100%; }
}

@keyframes screenPulse {
  0%, 100% { opacity: 0.2; width: auto; }
  50% { opacity: 0.45; }
}

@keyframes wavePulse {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.6; }
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.6); }
}

@keyframes plusGlow {
  0%, 100% { color: var(--red); text-shadow: 0 0 6px rgba(215, 33, 40, 0.3); }
  50% { color: #fff; text-shadow: 0 0 8px rgba(215, 33, 40, 1), 0 0 20px rgba(215, 33, 40, 0.8), 0 0 40px rgba(215, 33, 40, 0.5); }
}

@keyframes brandGlow {
  0%, 100% { opacity: 0.5; text-shadow: 0 0 20px rgba(215, 33, 40, 0.4), 0 0 40px rgba(215, 33, 40, 0.2); }
  50% { opacity: 0.9; text-shadow: 0 0 25px rgba(215, 33, 40, 0.8), 0 0 50px rgba(215, 33, 40, 0.4); }
}

@keyframes labelFloat {
  0%, 100% { opacity: 0.4; transform: translateX(0); }
  50% { opacity: 1; transform: translateX(-4px); }
}

/* Gradient Mesh Movement */
@keyframes meshMove {
  0% {
    background:
      radial-gradient(ellipse 80% 60% at 70% 20%, rgba(215, 33, 40, 0.12) 0%, transparent 60%),
      radial-gradient(ellipse 60% 80% at 20% 80%, rgba(215, 33, 40, 0.08) 0%, transparent 50%),
      radial-gradient(ellipse 40% 40% at 90% 70%, rgba(160, 24, 32, 0.1) 0%, transparent 50%);
  }
  100% {
    background:
      radial-gradient(ellipse 70% 70% at 30% 40%, rgba(215, 33, 40, 0.15) 0%, transparent 60%),
      radial-gradient(ellipse 80% 50% at 80% 60%, rgba(215, 33, 40, 0.1) 0%, transparent 50%),
      radial-gradient(ellipse 50% 50% at 10% 30%, rgba(160, 24, 32, 0.08) 0%, transparent 50%);
  }
}

/* Scroll Indicator Pulse */
@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.4; transform: scaleY(0.6); transform-origin: top; }
}

/* AOS-like scroll reveal (custom lightweight) */
[data-aos] {
  opacity: 0;
  transition-property: opacity, transform;
  transition-duration: 0.8s;
  transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

[data-aos].aos-animate {
  opacity: 1;
}

[data-aos="fade-up"] {
  transform: translateY(30px);
}
[data-aos="fade-up"].aos-animate {
  transform: translateY(0);
}

[data-aos="fade-left"] {
  transform: translateX(40px);
}
[data-aos="fade-left"].aos-animate {
  transform: translateX(0);
}

[data-aos="fade-right"] {
  transform: translateX(-40px);
}
[data-aos="fade-right"].aos-animate {
  transform: translateX(0);
}

/* Stagger delays via data-aos-delay */
[data-aos-delay="50"] { transition-delay: 50ms; }
[data-aos-delay="100"] { transition-delay: 100ms; }
[data-aos-delay="150"] { transition-delay: 150ms; }
[data-aos-delay="200"] { transition-delay: 200ms; }
[data-aos-delay="250"] { transition-delay: 250ms; }
[data-aos-delay="300"] { transition-delay: 300ms; }
[data-aos-delay="350"] { transition-delay: 350ms; }
[data-aos-delay="400"] { transition-delay: 400ms; }
[data-aos-delay="450"] { transition-delay: 450ms; }
[data-aos-delay="500"] { transition-delay: 500ms; }

/* WhatsApp button entrance */
.whatsapp-float {
  animation: whatsappEntrance 0.6s cubic-bezier(0.16, 1, 0.3, 1) 2s both;
}

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

/* Screen slot shimmer effect */
.screen-slot {
  position: relative;
  overflow: hidden;
}

.screen-slot::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  animation: slotShimmer 4s ease-in-out infinite;
}

.slot-a::after { animation-delay: 0s; }
.slot-b::after { animation-delay: 1s; }
.slot-c::after { animation-delay: 2s; }
.slot-d::after { animation-delay: 3s; }

@keyframes slotShimmer {
  0% { left: -100%; }
  30% { left: 100%; }
  100% { left: 100%; }
}

/* Trust bar subtle marquee on hover */
.trust-items {
  transition: transform 0.5s;
}

/* Form focus glow */
.form-group input:focus,
.form-group select:focus {
  box-shadow: 0 0 0 3px rgba(215, 33, 40, 0.15);
}

/* Button ripple-like press */
.btn-primary:active {
  transform: translateY(0) scale(0.98);
}

/* Hero badge subtle pulse */
.hero-badge {
  animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { border-color: rgba(215, 33, 40, 0.4); }
  50% { border-color: rgba(215, 33, 40, 0.8); }
}

/* Machine card number color transition */
.machine-number {
  transition: color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Guarantee box subtle border animation */
.faq-guarantee {
  transition: border-color 0.3s, box-shadow 0.3s;
}

.faq-guarantee:hover {
  border-color: var(--red);
  box-shadow: 0 10px 40px rgba(215, 33, 40, 0.08);
}

/* ROI featured card glow */
.roi-card.featured {
  animation: featuredGlow 3s ease-in-out infinite alternate;
}

@keyframes featuredGlow {
  from { box-shadow: 0 10px 40px rgba(215, 33, 40, 0.1); }
  to { box-shadow: 0 15px 50px rgba(215, 33, 40, 0.18); }
}
