:root {
  color-scheme: light;
  --ink: #13202b;
  --muted: #5e6b78;
  --paper: #fbfcf8;
  --surface: rgba(255, 255, 255, 0.86);
  --line: rgba(19, 32, 43, 0.12);
  --teal: #1f7a8c;
  --blue: #2f80ed;
  --coral: #f25f5c;
  --gold: #f5b700;
  --green: #2d936c;
  --violet: #7653d9;
  --rose: #c44569;
  --shadow: 0 24px 70px rgba(19, 32, 43, 0.16);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 16% 12%, rgba(31, 122, 140, 0.18), transparent 30%),
    radial-gradient(circle at 82% 16%, rgba(242, 95, 92, 0.14), transparent 27%),
    linear-gradient(135deg, #fbfcf8 0%, #f4fbf9 44%, #fff8ec 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

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

.skip-link {
  background: var(--ink);
  color: #fff;
  left: 1rem;
  padding: 0.75rem 1rem;
  position: fixed;
  top: -5rem;
  z-index: 20;
}

.skip-link:focus {
  top: 1rem;
}

.mesh {
  inset: 0;
  opacity: 0.55;
  pointer-events: none;
  position: fixed;
  z-index: -1;
}

.site-header {
  backdrop-filter: blur(18px);
  background: rgba(251, 252, 248, 0.74);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1180px;
  padding: 0.9rem 1.25rem;
}

.brand,
.nav-links {
  align-items: center;
  display: flex;
}

.brand {
  font-weight: 800;
  gap: 0.65rem;
}

.brand-mark {
  align-items: center;
  background: conic-gradient(from 120deg, var(--teal), var(--gold), var(--coral), var(--blue), var(--teal));
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  height: 2.35rem;
  justify-content: center;
  width: 2.35rem;
}

.nav-links {
  gap: 0.35rem;
}

.nav-links a,
.filter,
.button {
  border-radius: var(--radius);
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.55rem 0.8rem;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: rgba(31, 122, 140, 0.1);
  color: var(--ink);
}

.resume-link {
  background: var(--ink);
  color: #fff !important;
}

.nav-toggle {
  background: transparent;
  border: 0;
  display: none;
  height: 2.5rem;
  padding: 0.5rem;
  width: 2.5rem;
}

.nav-toggle span {
  background: var(--ink);
  display: block;
  height: 2px;
  margin: 5px 0;
}

.hero,
.section {
  margin: 0 auto;
  max-width: 1180px;
  padding: 5rem 1.25rem;
}

.hero {
  align-items: center;
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  min-height: calc(100vh - 74px);
}

.eyebrow,
.section-kicker,
.project-type,
.meta,
.date {
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0 0 0.75rem;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(3.2rem, 8vw, 7.5rem);
  line-height: 0.9;
  margin-bottom: 1.25rem;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.02;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.25rem;
  line-height: 1.2;
  margin-bottom: 0.45rem;
}

.hero-text,
.intro p,
.contact-card p {
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  max-width: 720px;
}

.hero-actions,
.contact-actions,
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button,
.filter {
  border: 1px solid var(--line);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.button {
  display: inline-flex;
  padding: 0.85rem 1rem;
}

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

.primary {
  background: var(--teal);
  box-shadow: 0 16px 32px rgba(31, 122, 140, 0.28);
  color: #fff;
}

.secondary {
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
}

.hero-panel {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.42));
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-height: 470px;
  overflow: hidden;
  padding: 1rem;
  position: relative;
}

.orbit {
  aspect-ratio: 1;
  background:
    linear-gradient(90deg, rgba(31, 122, 140, 0.1) 1px, transparent 1px),
    linear-gradient(rgba(31, 122, 140, 0.1) 1px, transparent 1px);
  background-size: 34px 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  margin: 1.5rem auto 0;
  max-width: 330px;
  position: relative;
}

.orbit::before,
.orbit::after {
  border: 1px dashed rgba(19, 32, 43, 0.18);
  border-radius: 50%;
  content: "";
  inset: 16%;
  position: absolute;
}

.orbit::after {
  animation: spin 18s linear infinite;
  border-color: rgba(242, 95, 92, 0.45);
  inset: 29%;
}

.node {
  align-items: center;
  border-radius: 50%;
  color: #fff;
  display: flex;
  font-size: 0.82rem;
  font-weight: 900;
  height: 4.6rem;
  justify-content: center;
  position: absolute;
  width: 4.6rem;
}

