/* ===== Reset ===== */
@import url('https://fonts.googleapis.com/css2?family=Bangers&display=swap');

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  font-family: 'Bangers', cursive;
  background-color: #0d0f14;
  color: #e8e8e8;
}

/* ===== Header ===== */
.hero {
  padding: 3rem 1rem 2rem;
  text-align: center;
  background: radial-gradient(circle at top, #1c2230, #0d0f14);
  overflow: hidden;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin: 0;
  color: #00ffff;
  text-shadow:
    0 0 10px #00ffff,
    0 0 20px #00ffff,
    0 0 30px #00ffff,
    0 0 40px #0088ff,
    4px 4px 0 #ff00ff,
    8px 8px 0 rgba(255, 0, 255, 0.3);
  letter-spacing: 4px;
}

.hero-subtitle {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  margin-top: 0.75rem;
  color: #ff00ff;
  text-shadow:
    0 0 10px #ff00ff,
    0 0 20px #ff00ff,
    0 0 30px #ff88ff,
    4px 4px 0 #00ffff,
    8px 8px 0 rgba(0, 255, 255, 0.3);
  letter-spacing: 3px;
}

/* ===== Header Animations ===== */
.animate-left {
  opacity: 0;
  animation: lightSpeedInLeft 1.6s ease-out forwards;
}

.animate-right {
  opacity: 0;
  animation: lightSpeedInRight 1.6s ease-out forwards;
  animation-delay: 2.2s;
}

@keyframes lightSpeedInLeft {
  0% { transform: translateX(-100%) skewX(30deg); opacity: 1; }
  60% { transform: translateX(20%) skewX(-20deg); opacity: 1; }
  100% { transform: translateX(0) skewX(0); }
}

@keyframes lightSpeedInRight {
  0% { transform: translateX(100%) skewX(-30deg); opacity: 1; }
  60% { transform: translateX(-20%) skewX(20deg); opacity: 1; }
  100% { transform: translateX(0) skewX(0); }
}

/* ===== Navigation ===== */
.nav {
  display: flex;
  justify-content: center;
  padding: 1rem;
}

summary {
  list-style: none;
}
summary::-webkit-details-marker {
  display: none;
}

/* ===== Menu Toggle ===== */
.menu-toggle {
  background: #1a1f2b;
  border: 2px solid #00ffff;
  color: #00ffff;
  padding: 0.75rem 1.5rem;
  font-size: 1.2rem;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 0 rgba(0,255,255,0);
  text-shadow: 0 0 10px #00ffff;
  letter-spacing: 2px;
}

.menu-toggle:hover {
  background: #2a3140;
  box-shadow:
    0 0 15px rgba(0,255,255,0.8),
    0 0 30px rgba(0,255,255,0.4),
    0 0 45px rgba(0,255,255,0.2);
  transform: scale(1.05);
  text-shadow:
    0 0 15px #00ffff,
    0 0 30px #00ffff;
}

/* ===== Menu Panel Animation ===== */
.menu-panel {
  margin-top: 1rem;
  background: #121722;
  border: 1px solid #2a3140;
  border-radius: 14px;
  padding: 1.5rem;
  max-width: 1200px;
  width: 100%;
  opacity: 0;
  transform: translateY(-10px) scale(0.98);
  transition: transform 0.35s ease, opacity 0.35s ease;
}

details[open] .menu-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ===== Menu Title ===== */
.menu-title {
  text-align: center;
  margin: 0 0 1.5rem;
  color: #ff00ff;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  text-shadow:
    0 0 10px #ff00ff,
    0 0 20px #ff00ff,
    4px 4px 0 #00ffff,
    8px 8px 0 rgba(0, 255, 255, 0.3);
  letter-spacing: 3px;
}

/* ===== Grid ===== */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

/* ===== Links ===== */
.menu-section a {
  display: block;
  padding: 0.6rem 0.75rem;
  margin-bottom: 0.25rem;
  color: #00ffff;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: inset 0 0 0 rgba(0,255,255,0);
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
}

.menu-section a:hover {
  background: #232a3a;
  color: #ff00ff;
  transform: scale(1.05);
  text-shadow:
    0 0 10px #ff00ff,
    0 0 20px #ff00ff,
    0 0 30px #ff88ff;
  box-shadow:
    0 0 15px rgba(255, 0, 255, 0.8),
    0 0 30px rgba(255, 0, 255, 0.4),
    inset 0 0 10px rgba(255, 0, 255, 0.3);
  animation: wiggle 0.5s ease-in-out;
}

/* ===== Mobile Fullscreen ===== */
@media (max-width: 768px) {
  details.menu[open] {
    position: fixed;
    inset: 0;
    background: #0d0f14;
    z-index: 1000;
    overflow-y: auto;
    padding: 1rem;
  }

  .menu-panel {
    border-radius: 0;
    border: none;
    padding: 1rem 0;
  }

  .menu-toggle {
    width: 100%;
  }
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* ===== Footer ===== */
.footer {
  text-align: center;
  padding: 1.5rem;
  font-size: 0.85rem;
  color: #777;
}

/* ===== Wiggle Animation ===== */
@keyframes wiggle {
  0%, 100% { transform: scale(1.05) rotate(0deg); }
  25% { transform: scale(1.05) rotate(-3deg); }
  75% { transform: scale(1.05) rotate(3deg); }
}