
:root {
  --bg: #09101f;
  --bg-soft: #101a32;
  --bg-soft-2: #0d1529;
  --surface: rgba(255,255,255,0.06);
  --surface-2: rgba(255,255,255,0.08);
  --border: rgba(255,255,255,0.10);
  --text: #f3f6ff;
  --muted: #aeb9d6;
  --muted-2: #c9d2ec;
  --accent: #7b8fff;
  --accent-2: #46d7bf;
  --accent-3: #90b7ff;
  --shadow: 0 18px 50px rgba(0,0,0,.28);
  --shadow-soft: 0 12px 32px rgba(0,0,0,.18);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --max: 1140px;
}

* { 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 12% 0%, rgba(123,143,255,.18), transparent 24%),
    radial-gradient(circle at 88% 8%, rgba(70,215,191,.14), transparent 18%),
    linear-gradient(180deg, #08101d 0%, #0b1325 42%, #101a31 100%);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: none; }
img { max-width: 100%; display: block; }
p { margin: 0; }
.container { width: min(calc(100% - 2rem), var(--max)); margin: 0 auto; }
main { overflow: hidden; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8,16,29,.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}
.brand {
  display: flex;
  flex-direction: column;
  gap: .1rem;
  min-width: 0;
}
.brand strong {
  font-size: 1.06rem;
  letter-spacing: -.01em;
}
.brand span {
  color: var(--muted);
  font-size: .88rem;
}
.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
  color: var(--text);
  border-radius: 14px;
  padding: .6rem .8rem;
  font: inherit;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: .45rem;
  flex-wrap: wrap;
}
.nav-links a {
  color: var(--muted);
  font-weight: 600;
  padding: .68rem .9rem;
  border-radius: 999px;
  transition: .18s ease;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: rgba(255,255,255,.06);
}
.nav-links a.active {
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.10);
}

.hero {
  padding: 5rem 0 3rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.14fr .86fr;
  gap: 1.5rem;
  align-items: center;
}
.eyebrow,
.kicker {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .54rem .9rem;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  color: var(--muted-2);
  font-size: .92rem;
}
h1 {
  margin: 1rem 0 0;
  font-size: clamp(2.7rem, 5vw, 5rem);
  line-height: 1.02;
  letter-spacing: -.045em;
  max-width: 12ch;
}
.gradient {
  color: transparent;
  background: linear-gradient(90deg, var(--accent-3), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
}
.lead {
  max-width: 64ch;
  font-size: 1.08rem;
  color: var(--muted);
  margin: 1.25rem 0 0;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  margin-top: 1.55rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  border-radius: 16px;
  padding: .95rem 1.2rem;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #6576ff);
  color: white;
  box-shadow: var(--shadow);
}
.btn-secondary {
  background: rgba(255,255,255,.05);
  color: var(--text);
  border-color: rgba(255,255,255,.12);
}
.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: .95rem 1.2rem;
  margin-top: 1rem;
  color: var(--muted);
  font-weight: 500;
}
.inline-links a:hover { color: var(--text); }

.card {
  background: linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.045));
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.card:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.16);
  box-shadow: var(--shadow);
}
.card-inner { padding: 1.55rem; }

.hero-panel {
  overflow: hidden;
}
.hero-panel img {
  aspect-ratio: 4 / 5;
  width: 100%;
  object-fit: cover;
  object-position: center top;
}
.hero-panel .meta {
  padding: 1.25rem 1.35rem 1.45rem;
}
.hero-panel .meta h2 {
  margin: 0;
  font-size: 1.5rem;
}
.hero-panel .meta p {
  margin: .35rem 0 0;
  color: var(--muted);
}
.quick-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}
.fact {
  padding: 1.05rem;
  border-radius: 20px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
}
.fact strong {
  display: block;
  font-size: 1.26rem;
  margin-bottom: .18rem;
}

.section { padding: 4.5rem 0; }
.section-tight { padding: 2rem 0 3.8rem; }
.page-hero { padding: 3rem 0 1.1rem; }
.page-hero h1 { max-width: 13ch; margin-top: .95rem; }
.page-hero .lead { max-width: 62ch; }
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1.35rem;
}
.section-title {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  letter-spacing: -.03em;
}
.section-copy {
  margin: .75rem 0 0;
  max-width: 70ch;
  color: var(--muted);
}
.grid-2,
.grid-3 {
  display: grid;
  gap: 1.2rem;
  align-items: stretch;
}
.grid-2 > *,
.grid-3 > *,
.metric-strip > *,
.quick-facts > *,
.timeline > * {
  height: 100%;
}
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.stat-card,
.info-card,
.contact-card,
.project-card,
.skill-card {
  padding: 1.35rem;
}
.stat-card strong {
  display: block;
  font-size: 1.55rem;
  margin-bottom: .15rem;
}
.muted { color: var(--muted); }

