:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --ink: #111827;
  --muted: #5f6b7a;
  --line: #dfe5ee;
  --accent: #2667ff;
  --accent-dark: #1647b8;
  --navy: #0d1628;
  --soft: #edf3ff;
  --radius: 20px;
  --shadow: 0 20px 60px rgba(22, 35, 61, 0.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(135deg, #f8fbff 0%, #eef6ff 50%, #e3f0ff 100%);
  background-attachment: fixed;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245,247,251,0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(223,229,238,0.8);
}
.nav-wrap { height: 72px; display: flex; align-items: center; justify-content: space-between; }
.brand { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.04em; }
.brand span { color: var(--accent); }
.nav { display: flex; gap: 28px; font-weight: 600; color: var(--muted); }
.nav a:hover { color: var(--ink); }
.nav-toggle { display: none; border: 1px solid var(--line); background: var(--surface); padding: 8px 12px; border-radius: 10px; }

.hero { padding: 96px 0 84px; background: radial-gradient(circle at 85% 20%, rgba(205, 225, 255, 0.9) 0, transparent 30%), linear-gradient(135deg, #f8fbff 0%, #eef6ff 50%, #e3f0ff 100%); }
.hero-grid { display: grid; grid-template-columns: 1.35fr 0.65fr; gap: 64px; align-items: center; }
.eyebrow, .section-kicker, .card-label {
  font-family: "JetBrains Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
}
h1 { font-size: clamp(2.1rem, 4.2vw, 3.9rem); line-height: 1.05; letter-spacing: -0.045em; margin: 12px 0 22px; max-width: 760px; }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.08; letter-spacing: -0.04em; margin: 10px 0 20px; }
h3 { font-size: 1.15rem; line-height: 1.3; margin: 0 0 8px; }
.hero-copy, .section-intro, .contact-copy { color: var(--muted); font-size: 1.08rem; max-width: 760px; }
.cta-row, .contact-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border-radius: 12px; font-weight: 700; border: 1px solid transparent; cursor: pointer; transition: 0.2s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--accent); color: white; box-shadow: 0 10px 28px rgba(38,103,255,0.22); }
.button-primary:hover { background: var(--accent-dark); }
.button-secondary { background: var(--surface); border-color: var(--line); color: var(--ink); }
.button-secondary:hover { border-color: #b7c1cf; }
.hero-meta { padding: 0; margin: 30px 0 0; list-style: none; display: flex; gap: 14px 26px; flex-wrap: wrap; color: var(--muted); font-size: 0.92rem; }
.hero-meta li::before { content: "✓"; color: var(--accent); font-weight: 800; margin-right: 7px; }
.hero-card { background: var(--navy); color: white; border-radius: 28px; padding: 34px; box-shadow: var(--shadow); }
.hero-card h2 { font-size: 2rem; letter-spacing: -0.035em; }
.hero-card p { color: #c7d2e5; }
.tech-cloud { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 28px; }
.tech-cloud span { border: 1px solid #31405b; color: #dbe7fb; border-radius: 999px; padding: 7px 10px; font-size: 0.78rem; }

.section { padding: 88px 0; }
.section-alt { background: var(--surface); }
.two-col { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 72px; }
.prose { color: var(--muted); font-size: 1.05rem; }
.prose p:first-child { margin-top: 0; }
.section-heading-row { display: flex; justify-content: space-between; gap: 40px; align-items: end; margin-bottom: 36px; }
.text-link { color: var(--accent); font-weight: 700; }

.timeline { border-top: 1px solid var(--line); }
.timeline-item { display: grid; grid-template-columns: 180px 1fr; gap: 36px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.timeline-date { font-family: "JetBrains Mono", monospace; color: var(--muted); font-size: 0.86rem; }
.timeline-item p { margin: 0; color: var(--muted); }
.education-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 30px; }
.info-card { border: 1px solid var(--line); background: var(--bg); border-radius: var(--radius); padding: 24px; }
.info-card p:last-child { color: var(--muted); margin-bottom: 0; }

.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.project-card { min-height: 290px; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: 0 10px 36px rgba(22,35,61,0.05); }
.project-card.featured { background: var(--navy); color: white; }
.project-card.featured p { color: #c7d2e5; }
.project-number { font-family: "JetBrains Mono", monospace; color: var(--accent); margin-bottom: 42px; }
.project-card p { color: var(--muted); }
.project-card .stack { margin-top: auto; font-family: "JetBrains Mono", monospace; font-size: 0.76rem; color: #7c899b; }

.contact-section { background: var(--navy); color: white; }
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 70px; align-items: start; }
.contact-section .section-kicker { color: #8fb2ff; }
.contact-copy { color: #c7d2e5; }
.light-link { color: white; }
.contact-section .button-secondary { background: white; color: var(--navy); border-color: white; }
.contact-section .button-secondary:hover { background: #eef3fb; border-color: #eef3fb; }
.contact-form { background: white; color: var(--ink); border-radius: 24px; padding: 28px; }
.contact-form label { display: block; font-weight: 600; margin-bottom: 18px; }
.contact-form input, .contact-form textarea { width: 100%; margin-top: 7px; border: 1px solid var(--line); border-radius: 10px; padding: 12px 13px; background: #fbfcfe; outline: none; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(38,103,255,0.12); }
.form-note { color: var(--muted); font-size: 0.82rem; margin-bottom: 0; }
.form-status { min-height: 1.5em; margin: 14px 0 0; font-size: 0.9rem; font-weight: 600; }
.form-status.success { color: #166534; }
.form-status.error { color: #b42318; }
.bot-field { position: absolute; overflow: hidden; clip: rect(0 0 0 0); height: 1px; width: 1px; margin: -1px; padding: 0; border: 0; }

.site-footer { background: #08101f; color: #9ba9bd; border-top: 1px solid #202c40; }
.footer-wrap { min-height: 84px; display: flex; justify-content: space-between; align-items: center; gap: 20px; font-size: 0.9rem; }

@media (max-width: 900px) {
  .hero-grid, .two-col, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { padding-top: 72px; }
}

@media (max-width: 680px) {
  .container { width: min(100% - 28px, 1120px); }
  .nav-toggle { display: inline-flex; }
  .nav { position: absolute; top: 71px; left: 14px; right: 14px; display: none; flex-direction: column; gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: 0; }
  .hero { padding: 58px 0 62px; }
  .hero-card { padding: 26px; }
  .section { padding: 66px 0; }
  .section-heading-row { display: block; }
  .project-grid, .education-grid { grid-template-columns: 1fr; }
  .timeline-item { grid-template-columns: 1fr; gap: 8px; }
  .footer-wrap { padding: 22px 0; align-items: flex-start; flex-direction: column; }
}
