/* ==========================================================================
   AllyRevolution Technologies - Animations & Cyber HUD Keyframes
   ========================================================================== */

/* Cyber Scanline effect on cards and radars */
.scanline {
  position: relative;
}

.scanline::after {
  content: " ";
  display: block;
  position: absolute;
  top: 0; left: 0; bottom: 0; right: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
  z-index: 2;
  background-size: 100% 2px, 3px 100%;
  pointer-events: none;
  opacity: 0.6;
}

/* Radar ping animation */
@keyframes pulse-ring {
  0% {
    transform: scale(0.33);
    opacity: 0.8;
  }
  80%, 100% {
    transform: scale(2.4);
    opacity: 0;
  }
}

.ping-marker {
  position: relative;
  display: inline-flex;
}

.ping-marker::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  margin-left: -7px;
  border-radius: 50%;
  background-color: var(--cyan-primary);
  animation: pulse-ring 1.8s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

/* Cyber text glow */
.glow-cyan-text {
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.5), 0 0 20px rgba(0, 240, 255, 0.2);
}

.glow-amber-text {
  text-shadow: 0 0 10px rgba(255, 183, 3, 0.5), 0 0 20px rgba(255, 183, 3, 0.2);
}

/* Subtle Floating animation for drone / robot visual graphics */
@keyframes float-subtle {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-7px); }
  100% { transform: translateY(0px); }
}

.animate-float {
  animation: float-subtle 4.5s ease-in-out infinite;
}

/* Blinking cursor */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.cursor-blink {
  display: inline-block;
  width: 8px;
  height: 14px;
  background-color: var(--cyan-primary);
  vertical-align: middle;
  margin-left: 4px;
  animation: blink 1s step-end infinite;
}

/* Grid Pulse Overlay */
@keyframes grid-glow-pulse {
  0%, 100% { opacity: 0.03; }
  50% { opacity: 0.08; }
}

.cyber-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(var(--cyan-primary) 1px, transparent 1px);
  background-size: 32px 32px;
  animation: grid-glow-pulse 6s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

