/* =========================================================
   Kareem Ahmed — Portfolio
   Clean & minimal. Plain CSS, no build step.
   Edit the variables below to re-theme the whole site.
========================================================= */

:root {
  --bg:        #ffffff;
  --bg-alt:    #f6f7f9;
  --ink:       #14181f;   /* main text */
  --ink-soft:  #515a67;   /* secondary text */
  --ink-faint: #8b95a3;
  --line:      #e6e8ec;
  --accent:    #2563eb;   /* primary accent */
  --accent-dk: #1d4ed8;
  --expert:    #1d7a4d;
  --strong:    #2563eb;
  --growing:   #b06a00;
  --radius:    14px;
  --maxw:      1080px;
  --shadow:    0 1px 2px rgba(20,24,31,.04), 0 8px 28px rgba(20,24,31,.06);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

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

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 .4em; }

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

/* ---------------- NAV ---------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav__brand { font-weight: 700; color: var(--ink); letter-spacing: -0.02em; font-size: 1.05rem; }
.nav__brand:hover { text-decoration: none; }
.nav__links { display: flex; gap: 26px; align-items: center; }
.nav__links a { color: var(--ink-soft); font-size: .92rem; font-weight: 500; }
.nav__links a:hover { color: var(--ink); text-decoration: none; }
.nav__social { display: inline-flex; gap: 14px; align-items: center; padding-left: 16px; border-left: 1px solid var(--line); }
.nav__icon { display: inline-flex; color: var(--ink-soft); transition: color .2s; }
.nav__icon svg { width: 19px; height: 19px; fill: currentColor; }
.nav__icon:hover { color: var(--accent); }
.nav__toggle { display: none; background: none; border: 0; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.nav__toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }

/* ---------------- HERO ---------------- */
.hero {
  padding: 88px 0 72px;
  background:
    radial-gradient(900px 400px at 80% -10%, rgba(37,99,235,.08), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.hero__eyebrow { color: var(--accent); font-weight: 600; font-size: .9rem; margin: 0 0 18px; letter-spacing: .01em; }
.hero__title { font-size: clamp(2rem, 5vw, 3.3rem); font-weight: 700; max-width: 16ch; margin-bottom: .35em; }
.hero__title .accent { color: var(--accent); }
.hero__lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 60ch; margin: 0 0 28px; }
.hero__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 34px; }
.hero__tags span {
  font-size: .82rem; font-weight: 500; color: var(--ink-soft);
  background: var(--bg-alt); border: 1px solid var(--line);
  padding: 6px 12px; border-radius: 999px;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px; border-radius: 10px; font-weight: 600; font-size: .95rem;
  border: 1px solid transparent; transition: .18s; cursor: pointer;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dk); }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink-faint); }

/* ---------------- SECTIONS ---------------- */
.section { padding: 76px 0; border-bottom: 1px solid var(--line); }
.section--alt { background: var(--bg-alt); }
.section__head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 18px; }
.section__num { font-family: "JetBrains Mono", monospace; color: var(--accent); font-size: .85rem; font-weight: 500; }
.section__head h2 { font-size: 1.9rem; margin: 0; }
.section__intro { color: var(--ink-soft); max-width: 64ch; margin: 0 0 34px; }

/* ---------------- ABOUT ---------------- */
.about__grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 40px; align-items: start; }
.about__body p { color: var(--ink-soft); margin: 0 0 18px; }
.about__body strong { color: var(--ink); }
.about__side { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 84px; }

/* About portrait */
.about__photo { margin: 0; }
.about__photo img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 22%;
  border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow);
  display: block;
}
.about__photo-fallback {
  display: none; aspect-ratio: 4 / 5; border-radius: var(--radius);
  align-items: center; justify-content: center; text-align: center;
  background: #fff; border: 2px dashed var(--line); color: var(--ink-faint);
  font-size: .9rem; padding: 20px;
}
.about__photo-fallback code { font-family: "JetBrains Mono", monospace; font-size: .8rem; color: var(--ink-soft); }
.about__photo--missing img { display: none; }
.about__photo--missing .about__photo-fallback { display: flex; }

