/* ============================================================
   DESIGN TOKENS — all colors, type, spacing via CSS custom properties
   ============================================================ */
:root {
  /* Color palette — Modern Corporate, light/neutral */
  --color-bg:            #FFFFFF;
  --color-bg-subtle:     #F8FAFC;
  --color-bg-muted:      #F1F5F9;
  --color-surface:       #FFFFFF;
  --color-border:        #E2E8F0;
  --color-border-strong: #CBD5E1;

  --color-text:          #0F172A;
  --color-text-muted:    #64748B;
  --color-text-subtle:   #94A3B8;

  --color-accent:        #2563EB;
  --color-accent-hover:  #1D4ED8;
  --color-accent-light:  #EFF6FF;

  /* Typography */
  --font: 'Inter', system-ui, -apple-system, sans-serif;

  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;
  --text-6xl:  3.75rem;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.08), 0 2px 4px -2px rgb(0 0 0 / 0.06);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.06);

  /* Radii */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   16px;
  --radius-full: 9999px;

  /* Layout */
  --container:  1160px;
  --nav-h:      64px;
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section { padding: 5rem 0; }

.section-label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 2.5rem;
}

/* ============================================================
   ANIMATIONS — scroll-triggered fade-up
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
  transition-delay: calc(var(--i, 0) * 60ms);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav-wrapper {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  transition: background 0.25s ease-out, box-shadow 0.25s ease-out, border-color 0.25s ease-out;
}
.nav-wrapper.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}
.nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand { display: flex; flex-direction: column; gap: 1px; }
.nav-name  { font-size: var(--text-base); font-weight: 600; color: var(--color-text); line-height: 1.2; }
.nav-tagline { font-size: var(--text-xs); color: var(--color-text-muted); line-height: 1.2; }

.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  position: relative;
  transition: color 0.2s ease-out;
}
.nav-links a:hover { color: var(--color-text); }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1.5px;
  background: var(--color-accent);
  transition: width 0.2s ease-out;
}
.nav-links a:hover::after { width: 100%; }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--color-text);
  border-radius: var(--radius-full);
  transition: transform 0.2s ease-out, opacity 0.2s ease-out;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile overlay */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: var(--color-bg);
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease-out;
}
.nav-overlay.open { opacity: 1; pointer-events: auto; }
.nav-overlay-links { display: flex; flex-direction: column; align-items: center; gap: 2rem; }
.nav-overlay-link {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-text);
  transition: color 0.15s ease-out;
}
.nav-overlay-link:hover { color: var(--color-accent); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.5rem;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background 0.15s ease-out, box-shadow 0.15s ease-out, border-color 0.15s ease-out, color 0.15s ease-out;
}
.btn-primary {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}
.btn-primary:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  box-shadow: var(--shadow-md);
}
.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border-strong);
}
.btn-ghost:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  padding-top: var(--nav-h);
  display: flex;
  align-items: center;
  background-color: var(--color-bg);
  background-image: repeating-linear-gradient(
    135deg,
    transparent,
    transparent 40px,
    rgba(226, 232, 240, 0.35) 40px,
    rgba(226, 232, 240, 0.35) 41px
  );
}
.hero-inner {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 4rem;
  align-items: center;
  padding-top: 4rem;
  padding-bottom: 4rem;
}
.hero-name {
  font-size: clamp(var(--text-4xl), 6vw, var(--text-6xl));
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}
.hero-subtitle {
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-accent);
  margin-bottom: 1.5rem;
}
.hero-statement {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: 1.75;
  margin-bottom: 2.5rem;
  max-width: 520px;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-photo { display: flex; justify-content: center; }
.photo-ring {
  width: 260px; height: 260px;
  border-radius: var(--radius-full);
  border: 3px solid var(--color-border-strong);
  background: var(--color-bg-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.photo-img {
  position: absolute;
  width: 100%; height: 100%;
  object-fit: cover;
  display: none; /* shown when src is set */
}
.photo-img[src]:not([src=""]) { display: block; }
.photo-initials {
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--color-text-subtle);
  letter-spacing: -0.02em;
  user-select: none;
}

/* ============================================================
   CREDIBILITY BAR
   ============================================================ */
.credibility { padding: 2rem 0; }
.credibility-rule { border: none; border-top: 1px solid var(--color-border); margin-bottom: 1.5rem; }
.credibility-label {
  text-align: center;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-subtle);
  margin-bottom: 1.5rem;
}
.credibility-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.wordmark {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.01em;
  opacity: 0.35;
  filter: grayscale(1);
  transition: opacity 0.2s ease-out;
}
.wordmark:hover { opacity: 0.6; }
.wordmark-sep { color: var(--color-text-subtle); font-size: var(--text-xl); }

/* ============================================================
   ABOUT
   ============================================================ */
.about { background: var(--color-bg); }
.about-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 4rem;
  align-items: start;
}
.about-bio p {
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-size: var(--text-base);
}
.about-bio p:last-child { margin-bottom: 0; }

