/* ============================================================
   VINAYAK ENTERPRISES — ANIMATIONS
   Keyframes, scroll animations, micro-interactions
   ============================================================ */

/* ── Core Keyframes ── */
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes scroll-wheel {
  0%   { transform: translateY(0); opacity: 1; }
  80%  { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-8px); }
}

@keyframes pulse-ring {
  0%   { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(2.5); opacity: 0; }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slide-in-left {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes slide-in-right {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes scale-in {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(255,107,0,0.3); }
  50%       { box-shadow: 0 0 40px rgba(255,107,0,0.6), 0 0 80px rgba(255,107,0,0.2); }
}

@keyframes border-glow {
  0%, 100% { border-color: rgba(255,107,0,0.3); }
  50%       { border-color: rgba(255,107,0,0.8); }
}

@keyframes counter-tick {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes line-grow-x {
  from { width: 0; }
  to   { width: 100%; }
}

@keyframes line-grow-y {
  from { height: 0; }
  to   { height: 100%; }
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes bounce-subtle {
  0%, 100% { transform: translateY(0); }
  40%       { transform: translateY(-6px); }
  60%       { transform: translateY(-3px); }
}

/* ── Scroll-triggered Animated classes ── */
/* Applied by IntersectionObserver in nav.js */
.animate {
  opacity: 0;
  transition: opacity 0.7s ease 0.1s, transform 0.7s ease 0.1s;
}
.animate.fade-up    { transform: translateY(24px); }
.animate.fade-left  { transform: translateX(-32px); }
.animate.fade-right { transform: translateX(32px); }
.animate.scale      { transform: scale(0.92); }

/* Fallback: if JS is disabled or very slow, show content */
.no-js .animate { opacity: 1; transform: none; }

.animate.animated {
  opacity: 1;
  transform: translate(0) scale(1);
}

/* Stagger children */
.stagger-children .animate:nth-child(1) { transition-delay: 0ms; }
.stagger-children .animate:nth-child(2) { transition-delay: 80ms; }
.stagger-children .animate:nth-child(3) { transition-delay: 160ms; }
.stagger-children .animate:nth-child(4) { transition-delay: 240ms; }
.stagger-children .animate:nth-child(5) { transition-delay: 320ms; }
.stagger-children .animate:nth-child(6) { transition-delay: 400ms; }
.stagger-children .animate:nth-child(7) { transition-delay: 480ms; }
.stagger-children .animate:nth-child(8) { transition-delay: 560ms; }

/* ── Utility Animation Classes ── */
.anim-float     { animation: float 4s ease-in-out infinite; }
.anim-pulse-glow { animation: glow-pulse 3s ease-in-out infinite; }
.anim-spin-slow { animation: spin-slow 20s linear infinite; }
.anim-fade-in   { animation: fade-in 0.5s ease forwards; }

/* ── Hero scan line effect ── */
.scanline-overlay {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(255, 107, 0, 0.012) 3px,
    rgba(255, 107, 0, 0.012) 4px
  );
  pointer-events: none;
  z-index: 5;
}

/* ── Gradient border animation ── */
.gradient-border {
  position: relative;
  border-radius: var(--radius-lg);
}
.gradient-border::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--clr-orange), transparent, var(--clr-orange));
  background-size: 200% 200%;
  animation: shimmer 4s linear infinite;
  z-index: -1;
  opacity: 0;
  transition: opacity var(--transition-base);
}
.gradient-border:hover::before { opacity: 1; }

/* ── Orange top accent line ── */
.accent-top-line {
  position: relative;
}
.accent-top-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--clr-orange), transparent);
}

/* ── Number shimmer ── */
.shimmer-text {
  background: linear-gradient(
    90deg,
    var(--clr-orange) 25%,
    #ffb347 50%,
    var(--clr-orange) 75%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
}

/* ── India Map pulse dots ── */
.map-pulse {
  position: absolute;
  width: 10px;
  height: 10px;
}
.map-pulse__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--clr-orange);
  animation: pulse-dot 2s ease-in-out infinite;
}
.map-pulse__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--clr-orange);
  animation: pulse-ring 2s ease-out infinite;
}

/* ── Loading spinner ── */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,107,0,0.2);
  border-top-color: var(--clr-orange);
  border-radius: 50%;
  animation: spin-slow 0.6s linear infinite;
}

/* ── Hover lift with orange line ── */
.lift-card {
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  border-bottom: 2px solid transparent;
}
.lift-card:hover {
  transform: translateY(-6px);
  border-bottom-color: var(--clr-orange);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