.about__facts {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.about__facts h3 { font-size: 1rem; margin-bottom: 16px; }
.about__facts ul { list-style: none; margin: 0; padding: 0; }
.about__facts li { display: flex; flex-direction: column; padding: 11px 0; border-top: 1px solid var(--line); }
.about__facts li:first-of-type { border-top: 0; }
.about__facts span { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-faint); }
.about__facts strong { font-size: .95rem; color: var(--ink); }

/* ---------------- SKILLS ---------------- */
.skills__legend { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 24px; font-size: .82rem; font-weight: 600; }
.lvl { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-soft); white-space: nowrap; }
.lvl::before { content: ""; width: 10px; height: 10px; border-radius: 50%; }
.lvl--expert::before  { background: var(--expert); }
.lvl--strong::before  { background: var(--strong); }
.lvl--growing::before { background: var(--growing); }
.skills__legend-proof { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-soft); }

.skills__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }
.skillcard {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 22px 8px; box-shadow: var(--shadow);
}
.section--alt .skillcard { background: #fff; }
.skillcard h3 { font-size: 1rem; margin: 8px 0 4px; }

/* accordion skills */
.skill-acc { display: flex; flex-direction: column; }
.skill { border-top: 1px solid var(--line); }
.skill__head {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px;
  padding: 12px 0; font-size: .93rem; color: var(--ink);
}
.skill__head::-webkit-details-marker { display: none; }
.skill__head:hover .skill__name { color: var(--accent); }
.skill__name { font-weight: 600; flex: 1; transition: color .15s; }
.skill__head .lvl { font-size: .74rem; font-weight: 600; }
.proofdot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex: none; box-shadow: 0 0 0 3px rgba(37,99,235,.14); }
.skill__head::after {
  content: ""; width: 7px; height: 7px; flex: none;
  border-right: 2px solid var(--ink-faint); border-bottom: 2px solid var(--ink-faint);
  transform: rotate(45deg); transition: transform .2s; margin-left: 2px;
}
.skill[open] .skill__head::after { transform: rotate(-135deg); }
.skill__body { padding: 0 0 14px; }
.skill__body p { margin: 0 0 10px; color: var(--ink-soft); font-size: .9rem; line-height: 1.55; }
.skill__body .evlink { margin-right: 16px; }

/* ---------------- EXPERIENCE ---------------- */
.timeline { display: flex; flex-direction: column; gap: 28px; }
.job {
  display: grid; grid-template-columns: 200px 1fr; gap: 28px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
.job__meta { display: flex; flex-direction: column; gap: 4px; }
.job__date { font-weight: 600; font-size: .92rem; }
.job__loc { color: var(--ink-faint); font-size: .85rem; }
.job__body h3 { font-size: 1.2rem; margin-bottom: 2px; }
.job__org { color: var(--accent); font-weight: 600; font-size: .92rem; margin: 0 0 12px; }
.job__body > p { color: var(--ink-soft); margin: 0 0 14px; }
.bullets { margin: 0 0 14px; padding-left: 18px; color: var(--ink-soft); }
.bullets li { margin-bottom: 7px; }
.job__evidence { font-size: .88rem; color: var(--ink-faint); margin: 0; }

/* ---------------- PROJECTS ---------------- */
.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.project {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); transition: .2s;
}
.project:hover { transform: translateY(-3px); box-shadow: 0 14px 38px rgba(20,24,31,.10); }
.project__media { background: var(--bg-alt); border-bottom: 1px solid var(--line); aspect-ratio: 16/9; overflow: hidden; }
.project__media img { width: 100%; height: 100%; object-fit: cover; }
.project__body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.project__kind { font-size: .78rem; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: .04em; }
.project__body h3 { font-size: 1.18rem; margin: 8px 0 10px; }
.project__body > p { color: var(--ink-soft); font-size: .95rem; margin: 0 0 16px; }
.tagrow { list-style: none; display: flex; flex-wrap: wrap; gap: 7px; padding: 0; margin: 0 0 18px; }
.tagrow li { font-family: "JetBrains Mono", monospace; font-size: .74rem; color: var(--ink-soft); background: var(--bg-alt); border: 1px solid var(--line); padding: 3px 8px; border-radius: 6px; }
.project__links { margin-top: auto; }
.project__links a { font-weight: 600; font-size: .92rem; }

