/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@keyframes bg-animate {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes morph {
  0%, 100% {
    border-radius: 20% 50% 30% 50% / 50% 30% 50% 20%;
  }
  25% {
    border-radius: 40% 20% 60% 30% / 30% 60% 20% 40%;
  }
  50% {
    border-radius: 50% 40% 20% 60% / 60% 20% 40% 30%;
  }
  75% {
    border-radius: 30% 60% 40% 20% / 20% 40% 60% 50%;
  }
}

@keyframes neonPulse {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes crystalFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes pulseText {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.8; }
}

@keyframes subtleMove2 {
  0% { background-position: 0 0; }
  100% { background-position: -1000px -1000px; }
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(-45deg, #0a0f1d, #1a2238, #0c1836, #202940);
  background-size: 400% 400%;
  animation: bg-animate 15s ease infinite;
  color: #eee;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.container {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 0 30px rgba(77, 195, 255, 0.3);
  text-align: center;
  animation: morph 10s infinite ease-in-out, fadeInUp 1.2s ease;
  width: 90%;
  max-width: 600px;
  z-index: 1;
}

.container::before {
  content: "";
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  border-radius: inherit;
  background: linear-gradient(60deg, #6200ff, #008cff, #4dc3ff);
  background-size: 300% 300%;
  animation: neonPulse 6s ease-in-out infinite;
  z-index: -1;
  filter: blur(10px);
}

h1, h2 {
  color: #4dc3ff;
  text-shadow: 0 0 6px #4dc3ff88;
  margin-bottom: 20px;
}

#identification {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 10px 0 30px;
  font-size: 18px;
  animation: fadeInUp 1.2s ease;
}

#identification code {
  background: #1d2b45;
  color: #8bf;
  padding: 5px 12px;
  border-radius: 8px;
  box-shadow: 0 0 10px #4dc3ff44;
  font-size: 16px;
  animation: pulseText 2.5s infinite ease-in-out;
  text-shadow: 0 0 10px #4dc3ff, 0 0 20px #00ffd9;
}

select {
  padding: 10px 15px;
  font-size: 16px;
  border-radius: 8px;
  background: #152030;
  color: #8bf;
  border: 1px solid #4dc3ff;
  margin-top: 20px;
  transition: all 0.3s ease;
}

select:hover {
  box-shadow: 0 0 10px #4dc3ff55;
}

button {
  margin-top: 20px;
  padding: 12px 30px;
  font-size: 16px;
  border: 2px solid #ffffff44;
  background: linear-gradient(145deg, #7ef9ff, #4dc3ff, #00ffd9);
  background-size: 200% 200%;
  animation: crystalFlow 8s ease-in-out infinite, morph 6s infinite alternate ease-in-out;
  backdrop-filter: blur(2px);
  color: #000;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 0 10px #4dc3ff;
  transition: all 0.3s ease-in-out;
}

button:hover {
  background: #2fa3e3;
  box-shadow: 0 0 20px #4dc3ff;
  transform: scale(1.05);
}

@media screen and (max-width: 600px) {
  .container {
    padding: 30px 20px;
  }

  button, select {
    width: 100%;
  }
}

body::after {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: url('https://www.transparenttextures.com/patterns/stardust.png');
  background-size: 600px;
  opacity: 0.5;
  animation: subtleMove2 90s infinite linear;
  z-index: -2;
}

#galaxyCanvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
  pointer-events: none;
}
