* {
  box-sizing: border-box;
}

body {
  background: linear-gradient(45deg, #0a0a1a, #1a0a2a, #0a1a2a);
  background-size: 400% 400%;
  animation: gradientShift 8s ease infinite;
  color: white;
  font-family: 'Press Start 2P', monospace;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  position: relative;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Animated background particles */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: #00f5ff;
  animation: float 6s infinite linear;
  box-shadow: 0 0 6px #00f5ff;
}

@keyframes float {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-10vh) rotate(360deg); opacity: 0; }
}

/* Scanlines effect */
.scanlines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 245, 255, 0.05) 2px,
    rgba(0, 245, 255, 0.05) 4px
  );
  pointer-events: none;
  z-index: 1000;
  animation: scanlineMove 0.1s linear infinite;
}

@keyframes scanlineMove {
  0% { transform: translateY(0px); }
  100% { transform: translateY(4px); }
}

/* Pixel grid overlay */
.pixel-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.05;
  background-image: 
    linear-gradient(rgba(0, 245, 255, 0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 245, 255, 0.3) 1px, transparent 1px);
  background-size: 20px 20px;
  animation: gridMove 10s linear infinite;
  pointer-events: none;
  z-index: -1;
}

@keyframes gridMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(20px, 20px); }
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 20px;
  position: relative;
  z-index: 10;
}

/* Main Menu Styles */
.main-menu {
  display: block;
}

.platform-menu {
  display: none;
}

.manual-box {
  border: 4px solid transparent;
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 0 15px #00ffff;
  padding: 20px;
  border-radius: 15px;
  position: relative;
  overflow: hidden;
  animation: borderGlow 4s ease-in-out infinite;
}

@keyframes borderGlow {
  0%, 100% { 
    border-color: #00f5ff;
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.3), inset 0 0 20px rgba(0, 245, 255, 0.1);
  }
  25% { 
    border-color: #ff6b6b;
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.3), inset 0 0 20px rgba(255, 107, 107, 0.1);
  }
  50% { 
    border-color: #4ecdc4;
    box-shadow: 0 0 20px rgba(78, 205, 196, 0.3), inset 0 0 20px rgba(78, 205, 196, 0.1);
  }
  75% { 
    border-color: #45b7d1;
    box-shadow: 0 0 20px rgba(69, 183, 209, 0.3), inset 0 0 20px rgba(69, 183, 209, 0.1);
  }
}

.manual-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: shine 3s infinite;
}

@keyframes shine {
  0% { left: -100%; }
  100% { left: 100%; }
}

.manual-box img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  display: block;
  border: 4px solid #00ffff;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 0 20px rgba(0, 245, 255, 0.5);
  animation: imageGlow 2s ease-in-out infinite alternate;
}

@keyframes imageGlow {
  from { box-shadow: 0 0 20px rgba(0, 245, 255, 0.5); }
  to { box-shadow: 0 0 40px rgba(0, 245, 255, 0.8); }
}

h1 {
  color: #00ffff;
  font-size: 24px;
  text-align: center;
  margin-top: 0;
  text-shadow: 
    0 0 5px #00f5ff,
    0 0 10px #00f5ff,
    0 0 20px #00f5ff;
  animation: neonFlicker 2s infinite alternate;
}

@keyframes neonFlicker {
  0%, 18%, 22%, 25%, 53%, 57%, 100% {
    text-shadow: 
      0 0 5px #00f5ff,
      0 0 10px #00f5ff,
      0 0 20px #00f5ff;
  }
  20%, 24%, 55% {
    text-shadow: none;
  }
}

p {
  font-size: 12px;
  line-height: 1.8;
  text-align: justify;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.1);
}

.signature {
  margin-top: 40px;
  text-align: right;
  font-size: 12px;
  color: #bbbbbb;
  text-shadow: 0 0 10px rgba(187, 187, 187, 0.5);
}

.contents-box {
  border: 2px solid transparent;
  background: rgba(17, 17, 17, 0.95);
  backdrop-filter: blur(10px);
  padding: 15px;
  border-radius: 10px;
  margin-top: 30px;
  position: relative;
  overflow: hidden;
  animation: borderGlow 4s ease-in-out infinite;
}

.contents-box h3 {
  font-size: 12px;
  margin: 0 0 10px;
  color: #00ffff;
  text-shadow: 0 0 10px #00ffff;
}

.contents-box button,
.platform-button {
  display: block;
  width: 100%;
  margin: 8px 0;
  background: rgba(0, 0, 0, 0.8);
  color: #00ffff;
  border: 2px solid #00ffff;
  padding: 12px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 5px;
  text-shadow: 0 0 5px #00ffff;
  font-family: 'Press Start 2P', monospace;
  position: relative;
  overflow: hidden;
}

.platform-button {
  font-size: 16px;
  padding: 20px;
  margin: 15px 0;
}

.contents-box button::before,
.platform-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 245, 255, 0.2), transparent);
  transition: left 0.5s;
}

.contents-box button:hover::before,
.platform-button:hover::before {
  left: 100%;
}

.contents-box button:hover,
.platform-button:hover {
  background: rgba(0, 245, 255, 0.1);
  box-shadow: 0 0 20px rgba(0, 245, 255, 0.5);
  transform: translateY(-2px);
}

