:root {
  --ink: #101820;
  --muted: #5b6570;
  --paper: #ffffff;
  --line: #e2e6ec;
  --accent: #007bff;
  --soft: #f5f6f8;
  --shadow: 0 18px 40px -30px rgba(16, 24, 32, 0.4);
}

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

body {
  font-family: "Poppins", sans-serif;
  color: var(--ink);
  background: var(--soft);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

img {
  display: block;
  width: 100%;
}

.hero {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.hero-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 60px 24px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  text-align: center;
}

.avatar {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--line);
  box-shadow: var(--shadow);
}

.avatar img {
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.avatar:hover img {
  filter: grayscale(0%);
}

h1 {
  font-family: "Source Serif 4", serif;
  font-size: clamp(2rem, 3vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.5px;
}

.subtitle {
  color: var(--muted);
  margin-top: 8px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
}

.hero-identity {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.icon-list {
  display: flex;
  gap: 16px;
  margin-top: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  transition: all 0.2s ease;
}

.icon-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
}

.icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(0, 123, 255, 0.12);
  color: var(--accent);
  transition: all 0.2s ease;
}

.icon-link:hover .icon {
  background: rgba(0, 123, 255, 0.2);
  transform: scale(1.1);
}

.icon-row:hover .icon {
  background: rgba(0, 123, 255, 0.2);
  transform: scale(1.05);
}

.icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.btn {
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn:hover {
  background: #0056cc;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 123, 255, 0.2);
}

.ghost {
  color: var(--accent);
  font-weight: 600;
  border: 1px solid var(--line);
  padding: 10px 16px;
  border-radius: 8px;
  background: #fff;
  transition: all 0.2s ease;
  cursor: pointer;
}

.ghost:hover {
  background: var(--soft);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.section-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: 16px 24px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.section-nav a {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  background: #fff;
  transition: all 0.2s ease;
  cursor: pointer;
}

.section-nav a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.section-nav .nav-item.is-active {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.content {
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.section {
  display: none;
  flex-direction: column;
  gap: 18px;
}

.section.is-active {
  display: flex;
}

.section-heading span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  color: var(--accent);
  font-weight: 700;
}

.section-heading h2 {
  font-family: "Source Serif 4", serif;
  font-size: clamp(1.8rem, 2.8vw, 2.4rem);
  margin-top: 6px;
  font-weight: 700;
  letter-spacing: -0.4px;
}

.entry,
.card {
  background: var(--paper);
  border-radius: 16px;
  border: 1px solid var(--line);
  padding: 24px 28px;
  box-shadow: var(--shadow);
  transition: all 0.2s ease;
  position: relative;
}


.entry:hover,
.card:hover {
  border-color: rgba(0, 123, 255, 0.2);
  box-shadow: 0 12px 32px -10px rgba(0, 123, 255, 0.15);
  transform: translateY(-2px);
}

.entry-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}


.entry h3,
.card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.3px;
  margin-bottom: 4px;
}

.highlight-group {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}

.highlight-card {
  border: 1px solid rgba(0, 123, 255, 0.3);
  background: rgba(0, 123, 255, 0.06);
  border-radius: 12px;
  padding: 16px 18px;
  transition: all 0.2s ease;
}

.highlight-card:hover {
  border-color: rgba(0, 123, 255, 0.5);
  background: rgba(0, 123, 255, 0.1);
}

.highlight-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}

.highlight-card h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 2px;
}

.role {
  color: var(--muted);
  font-size: 14px;
  margin-top: 4px;
  font-weight: 500;
}

.meta {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.2px;
}

ul {
  margin-top: 12px;
  padding-left: 20px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

ul li {
  margin-bottom: 10px;
  line-height: 1.6;
}

.inline {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s ease;
  text-decoration: none;
}

.inline:hover {
  gap: 6px;
}

.inline::after {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-left: 2px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23007bff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71'%3E%3C/path%3E%3Cpath d='M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71'%3E%3C/path%3E%3C/svg%3E");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.75;
  transition: all 0.2s ease;
}

.inline:hover::after {
  opacity: 1;
  transform: scale(1.15);
}

.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pill-grid {
  display: grid;
  gap: 14px;
}

.pill-group {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
}

.pill-group h3 {
  font-size: 15px;
  margin-bottom: 14px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: -0.2px;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pills span {
  background: var(--soft);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12px;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  font-weight: 500;
}

.pills span:hover {
  background: rgba(0, 123, 255, 0.1);
  border-color: rgba(0, 123, 255, 0.3);
  color: var(--accent);
}

.interests-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.mini-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  font-weight: 700;
  font-size: 15px;
  color: var(--accent);
  box-shadow: var(--shadow);
  transition: all 0.2s ease;
  text-align: center;
  line-height: 1.4;
}

.mini-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 20px rgba(0, 123, 255, 0.15);
  transform: translateY(-2px);
}

.contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px 28px;
  transition: all 0.2s ease;
}

.contact:hover {
  border-color: rgba(0, 123, 255, 0.2);
  box-shadow: 0 12px 32px -10px rgba(0, 123, 255, 0.15);
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 10px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 500;
}

.footer {
  max-width: 1080px;
  margin: 0 auto 40px;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  font-size: 14px;
  color: var(--muted);
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 12px;
}


@media (max-width: 860px) {
  .icon-list {
    gap: 8px;
  }

  .section-nav {
    position: static;
  }

  .contact {
    flex-direction: column;
    align-items: flex-start;
  }

  .grid-two {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  .hero-identity {
    flex-direction: column;
    align-items: flex-start;
  }

  .avatar {
    width: 140px;
    height: 140px;
  }

  .footer {
    flex-direction: column;
    gap: 10px;
  }
}
