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

:root {
  --bg: #1a1a1a;
  --bg-card: #1f1f1f;
  --text: #bfbfbf;
  --text-bright: #e5e5e5;
  --text-dim: #888888;
  --accent: #645394;
  --accent-bright: #7d6cb0;
  --accent-dim: #51477e;
  --divider: #2a2a2a;
  --cornell: #B31B1B;
  --osu: #D73F09;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background: var(--bg);
  background-image: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(100, 83, 148, 0.08), transparent 70%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Layout ── */

.container {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 48px 0;
  border-bottom: 1px solid var(--divider);
}

section:last-of-type {
  border-bottom: none;
}

/* ── Fade-in on scroll ── */

.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Hero ── */

.hero {
  padding: 96px 0 48px;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--text-bright);
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}

.hero .tagline {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 28px;
}

.tagline .at {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 500;
  color: var(--accent);
}

.tagline .sep {
  color: var(--text-dim);
  margin: 0 4px;
}

.icon-links {
  display: flex;
  justify-content: center;
  gap: 22px;
}

.icon-links a {
  color: var(--text);
  transition: color 0.2s, transform 0.15s;
  display: inline-flex;
  align-items: center;
}

.icon-links a:hover {
  color: var(--accent-bright);
  transform: translateY(-2px);
}

.icon-links svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ── Section headings ── */

.section-title {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-bright);
  margin-bottom: 24px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.section-num {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.05em;
}

/* ── About ── */

.about {
  font-size: 0.95rem;
  color: var(--text);
  max-width: 620px;
}

/* ── Education cards ── */

.edu-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.edu-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--divider);
  border-top: 3px solid var(--card-color);
  border-radius: 6px;
  padding: 22px 22px 20px;
  transition: transform 0.18s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  transform-style: preserve-3d;
  will-change: transform;
}

.edu-card--cornell { --card-color: var(--cornell); }
.edu-card--osu { --card-color: var(--osu); }

.edu-card__name {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--card-color);
  margin-bottom: 10px;
  line-height: 1.25;
  letter-spacing: 0.005em;
}

.edu-card__degree {
  font-size: 0.875rem;
  color: var(--text-bright);
  margin-bottom: 6px;
}

.edu-card__sub {
  color: var(--text-dim);
}

.edu-card__date {
  font-size: 0.78rem;
  color: var(--text);
  font-family: "IBM Plex Mono", monospace;
}

.edu-card__honors {
  font-size: 0.78rem;
  color: var(--text);
  border-top: 1px solid var(--divider);
  padding-top: 10px;
  margin-top: 12px;
}

.edu-card--cornell:hover {
  box-shadow: 0 12px 36px -12px rgba(179, 27, 27, 0.45);
}

.edu-card--osu:hover {
  box-shadow: 0 12px 36px -12px rgba(215, 63, 9, 0.45);
}

/* ── Experience ── */

.exp-list {
  display: flex;
  flex-direction: column;
}

.exp-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--divider);
  transition: padding-left 0.2s ease;
}

.exp-item:last-child {
  border-bottom: none;
}

.exp-item:hover {
  padding-left: 6px;
}

.exp-item .role {
  font-weight: 600;
  color: var(--text-bright);
  font-size: 0.95rem;
}

.exp-item .org {
  font-size: 0.8rem;
  color: var(--text);
}

.exp-item .dates {
  font-size: 0.78rem;
  color: var(--text-dim);
  font-family: "IBM Plex Mono", monospace;
  white-space: nowrap;
  margin-left: 16px;
  flex-shrink: 0;
}

/* ── Projects ── */

.projects-list {
  display: grid;
  gap: 14px;
}

.project-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--divider);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  padding: 20px 24px;
  transition: transform 0.18s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  transform-style: preserve-3d;
  will-change: transform;
}

.project-card:hover {
  border-left-color: var(--accent-bright);
  box-shadow: 0 12px 36px -12px rgba(100, 83, 148, 0.5);
}

.project-card__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
  gap: 12px;
}

.project-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-bright);
}

.project-year {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-family: "IBM Plex Mono", monospace;
  white-space: nowrap;
}

.project-desc {
  font-size: 0.875rem;
  color: var(--text);
  margin-bottom: 12px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.project-tag {
  font-size: 0.72rem;
  padding: 2px 9px;
  border: 1px solid var(--divider);
  border-radius: 12px;
  color: var(--text);
  font-family: "IBM Plex Mono", monospace;
}

.project-link {
  font-size: 0.85rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s;
}

.project-link:hover {
  color: var(--accent-bright);
}

/* ── Skills ── */

.skill-row {
  margin-bottom: 14px;
  font-size: 0.875rem;
  display: flex;
  gap: 12px;
  align-items: baseline;
}

.skill-row:last-child {
  margin-bottom: 0;
}

.skill-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-shrink: 0;
  min-width: 100px;
}

.skill-tags {
  color: var(--text);
}

/* ── Footer ── */

footer {
  padding: 36px 0 40px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-dim);
}

footer .icon-links {
  margin-bottom: 14px;
  gap: 18px;
}

footer .icon-links a {
  color: var(--text-dim);
}

footer .icon-links svg {
  width: 16px;
  height: 16px;
}

/* ── Reduced motion ── */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .fade-in {
    opacity: 1;
    transform: none;
  }
}

/* ── Responsive ── */

@media (max-width: 600px) {
  .hero {
    padding: 64px 0 36px;
  }

  .hero h1 {
    font-size: 1.85rem;
  }

  section {
    padding: 36px 0;
  }

  .edu-cards {
    grid-template-columns: 1fr;
  }

  .exp-item {
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
  }

  .exp-item .dates {
    margin-left: 0;
  }

  .skill-row {
    flex-direction: column;
    gap: 4px;
  }

  .skill-label {
    min-width: 0;
  }
}
