:root {
  color-scheme: light;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  scroll-behavior: smooth;
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-strong: #e7eef4;
  --text: #102a43;
  --muted: #4b6378;
  --accent: #2563eb;
  --accent-soft: #e0efff;
  --border: rgba(16, 42, 67, 0.12);
  --shadow: 0 24px 80px rgba(16, 42, 67, 0.08);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
}

body {
  line-height: 1.7;
  font-size: 1rem;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  border: none;
  background: transparent;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(248, 250, 252, 0.92);
  border-bottom: 1px solid rgba(16, 42, 67, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  font-weight: 700;
  letter-spacing: -0.03em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.95rem;
  transition: color 0.25s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  width: 2rem;
  height: 2rem;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 999px;
}

.hero {
  padding: 4.5rem 0 3rem;
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
}

.hero-copy {
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.5rem, 4vw, 3.6rem);
  line-height: 1.02;
}

.hero-title,
.section p,
.project-card p,
.contact-card p,
.education-item p {
  color: var(--muted);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #ffffff;
  background: var(--accent);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.18);
}

.btn-secondary {
  color: var(--accent);
  background: var(--accent-soft);
}

.hero-stats {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat-card {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.stat-value {
  margin: 0 0 0.5rem;
  font-size: 2rem;
  font-weight: 700;
}

.stat-label {
  margin: 0;
  color: var(--muted);
}

.section {
  padding: 4rem 0;
}

.section-alt {
  background: #edf2f7;
}

.section-overline {
  margin: 0 0 1rem;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

h2 {
  margin: 0 0 1.5rem;
  font-size: clamp(2rem, 2.5vw, 2.6rem);
}

.section-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 2fr) 1fr;
}

.section-card,
.contact-card,
.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 1.75rem;
  box-shadow: 0 18px 45px rgba(16, 42, 67, 0.05);
}

.section-card h3,
.contact-card h3,
.project-card h3 {
  margin-top: 0;
}

.section-card ul,
.education-item ul {
  padding-left: 1.25rem;
  margin: 1rem 0 0;
}

.section-card li,
.timeline-item li,
.contact-list div {
  margin-bottom: 0.75rem;
}

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

.timeline-item {
  padding: 1.75rem;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.timeline-header {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1rem;
}

.timeline-header h3 {
  margin: 0;
  font-size: 1.15rem;
}

.timeline-header span {
  color: var(--accent);
  font-weight: 600;
}

.timeline-item p {
  margin: 0 0 1rem;
}

.timeline-item ul {
  margin: 0;
  padding-left: 1.25rem;
}

.education-item {
  margin-bottom: 1.5rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.skills-grid span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1rem;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  font-weight: 600;
}

.project-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.project-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.project-note {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.contact-list {
  display: grid;
  gap: 1rem;
}

.contact-list strong {
  display: block;
  margin-bottom: 0.35rem;
}

/* Contact form styles */
.contact-form {
  display: grid;
  gap: 0.75rem;
}
.form-field {
  display: flex;
  flex-direction: column;
}
.form-field label {
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--muted);
}
.form-input,
.form-textarea {
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 0.95rem;
}
.form-textarea { resize: vertical; }
.form-submit { padding: 0.8rem 1.25rem; }
.form-message { margin-top: 0.5rem; color: var(--muted); font-size: 0.95rem; }
.form-note { margin-top: 0.5rem; color: var(--muted); font-size: 0.85rem; }

/* Honeypot: visually hide but keep in DOM for bots to fill */
.honeypot-field { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.honeypot { border: none; padding: 0; margin: 0; }
.visually-hidden { position: absolute !important; height: 1px; width: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

.site-footer {
  padding: 2rem 0;
  border-top: 1px solid rgba(16, 42, 67, 0.08);
  background: var(--surface);
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .section-grid,
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    flex-direction: column;
    width: 100%;
    display: none;
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 18px;
    border: 1px solid rgba(16, 42, 67, 0.08);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 0.75rem 0;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
