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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, "Segoe UI", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: #1f2328;
  background: #f7f8fa;
}

a { color: #3b82d4; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Layout ── */
.container {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

/* ── Hero ── */
.hero {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  padding: 52px 20px 44px;
}

.hero-inner {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 36px;
}

.avatar {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #e5e7eb;
  flex-shrink: 0;
}

.hero-text h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}

.tagline {
  font-size: 1.05rem;
  color: #3b82d4;
  font-weight: 600;
  margin-bottom: 4px;
}

.location {
  color: #57606a;
  font-size: 0.88rem;
  margin-bottom: 8px;
}

.hero-summary {
  font-size: 0.9rem;
  color: #444d56;
  margin-bottom: 18px;
  max-width: 480px;
}

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

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 9px 22px;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .15s;
}
.btn:hover { opacity: .85; text-decoration: none; }

.btn-primary {
  background: #3b82d4;
  color: #fff;
}

.btn-outline {
  border: 1.5px solid #3b82d4;
  color: #3b82d4;
  background: transparent;
}

/* ── Section Nav ── */
.section-nav {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-inner::-webkit-scrollbar { display: none; }

.nav-inner a {
  padding: 12px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #57606a;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}

.nav-inner a:hover {
  color: #3b82d4;
  border-bottom-color: #3b82d4;
}

/* ── Cards ── */
.card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 32px 36px;
  margin-top: 24px;
}

.card h2 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #57606a;
  margin-bottom: 20px;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 10px;
}

.card p {
  color: #444d56;
}

/* ── Skills ── */
.skill-group {
  margin-bottom: 18px;
}

.skill-group:last-child { margin-bottom: 0; }

.skill-group-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #9aa5b1;
  margin-bottom: 10px;
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag {
  background: #f0f4ff;
  color: #3b5bdb;
  border: 1px solid #c5d0fa;
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 0.82rem;
  font-weight: 500;
}

.skill-tag.small {
  padding: 3px 10px;
  font-size: 0.76rem;
}

/* ── Timeline (card style) ── */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.timeline-item {
  display: block;
  background: #f7f8fa;
  border: 1px solid #e5e7eb;
  border-left: 4px solid #3b82d4;
  border-radius: 8px;
  padding: 18px 20px 16px;
  position: relative;
}

/* hide the old dot — no longer needed */
.timeline-dot { display: none; }

.timeline-body {
  width: 100%;
}

.exp-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.company {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #ffffff;
  background: #3b82d4;
  padding: 3px 10px;
  border-radius: 20px;
  display: inline-block;
}

.period {
  font-size: 0.78rem;
  color: #9aa5b1;
  display: inline-block;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 0;
}

.timeline-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #1f2328;
  margin-bottom: 8px;
}

/* ── Job header (with award badge) ── */
.job-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.job-header h3 {
  margin-bottom: 0;
}

.award-badge {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  color: #92400e;
  font-size: 0.73rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
  align-self: flex-start;
}

/* ── Job list ── */
.job-list {
  list-style: none;
  margin: 12px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.job-list li {
  display: flex;
  align-items: baseline;
  gap: 9px;
  font-size: 0.88rem;
  color: #444d56;
  line-height: 1.65;
  padding: 5px 8px;
  border-radius: 5px;
  transition: background .12s;
}

.job-list li:hover {
  background: #f0f4ff;
}

.bullet-icon {
  color: #3b82d4;
  font-size: 0.82rem;
  flex-shrink: 0;
  line-height: 1.65;
}

.award-bullet {
  color: #d97706;
}

/* ── Projects ── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.project-card {
  background: #f7f8fa;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.project-org {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #3b82d4;
}

.project-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1f2328;
}

.project-period {
  font-size: 0.78rem;
  color: #9aa5b1;
}

.project-card p {
  font-size: 0.86rem;
  color: #57606a;
}

.project-impact {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.project-impact li {
  font-size: 0.82rem;
  color: #444d56;
  font-weight: 500;
}

.tech-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

/* ── Certifications ── */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.cert-card {
  background: #f7f8fa;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cert-issuer {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #3b82d4;
}

.cert-card h4 {
  font-size: 0.88rem;
  font-weight: 600;
  color: #1f2328;
  line-height: 1.4;
}

.cert-meta {
  font-size: 0.78rem;
  color: #57606a;
}

.cert-id {
  font-size: 0.72rem;
  color: #9aa5b1;
  font-family: monospace;
  word-break: break-all;
}

/* ── Recommendations ── */
.recs-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.rec-card {
  background: #f7f8fa;
  border: 1px solid #e5e7eb;
  border-left: 3px solid #3b82d4;
  border-radius: 8px;
  padding: 20px 22px;
}

.rec-quote {
  font-size: 0.9rem;
  color: #444d56;
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 14px;
}

.rec-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rec-author strong {
  display: block;
  font-size: 0.88rem;
  color: #1f2328;
}

.rec-author span {
  display: block;
  font-size: 0.8rem;
  color: #57606a;
}

.rec-rel {
  font-size: 0.75rem !important;
  color: #9aa5b1 !important;
}

/* ── Contact ── */
.contact-links {
  margin-top: 16px;
}

/* ── Footer ── */
.site-footer {
  text-align: center;
  padding: 28px 20px;
  border-top: 1px solid #e5e7eb;
  color: #57606a;
  font-size: 0.8rem;
  background: #ffffff;
  margin-top: 40px;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .hero-inner {
    flex-direction: column;
    text-align: center;
  }

  .hero-links {
    justify-content: center;
  }

  .hero-summary {
    text-align: left;
  }

  .card {
    padding: 24px 18px;
  }

  .projects-grid,
  .cert-grid {
    grid-template-columns: 1fr;
  }

  .job-header {
    flex-direction: column;
    gap: 8px;
  }

  .award-badge {
    align-self: flex-start;
  }
}
