/* RevolutionEV Keyframe Animations & Micro-Interactions */

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

@keyframes pulseGlowOrange {
  0%, 100% {
    box-shadow: 0 0 15px rgba(255, 85, 0, 0.3);
  }
  50% {
    box-shadow: 0 0 35px rgba(255, 85, 0, 0.7);
  }
}

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

/* Scroll Reveal Classes */
.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);
}

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

.animate-fade-in {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.pulse-orange {
  animation: pulseGlowOrange 3s infinite ease-in-out;
}

.float-item {
  animation: floatSoft 4s infinite ease-in-out;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--brand-orange);
  color: var(--text-primary);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 0.9rem;
  pointer-events: auto;
  animation: fadeInUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast-icon {
  color: var(--brand-orange);
  font-size: 1.2rem;
}

@media (max-width: 576px) {
  .toast-container {
    bottom: 1.25rem;
    left: 1rem;
    right: 1rem;
    align-items: center;
  }
  .toast {
    width: 100%;
    max-width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
  }
}

/* ==========================================================================
   OMGPROJECT REPLICATED KEYFRAME ANIMATIONS
   ========================================================================== */

/* 1. Shine Sweep Animation (Contact Card Sheen) */
@keyframes shine-sweep {
  0% {
    left: -100%;
  }
  50%, 100% {
    left: 150%;
  }
}

/* 2. Mini Pulsing Button Animation */
@keyframes pulse-button-mini {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 102, 255, 0.6);
    transform: scale(1);
  }
  50% {
    transform: scale(1.04);
    box-shadow: 0 0 15px rgba(0, 102, 255, 0.4);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 102, 255, 0);
    transform: scale(1);
  }
}

/* 3. Floating Developer Badge Attention Wiggle */
@keyframes dynamic-attention {
  0%, 100% {
    transform: translateY(0) scale(1) rotate(0deg);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), 0 0 0 0 rgba(0, 102, 255, 0.4);
  }
  40% {
    transform: translateY(-6px) scale(1.03) rotate(0deg);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35), 0 0 12px 4px rgba(0, 102, 255, 0.4);
  }
  45% {
    transform: translateY(-6px) scale(1.05) rotate(-3deg);
  }
  50% {
    transform: translateY(-6px) scale(1.05) rotate(3deg);
  }
  55% {
    transform: translateY(-6px) scale(1.05) rotate(-3deg);
  }
  60% {
    transform: translateY(-6px) scale(1.03) rotate(0deg);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35), 0 0 12px 4px rgba(0, 102, 255, 0.4);
  }
}

/* 4. Glowing Green/Blue Dot Pulse */
@keyframes dot-pulse {
  0% {
    transform: scale(0.6);
    opacity: 1;
  }
  100% {
    transform: scale(2.4);
    opacity: 0;
  }
}

/* 5. Popover Glow Pulse */
@keyframes popover-glow-pulse {
  0%, 100% {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 0 0 rgba(0, 102, 255, 0.4);
  }
  50% {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 20px 2px rgba(0, 102, 255, 0.4);
  }
}

/* 6. Text Shimmer Glow */
@keyframes text-shimmer-glow {
  0% {
    background-position: 0% center;
  }
  100% {
    background-position: -200% center;
  }
}

/* 7. Enterprise Cart Breathing & Shake Animations */
@keyframes cart-enterprise-breathe {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 6px rgba(0, 102, 255, 0.3);
  }
  50% {
    transform: scale(1.15);
    box-shadow: 0 0 18px 5px rgba(0, 102, 255, 0.75), 0 0 32px 10px rgba(0, 102, 255, 0.35);
  }
}

@keyframes cart-badge-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.22); }
}

@keyframes glow-shake {
  0% { transform: scale(1) rotate(0deg); }
  15% { transform: scale(1.2) rotate(-10deg); box-shadow: 0 0 20px var(--brand-blue); }
  30% { transform: scale(1.2) rotate(10deg); }
  45% { transform: scale(1.15) rotate(-5deg); }
  60% { transform: scale(1.15) rotate(5deg); }
  75% { transform: scale(1.05) rotate(0deg); }
  100% { transform: scale(1); }
}

