:root {
  --bg: #0f172a;
  --bg-alt: #1a2744;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-strong: rgba(255, 255, 255, 0.07);
  --text: #e2e8f0;
  --muted: #94a3b8;
  --accent: #3b82f6;
  --accent-2: #10b981;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  --maxw: 1100px;
}

body.light {
  --bg: #fbfcfe;
  --bg-alt: #f5f8fc;
  --surface: rgba(15, 23, 42, 0.03);
  --surface-strong: rgba(15, 23, 42, 0.06);
  --text: #1e293b;
  --muted: #475569;
  --accent: #2563eb;
  --accent-2: #059669;
  --border: rgba(15, 23, 42, 0.06);
  --shadow: 0 4px 12px rgba(2, 6, 23, 0.05);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  letter-spacing: 0.3px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: min(calc(100% - 2rem), var(--maxw));
  margin: 0 auto;
}

.section {
  padding: 6rem 0;
}

.alt {
  background: linear-gradient(180deg, var(--bg-alt), var(--bg));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.brand {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--accent);
  color: white;
  font-weight: 700;
  font-size: 0.95rem;
}

.nav {
  display: flex;
  gap: 1.25rem;
}

.nav a {
  color: var(--muted);
  font-weight: 600;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--text);
}

.nav-actions {
  display: flex;
  gap: .75rem;
}

.theme-toggle,
.menu-toggle {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  width: 42px;
  height: 42px;
  border-radius: 12px;
  cursor: pointer;
}

.menu-toggle { display: none; }

.hero {
  padding-top: 5rem;
}

.hero-grid,
.two-col,
.contact-grid {
  display: grid;
  gap: 3rem;
}

.hero-grid {
  grid-template-columns: 1.2fr .8fr;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: .82rem;
}

h1, h2, h3 {
  line-height: 1.2;
  margin: 0 0 1.25rem;
  font-weight: 700;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: 1.2rem; }

.hero-title {
  font-size: 1.35rem;
  color: var(--text);
  font-weight: 700;
}

.hero-summary,
.section p,
.card p,
.project-card p,
.timeline-content p {
  color: var(--muted);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1.5rem 0 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .9rem 1.2rem;
  border-radius: 14px;
  font-weight: 700;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: white;
  border: 1px solid transparent;
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.stats,
.cards,
.project-list,
.contact-grid {
  display: grid;
  gap: 1.25rem;
}

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

.stat-card,
.card,
.project-card,
.contact-card,
.avatar-card,
.highlight-box,
.timeline-content {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 12px;
  box-shadow: none;
}

.stat-card,
.card,
.project-card,
.contact-card,
.avatar-card,
.highlight-box {
  padding: 1.25rem;
}

.stat-card strong {
  display: block;
  font-size: 1.55rem;
  margin-bottom: .35rem;
}

.stat-card span { color: var(--muted); font-size: .94rem; }

.avatar-card {
  padding: 2rem;
}

.avatar {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  font-weight: 700;
  background: var(--accent);
  color: white;
  margin-bottom: 1.5rem;
}

.avatar-card ul,
.project-card ul {
  color: var(--muted);
  padding-left: 1.1rem;
  margin: 0;
}

.section-heading {
  margin-bottom: 2rem;
}

.two-col {
  grid-template-columns: repeat(2, 1fr);
}

.three-up {
  grid-template-columns: repeat(3, 1fr);
}

.project-topline,
.contact-label,
.timeline-date {
  color: var(--accent);
  font-size: .9rem;
  font-weight: 700;
}

.timeline {
  display: grid;
  gap: 1rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1rem;
  align-items: start;
}

.timeline-content {
  padding: 1.1rem 1.25rem;
}

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

.contact-card strong {
  display: block;
  margin-top: .25rem;
}

.site-footer {
  padding: 1.5rem 0 3rem;
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}

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

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

@media (max-width: 960px) {
  .hero-grid,
  .two-col,
  .three-up,
  .contact-grid,
  .timeline-item,
  .stats {
    grid-template-columns: 1fr;
  }

  .nav {
    position: absolute;
    top: 72px;
    right: 1rem;
    left: 1rem;
    display: none;
    flex-direction: column;
    padding: 1rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
  }

  .nav.open { display: flex; }
  .menu-toggle { display: inline-grid; place-items: center; }
}
