:root {
  --bg: #0c0c0c;
  --bg2: #111111;
  --bg3: #161616;
  --border: #222222;
  --text: #e8e6e1;
  --muted: #666666;
  --accent: #c8b89a;
  --accent2: #7a9e87;
  --accent3: #7f8fa6;
  --accent4: #0078d4;
  --mono: 'DM Mono', monospace;
  --serif: 'Instrument Serif', serif;
  --sans: 'DM Sans', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(12,12,12,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 40px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-name {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.05em;
  text-decoration: none;
}

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

.nav-links a {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

/* ── LAYOUT ── */
main {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 32px;
}

section {
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}
section:last-child { border-bottom: none; }

.section-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── HERO ── */
#hero {
  padding-top: 140px;
  padding-bottom: 80px;
  border-bottom: 1px solid var(--border);
}

.hero-eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-name {
  font-family: var(--serif);
  font-size: clamp(52px, 8vw, 80px);
  line-height: 1.0;
  color: var(--text);
  margin-bottom: 8px;
  font-weight: 400;
}

.hero-name em {
  font-style: italic;
  color: var(--accent);
}

.hero-tagline {
  font-family: var(--serif);
  font-size: clamp(18px, 3vw, 24px);
  color: var(--muted);
  font-style: italic;
  margin-bottom: 28px;
  font-weight: 400;
}

.hero-bio {
  font-size: 15px;
  color: #aaa;
  max-width: 520px;
  line-height: 1.75;
  margin-bottom: 36px;
}

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

.btn {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  padding: 10px 20px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-primary {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent);
  color: var(--bg);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  margin-top: 48px;
  border: 1px solid var(--border);
}

.stat {
  background: var(--bg);
  padding: 20px 24px;
}

.stat-val {
  font-family: var(--mono);
  font-size: 22px;
  color: var(--text);
  display: block;
  margin-bottom: 4px;
}

.stat-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
}

/* ── EXPERIENCE TIMELINE ── */
.timeline-wrap {
  position: relative;
}

.timeline {
  position: relative;
  padding-left: 20px;
  max-height: 520px;
  overflow: hidden;
  transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.timeline.expanded {
  max-height: 2000px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--border);
}

.timeline-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 160px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
  transition: opacity 0.4s;
  z-index: 2;
}
.timeline-fade.hidden { opacity: 0; }

.timeline-expand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.timeline-expand:hover { color: var(--accent); }
.timeline-expand::before {
  content: '';
  flex: 0 0 20px;
  height: 1px;
  background: currentColor;
  opacity: 0.3;
}
.timeline-expand::after {
  content: '';
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: 0.3;
}
.timeline-expand-icon {
  transition: transform 0.3s;
  font-style: normal;
}
.timeline-expand.open .timeline-expand-icon {
  transform: rotate(180deg);
}

.timeline-item {
  position: relative;
  padding: 0 0 40px 28px;
}
.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -4px;
  top: 8px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg);
}
.timeline-item:first-child .timeline-dot {
  border-color: var(--accent);
  background: var(--accent);
}

.timeline-period {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.timeline-role {
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 2px;
}

.timeline-company {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent2);
  margin-bottom: 10px;
}

.timeline-desc {
  font-size: 14px;
  color: #888;
  line-height: 1.65;
}

.badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  padding: 2px 8px;
  border: 1px solid var(--border);
  color: var(--muted);
  margin-right: 6px;
  margin-top: 8px;
  letter-spacing: 0.04em;
}
.badge-green {
  border-color: rgba(122,158,135,0.3);
  color: var(--accent2);
  background: rgba(122,158,135,0.06);
}

/* ── PROJECTS ── */
.projects-grid {
  display: grid;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.project-card {
  background: var(--bg);
  padding: 28px 28px;
  transition: background 0.2s;
  position: relative;
}
.project-card:hover { background: var(--bg2); }

.project-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.project-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}

.project-link {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.project-link:hover { color: var(--accent); }

.project-desc {
  font-size: 13.5px;
  color: #777;
  line-height: 1.65;
  margin-bottom: 14px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  background: var(--bg3);
  padding: 3px 8px;
  letter-spacing: 0.04em;
}

.placeholder-card {
  background: var(--bg);
  padding: 28px 28px;
  border: 1px dashed var(--border);
  opacity: 0.45;
}
.placeholder-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}
.placeholder-icon {
  width: 28px;
  height: 28px;
  border: 1px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--border);
  font-size: 16px;
}

