/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(167, 139, 250, 0.6);
  border-radius: 5px;
  border: 2px solid transparent;
  background-clip: padding-box;
  box-shadow: 0 0 8px 2px rgba(167, 139, 250, 0.7), 0 0 16px 4px rgba(167, 139, 250, 0.3);
}

::-webkit-scrollbar-thumb:hover {
  background: #a78bfa;
  background-clip: padding-box;
  box-shadow: 0 0 12px 4px rgba(167, 139, 250, 0.9), 0 0 24px 8px rgba(167, 139, 250, 0.4);
}

html {
  scrollbar-color: rgba(167, 139, 250, 0.6) transparent;
  scrollbar-width: thin;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #0d1117;
  --surface: #161b22;
  --border: #30363d;
  --text: #e6edf3;
  --muted: #8b949e;
  --accent: #a78bfa;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Ambient background orbs */
.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-glow::before,
.bg-glow::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  animation: drift 25s ease-in-out infinite;
}

.bg-glow::before {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.13), transparent 70%);
  top: -200px;
  left: -100px;
}

.bg-glow::after {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.09), transparent 70%);
  bottom: -100px;
  right: -100px;
  animation-duration: 20s;
  animation-direction: reverse;
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(40px, -30px); }
  66% { transform: translate(-20px, 25px); }
}

main {
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
  padding: 24px;
  flex: 1;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hero */
.hero {
  text-align: center;
}

.avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 24px;
  display: block;
  animation: avatarPulse 4s ease-in-out infinite;
  cursor: pointer;
}

.avatar.lit {
  animation: neonOn 0.8s ease-out forwards;
}

@keyframes neonOn {
  0%   { box-shadow: none; }
  8%   { box-shadow: 0 0 0 3px #a78bfa, 0 0 8px rgba(167,139,250,0.9), 0 0 20px rgba(167,139,250,0.5); }
  14%  { box-shadow: none; }
  24%  { box-shadow: 0 0 0 3px #a78bfa, 0 0 14px #a78bfa, 0 0 30px rgba(167,139,250,0.7); }
  30%  { box-shadow: 0 0 0 3px rgba(167,139,250,0.4), 0 0 6px rgba(167,139,250,0.3); }
  45%, 100% {
    box-shadow:
      0 0 0 3px #fff,
      0 0 0 5px #a78bfa,
      0 0 12px #a78bfa,
      0 0 25px #a78bfa,
      0 0 60px rgba(167,139,250,0.9),
      0 0 120px rgba(167,139,250,0.6),
      0 0 200px rgba(167,139,250,0.3);
  }
}

@keyframes avatarPulse {
  0%, 100% {
    box-shadow: 0 0 0 4px rgba(167, 139, 250, 0.2), 0 0 24px rgba(167, 139, 250, 0.1);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(167, 139, 250, 0.1), 0 0 48px rgba(167, 139, 250, 0.2);
  }
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #e6edf3 30%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tagline {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 28px;
}

.tagline::after {
  content: '_';
  color: var(--accent);
  animation: blink 1.2s step-end infinite;
}

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

.links {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  background: rgba(22, 27, 34, 0.6);
  backdrop-filter: blur(8px);
  transition: border-color 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.links a:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(167, 139, 250, 0.15);
}

/* Footer */
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  padding: 24px;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
  z-index: 10;
}
