* {
  box-sizing: border-box;
}

:root {
  --bg-1: #050816;
  --bg-2: #0f172a;
  --card: rgba(15, 23, 42, 0.72);
  --text: #f8fafc;
  --muted: #cbd5e1;
  --line: rgba(255, 255, 255, 0.14);
  --accent: #8b5cf6;
  --accent-2: #06b6d4;
  --accent-3: #f472b6;
  --shadow: 0 28px 90px rgba(6, 182, 212, 0.18);
}

body.light {
  --bg-1: #eef2ff;
  --bg-2: #ecfeff;
  --card: rgba(255, 255, 255, 0.82);
  --text: #111827;
  --muted: #5b6473;
  --line: rgba(17, 24, 39, 0.12);
  --accent: #7c3aed;
  --accent-2: #0891b2;
  --accent-3: #db2777;
  --shadow: 0 28px 90px rgba(124, 58, 237, 0.22);
}

html, body {
  margin: 0;
  min-height: 100%;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  min-height: 100vh;
  color: var(--text);
  background: linear-gradient(135deg, var(--bg-1), var(--bg-2));
  overflow-x: hidden;
}

.animated-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 20%, rgba(139, 92, 246, 0.25), transparent 30%),
    radial-gradient(circle at 80% 10%, rgba(6, 182, 212, 0.22), transparent 28%),
    radial-gradient(circle at 50% 90%, rgba(244, 114, 182, 0.16), transparent 32%);
}

.animated-bg::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 46px 46px;
  transform: perspective(600px) rotateX(60deg);
  animation: gridMove 12s linear infinite;
}

.animated-bg span {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  filter: blur(8px);
  opacity: 0.55;
  animation: float 9s ease-in-out infinite;
}

.animated-bg span:nth-child(1) {
  left: 8%;
  top: 18%;
  background: rgba(139, 92, 246, 0.42);
}

.animated-bg span:nth-child(2) {
  right: 10%;
  top: 14%;
  background: rgba(6, 182, 212, 0.35);
  animation-delay: -2s;
}

.animated-bg span:nth-child(3) {
  left: 18%;
  bottom: 8%;
  background: rgba(244, 114, 182, 0.32);
  animation-delay: -4s;
}

.animated-bg span:nth-child(4) {
  right: 18%;
  bottom: 10%;
  background: rgba(34, 197, 94, 0.22);
  animation-delay: -6s;
}

.page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 34px 16px;
}

.card {
  width: min(100%, 460px);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--accent), transparent, var(--accent-2));
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.7;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  text-transform: lowercase;
}

.status::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 99px;
  background: #22c55e;
  box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.15);
}

.actions {
  display: flex;
  gap: 8px;
}

.icon-button,
.contact button {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255,255,255,0.05);
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.icon-button {
  width: 42px;
  height: 42px;
  font-size: 17px;
}

.icon-button:hover,
.contact button:hover {
  transform: translateY(-2px);
  border-color: var(--accent-2);
  background: rgba(255,255,255,0.09);
}

.avatar-wrap {
  width: 124px;
  height: 124px;
  margin: 28px auto 18px;
  position: relative;
  display: grid;
  place-items: center;
}

.avatar-glow {
  position: absolute;
  inset: 0;
  border-radius: 38px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2), var(--accent-3));
  filter: blur(18px);
  opacity: 0.65;
  animation: pulse 2.8s ease-in-out infinite;
}

.avatar {
  width: 104px;
  height: 104px;
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 34px;
  color: white;
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -0.08em;
  text-transform: lowercase;
  background: linear-gradient(135deg, var(--accent), var(--accent-2), var(--accent-3));
  box-shadow: 0 18px 44px rgba(139, 92, 246, 0.3);
}

h1 {
  margin: 0;
  font-size: clamp(38px, 9vw, 56px);
  letter-spacing: -0.08em;
  text-transform: lowercase;
}

.role {
  margin: 8px 0 0;
  color: var(--accent-2);
  font-weight: 750;
}

.bio {
  margin: 18px auto 0;
  color: var(--muted);
  line-height: 1.65;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 22px 0;
}

.tags span {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  background: rgba(255,255,255,0.04);
}

.links {
  display: grid;
  gap: 11px;
  margin-top: 8px;
}

.links a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--text);
  background: rgba(255,255,255,0.06);
  text-decoration: none;
  font-weight: 800;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.links a:hover {
  transform: translateY(-2px) scale(1.01);
  border-color: var(--accent-2);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.22), rgba(6, 182, 212, 0.18));
}

.links img {
  width: 22px;
  height: 22px;
  display: block;
}

.contact {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

.contact button {
  padding: 11px 14px;
  font-weight: 800;
}

@keyframes float {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(24px, -28px, 0) scale(1.08);
  }
}

@keyframes gridMove {
  from {
    transform: perspective(600px) rotateX(60deg) translateY(0);
  }
  to {
    transform: perspective(600px) rotateX(60deg) translateY(46px);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(0.94);
    opacity: 0.46;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.78;
  }
}

@media (max-width: 380px) {
  .card {
    padding: 22px;
    border-radius: 24px;
  }

  .avatar-wrap {
    width: 108px;
    height: 108px;
  }

  .avatar {
    width: 90px;
    height: 90px;
    border-radius: 28px;
    font-size: 30px;
  }
}