.back-button {
  background: rgba(255, 107, 107, 0.2) !important;
  border-color: #ff6b6b !important;
  color: #ff6b6b !important;
  text-shadow: 0 0 5px #ff6b6b !important;
}

.back-button::before {
  background: linear-gradient(90deg, transparent, rgba(255, 107, 107, 0.2), transparent) !important;
}

.back-button:hover {
  background: rgba(255, 107, 107, 0.1) !important;
  box-shadow: 0 0 20px rgba(255, 107, 107, 0.5) !important;
}

.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(4px);
  z-index: 998;
}

.popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) !important;
  width: 80%;
  max-width: 600px;
  background: rgba(26, 26, 26, 0.98);
  backdrop-filter: blur(15px);
  border: 4px solid #00ffff;
  box-shadow: 0 0 20px #00ffff;
  padding: 20px;
  z-index: 999;
  overflow-y: auto;
  max-height: 80vh;
  border-radius: 15px;
}

.popup::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  animation: shine 4s infinite;
}

.popup h2 {
  font-size: 16px;
  color: #00ffff;
  margin-top: 20px;
  margin-bottom: 15px;
  text-shadow: 0 0 10px #00ffff;
  animation: textPulse 2s ease-in-out infinite;
}

@keyframes textPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

.popup ul {
  list-style: none;
  padding-left: 0;
}

.popup ul li {
  padding-left: 20px;
  margin-bottom: 10px;
  position: relative;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.1);
}

.popup ul li::before {
  content: "\1F538";
  position: absolute;
  left: 0;
  animation: colorCycle 3s infinite;
}

@keyframes colorCycle {
  0% { filter: hue-rotate(0deg); }
  50% { filter: hue-rotate(180deg); }
  100% { filter: hue-rotate(360deg); }
}

.popup a {
  display: inline-block;
  margin-top: 10px;
  font-size: 10px;
  background: linear-gradient(45deg, #00f5ff, #ff6b6b, #4ecdc4);
  background-size: 300% 300%;
  color: black;
  padding: 10px 15px;
  text-decoration: none;
  border: 2px solid #00ffff;
  border-radius: 8px;
  box-shadow: 0 0 15px #00f5ff;
  animation: gradientMove 3s ease infinite;
  transition: all 0.3s ease;
  font-family: 'Press Start 2P', monospace;
}

.popup a:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px #00f5ff;
}

@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.popup button {
  background: rgba(0, 0, 0, 0.8);
  color: #00ffff;
  border: 2px solid #00ffff;
  padding: 8px 12px;
  font-size: 10px;
  position: absolute;
  top: 15px;
  right: 15px;
  cursor: pointer;
  border-radius: 5px;
  font-family: 'Press Start 2P', monospace;
  transition: all 0.3s ease;
  text-shadow: 0 0 5px #00ffff;
  z-index: 1000;
}

.popup button:hover {
  background: rgba(0, 245, 255, 0.1);
  box-shadow: 0 0 15px rgba(0, 245, 255, 0.5);
  transform: scale(1.1);
}

.popup p {
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.1);
}

/* Coming Soon popup styles */
.coming-soon-popup {
  background: rgba(255, 107, 107, 0.95) !important;
  border-color: #ff6b6b !important;
  box-shadow: 0 0 20px #ff6b6b !important;
}

.coming-soon-popup h2 {
  color: #ffffff !important;
  text-shadow: 0 0 10px #ffffff !important;
}

.coming-soon-popup p {
  color: #ffffff !important;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.5) !important;
}

/* Floating cars animation */
.floating-car {
  position: fixed;
  width: 40px;
  height: 20px;
  background: linear-gradient(45deg, #ff6b6b, #ff8e53);
  clip-path: polygon(10% 0%, 90% 0%, 100% 50%, 90% 100%, 10% 100%, 0% 50%);
  animation: floatCar 20s infinite linear;
  box-shadow: 0 0 15px rgba(255, 107, 107, 0.5);
  z-index: 5;
  opacity: 0.7;
}

.floating-car:nth-child(2) { 
  animation-delay: -7s; 
  top: 30%; 
  background: linear-gradient(45deg, #4ecdc4, #45b7d1);
  box-shadow: 0 0 15px rgba(78, 205, 196, 0.5);
}

.floating-car:nth-child(3) { 
  animation-delay: -14s; 
  top: 70%; 
  background: linear-gradient(45deg, #00f5ff, #ff6b6b);
  box-shadow: 0 0 15px rgba(0, 245, 255, 0.5);
}

@keyframes floatCar {
  0% { transform: translateX(-60px) rotate(0deg); }
  100% { transform: translateX(calc(100vw + 60px)) rotate(360deg); }
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: rgba(10, 10, 26, 0.8);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(45deg, #00f5ff, #ff6b6b);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
}

/* Responsive design */
@media (max-width: 768px) {
  .container {
    padding: 20px 10px;
  }
  
  h1 {
    font-size: 18px;
  }
  
  .popup {
    width: 95%;
    max-height: 90%;
  }
  
  .platform-button {
    font-size: 14px;
    padding: 15px;
  }
}