:root {
  --bg: #f7f9fc;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-strong: #ffffff;
  --text: #101828;
  --muted: #475467;
  --line: rgba(16, 24, 40, 0.08);
  --accent: #2457c5;
  --accent-soft: rgba(36, 87, 197, 0.08);
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.06);
  --radius: 22px;
  --max-width: 900px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(36, 87, 197, 0.05), transparent 28%),
    linear-gradient(180deg, #fcfdff 0%, #ffffff 44%, #f7f9fc 100%);
  line-height: 1.65;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.site-frame {
  min-height: 100vh;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(252, 253, 255, 0.82);
  border-bottom: 1px solid rgba(16, 24, 40, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  font-size: 0.96rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.site-nav a {
  font-size: 0.95rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.25s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.project-top a:hover,
.project-top a:focus-visible,
.contact-card:hover .contact-value,
.contact-card:focus-visible .contact-value {
  color: var(--accent);
}

.hero {
  padding: 5.5rem 0 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.95fr);
  gap: 2rem;
  align-items: start;
}

.eyebrow,
.section-label {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.7rem, 5vw, 4.6rem);
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.hero-summary {
  max-width: 62ch;
  margin: 1.4rem 0 0;
  font-size: 1.08rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.8rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  color: #ffffff;
  background: var(--accent);
  box-shadow: 0 18px 34px rgba(36, 87, 197, 0.18);
}

.button-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(16, 24, 40, 0.1);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: rgba(36, 87, 197, 0.28);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.hero-highlights {
  display: grid;
  gap: 1rem;
}

.highlight-card,
.experience-card,
.project-card,
.skill-group,
.education-card,
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.highlight-card {
  padding: 1.35rem;
}

.highlight-value {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.highlight-label {
  display: block;
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.section {
  padding: 1rem 0 4rem;
}

.section-heading {
  margin-bottom: 1.6rem;
}

.section-heading h2 {
  margin: 0;
  max-width: 32ch;
  font-size: clamp(1.75rem, 3vw, 2.3rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.feature-list,
.experience-card ul,
.project-card ul,
.tag-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.feature-list li {
  position: relative;
  padding: 1.15rem 1.35rem 1.15rem 3.1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.05);
  font-weight: 500;
}

.feature-list li::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 1.3rem;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 6px var(--accent-soft);
  transform: translateY(-50%);
}

.experience-list,
.projects-grid,
.skills-grid,
.education-list,
.contact-grid {
  display: grid;
  gap: 1rem;
}

.experience-card,
.project-card,
.skill-group,
.education-card,
.contact-card {
  padding: 1.5rem;
}

.experience-header,
.project-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.experience-header h3,
.project-card h3,
.skill-group h3 {
  margin: 0;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.experience-header p {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.timeline {
  white-space: nowrap;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--accent);
}

.experience-card ul,
.project-card ul {
  display: grid;
  gap: 0.65rem;
  margin-top: 1.1rem;
}

.experience-card li,
.project-card li {
  color: var(--muted);
}

.projects-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  align-items: stretch;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem;
}

.project-top a {
  white-space: nowrap;
  text-decoration: none;
  font-weight: 600;
  color: var(--muted);
}

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

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.tag-list li {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 600;
}

.education-card h3 {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.education-list {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.education-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.education-meta {
  white-space: nowrap;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--accent);
}

.education-card p {
  margin: 0.45rem 0 0;
  color: var(--muted);
}

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

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}

.contact-card:hover,
.contact-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(36, 87, 197, 0.24);
}

.contact-label {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.contact-value {
  color: var(--muted);
  word-break: break-word;
}

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

  .hero-grid,
  .projects-grid,
  .skills-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-header {
    position: static;
  }

  .header-inner,
  .experience-header,
  .project-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .timeline {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