.react { background: var(--blue); left: 8%; top: 16%; }
.java { background: var(--coral); right: 9%; top: 18%; }
.unity { background: var(--violet); bottom: 8%; left: 18%; }
.cloud { background: var(--green); bottom: 15%; right: 13%; }

.metric-grid {
  bottom: 1rem;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(3, 1fr);
  left: 1rem;
  position: absolute;
  right: 1rem;
}

.metric-grid div,
.timeline-card,
.project-card,
.education-grid article,
.contact-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: var(--radius);
  box-shadow: 0 18px 45px rgba(19, 32, 43, 0.09);
}

.metric-grid div {
  padding: 1rem;
}

.metric-grid strong {
  display: block;
  font-size: 1.7rem;
  line-height: 1;
}

.metric-grid span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.intro {
  align-items: end;
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr 0.8fr;
}

.section-heading {
  margin-bottom: 2rem;
  max-width: 820px;
}

.timeline {
  position: relative;
}

.timeline-item {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 180px 1fr;
  margin-bottom: 1.25rem;
}

.timeline-card {
  padding: 1.35rem;
}

.timeline-card ul {
  color: var(--muted);
  margin: 0;
  padding-left: 1.2rem;
}

.filter-bar {
  margin-bottom: 1.25rem;
}

.filter {
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
  padding: 0.6rem 0.85rem;
}

.filter.active {
  background: var(--ink);
  color: #fff;
}

.project-grid,
.education-grid {
  display: grid;
  gap: 1rem;
}

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

.project-card {
  display: grid;
  gap: 1rem;
  grid-template-columns: 4.8rem 1fr;
  min-height: 220px;
  padding: 1rem;
  transform-style: preserve-3d;
}

.project-card.is-hidden {
  display: none;
}

.project-card p {
  color: var(--muted);
  margin-bottom: 0;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.project-links a {
  align-items: center;
  background: rgba(31, 122, 140, 0.1);
  border: 1px solid rgba(31, 122, 140, 0.22);
  border-radius: 999px;
  color: var(--teal);
  display: inline-flex;
  font-size: 0.84rem;
  font-weight: 900;
  gap: 0.42rem;
  min-height: 2.1rem;
  padding: 0.42rem 0.7rem;
}

.project-links svg {
  fill: currentColor;
  flex: 0 0 auto;
  height: 1rem;
  width: 1rem;
}

.project-links a:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
  transform: translateY(-1px);
}

.project-visual {
  align-items: center;
  border-radius: var(--radius);
  color: #fff;
  display: flex;
  font-size: 2rem;
  font-weight: 900;
  height: 4.8rem;
  justify-content: center;
}

.teal { background: var(--teal); }
.coral { background: var(--coral); }
.gold { background: #c88900; }
.green { background: var(--green); }
.violet { background: var(--violet); }
.blue { background: var(--blue); }
.rose { background: var(--rose); }

.skill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.skill-cloud span {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 10px 25px rgba(19, 32, 43, 0.06);
  font-weight: 800;
  padding: 0.65rem 0.9rem;
}

.education {
  display: grid;
  gap: 2rem;
  grid-template-columns: 0.8fr 1.2fr;
}

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

.education-grid article,
.contact-card {
  padding: 1.25rem;
}

.education-grid p,
.footer {
  color: var(--muted);
}

.contact {
  padding-top: 2rem;
}

.contact-card {
  background:
    linear-gradient(135deg, rgba(31, 122, 140, 0.12), rgba(242, 95, 92, 0.1)),
    rgba(255, 255, 255, 0.82);
}

.footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem;
  text-align: center;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}

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

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

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

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

  .hero {
    padding-top: 3rem;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    background: rgba(251, 252, 248, 0.97);
    border-bottom: 1px solid var(--line);
    display: none;
    flex-direction: column;
    left: 0;
    padding: 0.75rem 1.25rem 1rem;
    position: absolute;
    right: 0;
    top: 100%;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    width: 100%;
  }

  .hero,
  .section {
    padding: 3.5rem 1rem;
  }

  .hero-panel {
    min-height: 430px;
  }

  .metric-grid,
  .project-grid,
  .timeline-item {
    grid-template-columns: 1fr;
  }

  .metric-grid {
    position: static;
    margin-top: 1rem;
  }

  .project-card {
    min-height: 0;
  }
}

@media (max-width: 460px) {
  h1 {
    font-size: 3rem;
  }

  .project-card {
    grid-template-columns: 1fr;
  }

  .project-visual {
    width: 4.8rem;
  }
}
