/* animations.css - 3D Dynamics, Specular Sweeps & Micro-Animations */

@keyframes scanLaser {
  0% {
    top: 6%;
    opacity: 0.7;
  }
  50% {
    opacity: 1;
  }
  100% {
    top: 92%;
    opacity: 0.7;
  }
}

@keyframes hologramShift {
  0% {
    transform: translate(-40%, -40%) rotate(25deg);
  }
  50% {
    transform: translate(15%, 15%) rotate(35deg);
  }
  100% {
    transform: translate(-40%, -40%) rotate(25deg);
  }
}

@keyframes pulseGlow {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
    filter: drop-shadow(0 0 4px #00b4d8);
  }
  50% {
    transform: scale(1.15);
    opacity: 0.75;
    filter: drop-shadow(0 0 12px #00b4d8);
  }
}

.animate-pulse-glow {
  animation: pulseGlow 2s infinite ease-in-out;
}

@keyframes specularSweep {
  0% {
    transform: translateX(-100%) rotate(30deg);
  }
  20%, 100% {
    transform: translateX(200%) rotate(30deg);
  }
}

.specular-shine-wrap {
  position: relative;
  overflow: hidden;
}

.specular-shine-wrap::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    60deg,
    transparent 40%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 60%
  );
  transform: rotate(30deg);
  animation: specularSweep 6s infinite ease-in-out;
  pointer-events: none;
}

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

.animate-float {
  animation: floatGentle 4s ease-in-out infinite;
}

@keyframes tickerMarquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: tickerMarquee 42s linear infinite;
}

.ticker-track:hover {
  animation-play-state: paused;
}

@keyframes confettiFall {
  0% {
    transform: translateY(-20px) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(140px) rotate(360deg);
    opacity: 0;
  }
}

.confetti-piece {
  position: absolute;
  width: 10px;
  height: 10px;
  animation: confettiFall 2.5s ease-out forwards;
}

/* Toast Notifications */
.viva-toast-container {
  position: fixed;
  top: 90px;
  right: 24px;
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.viva-toast {
  pointer-events: auto;
  background: rgba(11, 27, 61, 0.94);
  color: white;
  border: 1px solid var(--mint);
  padding: 14px 22px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 
    inset 0 1px 1px rgba(255, 255, 255, 0.4),
    0 20px 45px rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  gap: 12px;
  backdrop-filter: blur(20px);
  transform: translateX(130%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.viva-toast.show {
  transform: translateX(0);
}

/* ==========================================================================
   Hero Orbital Carousel Animations
   ========================================================================== */
@keyframes heroFloat1 {
  0%, 100% {
    transform: translate(0px, 0px) rotate(0deg);
  }
  50% {
    transform: translate(-6px, -14px) rotate(5deg);
  }
}

@keyframes heroFloat2 {
  0%, 100% {
    transform: translate(0px, 0px) rotate(0deg);
  }
  50% {
    transform: translate(8px, 12px) rotate(-6deg);
  }
}

@keyframes heroFloat3 {
  0%, 100% {
    transform: translate(0px, 0px) rotate(0deg);
  }
  50% {
    transform: translate(-10px, -8px) rotate(-4deg);
  }
}

@keyframes heroFloat4 {
  0%, 100% {
    transform: translate(0px, 0px) rotate(0deg);
  }
  50% {
    transform: translate(10px, -12px) rotate(6deg);
  }
}

@keyframes orbitPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(0, 180, 216, 0.7), 0 8px 24px rgba(0, 180, 216, 0.4);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(0, 180, 216, 0), 0 12px 32px rgba(0, 180, 216, 0.65);
  }
}

.hero-float-1 {
  animation: heroFloat1 6.5s ease-in-out infinite;
}

.hero-float-2 {
  animation: heroFloat2 7.5s ease-in-out infinite;
}

.hero-float-3 {
  animation: heroFloat3 8.5s ease-in-out infinite;
}

.hero-float-4 {
  animation: heroFloat4 6s ease-in-out infinite;
}

