/* Base */
:root {
  --brand: #0a66ff;
  --brand-ink: #0a3abf;
  --ink: #1f2937;
  --muted: #6b7280;
  --bg-soft: #f6f7fb;
  --card: #ffffff;
  --border: #e5e7eb;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
/* Body stays system font */
body {
  font-family: system-ui, -apple-system, "Inter", Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Layout */
.container { max-width: 1024px; margin: 0 auto; padding: 0 1rem; }
.section { padding: 3rem 0; }
.section h2, .section h3 { margin: 0 0 1rem; }

/* Header & Nav */
.site-header {
  position: sticky; top: 0; z-index: 10; backdrop-filter: blur(8px);
  background: rgba(255,255,255,.85); border-bottom: 1px solid var(--border);
}
.site-header .flex { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-weight: 700; font-size: 1.1rem; letter-spacing: .2px; }
.nav a {
  color: var(--muted); text-decoration: none; margin-left: 1rem; font-size: .95rem;
}
.nav a:hover { color: var(--ink); }
.nav a.active { color: var(--ink); font-weight: 600; }

/* Hero (symmetrically centered) */
.hero {
  padding: 2rem 0 3rem;
  background: linear-gradient(135deg, #f9fbff 0%, #f3f6ff 50%, #fff 100%);
  display: grid;              /* enables centering */
  place-items: center;        /* centers both axes */
  text-align: center;         /* center all text */
}

.hero h1 { 
  font-size: clamp(1.8rem, 3.5vw, 2.4rem); 
  line-height: 1.2; 
  margin: 0 0 1rem; 
  text-align: center;	
}

.kicker { 
  text-transform: uppercase; 
  letter-spacing: .18em; 
  font-size: .75rem; 
  color: var(--muted); 
  margin-bottom: .35rem; 
}

.hero .lead { 
  color: var(--muted); 
  max-width: 720px; 
  margin: 0 auto;                  /* readable width + centered */
}

/* Keep a single-column hero layout at all sizes for symmetry */
.hero-wrap { 
  display: grid; 
  gap: 2rem; 
  grid-template-columns: 1fr; 
  text-align: inherit; 
  align-items: center; 
}

/* Avatar (profile image) */
.avatar {
  width: 200px; height: 200px; border-radius: 50%;
  object-fit: cover; object-position: center;
  display: block; margin: 0 auto; border: 4px solid #fff; box-shadow: 0 6px 20px rgba(10,34,66,.12);
}
@media (min-width: 900px) { .avatar { width: 260px; height: 260px; } }

/* Buttons & Links (centered) */
.btn, .btn-outline {
  display: inline-block; padding: .75rem 1.1rem; border-radius: .6rem; text-decoration: none; transition: .18s ease;
  font-weight: 600; font-size: .95rem;
}
.btn { background: var(--brand); color: #fff; }
.btn:hover { background: var(--brand-ink); }
.btn-outline { border: 2px solid var(--brand); color: var(--brand); }
.btn-outline:hover { background: var(--brand); color: #fff; }
.link { color: var(--brand); text-decoration: none; }
.link:hover { text-decoration: underline; }

/* Center all button groups */
.buttons {
  display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1rem;
  justify-content: center; align-items: center; text-align: center;
}

/* Cards & Grids */
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--border); border-radius: .8rem; padding: 1rem; }
.card h4 { margin: 0 0 .25rem; }
.card p { margin: .25rem 0 0; color: var(--muted); }

/* Lists */
.list { padding-left: 1.2rem; }
.list li { margin: .4rem 0; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border); background: #fafafa; font-size: .9rem; color: var(--muted); padding: 1rem 0; text-align: center;
}

/* Utility */
.muted { color: var(--muted); }
.breadcrumbs { font-size: .9rem; color: var(--muted); margin-bottom: 1rem; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--ink); text-decoration: underline; }

/* Media placeholders */
.thumb { width: 100%; aspect-ratio: 16/9; background: var(--bg-soft); border: 1px dashed var(--border); border-radius: .6rem; }

/* ==== Experience layout (main content only) ==== */
.exp-layout {
  display: grid; gap: 1.25rem; grid-template-columns: 1fr;
}

/* ==== Certifications grid (bottom) ==== */
.certs { padding-top: 2rem; border-top: 1px solid var(--border); }
.certs h3 { margin-bottom: 1rem; }

.cert-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;            /* phones */
}
@media (min-width: 600px) {
  .cert-grid { grid-template-columns: repeat(2, 1fr); } /* small tablets */
}
@media (min-width: 900px) {
  .cert-grid { grid-template-columns: repeat(3, 1fr); } /* desktop: 3-wide */
}

/* Individual certification card (with image) */
.cert-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: .8rem;
  padding: 1rem;
  display: flex;
  align-items: flex-start;
  gap: .75rem;
}
.cert-card img.logo {
  width: 60px; height: 60px; object-fit: contain; flex-shrink: 0;
  border-radius: .4rem; background: #fff; border: 1px solid var(--border);
}
.cert-card .content { flex: 1; }
.cert-card h5 { margin: 0 0 .25rem; font-size: 1rem; }
.cert-card p { margin: 0; color: var(--muted); }

.badges { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .5rem; }
.badge {
  display: inline-block; border: 1px solid var(--border); background: #fff;
  padding: .2rem .5rem; border-radius: .5rem; font-size: .75rem; color: var(--muted);
}

/* Fine-tune lists inside main cards */
.card .list { margin-top: .5rem; }
