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

:root {
  --bg-top: #0b1026;
  --bg-mid: #16213e;
  --bg-bottom: #1b3a4b;
  --accent: #4fd1c5;
  --accent-soft: rgba(79, 209, 197, 0.15);
  --text: #eef2f7;
  --text-dim: #9fb0c3;
  --card-bg: rgba(255, 255, 255, 0.06);
  --card-border: rgba(255, 255, 255, 0.12);
  --link-bg: rgba(255, 255, 255, 0.07);
  --link-hover: rgba(79, 209, 197, 0.14);
}

html {
  height: 100%;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  font-family: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-mid) 55%, var(--bg-bottom) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.25rem 4rem;
  overflow-x: hidden;
  position: relative;
}

/* ---------- Background scenery ---------- */

.sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.stars {
  position: absolute;
  inset: 0 0 40% 0;
  background-image:
    radial-gradient(1px 1px at 12% 22%, rgba(255, 255, 255, 0.8) 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 10%, rgba(255, 255, 255, 0.6) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 45% 30%, rgba(255, 255, 255, 0.7) 50%, transparent 51%),
    radial-gradient(1px 1px at 62% 14%, rgba(255, 255, 255, 0.75) 50%, transparent 51%),
    radial-gradient(1px 1px at 74% 26%, rgba(255, 255, 255, 0.55) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 86% 12%, rgba(255, 255, 255, 0.7) 50%, transparent 51%),
    radial-gradient(1px 1px at 93% 33%, rgba(255, 255, 255, 0.6) 50%, transparent 51%),
    radial-gradient(1px 1px at 8% 38%, rgba(255, 255, 255, 0.5) 50%, transparent 51%),
    radial-gradient(1px 1px at 55% 6%, rgba(255, 255, 255, 0.65) 50%, transparent 51%);
  animation: twinkle 5s ease-in-out infinite alternate;
}

@keyframes twinkle {
  from { opacity: 0.55; }
  to { opacity: 1; }
}

.skyline {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: clamp(140px, 30vh, 320px);
}

.skyline .mountains {
  fill: rgba(255, 255, 255, 0.05);
}

.skyline .city {
  fill: rgba(10, 14, 32, 0.85);
  stroke: rgba(79, 209, 197, 0.25);
  stroke-width: 1;
}

.mist {
  position: absolute;
  width: 140%;
  height: 200px;
  bottom: 6%;
  left: -20%;
  background: radial-gradient(ellipse at center, rgba(159, 176, 195, 0.12) 0%, transparent 70%);
  animation: drift 24s ease-in-out infinite alternate;
}

.mist-2 {
  bottom: 16%;
  animation-duration: 32s;
  animation-delay: -10s;
  opacity: 0.7;
}

@keyframes drift {
  from { transform: translateX(-4%); }
  to { transform: translateX(6%); }
}

/* ---------- Card ---------- */

.card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 2.5rem 1.75rem 2rem;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: rise 0.7s ease-out both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.avatar {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
  box-shadow: 0 0 0 6px var(--accent-soft), 0 8px 24px rgba(0, 0, 0, 0.4);
  background: var(--bg-mid);
}

.handle {
  margin-top: 1.15rem;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.bio {
  margin-top: 0.4rem;
  color: var(--text-dim);
  font-size: 1.05rem;
  font-weight: 500;
}

/* ---------- Links ---------- */

.links {
  margin-top: 1.75rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.link-btn {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  width: 100%;
  padding: 0.95rem 1.15rem;
  border-radius: 16px;
  background: var(--link-bg);
  border: 1px solid var(--card-border);
  color: var(--text);
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 600;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.link-btn:hover,
.link-btn:focus-visible {
  transform: translateY(-2px) scale(1.015);
  background: var(--link-hover);
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(79, 209, 197, 0.18);
  outline: none;
}

.link-btn:active {
  transform: translateY(0) scale(0.99);
}

.link-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
}

.link-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.link-icon.instagram {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.link-icon.tiktok {
  background: #0f0f0f;
  box-shadow: -1.5px -1.5px 0 rgba(37, 244, 238, 0.7), 1.5px 1.5px 0 rgba(254, 44, 85, 0.7);
}

.link-icon.facebook {
  background: #1877f2;
}

.link-icon.generic {
  background: linear-gradient(45deg, #4fd1c5, #2b6cb0);
}

.link-label {
  flex: 1;
  text-align: left;
}

.link-arrow {
  color: var(--text-dim);
  transition: transform 0.18s ease, color 0.18s ease;
}

.link-btn:hover .link-arrow,
.link-btn:focus-visible .link-arrow {
  transform: translateX(3px);
  color: var(--accent);
}

/* ---------- Footer ---------- */

.footer {
  position: relative;
  z-index: 1;
  margin-top: 2rem;
  color: var(--text-dim);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- Responsive ---------- */

@media (max-width: 420px) {
  body {
    padding: 1.5rem 1rem 3rem;
  }

  .card {
    padding: 2rem 1.25rem 1.6rem;
    border-radius: 20px;
  }

  .avatar {
    width: 104px;
    height: 104px;
  }

  .handle {
    font-size: 1.4rem;
  }

  .bio {
    font-size: 0.98rem;
  }

  .link-btn {
    padding: 0.85rem 1rem;
    font-size: 1rem;
  }

  .link-icon {
    width: 36px;
    height: 36px;
  }
}

@media (min-width: 1024px) {
  .card {
    max-width: 520px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stars,
  .mist,
  .card {
    animation: none;
  }

  .link-btn,
  .link-arrow {
    transition: none;
  }
}