.stats-card {
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.stat-item { display: flex; flex-direction: column; gap: 2px; }
.stat-full {
  grid-column: 1 / -1;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border);
}
.stat-value {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.stat-value--sm { font-size: var(--text-base); letter-spacing: 0; }
.stat-label {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ============================================================
   METRICS
   ============================================================ */
.metrics {
  background: var(--color-bg-muted);
  padding: 4rem 0;
}
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.metric-item {
  padding: 2rem 1rem;
  text-align: center;
  border-radius: var(--radius-lg);
}
.metric-value {
  display: block;
  font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.metric-label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-weight: 500;
}

/* ============================================================
   EXPERTISE CARDS
   ============================================================ */
.expertise { background: var(--color-bg-subtle); }
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out, border-color 0.2s ease-out;
  cursor: default;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
}
.card-icon { color: var(--color-accent); margin-bottom: 1rem; }
.card-title { font-size: var(--text-base); font-weight: 600; color: var(--color-text); margin-bottom: 0.5rem; }
.card-desc { font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.65; }

/* ============================================================
   CERTIFICATIONS
   ============================================================ */
.certs { background: var(--color-bg); }
.certs-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) transparent;
  padding-bottom: 0.75rem;
}
.certs-scroll::-webkit-scrollbar { height: 4px; }
.certs-scroll::-webkit-scrollbar-track { background: transparent; }
.certs-scroll::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: var(--radius-full); }

.certs-track {
  display: flex;
  gap: 1rem;
  padding: 0.25rem 0;
  width: max-content;
}
.cert-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 1rem 1.5rem;
  min-width: 195px;
  text-align: center;
  transition: border-color 0.2s ease-out, box-shadow 0.2s ease-out;
  cursor: default;
}
.cert-card:hover { border-color: var(--color-accent); box-shadow: var(--shadow-sm); }
.cert-icon { color: var(--color-accent); }
.cert-name { font-size: var(--text-xs); font-weight: 600; color: var(--color-text); line-height: 1.4; }
.cert-issuer { font-size: var(--text-xs); color: var(--color-text-subtle); }

/* ============================================================
   CAREER TIMELINE
   ============================================================ */
.timeline { background: var(--color-bg-subtle); }
.timeline-list { display: flex; flex-direction: column; gap: 3rem; }

.timeline-company { position: relative; }
.timeline-company-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.timeline-dot {
  width: 12px; height: 12px;
  border-radius: var(--radius-full);
  background: var(--color-border-strong);
  flex-shrink: 0;
  margin-top: 5px;
}
.timeline-dot--active {
  background: var(--color-accent);
  box-shadow: 0 0 0 4px var(--color-accent-light);
}
.company-name { font-size: var(--text-lg); font-weight: 600; color: var(--color-text); }
.company-sub  { font-size: var(--text-sm); color: var(--color-text-muted); margin-top: 1px; }

