/* ==========================================================================
   AUTOWATT ENGENHARIA - ANIMATIONS & KEYFRAMES
   Efeitos visuais dinâmicos, circuitos elétricos, pulso e transições
   ========================================================================== */

/* Fade In com elevação para scroll */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Atrasos escalonados */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* Pulso de raio / energia elétrico */
@keyframes electricGlow {
  0%, 100% {
    filter: drop-shadow(0 0 4px rgba(255, 122, 0, 0.6)) drop-shadow(0 0 12px rgba(255, 122, 0, 0.3));
  }
  50% {
    filter: drop-shadow(0 0 10px rgba(255, 122, 0, 0.9)) drop-shadow(0 0 24px rgba(255, 122, 0, 0.6));
  }
}

.electric-bolt-glow {
  animation: electricGlow 2.5s infinite ease-in-out;
}

/* Rotação sutil de engrenagem industrial */
@keyframes gearRotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.gear-spin-slow {
  animation: gearRotate 60s linear infinite;
  transform-origin: center center;
}

.gear-spin-reverse {
  animation: gearRotate 45s linear infinite reverse;
  transform-origin: center center;
}

/* Pulso suave do botão WhatsApp Flutuante */
@keyframes waPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
  }
  70% {
    box-shadow: 0 0 0 18px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.whatsapp-float-btn {
  animation: waPulse 2.2s infinite;
}

/* Efeito de brilho em gradiente que corre na borda */
@keyframes borderFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.border-flow {
  background-size: 200% 200%;
  animation: borderFlow 4s ease infinite;
}

/* Flutuação suave */
@keyframes floatElement {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.floating-card {
  animation: floatElement 4.5s ease-in-out infinite;
}

/* Efeito de linha de circuito animada */
@keyframes dashCircuit {
  to {
    stroke-dashoffset: -1000;
  }
}

.circuit-path {
  stroke-dasharray: 10, 15;
  animation: dashCircuit 25s linear infinite;
}

/* Shimmer de carregamento e destaque */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.badge-shimmer {
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.25) 50%, rgba(255,255,255,0) 100%);
  background-size: 200% 100%;
  animation: shimmer 3s infinite;
}
