/* styles.css */
@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap');

body {
  margin: 0;
  background: #000;
  color: #00ffe7;
  font-family: 'Share Tech Mono', monospace;
  overflow: hidden;
  height: 100vh;
  position: relative;
}

#bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: 0;
  filter: brightness(0.3) contrast(1.2) saturate(1.5);
}

.container {
  position: relative;
  z-index: 10;
  padding: 4rem;
}

h1.glitch {
  font-size: 2rem;
  position: relative;
  color: #fff;
  animation: glitch-skew 1s infinite linear;
}

h1.glitch::before,
h1.glitch::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  overflow: hidden;
  color: #f0f;
  clip: rect(0, 900px, 0, 0);
  animation: glitch-anim 2s infinite linear alternate-reverse;
}

h1.glitch::after {
  color: #0ff;
  animation: glitch-anim2 1.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
  0% { clip: rect(42px, 9999px, 44px, 0); transform: skew(0.5deg); }
  100% { clip: rect(10px, 9999px, 80px, 0); transform: skew(-0.5deg); }
}

@keyframes glitch-anim2 {
  0% { clip: rect(5px, 9999px, 40px, 0); transform: skew(-0.5deg); }
  100% { clip: rect(35px, 9999px, 85px, 0); transform: skew(0.5deg); }
}

@keyframes glitch-skew {
  0%, 100% { transform: skew(0deg); }
  50% { transform: skew(2deg); }
}

.warning {
  color: #ff0055;
  text-shadow: 0 0 5px #ff0055;
  font-size: 1rem;
}

.nav-link {
  color: #00ffe7;
  text-decoration: none;
  display: block;
  margin: 1.5rem 0;
  font-size: 1.5rem;
  position: relative;
  transition: color 0.2s;
}

.nav-link::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #00ffe7;
  transition: width 0.4s ease-in-out;
}

.nav-link:hover::before {
  width: 100%;
}

.nav-link:hover {
  color: #ff00cc;
  text-shadow: 0 0 8px #ff00cc;
}

.scanlines::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    0deg,
    rgba(255,255,255,0.03),
    rgba(255,255,255,0.03) 1px,
    transparent 1px,
    transparent 4px
  );
  z-index: 5;
  pointer-events: none;
}

.noise {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('https://media.giphy.com/media/oEI9uBYSzLpBK/giphy.gif');
  background-size: cover;
  opacity: 0.03;
  z-index: 1;
  pointer-events: none;
}

.loader {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: #000;
  color: #00ffe7;
  font-family: 'Share Tech Mono', monospace;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: opacity 0.5s ease-out;
}

.loader-text {
  font-size: 2rem;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}
