.glitch {
  font-family: 'VT323', monospace;
  color: #FF4D00;
  animation: glitch 1s infinite linear alternate-reverse;
}

@keyframes glitch {
  0% { text-shadow: 2px 0 #FF4D00, -2px 0 #00FFFF; }
  20% { text-shadow: -2px 0 #00FFFF, 2px 0 #FF4D00; }
  40% { text-shadow: 2px 2px #FF4D00, -2px -2px #00FFFF; }
  60% { text-shadow: -2px 2px #00FFFF, 2px -2px #FF4D00; }
  100% { text-shadow: 2px 0 #FF4D00, -2px 0 #00FFFF; }
}

.scanlines {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  background: repeating-linear-gradient(
    transparent, transparent 2px, rgba(0,0,0,0.07) 3px, transparent 4px
  );
}

.cyber-border {
  position: relative;
  border: 2px solid #FF4D00;
  box-shadow: 0 0 10px #00FFFF, inset 0 0 10px #00FFFF;
}

.cyber-border::before,
.cyber-border::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid #FF4D00;
}

.cyber-border::before {
  top: -5px;
  left: -5px;
  border-right: none;
  border-bottom: none;
}

.cyber-border::after {
  bottom: -5px;
  right: -5px;
  border-left: none;
  border-top: none;
}

.flame-text {
  color: #FF4D00;
  text-shadow: 0 0 5px #FF4D00, 0 0 10px #FF4D00;
}

.neon-text {
  color: #00FFFF;
  text-shadow: 0 0 5px #00FFFF, 0 0 10px #00FFFF;
}

.cyber-bg {
  background-color: #0F0F0F;
  background-image:
    radial-gradient(circle at 15% 50%, rgba(255, 77, 0, 0.1) 0%, transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(0, 255, 255, 0.1) 0%, transparent 25%);
}

.cyber-grid {
  background-image:
    linear-gradient(rgba(255, 77, 0, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 77, 0, 0.1) 1px, transparent 1px),
    linear-gradient(rgba(0, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 50px 50px, 50px 50px, 10px 10px, 10px 10px;
  background-position: -1px -1px, -1px -1px, -1px -1px, -1px -1px;
}

.cyber-button {
  position: relative;
  background-color: #0F0F0F;
  color: #FF4D00;
  border: 2px solid #FF4D00;
  box-shadow: 0 0 10px #00FFFF;
  transition: all 0.3s ease;
  overflow: hidden;
}

.cyber-button:hover {
  background-color: #FF4D00;
  color: #0F0F0F;
  box-shadow: 0 0 20px #FF4D00, 0 0 40px #FF4D00;
}

.cyber-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.4), transparent);
  transition: 0.5s;
}

.cyber-button:hover::before {
  left: 100%;
}

/* Trait Card Styling */
.trait-card {
  background: #22292f;
  border: 2px solid #FF4D00;
  border-radius: 0;
  box-shadow: 0 0 24px #FF4D00, 0 0 8px #00FFFF;
  margin-bottom: 1rem;
  padding: 1rem;
  position: relative;
  overflow: hidden;
}

.trait-card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  width: 10px;
  height: 10px;
  border-top: 2px solid #00FFFF;
  border-left: 2px solid #00FFFF;
}

.trait-card::after {
  content: '';
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 10px;
  height: 10px;
  border-bottom: 2px solid #00FFFF;
  border-right: 2px solid #00FFFF;
}

/* Terminal Text Effect */
.terminal-text {
  font-family: 'VT323', monospace;
  color: #00FFFF;
  position: relative;
  display: inline-block;
}

.terminal-text::after {
  content: '|';
  position: absolute;
  right: -0.5em;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Glitch Image Effect */
.glitch-image {
  position: relative;
  overflow: hidden;
}

.glitch-image::before,
.glitch-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: inherit;
  background-position: inherit;
  background-size: inherit;
  background-repeat: inherit;
}

.glitch-image::before {
  left: 2px;
  background-color: rgba(255, 77, 0, 0.2);
  animation: glitch-anim-1 2s infinite linear alternate-reverse;
}

.glitch-image::after {
  left: -2px;
  background-color: rgba(0, 255, 255, 0.2);
  animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
  0%, 100% { clip-path: inset(20% 0 80% 0); }
  20% { clip-path: inset(60% 0 40% 0); }
  40% { clip-path: inset(40% 0 60% 0); }
  60% { clip-path: inset(80% 0 20% 0); }
  80% { clip-path: inset(10% 0 90% 0); }
}

@keyframes glitch-anim-2 {
  0%, 100% { clip-path: inset(30% 0 70% 0); }
  25% { clip-path: inset(50% 0 50% 0); }
  50% { clip-path: inset(70% 0 30% 0); }
  75% { clip-path: inset(10% 0 90% 0); }
}
