/*
 * BESTVOIPTEL - Animations
 * Hardware-accelerated CSS animations and reveal states
 */

/* Entry Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger Helpers */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }

/* Floating/Bobbing Effect for Cards */
.float-card {
  animation: floatEffect 6s ease-in-out infinite;
}

.float-card-reverse {
  animation: floatEffectReverse 6s ease-in-out infinite;
}

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

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

/* Typing Cursor Effect */
.typing-container {
  display: inline-flex;
  align-items: center;
}

.typing-cursor {
  display: inline-block;
  width: 3px;
  height: 1.1em;
  background-color: var(--accent);
  margin-left: 4px;
  animation: blink 0.8s step-end infinite;
}

@keyframes blink {
  from, to { background-color: transparent }
  50% { background-color: var(--accent); }
}

/* Glowing Pulsing Radar Waves */
.radar-pulse {
  position: relative;
}

.radar-pulse::before,
.radar-pulse::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1px solid rgba(0, 212, 255, 0.4);
  animation: radarWave 3s cubic-bezier(0.1, 0.8, 0.3, 1) infinite;
  opacity: 0;
  pointer-events: none;
}

.radar-pulse::after {
  animation-delay: 1.5s;
}

@keyframes radarWave {
  0% {
    width: 20px;
    height: 20px;
    opacity: 0.8;
  }
  100% {
    width: 250px;
    height: 250px;
    opacity: 0;
  }
}

/* Infinite Network Connections Path Dash */
@keyframes dash {
  to {
    stroke-dashoffset: -40;
  }
}

.network-line {
  stroke-dasharray: 8;
  animation: dash 2s linear infinite;
}

/* Background Aura/Glow Movement */
.aura-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(10, 132, 255, 0.12) 0%, rgba(0, 212, 255, 0.03) 50%, rgba(0, 0, 0, 0) 70%);
  filter: blur(50px);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  animation: glowMove 15s ease-in-out infinite alternate;
}

@keyframes glowMove {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(100px, 50px) scale(1.1); }
  100% { transform: translate(-50px, 120px) scale(0.9); }
}

/* Spin Graphic Animation */
.spin-slow {
  animation: spinSlow 30s linear infinite;
}

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