.badges,
.tags,
.contact-stack {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
}
.badge,
.tag {
  display: inline-flex;
  align-items: center;
  padding: .48rem .8rem;
  border-radius: 999px;
  font-size: .92rem;
}
.badge {
  color: #dfe6ff;
  background: rgba(123,143,255,.12);
  border: 1px solid rgba(123,143,255,.24);
}
.tag {
  color: var(--muted-2);
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.08);
}
.list-clean {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .82rem;
}
.list-clean li {
  position: relative;
  padding-left: 1.15rem;
  color: var(--muted);
}
.list-clean li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .72rem;
  width: .42rem;
  height: .42rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.timeline {
  display: grid;
  gap: 1rem;
}
.timeline-item {
  padding: 1.35rem;
  border-radius: 24px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.08);
}
.timeline-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  flex-wrap: wrap;
}
.timeline-top h3 {
  margin: 0;
  font-size: 1.12rem;
}
.timeline-top .when {
  color: var(--muted);
  font-size: .95rem;
  white-space: nowrap;
}
.metric-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1rem;
}
.metric {
  padding: 1.1rem;
  border-radius: 20px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
}
.metric strong {
  display: block;
  font-size: 1.32rem;
  margin-bottom: .12rem;
}
.resume-frame {
  width: 100%;
  min-height: 80vh;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px;
  background: white;
}
.split-highlight {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 1.2rem;
}
.callout {
  padding: 1.2rem 1.3rem;
  border-radius: 20px;
  background: rgba(70,215,191,.08);
  border: 1px solid rgba(70,215,191,.18);
  color: var(--muted-2);
}
.contact-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  padding: .95rem 1rem;
  border-radius: 16px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
}
.contact-link span:last-child {
  color: var(--muted);
  text-align: right;
}
.cta-banner {
  padding: 1.5rem;
  border-radius: 24px;
  background:
    radial-gradient(circle at left top, rgba(123,143,255,.18), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.1);
}
.cta-banner h2 { margin: 0 0 .5rem; font-size: 1.65rem; }
footer.site-footer {
  padding: 2rem 0 3rem;
  border-top: 1px solid rgba(255,255,255,.08);
  color: var(--muted);
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.subtle {
  color: var(--muted);
  font-size: .95rem;
}
hr.sep {
  border: 0;
  border-top: 1px solid rgba(255,255,255,.08);
  margin: 0;
}

@media (max-width: 980px) {
  .hero-grid,
  .grid-2,
  .grid-3,
  .split-highlight,
  .metric-strip,
  .quick-facts { grid-template-columns: 1fr; }
  h1, .page-hero h1 { max-width: none; }
}
@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + .5rem);
    right: 1rem;
    width: min(260px, calc(100% - 2rem));
    padding: .8rem;
    flex-direction: column;
    align-items: stretch;
    border-radius: 18px;
    background: rgba(8,16,29,.96);
    border: 1px solid rgba(255,255,255,.1);
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .hero { padding-top: 3.6rem; }
  h1, .page-hero h1 { font-size: clamp(2.25rem, 11vw, 3.4rem); }
  .contact-link { flex-direction: column; align-items: flex-start; }
  .contact-link span:last-child { text-align: left; }
}

.info-card h3, .skill-card h3, .project-card h3, .contact-card h3, .timeline-item h3 { margin: 0 0 .55rem; }
.project-card p + p, .contact-card p + p, .timeline-item p + p { margin-top: .65rem; }
.card-inner > * + *, .contact-card > * + *, .info-card > * + *, .skill-card > * + *, .project-card > * + * { margin-top: .95rem; }
.metric, .fact, .timeline-item, .contact-link, .cta-banner { transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.metric:hover, .fact:hover, .timeline-item:hover, .contact-link:hover, .cta-banner:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.14); }
.contact-stack { display: grid !important; gap: .9rem; }
.contact-link a { color: var(--muted-2); }
.contact-link a:hover { color: var(--text); }
.resume-note { margin-top: 1rem; color: var(--muted); max-width: 60ch; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: rgba(255,255,255,.06); padding: .14rem .4rem; border-radius: 8px; border: 1px solid rgba(255,255,255,.08); }
.footer-links a:hover, .inline-links a:hover { color: var(--text); }
@media (max-width: 980px) { .hero-panel { order: -1; max-width: 520px; } }
@media (max-width: 760px) { .container { width: min(calc(100% - 1.25rem), var(--max)); } .hero { padding-top: 3.4rem; } .btn { width: 100%; } .inline-links { gap: .65rem 1rem; } }
