/* Glow Pulse */
@keyframes glow-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

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

/* Glitch */
@keyframes glitch {
  0% {
    transform: translate(0);
    text-shadow: -2px 0 var(--color-accent), 2px 0 var(--color-secondary);
  }
  20% {
    transform: translate(-3px, 3px);
    text-shadow: 2px 0 var(--color-accent), -2px 0 var(--color-secondary);
  }
  40% {
    transform: translate(-3px, -3px);
    text-shadow: 2px 0 var(--color-secondary), -2px 0 var(--color-accent);
  }
  60% {
    transform: translate(3px, 3px);
    text-shadow: -2px 0 var(--color-accent), 2px 0 var(--color-primary);
  }
  80% {
    transform: translate(3px, -3px);
    text-shadow: 2px 0 var(--color-primary), -2px 0 var(--color-secondary);
  }
  100% {
    transform: translate(0);
    text-shadow: -2px 0 var(--color-accent), 2px 0 var(--color-secondary);
  }
}

/* Fade In Up */
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scanline */
@keyframes scanline {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(100vh);
  }
}

/* Float */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Typing cursor */
.cursor {
  display: inline-block;
  width: 10px;
  height: 1.2em;
  background: var(--color-primary);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}

/* Glitch text utility */
.glitch-text {
  position: relative;
}

.glitch-text:hover {
  animation: glitch 0.3s ease-in-out;
}

/* Shimmer effect for cards */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.hacker-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.02) 50%,
    transparent 100%
  );
  background-size: 200% 100%;
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
}

.hacker-card:hover::after {
  opacity: 1;
  animation: shimmer 2s ease-in-out infinite;
}

/* Pulse dot for active status */
@keyframes status-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 255, 65, 0.4); }
  50% { box-shadow: 0 0 0 4px rgba(0, 255, 65, 0); }
}

.status-tag[data-status="live"]::before,
.status-tag[data-status="active"]::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
  margin-right: 4px;
  animation: status-pulse 2s ease-in-out infinite;
}

/* Scanline overlay */
.scanlines::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
  opacity: 0.4;
}