.timeline-roles {
  margin-left: 1.5rem;
  padding-left: 2rem;
  border-left: 2px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.timeline-role { position: relative; }
.timeline-role::before {
  content: '';
  position: absolute;
  left: -2.5rem;
  top: 9px;
  width: 7px; height: 7px;
  border-radius: var(--radius-full);
  background: var(--color-border-strong);
  border: 2px solid var(--color-bg-subtle);
}
.timeline-role--active {
  padding-left: 1rem;
  border-left: 3px solid var(--color-accent);
  margin-left: -1px;
}
.timeline-role--active::before { background: var(--color-accent); }

.role-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}
.role-title { font-size: var(--text-base); font-weight: 600; color: var(--color-text); }
.role-date  { font-size: var(--text-xs); font-weight: 500; color: var(--color-text-subtle); white-space: nowrap; }
.role-desc  { font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.65; margin-bottom: 0.75rem; }
.role-bullets {
  list-style: disc;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.role-bullets li { font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.5; }

/* ============================================================
   KEY PROJECTS
   ============================================================ */
.projects { background: var(--color-bg); }
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.project-card { display: flex; flex-direction: column; gap: 0; }
.project-tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: var(--color-accent-light);
  padding: 0.2rem 0.75rem;
  border-radius: var(--radius-full);
  width: fit-content;
  margin-bottom: 0.75rem;
}
.project-title   { font-size: var(--text-xl); font-weight: 700; color: var(--color-text); margin-bottom: 0.25rem; }
.project-company { font-size: var(--text-sm); color: var(--color-text-muted); font-weight: 500; margin-bottom: 1rem; }
.project-section { border-top: 1px solid var(--color-border); padding: 1rem 0; }
.project-section-label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-subtle);
  margin-bottom: 0.4rem;
}
.project-section p { font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.65; }
.project-outcome .project-section-label { color: var(--color-accent); }
.project-outcome p { color: var(--color-text); font-weight: 500; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: var(--color-bg-subtle); }
.contact-inner { text-align: center; }
.contact-title {
  font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.contact-sub {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 500px;
  margin: 0 auto 3rem;
  line-height: 1.6;
}
.contact-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-base);
  color: var(--color-text-muted);
  font-weight: 500;
  transition: color 0.15s ease-out;
}
.contact-link:hover { color: var(--color-accent); }
.contact-location {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-base);
  color: var(--color-text-subtle);
  font-weight: 500;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--color-text); padding: 2rem 0; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-inner span { font-size: var(--text-sm); color: rgba(255,255,255,0.4); }

/* ============================================================
   RESPONSIVE — tablet
   ============================================================ */
@media (max-width: 1024px) {
  .expertise-grid  { grid-template-columns: repeat(2, 1fr); }
  .metrics-grid    { grid-template-columns: repeat(2, 1fr); }
  .projects-grid   { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   RESPONSIVE — mobile
   ============================================================ */
@media (max-width: 768px) {
  .nav-hamburger { display: flex; }
  .nav-links     { display: none; }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
  .hero-content { order: 2; }
  .hero-photo   { order: 1; }
  .hero-statement { max-width: 100%; margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .photo-ring { width: 160px; height: 160px; }
  .photo-initials { font-size: var(--text-3xl); }

  .about-grid  { grid-template-columns: 1fr; gap: 2.5rem; }
  .expertise-grid { grid-template-columns: 1fr; }
  .projects-grid  { grid-template-columns: 1fr; }
  .metrics-grid   { grid-template-columns: repeat(2, 1fr); }

  .credibility-logos { gap: 1rem; }
  .timeline-roles { margin-left: 0.5rem; padding-left: 1.25rem; }
  .role-header { flex-direction: column; gap: 0.25rem; }

  .contact-links { flex-direction: column; align-items: center; gap: 1rem; }
  .footer-inner  { justify-content: center; text-align: center; }

  .section { padding: 3.5rem 0; }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .metrics-grid { grid-template-columns: 1fr; }
  .section { padding: 3rem 0; }
  .hero { min-height: auto; padding-top: calc(var(--nav-h) + 2rem); }
}