/* Project top row: kind + status badge */
.project__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.badge { font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.badge--ready { color: #0f6b3d; background: #e6f6ee; border: 1px solid #b7e3cc; }
.badge--progress { color: #8a5300; background: #fcf2e0; border: 1px solid #f0d9ad; }

/* Placeholder media tile (no diagram yet) */
.project__media--placeholder { display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; }
.project__media--placeholder span {
  font-family: "JetBrains Mono", monospace; font-size: .82rem; color: var(--ink-soft);
  background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px;
}

/* Evidence row */
.project__evidence { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.project__evidence-label { font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-faint); }
.evlink { font-weight: 600; font-size: .92rem; }
.evnote { font-size: .82rem; color: var(--ink-faint); }

/* ---------------- EDUCATION ---------------- */
.edu { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.edu__item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
.edu__item h3 { font-size: 1.05rem; }
.edu__org { color: var(--accent); font-weight: 600; font-size: .88rem; margin: 0 0 10px; }
.edu__item p { color: var(--ink-soft); font-size: .92rem; margin: 0; }

/* ---------------- FOOTER ---------------- */
.footer { padding: 30px 0; color: var(--ink-faint); font-size: .9rem; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.footer a { color: var(--ink-soft); }

/* ================================================================
   MULTI-PAGE ADDITIONS
   ================================================================ */

/* active nav link */
.nav__links a.is-active { color: var(--ink); font-weight: 600; }
.nav__links a.is-active::after {
  content: ""; display: block; height: 2px; background: var(--accent);
  border-radius: 2px; margin-top: 3px;
}

/* open-to-work banner */
.statusbar { background: var(--accent); color: #fff; }
.statusbar__inner {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 9px 16px; font-size: .88rem; font-weight: 600; text-align: center;
}
.statusbar .dot {
  width: 9px; height: 9px; border-radius: 50%; background: #7ef0b0;
  box-shadow: 0 0 0 4px rgba(126,240,176,.28); flex: none;
}

/* ---------- HOME hero (with avatar) ---------- */
.hero__inner--home { display: grid; grid-template-columns: 1.5fr auto; gap: 48px; align-items: center; }
.hero__title--name { font-size: clamp(2.1rem, 5vw, 3.2rem); margin-bottom: .12em; }
.hero__role { font-size: clamp(1.05rem, 2.4vw, 1.4rem); font-weight: 600; color: var(--accent); margin: 0 0 16px; }
.hero__traj { color: var(--ink-soft); font-style: italic; margin: 14px 0 26px; }

/* identity row: photo on the left, name + title on the right */
.hero__id { display: flex; align-items: flex-start; justify-content: flex-start; gap: 40px; margin-bottom: 24px; }
.hero__id-text { flex: 1; min-width: 0; }
/* nudge the text down a hair so the name's cap-height lines up with the top of the photo */
.hero__id-text { padding-top: 6px; }
.hero__portrait { display: flex; flex-direction: column; align-items: center; flex: none; }
.hero__title--name { white-space: nowrap; }
.hero__meta { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-faint); font-size: .95rem; margin: 2px 0 16px; }
.hero__meta .pin { fill: var(--ink-faint); flex: none; }

/* avatar (small, tidy) */
.avatar { position: relative; width: 190px; height: 190px; flex: none; }
.avatar img {
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: 50% 28%;
  border: 4px solid #fff; box-shadow: var(--shadow), 0 0 0 1px var(--line);
}
.photo-btn {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  background: var(--accent); color: #fff; font-size: .8rem; font-weight: 600;
  padding: 7px 13px; border-radius: 999px; border: 0;
}
.photo-btn:hover { background: var(--accent-dk); }
.photo-btn input { display: none; }

/* always-visible open-to-work under the hero description */
.otw-inline { display: inline-flex; align-items: center; gap: 8px; color: var(--expert); font-weight: 600; font-size: .98rem; margin: 4px 0 24px; }
.otw-inline .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--expert); box-shadow: 0 0 0 4px rgba(29,122,77,.15); flex: none; }
.avatar--missing img { display: none; }
.avatar__edit {
  position: absolute; right: 8px; bottom: 8px;
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  background: var(--accent); color: #fff; font-size: .78rem; font-weight: 600;
  padding: 7px 12px; border-radius: 999px; border: 2px solid #fff; box-shadow: var(--shadow);
}
.avatar__edit:hover { background: var(--accent-dk); }
.avatar__edit input { display: none; }
.photo-tools { display: flex; align-items: center; gap: 14px; margin-top: 14px; font-size: .82rem; }
.photo-tools button {
  background: none; border: 0; color: var(--ink-soft); text-decoration: underline;
  cursor: pointer; font-size: .82rem; padding: 0;
}
.photo-note {
  margin-top: 8px; font-size: .8rem; color: var(--ink-faint);
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px;
}
.photo-note code { font-family: "JetBrains Mono", monospace; color: var(--ink-soft); }

/* ---------- subpage hero (compact) ---------- */
.pagehead {
  padding: 56px 0 36px;
  background: radial-gradient(800px 320px at 85% -20%, rgba(37,99,235,.07), transparent 60%), var(--bg);
  border-bottom: 1px solid var(--line);
}
.pagehead__eyebrow { color: var(--accent); font-weight: 600; font-size: .85rem; margin: 0 0 8px; font-family: "JetBrains Mono", monospace; }
.pagehead h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin: 0 0 10px; }
.pagehead p { color: var(--ink-soft); max-width: 62ch; margin: 0; }

/* ---------- open-to-work card (About) ---------- */
.otw {
  display: flex; align-items: center; gap: 14px;
  background: #eef5ff; border: 1px solid #cfe0ff; border-radius: var(--radius);
  padding: 18px 22px; margin-bottom: 30px;
}
.otw .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--expert); box-shadow: 0 0 0 5px rgba(29,122,77,.16); flex: none; }
.otw strong { display: block; color: var(--ink); }
.otw span { color: var(--ink-soft); font-size: .92rem; }

