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

:root {
  --bg:       #f9f9f9;
  --surface:  #ffffff;
  --text:     #111111;
  --muted:    #666666;
  --line:     #e5e5e5;
  --tag-bg:   #f0f0f0;
  --nav-h:    60px;
  --max-w:    740px;
  --font:     'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 0% 0%, rgba(248,177,51,0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 100% 20%, rgba(47,69,83,0.08) 0%, transparent 45%),
    radial-gradient(ellipse at 30% 80%, rgba(248,177,51,0.07) 0%, transparent 40%),
    radial-gradient(ellipse at 90% 90%, rgba(47,69,83,0.06) 0%, transparent 40%),
    radial-gradient(ellipse at 50% 40%, rgba(248,177,51,0.04) 0%, transparent 50%),
    #ffffff;
  background-attachment: fixed;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

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

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.02em;
  transition: color 0.2s;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

.nav-links a:hover  { color: var(--text); }
.nav-links a.active { color: var(--text); border-bottom-color: var(--text); }

/* ── Section base ───────────────────────────────── */
section {
  padding: calc(var(--nav-h) + 88px) 40px 88px;
  display: flex;
  justify-content: center;
}

.section-inner {
  width: 100%;
  max-width: var(--max-w);
}

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 44px;
}

/* ── Scroll-reveal ──────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible       { opacity: 1; transform: none; }
.reveal-d1            { transition-delay: 0.10s; }
.reveal-d2            { transition-delay: 0.20s; }
.reveal-d3            { transition-delay: 0.30s; }

/* ── Hero ───────────────────────────────────────── */
#hero {
  min-height: 100vh;
  align-items: center;
  padding-top: var(--nav-h);
}

.hero-name {
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
}
.hero-name strong { font-weight: 600; }

.hero-title {
  font-size: 1.05rem;
  color: var(--muted);
  font-weight: 400;
  max-width: 460px;
  margin-bottom: 44px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 6px;
  border: 1px solid var(--text);
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font);
  letter-spacing: 0.02em;
}
.btn-primary  { background: var(--text); color: #fff; }
.btn-primary:hover  { background: #2a2a2a; border-color: #2a2a2a; }
.btn-outline  { background: transparent; color: var(--text); }
.btn-outline:hover  { background: var(--text); color: #fff; }

/* ── Experience timeline ────────────────────────── */
.timeline { position: relative; }

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

.timeline-item {
  padding-left: 28px;
  position: relative;
}
.timeline-item + .timeline-item { margin-top: 2px; }

.timeline-item::before {
  content: '';
  position: absolute;
  left: -3px; top: 24px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--text);
  transition: background 0.2s;
}
.timeline-item.open::before { background: var(--text); }

.timeline-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  cursor: pointer;
  border-bottom: 1px solid var(--line);
  user-select: none;
}

.timeline-role {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
}
.timeline-company {
  font-size: 13px;
  color: var(--muted);
  margin-top: 3px;
  transition: color 0.2s;
}
.timeline-header:hover .timeline-company { color: var(--text); }

.timeline-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.timeline-date {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.timeline-toggle {
  font-size: 20px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1;
  transition: transform 0.3s ease;
}
.timeline-item.open .timeline-toggle { transform: rotate(45deg); }

.timeline-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.42s ease;
}
.timeline-item.open .timeline-body { max-height: 700px; }

.timeline-body-inner {
  padding: 20px 0 24px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.78;
}
.timeline-body-inner p + p { margin-top: 12px; }

/* ── Skills ─────────────────────────────────────── */
.skill-tabs {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 28px;
}

.skill-tab {
  flex: 1;
  padding: 11px 14px;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  border-right: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  transition: background 0.18s, color 0.18s;
  user-select: none;
}
.skill-tab:last-child { border-right: none; }
.skill-tab:hover  { color: var(--text); }
.skill-tab.active { background: var(--text); color: #fff; }

.skill-panel { display: none; }
.skill-panel.active { display: block; }

.skill-panel p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.78;
}
.skill-panel p + p { margin-top: 12px; }

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

.tag {
  font-size: 12px;
  font-weight: 500;
  padding: 5px 13px;
  background: var(--tag-bg);
  border-radius: 100px;
  color: var(--text);
  letter-spacing: 0.01em;
}
.tag.cert::after { content: ' ✓'; color: #2d7d46; }

/* ── Contact ────────────────────────────────────── */
#contact { padding-bottom: 120px; }

.contact-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 24px;
  background: var(--surface);
  transition: background 0.15s;
  cursor: pointer;
}
.contact-item + .contact-item { border-top: 1px solid var(--line); }
.contact-item:hover { background: #f5f5f5; }

.contact-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--tag-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 15px;
  font-weight: 600;
}

.contact-lbl {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}
.contact-val { font-size: 14px; color: var(--text); }

/* ── Footer ─────────────────────────────────────── */
footer {
  border-top: 1px solid var(--line);
  padding: 28px 40px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}

/* ── Responsive ─────────────────────────────────── */
@media (max-width: 700px) {
  nav           { padding: 0 20px; }
  .nav-links    { gap: 18px; }
  .nav-links a  { font-size: 12px; }
  section       { padding: calc(var(--nav-h) + 64px) 20px 64px; }

  .skill-tab    { padding: 10px 8px; font-size: 12px; }
  footer        { padding: 24px 20px; }
}
