/* Microchip Terminal Theme */
@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap');

body {
  margin: 0;
  padding: 0;
  background-color: #0d0d0d;
  color: #33ff33;
  font-family: 'Share Tech Mono', monospace;
  cursor: url('https://cdn.custom-cursor.com/db/22094/32/tech-microchip-pointer.png'), auto;
  overflow-x: hidden;
}

header {
  background-color: #1a1a1a;
  padding: 1rem;
  text-align: center;
  border-bottom: 2px dashed #00ff00;
  box-shadow: 0 0 10px #00ff00;
}

h1 {
  font-size: 2.5rem;
  text-shadow: 0 0 8px #00ff00;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 0;
  margin-top: 1rem;
}

nav ul li a {
  color: #33ff33;
  text-decoration: none;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

nav ul li a:hover {
  color: #00ccff;
  text-shadow: 0 0 8px #00ccff;
  cursor: url('https://cdn.custom-cursor.com/db/22094/32/tech-microchip-pointer.png'), pointer;
}

section {
  padding: 3rem;
  border-bottom: 1px dashed #00ff00;
  background-color: #121212;
  box-shadow: inset 0 0 5px #00ff00;
}

canvas#sword-trail {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
}

body.gate-opening {
  animation: glitchFlash 1.2s ease forwards;
}

@keyframes glitchFlash {
  0% {
    filter: brightness(0.5);
    transform: scale(1);
  }
  50% {
    filter: brightness(1.8);
    transform: scale(1.03);
  }
  100% {
    filter: brightness(1);
    transform: scale(1);
  }
}