/* ---------- soft skills ---------- */
.soft-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.soft {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; box-shadow: var(--shadow);
}
.soft__icon { font-size: 1.4rem; }
.soft h3 { font-size: 1.08rem; margin: 8px 0 8px; }
.soft p { color: var(--ink-soft); font-size: .93rem; margin: 0; }
.soft ul { margin: 8px 0 0; padding-left: 18px; color: var(--ink-soft); font-size: .92rem; }
.soft ul li { margin-bottom: 5px; }

/* ---------- certificates / training ---------- */
.certs { display: flex; flex-direction: column; gap: 16px; }
.cert {
  display: grid; grid-template-columns: 150px 1fr; gap: 24px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; box-shadow: var(--shadow);
}
.cert__date { font-family: "JetBrains Mono", monospace; font-size: .82rem; color: var(--ink-faint); }
.cert__tag { display: inline-block; margin-top: 6px; font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; }
.cert__tag--done { color: #0f6b3d; background: #e6f6ee; border: 1px solid #b7e3cc; }
.cert__tag--progress { color: #8a5300; background: #fcf2e0; border: 1px solid #f0d9ad; }
.cert h3 { font-size: 1.1rem; margin: 0 0 3px; }
.cert__org { color: var(--accent); font-weight: 600; font-size: .9rem; margin: 0 0 8px; }
.cert p { color: var(--ink-soft); font-size: .92rem; margin: 0; }

/* ---------- project "windows" (clickable) ---------- */
.pwindows { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
a.pwin {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); transition: .2s;
}
a.pwin:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(20,24,31,.12); text-decoration: none; border-color: #cfe0ff; }
.pwin__bar { display: flex; align-items: center; gap: 7px; padding: 11px 16px; background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.pwin__dot { width: 11px; height: 11px; border-radius: 50%; }
.pwin__dot--r { background: #ff5f57; } .pwin__dot--y { background: #febc2e; } .pwin__dot--g { background: #28c840; }
.pwin__file { margin-left: 8px; font-family: "JetBrains Mono", monospace; font-size: .76rem; color: var(--ink-faint); }
.pwin__body { padding: 22px 24px; display: flex; flex-direction: column; flex: 1; }
.pwin__kind { font-size: .74rem; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .04em; }
.pwin__body h3 { font-size: 1.18rem; margin: 8px 0 8px; }
.pwin__body p { color: var(--ink-soft); font-size: .93rem; margin: 0 0 16px; }
.pwin__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; }
.pwin__open { font-weight: 600; font-size: .9rem; color: var(--accent); }
.pwin__badge { font-size: .66rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; }

/* ---------- project detail page ---------- */
.pdetail { max-width: 820px; }
.pdetail .back { font-size: .9rem; font-weight: 600; }
.pdetail__head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 6px 0 4px; }
.pdetail__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 34px; }
.pdetail h2 { font-size: 1.25rem; margin: 34px 0 12px; }
.pdetail p { color: var(--ink-soft); }
.pdetail ul.feat { padding-left: 18px; color: var(--ink-soft); }
.pdetail ul.feat li { margin-bottom: 9px; }
.pdetail ul.feat strong { color: var(--ink); }
.codebox {
  background: #0f1420; color: #d6deeb; border-radius: 10px; padding: 16px 18px;
  font-family: "JetBrains Mono", monospace; font-size: .82rem; line-height: 1.6; overflow-x: auto;
}
.stackrow { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 8px; }
.stackrow li { font-family: "JetBrains Mono", monospace; font-size: .76rem; color: var(--ink-soft); background: var(--bg-alt); border: 1px solid var(--line); padding: 4px 10px; border-radius: 6px; }

/* summary lead block */
.lead { font-size: 1.1rem; color: var(--ink-soft); max-width: 68ch; }
.lead strong { color: var(--ink); }

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 900px) {
  .hero__inner--home { grid-template-columns: 1fr; gap: 26px; }
  .hero__id { flex-direction: column; align-items: center; text-align: center; gap: 20px; }
  .hero__id .hero__tags { justify-content: center; }
  .hero__title--name { white-space: normal; }
  .avatar { width: 150px; height: 150px; }
  .soft-grid { grid-template-columns: 1fr; }
  .pwindows { grid-template-columns: 1fr; }
  .cert { grid-template-columns: 1fr; gap: 8px; }
  .about__grid { grid-template-columns: 1fr; }
  .about__side { position: static; top: auto; }
  .about__photo { max-width: 360px; }
  .skills__grid { grid-template-columns: repeat(2, 1fr); }
  .projects { grid-template-columns: 1fr; }
  .edu { grid-template-columns: 1fr; }
  .job { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 620px) {
  .nav__links { display: none; }
  .nav__links--open { display: flex; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 24px 16px; }
  .nav__links--open a { padding: 10px 0; border-top: 1px solid var(--line); }
  .nav__links--open .nav__social { padding: 12px 0 0; margin-top: 4px; border-left: 0; border-top: 1px solid var(--line); }
  .nav__toggle { display: flex; }
  .skills__grid { grid-template-columns: 1fr; }
  .hero { padding: 60px 0 50px; }
  .section { padding: 56px 0; }
}

/* certificate detail link */
.cert__link { display:inline-block; margin-top:.55rem; font-weight:600; font-size:.9rem; color: var(--accent); text-decoration:none; }
.cert__link:hover { text-decoration:underline; }
