/* ============================================================
   JAGDISH ELECTRO AUTOMATION — ANIMATIONS v2
   Updated brand colors: #189cd8 blue / #5dc1cb teal
   ============================================================ */

/* ─── CIRCUIT LINE DRAW ──────────────────────────────────── */
@keyframes circuit-draw {
  0% { stroke-dashoffset: 600; opacity: 0; }
  20% { opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0.35; }
}
@keyframes circuit-pulse {
  0%, 100% { opacity: 0.1; }
  50% { opacity: 0.5; }
}
@keyframes circuit-dot {
  0%, 100% { transform: scale(0.6); opacity: 0.2; }
  50% { transform: scale(1); opacity: 0.7; }
}

.circuit-path {
  fill: none;
  stroke: #189cd8;
  stroke-width: 1;
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: circuit-draw 6s ease-in-out infinite;
}
.circuit-path-2 {
  fill: none;
  stroke: #5dc1cb;
  stroke-width: 0.75;
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: circuit-draw 8s ease-in-out 2s infinite;
}
.circuit-dot {
  fill: #189cd8;
  animation: circuit-dot 3s ease-in-out infinite;
  transform-origin: center;
}
.circuit-dot-2 {
  fill: #a0237d;
  animation: circuit-dot 3s ease-in-out 1.5s infinite;
  transform-origin: center;
}

/* ─── HERO STAGGER ───────────────────────────────────────── */
@keyframes hero-line-in {
  0% { transform: translateY(100%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.hero-line {
  overflow: hidden; display: block;
}
.hero-line-inner {
  display: block;
  animation: hero-line-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero-line:nth-child(1) .hero-line-inner { animation-delay: 0.1s; }
.hero-line:nth-child(2) .hero-line-inner { animation-delay: 0.2s; }
.hero-line:nth-child(3) .hero-line-inner { animation-delay: 0.3s; }

/* ─── MARQUEE ────────────────────────────────────────────── */
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ─── PULSE EFFECTS ──────────────────────────────────────── */
@keyframes pulse-wa {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.5); }
  50% { box-shadow: 0 4px 32px rgba(37,211,102,0.8), 0 0 0 8px rgba(37,211,102,0.1); }
}
@keyframes scroll-line {
  0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
  40% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  60% { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}
@keyframes fade-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(24,156,216,0.15); }
  50% { box-shadow: 0 0 40px rgba(24,156,216,0.35); }
}

/* ─── COUNTER / NUMBER ROLL ──────────────────────────────── */
@keyframes number-roll {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}
.counter-animate { animation: number-roll 0.5s ease-out both; }

/* ─── CARD ENTRANCE ──────────────────────────────────────── */
@keyframes card-in {
  0% { opacity: 0; transform: translateY(32px) scale(0.97); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.card-animate { animation: card-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) both; }

/* ─── NAV BLUR TRANSITION ────────────────────────────────── */
@keyframes nav-appear {
  from { transform: translateY(-10px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.nav { animation: nav-appear 0.6s ease-out 0.2s both; }

/* ─── STAT STRIP SHIMMER ─────────────────────────────────── */
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
.stat-shine {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(24,156,216,0.04), transparent);
  animation: shimmer 3s ease-in-out infinite;
}
