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

:root {
  --bg: #0f1117;
  --surface: #1a1d27;
  --border: #2a2d3a;
  --text: #e8eaf0;
  --muted: #8b90a0;
  --accent: #4f8ef7;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem 1rem 3rem;
}

main {
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

/* ── Profile Header ───────────────────── */
.profile-header {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.cover-wrap {
  height: 190px;
  border-radius: 14px 14px 0 0;
  overflow: hidden;
  background: var(--surface);
}

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

.avatar-wrap {
  position: absolute;
  left: 20px;
  top: calc(190px - 52px);
  width: 104px;
  height: 104px;
  border-radius: 50%;
  border: 4px solid var(--bg);
  z-index: 2;
  background: var(--surface);
}

.avatar-img,
.avatar-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.avatar-placeholder {
  background: linear-gradient(135deg, var(--accent), #a855f7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.05em;
}

.hero-text {
  padding: 66px 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

h1 {
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.tagline {
  font-size: 0.9375rem;
  color: var(--accent);
  font-weight: 500;
}

.location {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.stats {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

.dot { opacity: 0.4; }

/* ── Bio ──────────────────────────────── */
.bio {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.bio p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: #c5c9d6;
}

.blog-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.blog-link:hover { text-decoration: underline; }

/* ── Cards ────────────────────────────── */
.cards {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.875rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.card-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(79, 142, 247, 0.1);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.card-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.card-value {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}

/* ── Skills ───────────────────────────── */
.section-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tags span {
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: #c5c9d6;
}

/* ── Social ───────────────────────────── */
.social {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding-bottom: 1rem;
}

.social a {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  text-decoration: none;
}

.social a svg { width: 18px; height: 18px; }

.social a:hover {
  color: var(--text);
  border-color: var(--accent);
  background: rgba(79, 142, 247, 0.08);
}

/* ── Responsive ───────────────────────── */
@media (max-width: 480px) {
  h1 { font-size: 1.4rem; }
  .cover-wrap { height: 150px; }
  .avatar-wrap {
    width: 88px;
    height: 88px;
    top: calc(150px - 44px);
  }
  .hero-text { padding-top: 54px; }
}
