/* === Global Reset === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* === Page Styling === */
html, body {
  height: 100%;
  width: 100%;
  overflow-x: hidden;
  overscroll-behavior: none;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: #050509;
  color: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2vmin;
}

/* === Layout Wrapper === */
.page-wrapper {
  text-align: center;
  position: relative;
  z-index: 5;
  width: min(90%, 700px);
}

/* === Main Title (Neon Auto-Scaling) === */
.site-title {
  font-size: clamp(2rem, 10vw, 4rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  color: #b3b3ff;
  text-shadow:
    0 0 6px #b3b3ff,
    0 0 12px #b3b3ff,
    0 0 24px #7a7aff,
    0 0 48px #5a5aff,
    0 0 80px #3a3aff;
  animation: neonPulse 3s ease-in-out infinite;
  position: relative;
  z-index: 3;
  will-change: filter, opacity, text-shadow;
}

@keyframes neonPulse {
  0% {
    text-shadow:
      0 0 4px #b3b3ff,
      0 0 10px #b3b3ff,
      0 0 20px #7a7aff,
      0 0 40px #5a5aff,
      0 0 70px #3a3aff;
    opacity: 0.95;
  }
  50% {
    text-shadow:
      0 0 8px #d0d0ff,
      0 0 16px #d0d0ff,
      0 0 32px #9f9fff,
      0 0 60px #7a7aff,
      0 0 100px #5a5aff;
    opacity: 1;
  }
  100% {
    text-shadow:
      0 0 4px #b3b3ff,
      0 0 10px #b3b3ff,
      0 0 20px #7a7aff,
      0 0 40px #5a5aff,
      0 0 70px #3a3aff;
    opacity: 0.95;
  }
}

/* === Developer Credit === */
.developer-credit {
  font-size: clamp(0.8rem, 2.5vw, 1.1rem);
  opacity: 0.75;
  margin-bottom: 2rem;
}

/* === Links Section === */
.links ul {
  list-style: none;
}

.links li {
  margin: 0.4rem 0;
}

.links a {
  color: #b3b3ff;
  text-decoration: none;
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  transition: opacity 0.2s ease, text-shadow 0.3s ease;
}

.links a:hover {
  opacity: 0.7;
  text-shadow: 0 0 6px #d0d0ff, 0 0 12px #9f9fff;
}

/* === Title Glow (Auto-Scaling) === */
.title-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(150px, 40vw, 350px);
  height: clamp(150px, 40vw, 350px);
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(120, 120, 255, 0.4), transparent);
  filter: blur(60px);
  z-index: 1;
  pointer-events: none;
  animation: glowFloat 1s ease-in-out infinite alternate;
  will-change: transform, opacity;
}

@keyframes glowFloat {
  0% {
    transform: translate(-50%, -48%);
    opacity: 0.7;
  }
  100% {
    transform: translate(-50%, -52%);
    opacity: 1;
  }
}

/* === Aurora Background === */
#aurora {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(0, 255, 200, 0.15), transparent 60%),
    radial-gradient(circle at 80% 20%, rgba(120, 80, 255, 0.15), transparent 60%),
    radial-gradient(circle at 50% 50%, rgba(0, 150, 255, 0.12), transparent 70%);
  animation: auroraShift 30s ease-in-out infinite;
  filter: blur(80px);
  transform: translateZ(0);
  will-change: transform, opacity;
}

@keyframes auroraShift {
  0% { transform: translate(-10%, -5%) scale(1.1); opacity: 0.7; }
  25% { transform: translate(5%, -2%) scale(1.15); opacity: 0.9; }
  50% { transform: translate(10%, 5%) scale(1.1); opacity: 0.8; }
  75% { transform: translate(-5%, 10%) scale(1.12); opacity: 1; }
  100% { transform: translate(-10%, -5%) scale(1.1); opacity: 0.7; }
}

/* === Twinkling Stars === */
#stars {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  transform: translateZ(0);
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: white;
  border-radius: 50%;
  opacity: 0;
  animation: twinkle 3s infinite ease-in-out;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.1; }
  50% { opacity: 1; }
}
