:root {
  color-scheme: light dark;
  --bg: #f5f7fb;
  --surface: rgba(255, 255, 255, 0.88);
  --text: #172033;
  --muted: #556179;
  --accent: #0b6bcb;
  --border: rgba(23, 32, 51, 0.12);
  --shadow: 0 20px 40px rgba(20, 32, 56, 0.08);
}

body[data-theme="dark"] {
  --bg: #0f1726;
  --surface: rgba(15, 23, 38, 0.82);
  --text: #eef4ff;
  --muted: #b7c1d6;
  --accent: #7bc0ff;
  --border: rgba(238, 244, 255, 0.12);
  --shadow: 0 24px 44px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background:
    radial-gradient(circle at top, rgba(11, 107, 203, 0.16), transparent 35%),
    linear-gradient(180deg, var(--bg), color-mix(in srgb, var(--bg) 85%, #000 15%));
  color: var(--text);
}

.container {
  width: min(960px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  padding: 5rem 0 3rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 700;
}

h1 {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(2.5rem, 6vw, 4.75rem);
  line-height: 0.95;
}

.lede {
  max-width: 42rem;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.button-link,
.theme-toggle {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: var(--shadow);
  text-decoration: none;
  font: inherit;
}

.button-link {
  background: var(--accent);
  color: white;
  border-color: transparent;
}

main {
  padding-bottom: 4rem;
}

.profile-card {
  display: grid;
  grid-template-columns: minmax(180px, 220px) 1fr;
  gap: 1.5rem;
  align-items: center;
}

.profile-image-wrap {
  display: flex;
  justify-content: center;
}

.profile-image {
  width: min(100%, 220px);
  aspect-ratio: 4 / 5;
  display: block;
  object-fit: cover;
  border-radius: 28px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: color-mix(in srgb, var(--surface) 72%, white 28%);
}

.profile-copy p {
  margin-bottom: 0;
}

.item-list {
  display: grid;
  gap: 1rem;
}

.item-card {
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 88%, white 12%);
}

.item-card h3 {
  margin: 0 0 0.3rem;
}

.item-meta {
  margin-top: 0;
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 600;
}

.tag-list,
.achievement-list {
  margin: 0;
  padding-left: 1.2rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  padding-left: 0;
  list-style: none;
}

.tag-list li {
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 84%, white 16%);
}

section {
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

h2 {
  margin-top: 0;
}

p {
  line-height: 1.7;
}

a {
  color: var(--accent);
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.social-link-icon {
  width: 2rem;
  height: 2rem;
  display: block;
  fill: var(--accent);
}

@media (max-width: 640px) {
  .hero {
    padding-top: 3.5rem;
  }

  .profile-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  section {
    padding: 1.2rem;
  }

  .hero-actions {
    justify-content: center;
  }
}
