/* Color variables for consistent theming */
:root {
  --neon-blue: #0ff;
  --neon-orange: #ff6600;
  --neon-green: #00ff66;
  --neon-purple: #cc00ff;
  --neon-blue-glow: rgba(0, 255, 255, 0.5);
  --grid-color: rgba(0, 150, 255, 0.15);
  --menu-bg: rgba(0, 20, 40, 0.9);
}

/* Main container with 3D perspective for grid effect */
.tron-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(to bottom, #001, #003);
  perspective: 1000px;
  overflow: hidden;
  z-index: 9999;
}

/* 3D grid background with animation */
.tron-container .grid {
  position: absolute;
  width: 400%;
  height: 400%;
  background-image: 
      linear-gradient(var(--grid-color) 1px, transparent 1px),
      linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 100px 100px;
  transform: rotateX(60deg) translate(-25%, -25%);
  animation: gridMove 80s linear infinite;
}

/* Menu positioning and layout */
.tron-container .menu-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
}

/* Menu frame with neon border effect */
.tron-container .menu-frame {
  position: relative;
  padding: 40px;
  background: var(--menu-bg);
  border: 1px solid var(--neon-blue);
  box-shadow: 0 0 20px var(--neon-blue-glow);
}

/* Menu items container */
.tron-container .menu-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Individual menu item styling */
.tron-container .menu-item {
  font-family: 'Orbitron', sans-serif;
  font-size: 24px;
  color: #0ff;
  text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  padding: 5px 20px;
}

/* Menu item hover effect */
.tron-container .menu-item:hover {
  color: #fff;
  text-shadow: 0 0 10px #0ff;
  transform: scale(1.05);
}

/* Light trail container */
.tron-container .light-trail-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Light trail segments */
.tron-container .permanent-trail {
  position: absolute;
  background: currentColor;
  box-shadow: 0 0 15px currentColor;
  opacity: 0.9;
}

/* Horizontal trail segment */
.tron-container .permanent-trail.horizontal {
  height: 3px;
  transform-origin: left center;
}

/* Vertical trail segment */
.tron-container .permanent-trail.vertical {
  width: 3px;
  transform-origin: top center;
}

/* Grid animation */
@keyframes gridMove {
  from { transform: rotateX(60deg) translate(-25%, -25%); }
  to { transform: rotateX(60deg) translate(-75%, -75%); }
}