:root {
  --bg: #f3f7fb;
  --panel: #ffffff;
  --text: #17202a;
  --muted: #5d6d7e;
  --line: #d9e2ec;
  --accent: #2563eb;
  --accent-soft: #dbeafe;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(180deg, #eef4fb 0%, #f8fbff 100%);
  color: var(--text);
}

body,
a,
button,
input,
textarea {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
}

.page-shell {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 3rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 1.5rem;
  align-items: stretch;
  margin-bottom: 1.5rem;
}

.hero,
.panel {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(217, 226, 236, 0.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero {
  padding: 2rem;
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 0.75rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 3.75rem);
  line-height: 1;
}

.subtitle {
  max-width: 60ch;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--muted);
  margin: 1rem 0 0;
}

.hero-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid var(--line);
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
  color: var(--muted);
  font-weight: 500;
}

.contact-list a {
  text-decoration: none;
}

.contact-list a:hover,
.blog-link:hover {
  color: var(--accent);
}

.counter-card {
  display: grid;
  gap: 0.25rem;
  padding: 1rem;
  border-radius: 16px;
  background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
  border: 1px solid #bfdbfe;
}

.counter-label {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.counter-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
}

.resume-grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 1.5rem;
}

.sidebar,
.content {
  display: grid;
  gap: 1.5rem;
  align-content: start;
}

.panel {
  padding: 1.4rem;
}

.panel h2 {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #0f172a;
}

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

.tag-list li {
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid var(--line);
  font-size: 0.92rem;
  color: #1e293b;
}

.small-copy {
  margin: 0 0 0.75rem;
  line-height: 1.7;
  color: var(--muted);
}

.blog-link {
  display: inline-flex;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}

.timeline-item + .timeline-item,
.project-item + .project-item {
  margin-top: 1.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}

.timeline-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

h3 {
  margin: 0;
  font-size: 1.08rem;
}

.org,
.date,
.gpa {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

.date {
  white-space: nowrap;
  font-weight: 600;
}

.education-meta {
  text-align: right;
}

ul {
  margin: 0;
  padding-left: 1.2rem;
}

li {
  margin-bottom: 0.55rem;
  line-height: 1.7;
}

li:last-child {
  margin-bottom: 0;
}

@media (max-width: 980px) {
  .hero,
  .resume-grid {
    grid-template-columns: 1fr;
  }

  .page-shell {
    width: min(100% - 1rem, 1180px);
    padding-top: 1rem;
  }
}

@media (max-width: 640px) {
  .hero,
  .panel {
    border-radius: 18px;
  }

  .hero {
    padding: 1.25rem;
  }

  .timeline-head,
  .education-block {
    flex-direction: column;
  }

  .education-meta {
    text-align: left;
  }

  h1 {
    line-height: 1.05;
  }
}
