/* ── Reset & Variables ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0a0a;
  --bg-alt: #111111;
  --surface: #161616;
  --surface-raised: #1c1c1c;
  --border: #262626;
  --border-hover: #3a3a3a;
  --text: #f5f5f5;
  --text-muted: #888888;
  --text-subtle: #555555;
  --green: #22c55e;
  --green-dim: #16a34a;
  --green-faint: rgba(34, 197, 94, 0.08);
  --green-faint-hover: rgba(34, 197, 94, 0.14);
  --radius: 8px;
  --nav-height: 60px;
  --transition: .18s ease;
}

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-height); }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Layout ── */
.container { max-width: 960px; margin: 0 auto; padding: 0 28px; }

.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }

.section-title {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 48px;
}

/* ── Nav ── */
.nav-wrapper {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-height);
  display: flex;
  align-items: center;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-logo {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  letter-spacing: .1em;
  margin-right: auto;
}

.nav-logo span { color: var(--green); }

.nav-links {
  list-style: none;
  display: flex;
  gap: 32px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: color var(--transition);
}

.nav-links a:hover,
.nav-links a.active { color: var(--green); }

.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 10px;
  cursor: pointer;
  font-size: .9rem;
  color: var(--text-muted);
  transition: border-color var(--transition), color var(--transition);
}

.theme-toggle:hover { border-color: var(--green); color: var(--green); }

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

/* ── Hero ── */
.hero { padding-top: 112px; padding-bottom: 112px; border-bottom: 1px solid var(--border); }

.hero-inner {
  display: flex;
  align-items: center;
  gap: 72px;
}

.hero-text { flex: 1; }

.hero-greeting {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 16px;
}

.hero-name {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: #ffffff;
  margin-bottom: 10px;
}

.hero-title {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-bottom: 28px;
}

.hero-bio {
  color: var(--text-muted);
  font-size: .95rem;
  max-width: 500px;
  margin-bottom: 40px;
  line-height: 1.8;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 11px 24px;
  border-radius: 6px;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-decoration: none;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  cursor: pointer;
}

.btn-primary {
  background: var(--green);
  color: #000000;
  border: 1px solid var(--green);
}

.btn-primary:hover { background: #16a34a; border-color: #16a34a; }

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

.btn-outline:hover { border-color: var(--green); color: var(--green); }

/* Photo */
.hero-photo { flex-shrink: 0; }

.photo-placeholder {
  width: 200px;
  height: 200px;
  border-radius: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--green);
  font-size: 2.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: .05em;
}

.hero-photo img {
  width: 200px;
  height: 200px;
  border-radius: 4px;
  object-fit: cover;
  border: 1px solid var(--border);
}

/* ── Timeline ── */
.timeline { display: flex; flex-direction: column; gap: 2px; }

.timeline-item { position: relative; }

.timeline-marker { display: none; }

.timeline-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  transition: border-color var(--transition), background var(--transition);
}

.timeline-content:hover {
  border-color: var(--green);
  background: var(--surface-raised);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.job-title {
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 3px;
}

.job-company {
  font-size: .85rem;
  color: var(--text-muted);
}

.job-dates {
  font-size: .78rem;
  color: var(--green);
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
  padding-top: 2px;
}

.job-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.job-bullets li {
  font-size: .88rem;
  color: var(--text-muted);
  padding-left: 16px;
  position: relative;
  line-height: 1.65;
}

.job-bullets li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--text-subtle);
  font-size: .75rem;
}

/* ── Skills ── */
.skills-groups { display: flex; flex-direction: column; gap: 40px; }

.skill-group-title {
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--text-subtle);
  margin-bottom: 14px;
}

.skill-tags { display: flex; flex-wrap: wrap; gap: 8px; }

.tag {
  background: var(--green-faint);
  color: var(--green);
  padding: 6px 14px;
  border-radius: 4px;
  font-size: .82rem;
  font-weight: 500;
  border: 1px solid rgba(34, 197, 94, 0.2);
  transition: background var(--transition), border-color var(--transition);
  cursor: default;
}

.tag:hover {
  background: var(--green-faint-hover);
  border-color: rgba(34, 197, 94, 0.4);
}

/* ── Education ── */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.edu-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color var(--transition), background var(--transition);
}

.edu-card:hover {
  border-color: var(--green);
  background: var(--surface-raised);
}

.edu-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  margin-top: 1px;
  opacity: .7;
}

.edu-degree {
  font-size: .95rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 5px;
}

.edu-institution {
  font-size: .82rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.edu-dates {
  font-size: .78rem;
  color: var(--green);
  font-weight: 500;
}

/* ── Contact ── */
.contact-inner { text-align: center; }
.contact-inner .section-title { display: block; }

.contact-sub {
  color: var(--text-muted);
  margin-bottom: 40px;
  font-size: .95rem;
}

.contact-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 28px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: .9rem;
  font-weight: 500;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}

.contact-card:hover {
  border-color: var(--green);
  color: var(--green);
  background: var(--green-faint);
}

.contact-icon {
  font-size: 1rem;
  font-weight: 700;
  color: var(--green);
}

/* ── Footer ── */
.footer {
  padding: 28px 0;
  border-top: 1px solid var(--border);
}

.footer p {
  font-size: .78rem;
  color: var(--text-subtle);
  text-align: center;
  letter-spacing: .04em;
}

/* ── Divider line between sections ── */
.section { border-bottom: 1px solid var(--border); }
.section:last-of-type { border-bottom: none; }

/* ── Responsive ── */
@media (max-width: 680px) {
  .hero-inner { flex-direction: column-reverse; gap: 36px; text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-bio { margin: 0 auto 40px; }
  .hero { padding-top: 72px; padding-bottom: 72px; }
  .section { padding: 72px 0; }

  .nav-links {
    display: none;
    flex-direction: column;
    gap: 0;
  }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 20px 28px;
    gap: 20px;
  }
  .nav-burger { display: block; }
  .nav { position: relative; }

  .timeline-header { flex-direction: column; gap: 6px; }
  .timeline-content { padding: 20px; }
}
