@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700;900&display=swap');

* {
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a0a1a 100%);
  background-attachment: fixed;
}

/* Glitch Text Effect */
.glitch-text {
  position: relative;
  background: linear-gradient(90deg, #00d4ff, #39ff14, #ff006e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: glitch-anim 3s infinite;
}

@keyframes glitch-anim {
  0%, 100% { transform: translate(0); }
  20% { transform: translate(-2px, 2px); }
  40% { transform: translate(-2px, -2px); }
  60% { transform: translate(2px, 2px); }
  80% { transform: translate(2px, -2px); }
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, #00d4ff, #ff006e, #39ff14);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 3s ease infinite;
  background-size: 200% 200%;
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Cyber Card */
.cyber-card {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(255, 0, 110, 0.1));
  border: 2px solid rgba(0, 212, 255, 0.3);
  border-radius: 1rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.2);
  transition: all 0.3s ease;
}

.cyber-card:hover {
  border-color: rgba(0, 212, 255, 0.6);
  box-shadow: 0 0 40px rgba(0, 212, 255, 0.4);
}

/* Game Button */
.game-button {
  background: linear-gradient(135deg, #00d4ff, #ff006e);
  border: none;
  border-radius: 0.5rem;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 212, 255, 0.4);
}

.game-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 212, 255, 0.6);
}

.game-button:active {
  transform: translateY(0);
}

/* Quick Buttons */
.quick-button {
  background: rgba(57, 255, 20, 0.1);
  border: 1px solid rgba(57, 255, 20, 0.3);
  color: #39ff14;
  transition: all 0.2s ease;
}

.quick-button:hover {
  background: rgba(57, 255, 20, 0.2);
  border-color: #39ff14;
  transform: scale(1.05);
}

/* Legendary Glow */
.legendary-glow {
  animation: legendary-pulse 2s ease-in-out infinite;
  border-color: #ffd700 !important;
}

@keyframes legendary-pulse {
  0%, 100% {
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
  }
  50% {
    box-shadow: 0 0 60px rgba(255, 215, 0, 0.6);
  }
}

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
  width: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #00d4ff, #ff006e);
  border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #ff006e, #00d4ff);
}

/* Responsive */
@media (max-width: 768px) {
  .glitch-text {
    font-size: 2.5rem;
  }
  
  .gradient-text {
    font-size: 2.5rem;
  }
}

/* Input Focus Effects */
input:focus {
  animation: input-glow 0.3s ease forwards;
}

@keyframes input-glow {
  to {
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
  }
}

/* Neon Glow Effects */
.neon-cyan {
  text-shadow: 0 0 10px #00d4ff, 0 0 20px #00d4ff;
}

.neon-pink {
  text-shadow: 0 0 10px #ff006e, 0 0 20px #ff006e;
}

.neon-green {
  text-shadow: 0 0 10px #39ff14, 0 0 20px #39ff14;
}