:root {
  --bg-page: #f4f7f5;
  --bg-card: #ffffff;
  --bg-alt: #e8f0eb;
  --text: #1e2b24;
  --text-muted: #5c6b62;
  --accent: #2f5d44;
  --accent-hover: #244733;
  --accent-light: #e8f0eb;
  --border: #d8e3dc;
  --shadow: 0 8px 24px hsla(140, 20%, 20%, 0.08);
  --radius: 12px;
  --font: "Poppins", system-ui, sans-serif;
  --max: 920px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-page);
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.section {
  padding: 3rem 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 4vw, 1.75rem);
  font-weight: 700;
  color: var(--accent);
}

.section-lead {
  margin: 0 0 2rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: hsla(0, 0%, 100%, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3.5rem;
}

.logo {
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

.logo:hover {
  color: var(--accent);
  text-decoration: none;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  border: none;
  background: transparent;
  cursor: pointer;
}

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

.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}

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

.site-nav a {
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  color: var(--text);
  font-size: 0.95rem;
}

.site-nav a:hover {
  background: var(--accent-light);
  text-decoration: none;
  color: var(--accent);
}

.nav-linkedin {
  font-weight: 600;
  color: var(--accent) !important;
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    padding: 0;
    border: none;
    box-shadow: none;
    background: transparent;
    gap: 0.25rem;
  }

  .site-nav a {
    padding: 0.5rem 0.75rem;
  }
}

/* Hero — photo left on all breakpoints */
.hero {
  padding-top: 2.5rem;
}

.hero-head {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.hero-avatar {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  background: var(--accent-light);
}

.hero-intro {
  flex: 1;
  min-width: 0;
}

.hero-intro h1 {
  margin: 0;
  font-size: clamp(1.35rem, 5vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
}

.hero-role {
  margin: 0.25rem 0 0;
  font-weight: 600;
  color: var(--accent);
  font-size: 0.95rem;
}

.hero-location {
  margin: 0.15rem 0 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.hero-pitch {
  margin: 0 0 1.5rem;
  max-width: 42rem;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .hero-avatar {
    width: 88px;
    height: 88px;
  }

  .hero-head {
    gap: 1.25rem;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border: 2px solid transparent;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn-outline {
  border-color: var(--accent);
  color: var(--accent);
  background: transparent;
}

.btn-outline:hover {
  background: var(--accent-light);
}

/* Metrics */
.metrics {
  padding: 1.5rem 0 2.5rem;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.metric {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.metric-value {
  display: block;
  font-weight: 700;
  font-size: 1rem;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.metric-label {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.35;
}

@media (min-width: 640px) {
  .metrics-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .metric-label {
    font-size: 0.8rem;
  }
}

/* Timeline */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 2px solid var(--accent);
  margin-left: 0.5rem;
  padding-left: 1.25rem;
}

.timeline-item {
  position: relative;
  margin-bottom: 1.75rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: calc(-1.25rem - 7px);
  top: 0.35rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg-page);
  box-shadow: 0 0 0 2px var(--accent);
}

.section-alt .timeline-item::before {
  border-color: var(--bg-alt);
}

.timeline-date {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  transition: border-color 0.2s ease;
}

.timeline-card:hover {
  border-color: var(--accent);
}

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

.company-logo {
  flex-shrink: 0;
  width: 100px;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px;
  background: #fff;
  object-fit: contain;
}

.timeline-card h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
}

.company-name {
  margin: 0.15rem 0 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.timeline-card > p {
  margin: 0;
  font-size: 0.925rem;
  color: var(--text-muted);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}

.tags li {
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 999px;
  font-weight: 500;
}

@media (min-width: 768px) {
  .timeline {
    margin-left: 1rem;
    padding-left: 2rem;
  }

  .timeline-item::before {
    left: calc(-2rem - 7px);
  }
}

/* Education */
.edu-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .edu-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.edu-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.edu-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.edu-meta {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 500;
}

.edu-card p:last-child {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Certifications tabs */
.cert-tabs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.cert-tab {
  flex-shrink: 0;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-card);
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.cert-tab:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.cert-tab.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.cert-panels {
  min-height: 8rem;
}

.cert-panel {
  display: none;
  align-items: flex-start;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.cert-panel.is-active {
  display: flex;
}

.cert-panel img {
  flex-shrink: 0;
  border-radius: 8px;
}

.cert-panel h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
}

.cert-issuer {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
}

.cert-panel p:last-child {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Contact & footer */
.contact-block p {
  margin: 0.5rem 0;
}

.contact-location {
  color: var(--text-muted);
}

.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.site-footer p {
  margin: 0.25rem 0;
}

.footer-credit a {
  font-weight: 500;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