/* ── CERTIFICATIONS ── */
.certs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.cert-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 24px;
  transition: border-color 0.2s, background 0.2s;
  text-decoration: none;
  display: block;
  position: relative;
  overflow: hidden;
}
.cert-card:hover {
  border-color: rgba(200,184,154,0.3);
  background: var(--bg3);
}
.cert-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 2px;
  height: 100%;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.2s;
}
.cert-card:hover::before { opacity: 1; }

.cert-card-aws::before { background: var(--accent); }
.cert-card-google::before { background: var(--accent2); }
.cert-card-bloomberg::before { background: var(--accent3); }
.cert-card-microsoft::before { background: var(--accent4); }

.cert-issuer {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cert-card-aws .cert-issuer { color: var(--accent); }
.cert-card-google .cert-issuer { color: var(--accent2); }
.cert-card-bloomberg .cert-issuer { color: var(--accent3); }
.cert-card-microsoft .cert-issuer { color: var(--accent4); }

.cert-arrow {
  font-size: 12px;
  color: var(--muted);
  transition: color 0.2s, transform 0.2s;
}
.cert-card:hover .cert-arrow {
  color: var(--accent);
  transform: translate(2px, -2px);
}

.cert-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.3;
}

.cert-meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}

.cert-placeholder {
  background: var(--bg);
  padding: 24px;
  border: 1px dashed rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  gap: 14px;
  opacity: 0.4;
}
.cert-placeholder-box {
  width: 36px;
  height: 36px;
  border: 1px dashed var(--border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--border);
}
.cert-placeholder-text {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}

/* ── SKILLS ── */
.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-chip {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 6px 14px;
  letter-spacing: 0.04em;
  transition: all 0.2s;
  cursor: default;
}
.skill-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ── CONTACT ── */
.contact-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.contact-note {
  font-size: 15px;
  color: #888;
  max-width: 480px;
  line-height: 1.7;
  margin-bottom: 28px;
}

/* ── CONTACT FORM ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 24px;
}

.form-field {
  background: var(--bg);
  padding: 0;
  display: flex;
  flex-direction: column;
}
.form-field.full { grid-column: 1 / -1; }

.form-field label {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 12px 16px 0;
}

.form-field input,
.form-field textarea {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  padding: 8px 16px 14px;
  resize: none;
  width: 100%;
  line-height: 1.5;
}
.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #333;
}
.form-field:focus-within {
  background: var(--bg2);
  outline: 1px solid rgba(200,184,154,0.2);
  outline-offset: -1px;
}

.form-submit {
  grid-column: 1 / -1;
  background: var(--bg);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
}

.form-note {
  font-family: var(--mono);
  font-size: 11px;
  color: #444;
}

.btn-submit {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  padding: 10px 24px;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  transition: all 0.2s;
}
.btn-submit:hover {
  background: var(--accent);
  color: var(--bg);
}
.btn-submit:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.form-success {
  display: none;
  grid-column: 1 / -1;
  background: rgba(122,158,135,0.06);
  border: 1px solid rgba(122,158,135,0.2);
  padding: 20px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent2);
  letter-spacing: 0.04em;
  text-align: center;
}

/* ── FOOTER ── */
footer {
  text-align: center;
  padding: 32px;
  font-family: var(--mono);
  font-size: 11px;
  color: #333;
  border-top: 1px solid var(--border);
  letter-spacing: 0.05em;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}
.hero-eyebrow { animation: fadeUp 0.6s 0.1s both; }
.hero-name    { animation: fadeUp 0.6s 0.2s both; }
.hero-tagline { animation: fadeUp 0.6s 0.3s both; }
.hero-bio     { animation: fadeUp 0.6s 0.35s both; }
.hero-links   { animation: fadeUp 0.6s 0.4s both; }
.hero-stats   { animation: fadeUp 0.6s 0.5s both; }

@media (max-width: 600px) {
  nav { padding: 0 20px; }
  main { padding: 0 20px; }
  .nav-links { gap: 18px; }
  .hero-stats { grid-template-columns: 1fr; }
  .certs-grid { grid-template-columns: 1fr; }
  .hero-name { font-size: 44px; }
}
