html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Share Tech Mono', 'Fira Mono', 'Consolas', 'Menlo', monospace;
  background: linear-gradient(135deg, #0a0d12 0%, #121820 100%);
  color: #e0e0e0;
  perspective: 1000px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.background-anim {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 0;
  pointer-events: none;
  background: 
    repeating-linear-gradient(90deg, rgba(0,234,255,0.05) 0px, rgba(0,234,255,0.05) 1px, transparent 1px, transparent 80px), 
    repeating-linear-gradient(180deg, rgba(0,234,255,0.05) 0px, rgba(0,234,255,0.05) 1px, transparent 1px, transparent 80px),
    radial-gradient(circle at 50% 50%, rgba(0,50,100,0.15) 0%, rgba(0,10,20,0.3) 100%);
  box-shadow: 0 0 120px 20px rgba(0,30,60,0.5) inset;
  transform-style: preserve-3d;
  transition: transform 0.5s ease-out;
  animation: backgroundGlitch 15s infinite;
  overflow: hidden;
}

/* Add scanlines effect */
.background-anim::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent 50%, rgba(0, 0, 0, 0.5) 50%);
  background-size: 100% 3px;
  pointer-events: none;
  opacity: 0.25;
  animation: scanlines 5s linear infinite, textScramble 15s infinite;
  z-index: 3;
}

/* Add vignette effect */
.background-anim::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 50% 50%, transparent 30%, rgba(0,0,20,0.8) 100%);
  pointer-events: none;
  z-index: 1;
}

/* Add blocky texture overlay */
.blocky-texture {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: 
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255,255,255,0.03) 1px, transparent 1px),
    repeating-linear-gradient(0deg, transparent 0px, transparent 5px, rgba(0,0,0,0.2) 5px, rgba(0,0,0,0.2) 10px),
    repeating-linear-gradient(90deg, transparent 0px, transparent 5px, rgba(0,0,0,0.2) 5px, rgba(0,0,0,0.2) 10px);
  background-size: 20px 20px, 20px 20px, 100% 10px, 10px 100%;
  mix-blend-mode: overlay;
  opacity: 0.4;
  pointer-events: none;
  z-index: 2;
  animation: blockGlitch 8s infinite;
}
.center-content {
  height: 100vh;
  width: 100vw;
  max-width: 100vw;
  max-height: 100vh;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
  text-align: center;
  background: rgba(10,15,20,0.6);
  border-radius: 4px;
  box-shadow: 0 0 32px 8px rgba(0,100,200,0.2), 0 2px 24px 0 rgba(0,0,0,0.6);
  padding: 2.5em 2em;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(0,150,255,0.1);
  transform-style: preserve-3d;
  animation: pulse 8s ease-in-out infinite, centerGlitch 20s infinite;
  overflow: hidden;
}

.headline {
  font-size: 3rem;
  color: #e0e0e0;
  text-shadow: 0 0 16px rgba(0,234,255,0.8), 0 2px 6px rgba(0,150,255,0.5), 0 4px 20px rgba(0,0,0,0.5);
  letter-spacing: 4px;
  margin-bottom: 0.5em;
  font-weight: bold;
  font-family: 'Share Tech Mono', 'Fira Mono', 'Consolas', monospace;
  text-transform: uppercase;
  position: relative;
  animation: glitch 10s infinite, slideInOut 9s ease-in-out infinite;
  position: relative;
  overflow: hidden;
}

/* Add text scramble effect to headline */
.headline::before {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10,15,20,0.5);
  color: #00eaff;
  clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
  transform: translateX(-1px);
  animation: textScramble 12s infinite;
  filter: blur(0.3px);
}

.headline::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10,15,20,0.5);
  color: #ff0066;
  clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
  transform: translateX(1px);
  animation: textScramble 11s infinite reverse;
  filter: blur(0.3px);
}
.subtitle {
  font-size: 1rem;
  color: #b0b0b0;
  text-shadow: 0 0 12px #00eaff55, 0 2px 12px #000a;
  margin-top: auto; /* Push to bottom */
  margin-bottom: 0;
  font-family: 'Share Tech Mono', 'Fira Mono', 'Consolas', monospace;
  position: relative;
  animation: subtitleScramble 20s infinite; /* Use subtitle-specific animation */
  z-index: 5; /* Ensure subtitle is visible */
}

/* Add specific scrambling effect for subtitle */
@keyframes subtitleScramble {
  0%, 100% { opacity: 1; transform: translateX(0); }
  20% { opacity: 1; transform: translateX(0); }
  20.1% { opacity: 0.95; transform: translateX(-1px); }
  20.2% { opacity: 0.98; transform: translateX(1px); }
  20.3% { opacity: 1; transform: translateX(0); }
  60% { opacity: 1; }
  60.1% { opacity: 0.9; }
  60.2% { opacity: 1; }
}
.highlight {
  color: #00eaff;
  text-shadow: 0 0 16px #00eaff, 0 2px 8px #00eaff99, 0 0 2px #fff;
  font-weight: bold;
  letter-spacing: 1px;
}
.flying-snippet {
  filter: drop-shadow(0 0 8px rgba(0,150,255,0.5)) drop-shadow(0 0 2px rgba(255,255,255,0.1));
  border-radius: 2px;
  background: rgba(10,15,20,0.7);
  padding: 0.2em 0.7em;
  border: 1px solid rgba(0,150,255,0.1);
  box-shadow: 0 0 12px rgba(0,100,200,0.2);
  transform-style: preserve-3d;
  backface-visibility: hidden;
}
@media (max-width: 600px) {
  .headline { font-size: 2rem; }
  .subtitle { font-size: 1rem; }
  .center-content { padding: 1.2em 0.5em; }
}

