/* ==========================================================================
   sanjayChaturvedi.com — static site styles (pure CSS, no JavaScript)
   ========================================================================== */

:root {
  --orange: #ff6b1a;
  --orange-dark: #e85a0c;
  --orange-soft: #fff1e8;
  --ink: #0f1724;
  --navy: #0b1220;
  --navy-2: #131c2e;
  --text: #1d2635;
  --muted: #5d6879;
  --line: #e7ebf0;
  --bg: #f6f7f9;
  --white: #fff;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px rgba(16, 24, 40, .06);
  --shadow-lg: 0 2px 4px rgba(16, 24, 40, .04), 0 18px 40px rgba(16, 24, 40, .10);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.02em; }
h2 { font-size: 28px; }
h3 { font-size: 17px; }
p { margin: 0 0 1em; }
.container { width: min(1160px, calc(100% - 32px)); margin-inline: auto; }
.accent { color: var(--orange); }

/* Icons (inline SVG) */
.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.i-sm { width: 16px; height: 16px; }
.i-lg { width: 28px; height: 28px; stroke-width: 1.7; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--orange); color: #fff;
  padding: 12px 22px; border-radius: 10px; border: 1.5px solid var(--orange);
  font-size: 14px; font-weight: 700; line-height: 1.2;
  transition: background .2s, transform .2s, box-shadow .2s, color .2s;
}
.btn:hover { background: var(--orange-dark); border-color: var(--orange-dark); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(255, 107, 26, .3); }
.btn.outline { background: transparent; color: var(--ink); border-color: #d6dbe2; }
.btn.outline:hover { border-color: var(--orange); color: var(--orange); box-shadow: none; }
.btn.ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn.ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); box-shadow: none; }
.btn.white { background: #fff; color: var(--ink); border-color: #fff; }
.btn.white:hover { color: var(--orange); background: #fff; }
.btn.sm { padding: 9px 16px; font-size: 13px; }

.link { display: inline-flex; align-items: center; gap: 6px; color: var(--orange); font-size: 14px; font-weight: 700; }
.link:hover { gap: 10px; }
.link, .link:hover { transition: gap .2s; }

/* ---------- Header ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .9); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line); }
.nav-inner { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { font-size: 21px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; white-space: nowrap; }
.logo span { color: var(--orange); }
.navlinks { display: flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; }
.navlinks a:not(.btn) { padding: 8px 12px; border-radius: 8px; color: var(--muted); transition: color .2s, background .2s; }
.navlinks a:not(.btn):hover { color: var(--ink); background: #f1f3f6; }
.navlinks a.active { color: var(--orange); }
.navlinks .btn { margin-left: 10px; }
.menu-toggle, .menu-btn { display: none; }

/* Dark header variant (home page) */
.nav.dark { background: rgba(11, 18, 32, .85); border-bottom-color: rgba(255, 255, 255, .08); }
.nav.dark .logo { color: #fff; }
.nav.dark .navlinks a:not(.btn) { color: #b7c0cf; }
.nav.dark .navlinks a:not(.btn):hover { color: #fff; background: rgba(255, 255, 255, .07); }
.nav.dark .navlinks a.active { color: var(--orange); }
.nav.dark .menu-btn span, .nav.dark .menu-btn span::before, .nav.dark .menu-btn span::after { background: #fff; }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; overflow: hidden; color: #c9d1de;
  background:
    radial-gradient(600px 400px at 85% 30%, rgba(255, 107, 26, .22), transparent 70%),
    radial-gradient(500px 300px at 10% 100%, rgba(255, 107, 26, .08), transparent 70%),
    var(--navy);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding: 88px 0 72px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--orange); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 18px; }
.eyebrow.light { color: #d7dde7; }
.eyebrow.light b { color: var(--orange); }
.hero h1 { color: #fff; font-size: clamp(38px, 5.2vw, 60px); line-height: 1.06; letter-spacing: -.035em; margin-bottom: 22px; }
.hero h1 .accent { display: block; }
.hero .lead { font-size: 17px; color: #aab4c4; max-width: 540px; margin-bottom: 32px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero visual: terminal + floating logo chips */
.hero-visual { position: relative; min-height: 400px; display: flex; align-items: center; justify-content: center; }
.terminal {
  position: relative; z-index: 2; width: min(440px, 100%);
  background: rgba(19, 28, 46, .92); border: 1px solid rgba(255, 255, 255, .1); border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 107, 26, .08), 0 0 60px rgba(255, 107, 26, .15);
  font-family: "JetBrains Mono", ui-monospace, Consolas, monospace; font-size: 13px; line-height: 1.75;
  transform: perspective(1200px) rotateY(-8deg) rotateX(4deg);
}
.terminal-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.terminal-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.terminal-bar i:nth-child(2) { background: #febc2e; }
.terminal-bar i:nth-child(3) { background: #28c840; }
.terminal-bar span { margin-left: auto; color: #6b778b; font-size: 12px; }
.terminal-body { padding: 18px 20px 22px; color: #c3cbd8; }
.terminal-body .p { color: var(--orange); }
.terminal-body .ok { color: #3ddc84; }
.terminal-body .dim { color: #6b778b; }
.terminal-body .cursor { display: inline-block; width: 8px; height: 15px; background: var(--orange); vertical-align: -2px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.chip {
  position: absolute; z-index: 3; display: flex; align-items: center; justify-content: center;
  width: 68px; height: 68px; border-radius: 18px; background: #fff;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .35); animation: float 6s ease-in-out infinite;
}
.chip img { width: 40px; height: 40px; }
.chip.aws { width: 96px; height: 70px; top: 6%; right: 4%; }
.chip.aws img { width: 62px; height: auto; }
.chip.c2 { bottom: 10%; left: 0; animation-delay: -2s; }
.chip.c3 { top: 12%; left: 6%; animation-delay: -4s; width: 58px; height: 58px; }
.chip.c3 img { width: 32px; height: 32px; }
.chip.c4 { bottom: 4%; right: 12%; animation-delay: -1s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* Focus areas strip under hero */
.focus { position: relative; border-top: 1px solid rgba(255, 255, 255, .08); }
.focus-grid { display: grid; grid-template-columns: repeat(5, 1fr); }
.focus-item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 26px 12px; color: #fff; font-size: 14px; font-weight: 700; line-height: 1.3; }
.focus-item + .focus-item { border-left: 1px solid rgba(255, 255, 255, .08); }
.focus-item small { display: block; color: #8d98ab; font-weight: 500; font-size: 13px; }
.focus-item .i { color: var(--orange); width: 30px; height: 30px; stroke-width: 1.6; }

/* ---------- Stats ---------- */
.stats { background: #fff; border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { display: flex; align-items: center; gap: 16px; padding: 28px 24px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat-icon { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: var(--orange-soft); color: var(--orange); flex: none; }
.stat strong { display: block; font-size: 28px; font-weight: 800; color: var(--ink); line-height: 1.1; letter-spacing: -.02em; }
.stat small { color: var(--muted); font-size: 14px; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section.white { background: #fff; }
.section.tight { padding: 64px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 6px 0 0; color: var(--muted); }
.kicker { display: block; color: var(--orange); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.muted { color: var(--muted); }

/* ---------- About snippet ---------- */
.about-snippet { display: grid; grid-template-columns: 290px 1fr; gap: 56px; align-items: center; }
.photo {
  position: relative; aspect-ratio: 4 / 5; border-radius: 20px; overflow: hidden;
  background: linear-gradient(150deg, #ffe3d1 0%, #ff9a5c 55%, var(--orange) 100%);
  box-shadow: var(--shadow-lg);
}
.photo::before { /* initials fallback when no photo is present */
  content: attr(data-initials); position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 88px; font-weight: 800; color: rgba(255, 255, 255, .9); letter-spacing: -.04em;
}
.photo img { position: relative; width: 100%; height: 100%; object-fit: cover; }
.photo.round { aspect-ratio: 1; border-radius: 50%; }
.about-snippet .lead { font-size: 18px; color: var(--muted); }
.facts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 22px 0 30px; padding: 0; list-style: none; }
.facts li { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.facts .i { color: var(--orange); width: 18px; height: 18px; }

/* ---------- Tech grid ---------- */
.tech-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 14px; }
.tech {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  padding: 20px 8px; background: #fff; border: 1px solid var(--line); border-radius: 14px;
  font-size: 13px; font-weight: 700; color: var(--ink); text-align: center;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.tech:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #ffd5bd; }
.tech img { width: 40px; height: 40px; object-fit: contain; }
.tech img.wide { width: 54px; }
/* AWS service tiles (no official icons on CDN) */
.svc { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-size: 11px; font-weight: 800; letter-spacing: -.02em; }
.svc.compute { background: linear-gradient(135deg, #f78e04, #d05c17); }
.svc.storage { background: linear-gradient(135deg, #60a337, #277116); }
.svc.network { background: linear-gradient(135deg, #a166ff, #5a30b5); }
.svc.database { background: linear-gradient(135deg, #4d72f3, #2e27ad); }
.svc.security { background: linear-gradient(135deg, #f54749, #bd0816); }
.svc.mgmt { background: linear-gradient(135deg, #f34482, #bc1356); }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 22px; }
.card-body h3 { margin-bottom: 8px; }
.card-body p { font-size: 14px; color: var(--muted); }
.card-body .link { margin-top: auto; padding-top: 6px; }
.meta { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.meta .dot { width: 4px; height: 4px; border-radius: 50%; background: #c3cad4; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.tag { font-size: 12px; font-weight: 600; color: #3654c7; background: #eef2ff; padding: 4px 10px; border-radius: 6px; }
.tag.o { color: var(--orange-dark); background: var(--orange-soft); }

/* Card cover art (replace with real <img> any time) */
.cover {
  position: relative; height: 180px; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(260px 160px at 70% 30%, rgba(255, 107, 26, .35), transparent 70%), linear-gradient(135deg, #0d1526, #1c2840);
}
.cover::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 24px 24px;
}
.cover.blue { background: radial-gradient(260px 160px at 70% 30%, rgba(80, 130, 255, .35), transparent 70%), linear-gradient(135deg, #0d1526, #1a2a52); }
.cover.purple { background: radial-gradient(260px 160px at 70% 30%, rgba(140, 90, 255, .38), transparent 70%), linear-gradient(135deg, #0d1526, #24204a); }
.cover > img:not(.photo-cover) { position: relative; width: 76px; height: 76px; object-fit: contain; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .45)); }
.cover .photo-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover .logos { position: relative; display: flex; align-items: center; gap: 14px; }
.cover .logos img { width: 54px; height: 54px; padding: 10px; background: #fff; border-radius: 14px; box-shadow: 0 10px 24px rgba(0, 0, 0, .35); }
.cover .logos .svc { width: 54px; height: 54px; border-radius: 14px; font-size: 15px; box-shadow: 0 10px 24px rgba(0, 0, 0, .35); }
.cover .logos .plus { color: rgba(255, 255, 255, .5); font-weight: 700; font-size: 20px; }
.cover .badge-date {
  position: absolute; left: 14px; top: 14px; background: rgba(255, 255, 255, .95); color: var(--ink);
  font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 8px;
}
/* "aws" wordmark drawn in CSS (white, for dark covers) */
.aws-mark { position: relative; color: #fff; font-size: 54px; font-weight: 800; letter-spacing: -.04em; line-height: 1; padding-bottom: 14px; }
.aws-mark::after {
  content: ""; position: absolute; left: 6%; right: 0; bottom: 0; height: 14px;
  border-bottom: 5px solid var(--orange); border-radius: 0 0 50% 50% / 0 0 100% 100%;
}
.aws-mark.sm { font-size: 30px; padding-bottom: 8px; }
.aws-mark.sm::after { height: 8px; border-bottom-width: 3px; }

/* ---------- Journey ---------- */
.journey { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; position: relative; }
.journey::before { content: ""; position: absolute; left: 28px; right: 0; top: 28px; height: 2px; background: linear-gradient(90deg, var(--orange), #ffc7a6); }
.journey-item { position: relative; }
.journey-icon {
  position: relative; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; color: var(--orange); border: 2px solid var(--orange); margin-bottom: 20px; box-shadow: 0 0 0 6px #fff;
}
.section:not(.white) .journey-icon { box-shadow: 0 0 0 6px var(--bg); }
.journey-item.current .journey-icon { background: var(--orange); color: #fff; }
.journey-item small { display: block; color: var(--orange); font-weight: 700; font-size: 13px; margin-bottom: 4px; }
.journey-item p { font-size: 14px; color: var(--muted); }

/* ---------- CTA ---------- */
.cta {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 32px;
  padding: 48px 56px; border-radius: 24px; color: #fff;
  background: radial-gradient(400px 200px at 90% 0%, rgba(255, 255, 255, .25), transparent 70%), linear-gradient(120deg, #ff7a2b, #f05a0a);
  box-shadow: 0 24px 60px rgba(240, 90, 10, .3);
}
.cta h2 { color: #fff; font-size: 32px; margin-bottom: 8px; }
.cta p { margin: 0; color: #ffe6d6; max-width: 560px; }
.cta .actions { flex: none; }
.cta .btn.ghost { border-color: rgba(255, 255, 255, .55); }

/* ---------- Page header (inner pages) ---------- */
.page-head { position: relative; overflow: hidden; background: #fff; border-bottom: 1px solid var(--line); padding: 64px 0 56px; }
.page-head::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 107, 26, .16), transparent 65%);
}
.page-head .container { position: relative; z-index: 1; }
.page-head h1 { font-size: clamp(34px, 4.5vw, 48px); letter-spacing: -.035em; margin-bottom: 12px; }
.page-head p { color: var(--muted); font-size: 18px; max-width: 640px; margin: 0; }
.page-head .eyebrow { margin-bottom: 12px; }
.page-head-grid { display: grid; grid-template-columns: 1fr 240px; gap: 48px; align-items: center; }

/* ---------- About page ---------- */
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: start; }
.prose p { color: var(--muted); font-size: 17px; }
.timeline { position: relative; margin: 8px 0 0; padding: 0; list-style: none; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: #ffd9c4; }
.timeline li { position: relative; padding: 0 0 30px 40px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--orange); }
.timeline li.current::before { background: var(--orange); box-shadow: 0 0 0 5px rgba(255, 107, 26, .18); }
.timeline small { color: var(--orange); font-weight: 700; font-size: 13px; }
.timeline h3 { margin: 2px 0 4px; }
.timeline p { color: var(--muted); font-size: 15px; margin: 0; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.panel + .panel { margin-top: 24px; }
.cards > .panel + .panel { margin-top: 0; }
.panel h3 { font-size: 18px; margin-bottom: 18px; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 10px; font-size: 15px; color: var(--muted); }
.checklist .i { color: var(--orange); margin-top: 3px; width: 18px; height: 18px; }
.interests { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.interest { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 24px 12px; background: #fff; border: 1px solid var(--line); border-radius: 14px; text-align: center; font-size: 14px; font-weight: 700; color: var(--ink); }
.interest .i { color: var(--orange); }

/* ---------- Skills page ---------- */
.skill-group { margin-bottom: 44px; }
.skill-group:last-of-type { margin-bottom: 0; }
.skill-group h3 { display: flex; align-items: center; gap: 10px; font-size: 18px; margin-bottom: 16px; }
.skill-group h3::before { content: ""; width: 4px; height: 20px; border-radius: 2px; background: var(--orange); }
.skill-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(136px, 1fr)); gap: 14px; }
.level { display: block; font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.callout { display: flex; gap: 18px; align-items: flex-start; margin-top: 48px; padding: 24px 28px; background: var(--orange-soft); border: 1px solid #ffd9c4; border-radius: var(--radius); }
.callout .i { color: var(--orange); margin-top: 2px; }
.callout h3 { margin-bottom: 4px; }
.callout p { margin: 0; color: #6b4a36; }

/* ---------- Projects filter (CSS only, radio buttons) ---------- */
.filter-input { position: absolute; opacity: 0; pointer-events: none; }
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filter label { cursor: pointer; padding: 8px 16px; border-radius: 99px; background: #fff; border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--muted); transition: all .2s; }
.filter label:hover { border-color: var(--orange); color: var(--orange); }
#f-all:checked ~ .filter [for=f-all], #f-aws:checked ~ .filter [for=f-aws], #f-cicd:checked ~ .filter [for=f-cicd],
#f-iac:checked ~ .filter [for=f-iac], #f-mon:checked ~ .filter [for=f-mon], #f-docker:checked ~ .filter [for=f-docker] {
  background: var(--orange); border-color: var(--orange); color: #fff;
}
#f-aws:checked ~ .cards .card:not(.aws), #f-cicd:checked ~ .cards .card:not(.cicd), #f-iac:checked ~ .cards .card:not(.iac),
#f-mon:checked ~ .cards .card:not(.mon), #f-docker:checked ~ .cards .card:not(.docker) { display: none; }

/* ---------- Project detail ---------- */
.detail-grid { display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: start; }
.detail-main h2 { font-size: 22px; margin-top: 40px; }
.detail-main h2:first-child { margin-top: 0; }
.detail-main p, .detail-main li { color: var(--muted); }
.pipeline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 28px; background: var(--navy); border-radius: var(--radius); }
.pipe { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); border-radius: 10px; color: #fff; font-size: 14px; font-weight: 600; }
.pipe img { width: 20px; height: 20px; }
.pipe-arrow { color: var(--orange); font-weight: 800; }
.arch { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.arch div { padding: 16px; border: 1px dashed #cbd2db; border-radius: 12px; background: #fff; font-size: 14px; }
.arch b { display: block; color: var(--ink); }
.arch span { color: var(--muted); font-size: 13px; }
.side-list { list-style: none; margin: 0; padding: 0; }
.side-list li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.side-list li:last-child { border-bottom: 0; }
.side-list span { color: var(--muted); }
.side-list b { color: var(--ink); text-align: right; }

/* ---------- List rows (blog / events) ---------- */
.rows { display: grid; gap: 20px; }
.row {
  display: grid; grid-template-columns: 280px 1fr; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s;
}
.row:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.row .cover { height: 100%; min-height: 190px; }
.row-body { padding: 26px 30px; display: flex; flex-direction: column; justify-content: center; }
.row-body h2 { font-size: 21px; margin-bottom: 8px; }
.row-body p { color: var(--muted); font-size: 15px; }

/* ---------- Certifications ---------- */
.cert { display: flex; gap: 22px; align-items: center; }
.cert-badge {
  flex: none; width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; text-align: center;
  background: linear-gradient(145deg, #232f3e, #0f1724); color: #fff; font-size: 12px; font-weight: 800; line-height: 1.2;
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .08), 0 0 0 3px #ffd2b8;
}
.cert-badge b { display: block; color: var(--orange); font-size: 18px; }
.cert h2 { font-size: 19px; margin-bottom: 6px; }
.cert p { color: var(--muted); font-size: 14px; margin-bottom: 10px; }
/* Earned certifications */
.cert-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.cert-card {
  display: grid; grid-template-columns: 210px 1fr; background: #fff; border: 1px solid var(--line);
  border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s;
}
.cert-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.cert-media { position: relative; display: grid; place-items: center; padding: 28px; overflow: hidden; }
.cert-media::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 20px 20px;
}
.cert-card.saa .cert-media { background: radial-gradient(circle at 50% 45%, rgba(80, 110, 255, .55), transparent 65%), linear-gradient(160deg, #101a3a, #1d2d6b); }
.cert-card.ccp .cert-media { background: radial-gradient(circle at 50% 45%, rgba(255, 107, 26, .4), transparent 65%), linear-gradient(160deg, #111827, #263244); }
.cert-media img { position: relative; width: 150px; height: 150px; object-fit: contain; filter: drop-shadow(0 14px 24px rgba(0, 0, 0, .45)); }
.cert-info { display: flex; flex-direction: column; align-items: flex-start; padding: 28px 30px; }
.cert-top { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.cert-top .pill { display: inline-flex; align-items: center; gap: 6px; }
.cert-top .pill i { width: 7px; height: 7px; border-radius: 50%; background: #22a861; box-shadow: 0 0 0 3px rgba(34, 168, 97, .2); }
.cert-level { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.cert-info h3 { font-size: 20px; line-height: 1.3; margin-bottom: 4px; }
.cert-issuer { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.cert-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; margin: 0 0 22px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cert-dates dt { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.cert-dates dd { margin: 2px 0 0; font-size: 15px; font-weight: 700; color: var(--ink); }
.cert-info .btn { margin-top: auto; }

/* Training badges */
.badge-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.badge-tile {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 18px;
  overflow: hidden; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s, border-color .25s;
}
.badge-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #ffd5bd; }
.badge-media {
  display: grid; place-items: center; padding: 30px 20px;
  background: radial-gradient(circle at 50% 50%, #fff 0%, transparent 60%), linear-gradient(180deg, #f4f6f9, #eceff4);
  border-bottom: 1px solid var(--line);
}
.badge-media img { width: 120px; height: 120px; object-fit: contain; filter: drop-shadow(0 10px 18px rgba(16, 24, 40, .18)); transition: transform .25s; }
.badge-tile:hover .badge-media img { transform: scale(1.06); }
.badge-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.badge-type { font-size: 12px; font-weight: 700; color: var(--orange); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.badge-body h3 { font-size: 17px; line-height: 1.35; margin-bottom: 6px; }
.badge-body p { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.badge-body .link { margin-top: auto; }
.cert-badge.planned { background: #f1f3f6; color: var(--muted); box-shadow: inset 0 0 0 2px #dfe3e9; }
.cert-badge.planned b { color: var(--muted); }
.pill { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; background: #e8f8ef; color: #18794e; }
.pill.planned { background: #f1f3f6; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.contact-card { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 30px; }
.contact-card .stat-icon { margin-bottom: 4px; }
.contact-card h3 { margin: 0; }
.contact-card span { color: var(--muted); font-size: 15px; word-break: break-word; }
.contact-card .link { color: var(--orange); font-size: 14px; }
.contact-card address { font-style: normal; color: var(--muted); font-size: 15px; line-height: 1.7; }
.qr-panel { display: flex; align-items: center; gap: 40px; margin-top: 24px; padding: 32px; }
.qr-code { flex: none; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); transition: transform .2s; }
.qr-code:hover { transform: scale(1.03); }
.qr-code img { width: 200px; height: 200px; }
.qr-panel h2 { font-size: 26px; }
.qr-panel p { max-width: 460px; }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: #95a0b2; padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.footer .logo { color: #fff; display: inline-block; margin-bottom: 10px; }
.footer p { font-size: 14px; max-width: 320px; }
.footer h4 { color: #fff; font-size: 14px; margin-bottom: 14px; letter-spacing: 0; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.footer a:hover { color: var(--orange); }
.socials { display: flex; gap: 10px; }
.socials a { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, .06); color: #fff; transition: background .2s; }
.socials a:hover { background: var(--orange); color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; padding-top: 24px; font-size: 13px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .tech-grid { grid-template-columns: repeat(4, 1fr); }
  .hero-grid { grid-template-columns: 1fr; padding: 64px 0 48px; }
  .hero-visual { min-height: 340px; }
  .about-snippet { grid-template-columns: 260px 1fr; gap: 40px; }
  .detail-grid, .about-grid, .cert-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  /* Mobile menu (checkbox toggle) */
  .menu-btn { display: grid; place-items: center; width: 42px; height: 42px; cursor: pointer; border-radius: 10px; }
  .menu-btn span, .menu-btn span::before, .menu-btn span::after { content: ""; display: block; width: 22px; height: 2px; border-radius: 2px; background: var(--ink); position: relative; transition: transform .25s, background .25s; }
  .menu-btn span::before { position: absolute; top: -7px; }
  .menu-btn span::after { position: absolute; top: 7px; }
  .menu-toggle:checked + .menu-btn span { background: transparent !important; }
  .menu-toggle:checked + .menu-btn span::before { transform: translateY(7px) rotate(45deg); }
  .menu-toggle:checked + .menu-btn span::after { transform: translateY(-7px) rotate(-45deg); }
  .navlinks {
    position: absolute; left: 0; right: 0; top: 72px; flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px 16px 20px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px rgba(16, 24, 40, .08);
    display: none;
  }
  .nav.dark .navlinks { background: var(--navy); border-bottom-color: rgba(255, 255, 255, .08); }
  .menu-toggle:checked ~ .navlinks { display: flex; }
  .navlinks a:not(.btn) { padding: 12px; }
  .navlinks .btn { margin: 8px 0 0; justify-content: center; }

  .focus-grid { grid-template-columns: repeat(3, 1fr); }
  .focus-item:nth-child(4) { border-left: 0; }
  .focus-item:nth-child(n+4) { border-top: 1px solid rgba(255, 255, 255, .08); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .journey { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .journey::before { display: none; }
  .about-snippet, .page-head-grid { grid-template-columns: 1fr; }
  .about-snippet .photo { max-width: 300px; }
  .page-head-grid .photo { max-width: 200px; order: -1; }
  .row { grid-template-columns: 220px 1fr; }
  .cta { flex-direction: column; align-items: flex-start; padding: 40px 32px; }
  .contact-grid { grid-template-columns: 1fr; }
  .interests, .badge-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 64px 0; }
}

@media (max-width: 600px) {
  .hero .lead { font-size: 16px; }
  .hero-visual { min-height: 300px; }
  .terminal { font-size: 12px; transform: none; }
  .chip { width: 52px; height: 52px; border-radius: 14px; }
  .chip img { width: 30px; height: 30px; }
  .chip.aws { width: 76px; height: 54px; top: -4%; }
  .chip.aws img { width: 48px; }
  .chip.c2, .chip.c3 { display: none; }
  .about-snippet .photo { max-width: 220px; }
  .focus-grid { grid-template-columns: repeat(2, 1fr); }
  .focus-item:nth-child(n) { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .08); }
  .focus-item:nth-child(even) { border-left: 1px solid rgba(255, 255, 255, .08); }
  .focus-item:nth-child(-n+2) { border-top: 0; }
  .focus-item:last-child { grid-column: 1 / -1; border-left: 0; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat { flex-direction: column; align-items: flex-start; gap: 10px; padding: 22px 16px; }
  .tech-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .cards, .cards.two, .journey, .arch { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .row { grid-template-columns: 1fr; }
  .row .cover { min-height: 170px; }
  .row-body { padding: 22px; }
  .cert { flex-direction: column; align-items: flex-start; }
  .badge-grid, .cert-card { grid-template-columns: 1fr; }
  .cert-media { padding: 24px; }
  .cert-media img { width: 120px; height: 120px; }
  .cert-info { padding: 24px; }
  .qr-panel { flex-direction: column; align-items: flex-start; gap: 24px; padding: 24px; }
  .qr-code img { width: 180px; height: 180px; }
  .cta h2 { font-size: 26px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
