@import url('https://fonts.googleapis.com/css2?family=VT323&family=Rubik+Glitch&family=Space+Grotesk:wght@400;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --vertical-gap: 2rem;
}

html {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar {
  display: none;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'VT323', monospace;
  color: #e8e8e8;
  background: #000;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

body.motion-disabled .intro { animation: none; }
body.motion-disabled .warp-btn { transition: none; }
body.motion-disabled .warp-btn:hover { transform: none; }
body.motion-disabled #bg-canvas { animation: none; }
body.motion-disabled .noise { display: none; }

#bg-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: -2;
  pointer-events: none;
}

.scanlines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  pointer-events: none;
  z-index: 1;
  background-image: linear-gradient(0deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.428) 50%, rgba(0, 0, 0, 0) 100%);
  background-size: 100% 4px;
  background-repeat: repeat;
  animation: scanlines 1s linear infinite;
  transform: translateZ(0);
}

.logo {
  font-family: 'VT323', monospace;
  font-size: 4.5rem;
  text-align: center;
  padding: 0;
  color: #00ffff;
  text-transform: uppercase;
  margin: 0;
}

header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--vertical-gap);
  padding: 0;
  margin: 0;
}

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

nav ul li a {
  text-decoration: none;
  color: #00ffff;
  font-weight: bold;
  font-size: 1.5rem;
  position: relative;
}

nav ul li a:hover {
  color: #000000;
  background-color: #00ffff;
  text-decoration: underline;
}

.intro {
  position: relative;
  padding-top: 4rem;
  background-color: rgba(0, 0, 0, 0.5);
  border: 2px solid #00ffff;
  border-radius: 0px;
  padding: 4rem 4rem;
  margin: var(--vertical-gap) auto;
  width: fit-content;
  max-width: 90%;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-align: center;
  font-size: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.intro::before {
  content: attr(data-window-title);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 30px;
  background: linear-gradient(to bottom, #0078d4, #106ebe);
  color: white;
  font-family: 'VT323', monospace;
  font-size: 16px;
  font-weight: normal;
  line-height: 30px;
  padding-left: 10px;
  border-bottom: 1px solid #00ffff;
  display: flex;
  align-items: center;
}

.intro .window-controls {
  position: absolute;
  top: 3px;
  right: 3px;
  display: flex;
  gap: 1px;
}

.intro h2 {
  color: #00ffff;
  font-family: 'VT323', monospace;
  margin-bottom: 1rem;
  padding-left: 0;
  width: 100%;
  text-align: center;
}

.intro p {
  color: #0f0;
  font-family: 'VT323', monospace;
  position: relative;
  margin: 0;
  padding: 0;
}

.window-btn {
  width: 24px;
  height: 24px;
  background: #e1e1e1;
  border: 1px outset #d4d0c8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #000;
  cursor: default;
  font-family: 'Segoe UI', sans-serif;
}

.window-btn:hover { background: #e5f3ff; }
.window-btn:active { border: 1px inset #d4d0c8; background: #cce4f7; }
.minimize-btn::before { content: "‒"; pointer-events: none; }
.maximize-btn::before { content: "🗖"; pointer-events: none; }
.close-btn::before { content: "✕"; pointer-events: none; }
.close-btn:hover { background: #e81123; color: white; }

.warp-btn {
  background: #1a1a1a;
  color: #00ffff;
  padding: 1rem 2rem;
  margin-top: 2rem;
  border: 2px solid #00ffff;
  border-radius: 2px;
  font-size: 1.8rem;
  font-family: inherit;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.warp-btn:hover {
  background: #00ffff;
  color: #000;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
  transform: translate(calc(var(--mouse-x, 0) * 5px), calc(var(--mouse-y, 0) * 5px));
}

.hidden { display: none !important; }

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  width: 100%;
}

.game-card {
  border: 1px solid #00ffff;
  padding: 1.5rem;
  text-align: center;
  background: rgba(0, 0, 0, 0.7);
}

.game-card h3 {
  color: #00ffff;
  margin-bottom: 1rem;
}

.game-card p {
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  width: 100%;
}

.team-member {
  text-align: center;
  padding: 1rem;
}

.team-member h3 {
  color: #00ffff;
  margin-bottom: 0.5rem;
}

.team-member p {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

#content-home p::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 1em;
  background: #0f0;
  margin-left: 5px;
  top: 50%;
  transform: translateY(-50%);
  animation: blink 1s step-end infinite;
}

#content-about p {
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

#content-about {
  max-width: 500px;
  width: 90%;
}

footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.9rem;
  opacity: 0.8;
}

.motion-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #1a1a1a;
  color: #00ffff;
  border: 1px solid #00ffff;
  padding: 12px 20px;
  border-radius: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 1.2rem;
  z-index: 100;
  text-transform: uppercase;
}

@keyframes blink { 50% { opacity: 0; } }

@keyframes scanlines {
  from { background-position: 0 0; }
  to { background-position: 0 4px; }
}

@keyframes scanline-move {
  0% { background-position: 0 0; }
  100% { background-position: 0 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .intro { animation: none; }
  .warp-btn { transition: none; }
  .warp-btn:hover { transform: none; }
  .noise { display: none; }
}

@media (max-width: 768px) {
  :root { --vertical-gap: 1rem; }
  .logo { font-size: 2.5rem; padding: 0 1rem; }
  nav ul { flex-wrap: wrap; gap: 1rem; }
  nav ul li a { font-size: 1.2rem; }
  .intro { padding: 2rem 1.5rem 2rem 1.5rem; padding-top: calc(2rem + 30px); margin: 1rem auto; font-size: 1.5rem; width: 95%; }
  .intro h2 { font-size: 1.8rem; }
  .intro p { font-size: 1.2rem; }
  .games-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .game-card { padding: 1rem; }
  .game-card h3 { font-size: 1.4rem; }
  .game-card p { font-size: 1rem; }
  .team-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .warp-btn { font-size: 1.4rem; padding: 0.8rem 1.2rem; margin: 0.5rem 0; }
  #content-about { max-width: 95%; }
  #content-about p { font-size: 1rem; }
  .motion-toggle { top: 10px; right: 10px; padding: 8px 12px; font-size: 1rem; }
}

@media (max-width: 480px) {
  .logo { font-size: 2rem; }
  nav ul { gap: 0.8rem; justify-content: space-around; }
  nav ul li a { font-size: 1rem; }
  .intro { padding: 1.5rem 1rem 1.5rem 1rem; padding-top: calc(1.5rem + 30px); font-size: 1.2rem; }
  .intro h2 { font-size: 1.5rem; margin-bottom: 0.8rem; }
  .intro p { font-size: 1rem; }
  .warp-btn { font-size: 1.2rem; padding: 0.7rem 1rem; width: 100%; max-width: 200px; }
  .game-card h3 { font-size: 1.2rem; }
  .motion-toggle { font-size: 0.9rem; padding: 6px 10px; }
}