/* Animations */
@keyframes scanlines {
  0% { background-position: 0 0; }
  100% { background-position: 0 100%; }
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 32px 8px rgba(0,100,200,0.2), 0 2px 24px 0 rgba(0,0,0,0.6); }
  50% { box-shadow: 0 0 40px 12px rgba(0,150,255,0.3), 0 2px 30px 0 rgba(0,0,0,0.7); }
}

@keyframes glitch {
  0%, 100% { text-shadow: 0 0 16px rgba(0,234,255,0.8), 0 2px 6px rgba(0,150,255,0.5), 0 4px 20px rgba(0,0,0,0.5); transform: skewX(0) translateX(0); }
  25% { text-shadow: 0 0 16px rgba(0,234,255,0.8), 0 2px 6px rgba(0,150,255,0.5), 0 4px 20px rgba(0,0,0,0.5); }
  25.5% { text-shadow: 3px 0 #0ff, -3px 0 #f0f, 0 0 8px rgba(255,255,255,0.7); transform: skewX(5deg) translateX(2px); }
  25.6% { text-shadow: -3px 0 #0ff, 3px 0 #f0f, 0 0 8px rgba(255,255,255,0.7); transform: skewX(-3deg) translateX(-1px); }
  25.7% { text-shadow: 0 0 16px rgba(0,234,255,0.8), 0 2px 6px rgba(0,150,255,0.5), 0 4px 20px rgba(0,0,0,0.5); transform: skewX(0) translateX(0); }
  60% { text-shadow: 0 0 16px rgba(0,234,255,0.8), 0 2px 6px rgba(0,150,255,0.5), 0 4px 20px rgba(0,0,0,0.5); }
  60.1% { text-shadow: 2px 0 #f0f, -2px 0 #0ff, 0 0 6px rgba(255,255,255,0.7); transform: skewX(-8deg); }
  60.2% { text-shadow: -2px 0 #f0f, 2px 0 #0ff, 0 0 6px rgba(255,255,255,0.7); transform: skewX(8deg); }
  60.3% { text-shadow: 0 0 16px rgba(0,234,255,0.8), 0 2px 6px rgba(0,150,255,0.5), 0 4px 20px rgba(0,0,0,0.5); transform: skewX(0); }
  85% { text-shadow: 0 0 16px rgba(0,234,255,0.8), 0 2px 6px rgba(0,150,255,0.5), 0 4px 20px rgba(0,0,0,0.5); }
  85.1% { text-shadow: -1px 0 #0ff, 1px 0 #f0f, 0 0 6px rgba(255,255,255,0.7); transform: translateX(-3px); }
  85.2% { text-shadow: 1px 0 #0ff, -1px 0 #f0f, 0 0 6px rgba(255,255,255,0.7); transform: translateX(3px); }
  85.3% { text-shadow: 0 0 16px rgba(0,234,255,0.8), 0 2px 6px rgba(0,150,255,0.5), 0 4px 20px rgba(0,0,0,0.5); transform: translateX(0); }
  98% { text-shadow: 0 0 16px rgba(0,234,255,0.8), 0 2px 6px rgba(0,150,255,0.5), 0 4px 20px rgba(0,0,0,0.5); }
  98.5% { text-shadow: -2px 0 #0ff, 2px 0 #f0f, 0 0 8px rgba(255,255,255,0.7); transform: skewX(-10deg) scale(1.03); }
  99% { text-shadow: 2px 0 #0ff, -2px 0 #f0f, 0 0 8px rgba(255,255,255,0.7); transform: skewX(10deg) scale(0.97); }
  99.5% { text-shadow: 0 0 16px rgba(0,234,255,0.8), 0 2px 6px rgba(0,150,255,0.5), 0 4px 20px rgba(0,0,0,0.5); transform: skewX(0) scale(1); }
}

@keyframes backgroundGlitch {
  0%, 100% { background-position: 0 0; }
  10% { background-position: 0 0; }
  10.1% { background-position: -5px -10px; }
  10.2% { background-position: 5px 10px; }
  10.3% { background-position: 0 0; }
  45% { background-position: 0 0; }
  45.1% { background-position: 10px -5px; filter: hue-rotate(90deg); }
  45.2% { background-position: -10px 5px; filter: hue-rotate(0); }
  45.3% { background-position: 0 0; }
  80% { background-position: 0 0; }
  80.1% { background-position: -8px 8px; filter: brightness(1.5) contrast(1.5); }
  80.2% { background-position: 8px -8px; filter: brightness(1) contrast(1); }
  80.3% { background-position: 0 0; }
}

@keyframes textScramble {
  0%, 100% { opacity: 1; transform: translateX(0); }
  10% { opacity: 1; transform: translateX(0); }
  10.1% { opacity: 0.9; transform: translateX(-1px); }
  10.2% { opacity: 0.95; transform: translateX(1px); }
  10.3% { opacity: 1; transform: translateX(0); }
  40% { opacity: 1; }
  40.1% { opacity: 0.8; }
  40.2% { opacity: 1; }
  /* Less frequent scrambling */
}

@keyframes blockGlitch {
  0%, 100% { opacity: 0.4; transform: translateX(0) translateY(0); background-position: 0 0; }
  25% { opacity: 0.4; transform: translateX(0) translateY(0); background-position: 0 0; }
  25.1% { opacity: 0.6; transform: translateX(5px) translateY(-2px); background-position: -10px 5px; }
  25.2% { opacity: 0.2; transform: translateX(-3px) translateY(3px); background-position: 8px -8px; }
  25.3% { opacity: 0.4; transform: translateX(0) translateY(0); background-position: 0 0; }
  50% { opacity: 0.4; transform: translateX(0) translateY(0); background-position: 0 0; }
  50.1% { opacity: 0.7; transform: translateX(-5px) translateY(0); background-position: 5px 0; }
  50.2% { opacity: 0.3; transform: translateX(5px) translateY(0); background-position: -5px 0; }
  50.3% { opacity: 0.4; transform: translateX(0) translateY(0); background-position: 0 0; }
  75% { opacity: 0.4; transform: translateX(0) translateY(0); background-position: 0 0; }
  75.1% { opacity: 0.5; transform: translateX(0) translateY(-5px); background-position: 0 5px; }
  75.2% { opacity: 0.3; transform: translateX(0) translateY(5px); background-position: 0 -5px; }
  75.3% { opacity: 0.4; transform: translateX(0) translateY(0); background-position: 0 0; }
}

@keyframes centerGlitch {
  0%, 100% { transform: translateZ(0); clip-path: none; }
  35% { transform: translateZ(0); clip-path: none; }
  35.1% { transform: translateZ(8px) skewX(1.5deg); clip-path: polygon(0 0, 100% 0, 100% 88%, 97% 100%, 0 100%); }
  35.2% { transform: translateZ(-4px) skewX(-0.8deg); clip-path: polygon(0 0, 100% 0, 97% 92%, 100% 100%, 0 100%); }
  35.3% { transform: translateZ(0); clip-path: none; }
  75% { transform: translateZ(0); clip-path: none; }
  75.1% { transform: translateZ(-8px) skewY(1.5deg); clip-path: polygon(0 0, 100% 0, 100% 100%, 0 88%); }
  75.2% { transform: translateZ(4px) skewY(-0.8deg); clip-path: polygon(3% 0, 100% 0, 100% 100%, 0 100%); }
  75.3% { transform: translateZ(0); clip-path: none; }
}

/* Noise blocks for digital distortion effect */
.noise-block {
  pointer-events: none;
  mix-blend-mode: screen;
  filter: contrast(1.5);
  transform-origin: center center;
  animation: blockGlitch 0.5s infinite alternate;
}

/* Add screen tearing effect */
.center-content::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background-color: rgba(0,234,255,0.7);
  opacity: 0;
  z-index: 10;
  box-shadow: 0 0 8px 2px rgba(0,234,255,0.5);
  animation: screenTear 10s infinite;
}

@keyframes screenTear {
  0%, 100% { opacity: 0; top: 0; }
  10% { opacity: 0; top: 0; }
  10.1% { opacity: 0.8; top: 30%; }
  10.2% { opacity: 0.8; top: 30.5%; }
  10.3% { opacity: 0; top: 31%; }
  40% { opacity: 0; top: 0; }
  40.1% { opacity: 0.8; top: 65%; }
  40.2% { opacity: 0.8; top: 65.5%; }
  40.3% { opacity: 0; top: 66%; }
  75% { opacity: 0; top: 0; }
  75.1% { opacity: 0.8; top: 10%; }
  75.2% { opacity: 0.8; top: 10.5%; }
  75.3% { opacity: 0; top: 11%; }
}

/* Slide in and out animation for headline */
@keyframes slideInOut {
  0% { transform: translateX(-100%); opacity: 0; }
  10% { transform: translateX(0); opacity: 1; }
  80% { transform: translateX(0); opacity: 1; }
  90% { transform: translateX(100%); opacity: 0; }
  100% { transform: translateX(100%); opacity: 0; }
}

/* Slide animation for subtitle - keeps it visible longer */
@keyframes slideInOutSubtitle {
  0% { transform: translateX(-100%); opacity: 0; }
  10% { transform: translateX(0); opacity: 1; }
  90% { transform: translateX(0); opacity: 1; }
  100% { transform: translateX(0); opacity: 1; }
}