:root {
  --bg: #0b0e14;
  --bg-alt: #11141c;
  --surface: #161b26;
  --border: #232a3a;
  --text: #e8ecf3;
  --muted: #9aa6bf;
  --accent: #6c8cff;
  --accent-2: #5eead4;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

.container {
  width: min(920px, 90%);
  margin: 0 auto;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 14, 20, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.brand {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--text);
  text-decoration: none;
}
.brand-dot { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    padding: 20px 8%;
    gap: 18px;
  }
  .nav-links.open { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 120px 0 96px;
  background:
    radial-gradient(600px 300px at 15% 0%, rgba(108, 140, 255, 0.18), transparent 60%),
    radial-gradient(500px 260px at 85% 10%, rgba(94, 234, 212, 0.12), transparent 60%);
}
.hero-inner { text-align: center; }

.eyebrow {
  color: var(--accent-2);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  margin-bottom: 12px;
}

.hero-name {
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.hero-sub {
  margin-top: 12px;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-tagline {
  max-width: 640px;
  margin: 24px auto 0;
  color: var(--text);
  font-size: 1.1rem;
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: #7d99ff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(108, 140, 255, 0.35);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-accent {
  background:
    radial-gradient(500px 260px at 80% 20%, rgba(108, 140, 255, 0.2), transparent 60%);
}

.section-title {
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  font-weight: 700;
  margin-bottom: 24px;
}
.section-lead { max-width: 720px; }

.eyebrow,
.section-title { text-align: left; }
.hero-inner .eyebrow, .hero-inner .section-title { text-align: center; }
.contact-inner .section-title { text-align: center; }

/* ---------- Cards / Grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.card-title { font-size: 1.05rem; margin-bottom: 14px; color: var(--accent-2); }
.card-list { list-style: none; display: flex; flex-direction: column; gap: 10px; color: var(--text); }
.card-list li::before {
  content: "›";
  color: var(--accent);
  font-weight: 700;
  margin-right: 10px;
}

.meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

/* ---------- Projects ---------- */
.project-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}
.project-head .card-title { margin-bottom: 0; }

.badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #06281f;
  background: var(--accent-2);
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.badge-current {
  color: #fff;
  background: var(--accent);
}

.project-link {
  display: inline-block;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 12px;
}
.project-link:hover { text-decoration: underline; }

.project-desc {
  color: var(--text);
  margin-bottom: 16px;
}

/* ---------- Timeline ---------- */
.timeline { display: flex; flex-direction: column; gap: 14px; }
.timeline-item {
  display: flex;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.timeline-badge {
  font-size: 1.6rem;
  line-height: 1;
  padding-top: 2px;
}
.timeline-body h3 { font-size: 1.05rem; margin-bottom: 4px; }
.timeline-body p { color: var(--text); }

/* ---------- Education ---------- */
.edu-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.edu-head h3 { font-size: 1.15rem; }

/* ---------- Contact ---------- */
.contact-inner { text-align: center; }
.contact-p { color: var(--text); margin-bottom: 24px; }
.contact-list {
  list-style: none;
  margin: 0 auto 28px;
  max-width: 420px;
  display: grid;
  gap: 10px;
}
.contact-list .label {
  display: inline-block;
  width: 88px;
  color: var(--accent-2);
  font-weight: 600;
}
.contact-list a { color: var(--text); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 28px 0; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.9rem;
}
.footer-top {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

a { color: var(--accent-2); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}