:root {
  --bg: #0a0d12;
  --bg-soft: #0f141c;
  --surface: #121923;
  --surface-2: #18212d;
  --text: #f1f5f9;
  --muted: #9aa7b7;
  --border: rgba(255,255,255,.10);
  --accent: #63e6be;
  --accent-2: #8ab4ff;
  --shadow: 0 20px 60px rgba(0,0,0,.24);
  --max: 1120px;
}

:root.light {
  --bg: #f5f7fa;
  --bg-soft: #eef1f5;
  --surface: #ffffff;
  --surface-2: #eef2f6;
  --text: #111827;
  --muted: #5c6878;
  --border: rgba(15,23,42,.12);
  --accent: #087f5b;
  --accent-2: #245cc7;
  --shadow: 0 20px 60px rgba(15,23,42,.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.65; }
a { color: inherit; }
.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }

.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); }
.nav-wrap { min-height: 72px; display: flex; align-items: center; gap: 28px; }
.brand { text-decoration: none; font-weight: 800; letter-spacing: -.04em; font-size: 1.05rem; margin-right: auto; }
.brand span { color: var(--muted); font-weight: 600; }
.nav { display: flex; gap: 22px; }
.nav a { color: var(--muted); text-decoration: none; font-size: .92rem; }
.nav a:hover { color: var(--text); }
.theme-toggle { border: 1px solid var(--border); background: transparent; color: var(--text); width: 38px; height: 38px; border-radius: 10px; cursor: pointer; }

.hero { min-height: 700px; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 72px; padding-top: 72px; padding-bottom: 90px; }
.eyebrow, .section-label, .project-type { font-size: .74rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.eyebrow { margin: 0 0 22px; }
.hero h1 { margin: 0; font-size: clamp(3.3rem, 7vw, 6rem); line-height: .99; letter-spacing: -.065em; max-width: 780px; }
.hero h1 span { color: var(--accent); }
.hero-text { color: var(--muted); font-size: 1.16rem; max-width: 650px; margin: 28px 0 34px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 18px; border-radius: 10px; text-decoration: none; font-weight: 750; font-size: .92rem; border: 1px solid var(--border); transition: transform .18s ease, background .18s ease, border-color .18s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--accent); color: #07130f; border-color: var(--accent); }
.button-secondary { background: transparent; color: var(--text); }
.button-light { background: #f1f5f9; color: #0a0d12; border-color: #f1f5f9; }
.text-link { color: var(--muted); font-weight: 700; text-decoration: none; margin-left: 4px; }
.text-link:hover { color: var(--text); }

.hero-card { background: linear-gradient(145deg, var(--surface), var(--bg-soft)); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; transform: rotate(1deg); }
.terminal-top { padding: 12px 15px; display: flex; gap: 7px; border-bottom: 1px solid var(--border); }
.terminal-top span { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); opacity: .45; }
.terminal-body { padding: 28px; font: 500 .92rem/1.9 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
.prompt { color: var(--accent); }.path { color: var(--accent-2); }.muted { color: var(--muted); margin-bottom: 14px; }.code-list { display: grid; gap: 5px; color: var(--text); padding: 12px 0; }.code-list span::before { content: "› "; color: var(--accent); }.cursor { color: var(--accent); animation: blink 1s steps(2, start) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.section { padding: 105px 0; }
.section-rule { border-top: 1px solid var(--border); }
.split { display: grid; grid-template-columns: .8fr 1.2fr; gap: 85px; }
.section h2 { margin: 8px 0 0; font-size: clamp(2rem, 4vw, 3.5rem); letter-spacing: -.045em; line-height: 1.05; }
.section-copy { color: var(--muted); font-size: 1.08rem; }
.section-copy p { margin-top: 0; }
.section-heading { max-width: 730px; margin-bottom: 52px; }.heading-light h2 { color: #fff; }.heading-light > p:last-child { color: #aab5c3; max-width: 650px; }
.section-dark { background: #0d1219; border-top: 1px solid rgba(255,255,255,.07); border-bottom: 1px solid rgba(255,255,255,.07); }

.timeline { display: grid; gap: 0; }
.timeline-item { display: grid; grid-template-columns: 150px 1fr; gap: 38px; padding: 34px 0; border-top: 1px solid var(--border); }
.timeline-item:last-child { border-bottom: 1px solid var(--border); }
.timeline-date { color: var(--accent); font-size: .74rem; font-weight: 800; letter-spacing: .16em; padding-top: 7px; }
.timeline-content h3 { margin: 0; font-size: 1.35rem; letter-spacing: -.02em; }.timeline-company { margin: 3px 0 15px; color: var(--muted); }.timeline-content p:not(.timeline-company) { color: var(--muted); max-width: 790px; margin: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }.tags span { padding: 5px 9px; border: 1px solid var(--border); border-radius: 999px; font-size: .76rem; color: var(--muted); }

.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }.project-card { display: grid; grid-template-columns: 46px 1fr; gap: 20px; padding: 30px; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.09); border-radius: 16px; }.project-card.featured { grid-column: span 2; }
.project-number { color: var(--accent); font: 800 1rem ui-monospace, monospace; }.project-card h3 { margin: 4px 0 12px; font-size: 1.45rem; letter-spacing: -.025em; }.project-card p:not(.project-type) { color: #aab5c3; margin: 0; }.project-link { display: inline-block; margin-top: 23px; color: #fff; font-weight: 750; text-decoration: none; }.project-link:hover { color: var(--accent); }.projects-footer { margin-top: 28px; }

.skill-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }.skill-card { padding: 28px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }.skill-icon { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 9px; background: var(--surface-2); color: var(--accent); font: 800 .76rem ui-monospace, monospace; }.skill-card h3 { margin: 20px 0 8px; font-size: 1.25rem; }.skill-card p { margin: 0; color: var(--muted); }

.contact-section { padding-top: 85px; padding-bottom: 110px; }.contact-box { display: flex; align-items: center; justify-content: space-between; gap: 45px; padding: 45px; border: 1px solid var(--border); border-radius: 18px; background: linear-gradient(145deg, var(--surface), var(--bg-soft)); }.contact-box h2 { max-width: 650px; }.contact-box p:last-child { color: var(--muted); max-width: 600px; }.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; flex: 0 0 auto; }
.footer { border-top: 1px solid var(--border); padding: 25px 0 32px; color: var(--muted); font-size: .86rem; }.footer-wrap { display: flex; justify-content: space-between; gap: 20px; }

@media (max-width: 850px) {
  .nav { display: none; }
  .hero { grid-template-columns: 1fr; gap: 45px; padding-top: 58px; min-height: auto; }
  .hero-card { max-width: 720px; transform: none; }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .timeline-item { grid-template-columns: 1fr; gap: 12px; }
  .project-grid, .skill-grid { grid-template-columns: 1fr; }
  .project-card.featured { grid-column: span 1; }
  .contact-box { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .container { width: min(var(--max), calc(100% - 28px)); }
  .hero h1 { font-size: clamp(3rem, 15vw, 4.5rem); }
  .section { padding: 78px 0; }
  .hero { padding-bottom: 70px; }
  .project-card { grid-template-columns: 1fr; gap: 12px; padding: 24px; }
  .contact-box { padding: 30px 24px; }
  .footer-wrap { flex-direction: column; }
}
