:root {
  --bg-1: #f8fbff;
  --bg-2: #eef5ff;
  --accent: #3a86ff;
  --card-bg: rgba(255, 255, 255, 0.88);
  --text: #0f172a;
  --muted: #475569;
  --tag-bg: rgba(58,134,255,0.1);
  --tag-color: #2563eb;
  --detail-bg: rgba(58,134,255,0.04);
  --detail-border: rgba(58,134,255,0.25);
  --divider: rgba(58,134,255,0.12);
  --section-label: #94a3b8;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  overflow: auto;
  transition: color 2s ease;
}

.background {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 30%, rgba(58,134,255,0.25), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(58,134,255,0.15), transparent 45%),
    linear-gradient(120deg, var(--bg-1), var(--bg-2));
  animation: drift 30s ease-in-out infinite alternate;
  transition: background 2s ease;
}

@keyframes drift {
  from { transform: scale(1); }
  to   { transform: scale(1.05); }
}

.background::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='1' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* ── Inner page chrome ── */

.wrap {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 48px auto;
  padding: 28px;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.nav-left { display: flex; gap: 12px; align-items: center; }
.nav-left a, .nav-right a { color: var(--muted); text-decoration: none; font-weight: 600; }
.nav-right a { color: var(--muted); text-decoration: none; }

.card {
  background: var(--card-bg);
  padding: 28px;
  border-radius: 14px;
  box-shadow: 0 30px 60px rgba(15,23,42,0.08);
}

.card--sidebar {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  align-items: start;
}

h2 { margin-top: 0; font-family: inherit; }

/* ── Profile sidebar ── */

.profile { text-align: center; }

.avatar {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 12px;
  border: 4px solid rgba(58,134,255,0.12);
}

.name { font-size: 1.25rem; font-weight: 700; margin: 6px 0; }
.byline { color: var(--muted); font-size: 0.95rem; }

.contact { margin-top: 12px; font-size: 0.95rem; color: var(--muted); }
.contact a { display: block; color: var(--muted); text-decoration: none; margin-top: 6px; }
.contact a::after { display: none !important; }
.contact a:hover { color: var(--muted); }

/* ── Link hover underline effect ── */

.card a, .links a {
  position: relative;
  font-size: 0.95rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.card a::after, .links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.card a:hover, .links a:hover { color: var(--text); }
.card a:hover::after, .links a:hover::after { transform: scaleX(1); }

/* ── Content ── */

.section { margin-bottom: 18px; }
.small { color: var(--muted); font-size: 1.05rem; line-height: 1.75; }
.card main { font-size: 1.05rem; line-height: 1.75; color: var(--text); }

@media (max-width: 880px) {
  .card--sidebar { grid-template-columns: 1fr; }
  .avatar { width: 140px; height: 140px; }
}
