/* ==========================================================================
   REPAIR SPIRIT - ADVANCED ANIMATIONS & INTERACTIVE STYLES
   ========================================================================== */

/* 1. Global Brand & Glow Keyframes */
@keyframes brand-gear-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.25), inset 0 0 10px rgba(0, 242, 254, 0.1);
    border-color: rgba(0, 242, 254, 0.4);
  }
  50% {
    box-shadow: 0 0 30px rgba(0, 242, 254, 0.5), inset 0 0 20px rgba(0, 242, 254, 0.2);
    border-color: rgba(0, 242, 254, 0.8);
  }
}

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

/* 2. Floating Appliance Satellites (Organic sinusoidal orbits) */
@keyframes float-sat-1 {
  0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
  33% { transform: translate(6px, -12px) rotate(2deg) scale(1.02); }
  66% { transform: translate(-8px, -6px) rotate(-1deg) scale(0.99); }
}

@keyframes float-sat-2 {
  0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
  33% { transform: translate(-10px, 8px) rotate(-3deg) scale(0.98); }
  66% { transform: translate(7px, -10px) rotate(2deg) scale(1.02); }
}

@keyframes float-sat-3 {
  0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
  40% { transform: translate(12px, -8px) rotate(2.5deg) scale(1.03); }
  80% { transform: translate(-6px, 10px) rotate(-2deg) scale(0.97); }
}

@keyframes float-sat-4 {
  0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
  35% { transform: translate(-8px, -14px) rotate(-2deg) scale(1.01); }
  70% { transform: translate(10px, 6px) rotate(2deg) scale(0.99); }
}

@keyframes float-sat-5 {
  0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
  45% { transform: translate(9px, 11px) rotate(3deg) scale(1.02); }
  85% { transform: translate(-11px, -7px) rotate(-2.5deg) scale(0.98); }
}

@keyframes float-sat-6 {
  0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
  30% { transform: translate(-7px, 12px) rotate(-2deg) scale(1.02); }
  75% { transform: translate(8px, -9px) rotate(1.5deg) scale(0.99); }
}

/* 3. Hero Micro-Animations */
/* AC fan rotation */
@keyframes ac-fan-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* AC cool breeze waves */
@keyframes cool-wave-anim {
  0% {
    opacity: 0;
    transform: translateY(-5px) scaleX(0.85);
  }
  50% {
    opacity: 0.85;
    transform: translateY(10px) scaleX(1.05);
  }
  100% {
    opacity: 0;
    transform: translateY(22px) scaleX(1.2);
  }
}

/* Refrigerator cold frost glow */
@keyframes fridge-frost-pulse {
  0%, 100% {
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.2), inset 0 0 12px rgba(0, 242, 254, 0.15);
  }
  50% {
    box-shadow: 0 0 35px rgba(0, 242, 254, 0.55), inset 0 0 25px rgba(0, 242, 254, 0.35);
  }
}

/* Washing machine drum spin */
@keyframes drum-rotate {
  0% { transform: rotate(0deg); }
  45% { transform: rotate(260deg); }
  55% { transform: rotate(250deg); }
  100% { transform: rotate(720deg); }
}

/* Water wave shimmer inside washing drum */
@keyframes water-shimmer {
  0%, 100% { transform: translateY(0) scaleY(1); opacity: 0.5; }
  50% { transform: translateY(-3px) scaleY(1.15); opacity: 0.85; }
}

/* Microwave display pulse and heat glow */
@keyframes microwave-timer-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0.4; }
}

@keyframes microwave-heat-glow {
  0%, 100% {
    background: radial-gradient(circle at center, rgba(245, 158, 11, 0.25) 0%, transparent 75%);
  }
  50% {
    background: radial-gradient(circle at center, rgba(245, 158, 11, 0.5) 0%, rgba(239, 68, 68, 0.1) 75%);
  }
}

/* Water dispenser falling droplets */
@keyframes water-drop-fall {
  0% {
    opacity: 0;
    transform: translateY(-8px) scaleY(0.7);
  }
  30% {
    opacity: 1;
    transform: translateY(6px) scaleY(1.2);
  }
  70% {
    opacity: 1;
    transform: translateY(24px) scaleY(1);
  }
  100% {
    opacity: 0;
    transform: translateY(32px) scaleY(0.5);
  }
}

/* Water cooler chiller mist */
@keyframes cooler-mist-flow {
  0% {
    opacity: 0.15;
    transform: translateY(0) scale(0.9);
  }
  50% {
    opacity: 0.6;
    transform: translateY(-10px) scale(1.05);
  }
  100% {
    opacity: 0.15;
    transform: translateY(-20px) scale(1.15);
  }
}

/* 4. Floating Tools Drift */
@keyframes tool-drift-1 {
  0% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(25px, -35px) rotate(180deg); }
  100% { transform: translate(0, 0) rotate(360deg); }
}

@keyframes tool-drift-2 {
  0% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-30px, 30px) rotate(-160deg); }
  100% { transform: translate(0, 0) rotate(-360deg); }
}

@keyframes tool-drift-3 {
  0% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(20px, 25px) rotate(140deg); }
  100% { transform: translate(0, 0) rotate(360deg); }
}

/* 5. Map Pin Pulse */
@keyframes pin-bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes pin-ring {
  0% {
    transform: scale(0.6);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

/* 6. Timeline Step Draw */
@keyframes line-glow {
  0%, 100% {
    box-shadow: 0 0 8px rgba(0, 242, 254, 0.4);
  }
  50% {
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.9);
  }
}

/* 7. Scroll Entrance Reveals */
.reveal-item {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

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

.reveal-scale {
  opacity: 0;
  transform: scale(0.92) translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

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

/* Stagger delays */
.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }
.delay-4 { transition-delay: 0.32s; }
.delay-5 { transition-delay: 0.40s; }
.delay-6 { transition-delay: 0.48s; }

/* 8. Accessibility: Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal-item, .reveal-scale {
    opacity: 1 !important;
    transform: none !important;
  }
}

