/* ===== LAPTOP REPAIR IN NYC — ANIMATIONS ===== */

/* ─── KEYFRAMES ─── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-28px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(28px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

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

@keyframes pulse-ring {
  0% { transform: scale(0.9); opacity: 0.8; }
  70% { transform: scale(1.15); opacity: 0; }
  100% { transform: scale(1.15); opacity: 0; }
}

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

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

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

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blink {
  50% { border-color: transparent; }
}

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

/* ─── ENTRANCE ANIMATIONS ─── */
.animate-fade-up { animation: fadeInUp 0.65s cubic-bezier(0.4,0,0.2,1) both; }
.animate-fade-left { animation: fadeInLeft 0.65s cubic-bezier(0.4,0,0.2,1) both; }
.animate-fade-right { animation: fadeInRight 0.65s cubic-bezier(0.4,0,0.2,1) both; }
.animate-fade { animation: fadeIn 0.7s ease both; }
.animate-scale { animation: scaleIn 0.6s cubic-bezier(0.4,0,0.2,1) both; }

/* Delays */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }
.delay-7 { animation-delay: 0.7s; }
.delay-8 { animation-delay: 0.8s; }

/* ─── SCROLL-TRIGGERED (via JS .in-view class) ─── */
.scroll-reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s cubic-bezier(0.4,0,0.2,1), transform 0.65s cubic-bezier(0.4,0,0.2,1);
}
.scroll-reveal.in-view { opacity: 1; transform: translateY(0); }
.scroll-reveal.delay-100 { transition-delay: 0.1s; }
.scroll-reveal.delay-200 { transition-delay: 0.2s; }
.scroll-reveal.delay-300 { transition-delay: 0.3s; }
.scroll-reveal.delay-400 { transition-delay: 0.4s; }
.scroll-reveal.delay-500 { transition-delay: 0.5s; }

/* ─── FLOATING ELEMENT ─── */
.float-anim { animation: float 4s ease-in-out infinite; }
.float-anim-slow { animation: float 6s ease-in-out infinite; }

/* ─── PULSE RING (for CTA buttons etc.) ─── */
.pulse-ring::after {
  content: ''; position: absolute; inset: -6px;
  border: 2px solid currentColor; border-radius: inherit;
  animation: pulse-ring 2.5s cubic-bezier(0.2,0,0.8,1) infinite;
}

/* ─── SHIMMER SKELETON ─── */
.shimmer {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 37%, #f0f0f0 63%);
  background-size: 400% 100%;
  animation: shimmer 1.5s ease infinite;
}

/* ─── PAGE LOAD BAR ─── */
#progress-bar {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--steel), var(--accent));
  z-index: 9999; transition: width 0.3s ease;
}

/* ─── TOOL RESULT REVEAL ─── */
.result-reveal {
  animation: slideDown 0.4s ease both;
}

/* ─── COUNTER ANIMATION ─── */
.count-up { animation: countUp 0.5s ease both; }

/* ─── LOADING SPINNER ─── */
.spinner {
  width: 20px; height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

/* ─── ICON HOVER BOUNCE ─── */
.hover-bounce:hover { animation: float 0.5s ease; }

/* ─── SVG WAVE DIVIDERS ─── */
.wave-divider { display: block; width: 100%; overflow: hidden; line-height: 0; }
.wave-divider svg { display: block; width: 100%; }

/* ─── CARD HOVER LIFT ─── */
.hover-lift {
  transition: transform 0.28s cubic-bezier(0.4,0,0.2,1), box-shadow 0.28s cubic-bezier(0.4,0,0.2,1);
}
.hover-lift:hover { transform: translateY(-5px); box-shadow: 0 16px 48px rgba(13,27,42,0.16); }

/* ─── SMOOTH NUMBER COUNTER ─── */
@keyframes numberPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.12); color: var(--accent); }
  100% { transform: scale(1); }
}
.number-pop { animation: numberPop 0.4s ease; }

/* ─── GRADIENT TEXT ─── */
.gradient-text {
  background: linear-gradient(135deg, var(--steel-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── STAGGER CHILDREN ─── */
.stagger-children > *:nth-child(1) { animation-delay: 0.05s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.12s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.19s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.26s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.33s; }
.stagger-children > *:nth-child(6) { animation-delay: 0.40s; }

/* ─── HERO SVG BG SHAPES ─── */
.hero-shape {
  position: absolute; pointer-events: none; opacity: 0.05;
}
.hero-shape-1 {
  width: 400px; height: 400px; top: -100px; right: 10%;
  border-radius: 50%;
  background: var(--steel-light);
  animation: float 8s ease-in-out infinite;
}
.hero-shape-2 {
  width: 200px; height: 200px; bottom: 10%; left: 5%;
  border-radius: 30px;
  background: var(--accent);
  animation: float 10s ease-in-out infinite reverse;
}

/* ─── TYPED CURSOR ─── */
.typed-cursor {
  display: inline-block; width: 2px; height: 1em;
  background: var(--accent); margin-left: 2px;
  animation: blink 0.7s step-end infinite;
  vertical-align: text-bottom;
}

/* ─── STAR RATING FILL ─── */
@keyframes starFill {
  from { color: var(--gray-200); }
  to { color: var(--accent); }
}
.stars-animated i {
  animation: starFill 0.3s ease forwards;
}
.stars-animated i:nth-child(1) { animation-delay: 0.0s; }
.stars-animated i:nth-child(2) { animation-delay: 0.1s; }
.stars-animated i:nth-child(3) { animation-delay: 0.2s; }
.stars-animated i:nth-child(4) { animation-delay: 0.3s; }
.stars-animated i:nth-child(5) { animation-delay: 0.4s; }
