:root {
  --accent: #8b7cf6;
  --bg-0: #0a0a0c;
  --bg-1: #15151b;
  --text: #f2f2f5;
  --muted: #9a9aa6;
  --card-bg: rgba(20, 20, 27, 0.55);
  --card-border: rgba(255, 255, 255, 0.08);
}

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

html, body { height: 100%; }

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg-0);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  overflow: hidden;
}

/* Hintergrund-Basis (dunkler Verlauf, unterste Ebene) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -4;
  background:
    radial-gradient(1200px 600px at 50% -10%, #1d1b2e 0%, transparent 60%),
    linear-gradient(160deg, var(--bg-1) 0%, var(--bg-0) 70%);
}

/* Abstrakter Aurora-Hintergrund: weich geblurrte, langsam driftende Blobs */
.aura {
  position: fixed;
  inset: 0;
  z-index: -3;
  overflow: hidden;
  filter: blur(72px);
}
.aura__blob {
  position: absolute;
  width: 46vmax;
  height: 46vmax;
  border-radius: 50%;
  opacity: 0.5;
  mix-blend-mode: screen;
  will-change: transform;
}
.aura__blob--1 {
  background: radial-gradient(circle at center, var(--accent) 0%, transparent 70%);
  top: -12vmax; left: -8vmax;
  animation: drift1 26s ease-in-out infinite alternate;
}
.aura__blob--2 {
  background: radial-gradient(circle at center, #5b8cff 0%, transparent 70%);
  bottom: -16vmax; right: -10vmax;
  animation: drift2 32s ease-in-out infinite alternate;
}
.aura__blob--3 {
  background: radial-gradient(circle at center, #c264ff 0%, transparent 70%);
  top: 28%; left: 34%;
  animation: drift3 38s ease-in-out infinite alternate;
}
@keyframes drift1 { from { transform: translate(0, 0) scale(1); } to { transform: translate(12vmax, 8vmax) scale(1.2); } }
@keyframes drift2 { from { transform: translate(0, 0) scale(1); } to { transform: translate(-10vmax, -6vmax) scale(1.15); } }
@keyframes drift3 { from { transform: translate(0, 0) scale(1); } to { transform: translate(6vmax, -10vmax) scale(0.9); } }

/* Schwebende Partikel (Canvas-Layer) */
#particles {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

/* dunkles Overlay für Lesbarkeit (zwischen Aurora und Partikeln) */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: rgba(0, 0, 0, 0.35);
}

/* Splash */
.splash {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.splash__hint {
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 0.8rem;
  color: var(--muted);
  animation: pulse 2s ease-in-out infinite;
}
.splash.is-hidden { opacity: 0; visibility: hidden; }
@keyframes pulse { 0%,100% { opacity: 0.4; } 50% { opacity: 1; } }

/* Card */
.card {
  width: min(92vw, 380px);
  padding: 2.4rem 1.8rem;
  text-align: center;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 22px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(16px);
  opacity: 0;
  transform: perspective(900px) rotateX(0deg) rotateY(0deg) translate3d(0, 0, 0);
  transition: opacity 0.7s ease, transform 0.18s ease-out;
  will-change: transform;
}
.card.is-visible { opacity: 1; }

.card__avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 4px rgba(139, 124, 246, 0.15), 0 0 24px rgba(139, 124, 246, 0.45);
}
.card__name {
  margin-top: 1rem;
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.card__tagline {
  margin-top: 0.35rem;
  font-size: 0.98rem;
  color: var(--accent);
  min-height: 1.4em;
  font-weight: 500;
}
.cursor { animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.card__bio {
  margin-top: 1rem;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--muted);
}

.card__socials {
  margin-top: 1.6rem;
  display: flex;
  justify-content: center;
  gap: 1.4rem;
}
.card__socials a {
  color: var(--muted);
  display: inline-flex;
  transition: color 0.2s ease, transform 0.2s ease, filter 0.2s ease;
}
.card__socials a:hover {
  color: var(--accent);
  transform: translateY(-3px) scale(1.12);
  filter: drop-shadow(0 0 8px rgba(139, 124, 246, 0.7));
}

@media (prefers-reduced-motion: reduce) {
  .splash__hint, .cursor { animation: none; }
  .aura__blob { animation: none; }
  .card { opacity: 1; transform: none; transition: none; }
}
