:root {
  --background: #050c18;
  --foreground: #e5e7ea;
  --cyan: #57a2d6;
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  background: var(--background);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow: hidden;
  background: var(--background);
  color: var(--foreground);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: inherit; text-decoration: none; }

.bio-page {
  isolation: isolate;
  position: relative;
  display: grid;
  min-height: 100svh;
  overflow: hidden;
  place-items: center;
  padding: 30px 18px;
  background: #050c18;
}

.wallpaper,
.vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.wallpaper {
  z-index: -3;
  overflow: hidden;
  background:
    linear-gradient(rgba(3, 10, 20, .18), rgba(3, 10, 20, .42)),
    url("https://justpaul.ro/images/background.gif") center / cover no-repeat,
    #050c18;
}

.wallpaper::before {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 42%, rgba(87, 162, 214, .12), transparent 34%),
    linear-gradient(120deg, transparent 15%, rgba(87, 162, 214, .045), transparent 48%);
  content: "";
}

.vignette {
  background:
    linear-gradient(to bottom, rgba(0,0,0,.42), transparent 30%, transparent 68%, rgba(0,0,0,.5)),
    radial-gradient(circle, transparent 20%, rgba(0,0,0,.63) 100%);
}

.card-stage {
  position: relative;
  z-index: 3;
  width: min(100%, 560px);
  animation: card-enter 720ms cubic-bezier(.16,1,.3,1) both;
}

.profile-card {
  position: relative;
  display: flex;
  align-items: center;
  flex-direction: column;
  width: 100%;
  padding: 46px 42px 29px;
  border: 1px solid rgba(87,162,214,.28);
  border-radius: 25px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.015) 45%),
    rgba(8,18,35,.72);
  box-shadow:
    0 30px 100px rgba(0,0,0,.58),
    0 0 80px rgba(52,104,148,.15),
    inset 0 1px 0 rgba(255,255,255,.16),
    inset 0 -1px 0 rgba(255,255,255,.03);
  text-align: center;
  backdrop-filter: blur(26px) saturate(135%);
  -webkit-backdrop-filter: blur(26px) saturate(135%);
  transition: transform 180ms ease, border-color 250ms ease, box-shadow 250ms ease;
}

.profile-card:hover {
  border-color: rgba(87,162,214,.46);
  box-shadow:
    0 34px 110px rgba(0,0,0,.62),
    0 0 95px rgba(52,104,148,.2),
    inset 0 1px 0 rgba(255,255,255,.2);
  transform: translateY(-3px);
}

.profile-card::before {
  position: absolute;
  z-index: -1;
  inset: 1px;
  border-radius: 23px;
  background:
    radial-gradient(circle at 50% 20%, rgba(255,255,255,.11), transparent 34%),
    linear-gradient(135deg, rgba(52,104,148,.08), transparent 45%);
  content: "";
  pointer-events: none;
}

.profile-card::after {
  position: absolute;
  z-index: -2;
  inset: -1px;
  border-radius: 26px;
  background: linear-gradient(120deg, rgba(52,104,148,.36), transparent 30%, transparent 66%, rgba(87,162,214,.23));
  content: "";
  filter: blur(13px);
  opacity: .35;
  pointer-events: none;
}

.card-reflection {
  position: absolute;
  top: 0;
  right: 8%;
  left: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.7), transparent);
  opacity: .52;
}

.avatar-wrap {
  position: relative;
  width: 124px;
  height: 124px;
  margin-bottom: 22px;
}

.avatar-wrap::before {
  position: absolute;
  inset: -5px;
  border: 1px solid rgba(87,162,214,.56);
  border-radius: 50%;
  background: conic-gradient(from 80deg, rgba(87,162,214,.86), rgba(52,104,148,.74), rgba(57,185,237,.78), rgba(87,162,214,.86));
  content: "";
  filter: blur(7px);
  opacity: .4;
}

.avatar-image {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,.38);
  border-radius: 50%;
  background: #071326;
  box-shadow: 0 16px 40px rgba(0,0,0,.42), inset 0 1px 12px rgba(255,255,255,.12);
}

.avatar-image::after {
  position: absolute;
  top: -20%;
  left: -40%;
  width: 60%;
  height: 140%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.13), transparent);
  content: "";
  transform: rotate(22deg);
}

.avatar-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.identity-line {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  min-height: 44px;
}

.identity-line h1 {
  margin: 0;
  font-size: clamp(35px, 8vw, 44px);
  font-weight: 680;
  line-height: 1;
  letter-spacing: -.05em;
  text-shadow: 0 6px 22px rgba(0,0,0,.4);
}

.profile-badges { display: flex; gap: 5px; }

.profile-badge {
  position: relative;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 7px;
  background: rgba(255,255,255,.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1);
}

.profile-badge svg { width: 13px; height: 13px; }
.profile-badge--violet { color: #57a2d6; }
.profile-badge--cyan { color: #8fc6e7; }

.profile-badge::after,
.social-icons a::after {
  position: absolute;
  z-index: 8;
  bottom: calc(100% + 10px);
  left: 50%;
  visibility: hidden;
  padding: 6px 8px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 7px;
  background: rgba(5,14,29,.94);
  color: #e5e7ea;
  content: attr(data-label);
  font: 520 10px/1 Inter, ui-sans-serif, sans-serif;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition: opacity 150ms ease, transform 150ms ease, visibility 150ms ease;
  white-space: nowrap;
}

.profile-badge:hover::after,
.social-icons a:hover::after,
.social-icons a:focus-visible::after {
  visibility: visible;
  opacity: 1;
  transform: translate(-50%, 0);
}

.social-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.social-icons a {
  position: relative;
  display: grid;
  width: 49px;
  height: 49px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 14px;
  background: rgba(255,255,255,.045);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 10px 20px rgba(0,0,0,.12);
  color: rgba(250,248,255,.88);
  backdrop-filter: blur(10px);
  transition: transform 170ms ease, border-color 170ms ease, background 170ms ease, color 170ms ease, box-shadow 170ms ease;
}

.social-icons a:hover {
  border-color: rgba(87,162,214,.62);
  background: rgba(52,104,148,.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 12px 25px rgba(0,0,0,.2), 0 0 22px rgba(87,162,214,.14);
  color: #fff;
  transform: translateY(-4px);
}

.social-icons a:active { transform: translateY(-1px) scale(.96); }
.social-icons a:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }
.social-icons svg { width: 21px; height: 21px; fill: currentColor; }

.corner-mark {
  position: absolute;
  bottom: 24px;
  left: 28px;
  color: rgba(99,119,140,.62);
  font: 500 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .18em;
  transition: color 160ms ease;
}

.corner-mark:hover { color: rgba(255,255,255,.58); }

@keyframes card-enter {
  from { opacity: 0; transform: translateY(18px) scale(.975); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 640px) {
  body { overflow-y: auto; }
  .bio-page { min-height: 100svh; overflow-y: auto; padding: 24px 12px 48px; }
  .profile-card { padding: 40px 22px 26px; border-radius: 23px; }
  .profile-card::before { border-radius: 21px; }
  .avatar-wrap { width: 112px; height: 112px; margin-bottom: 20px; }
  .identity-line { gap: 10px; }
  .social-icons { gap: 9px; margin-top: 26px; }
  .social-icons a { width: 47px; height: 47px; }
  .corner-mark { display: none; }
}

@media (hover: none) {
  .profile-card:hover { transform: none; }
  .profile-badge::after,
  .social-icons a::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
