/* ============================================================
   Shiva Pandey – Portfolio
   Civil Engineer & Construction Project Management
   ============================================================ */

/* ---------- Reset & base ---------- */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background .4s ease, color .4s ease;
}
@media (max-width: 768px) {
  body { font-size: 16px; line-height: 1.65; }
}

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

a { color: inherit; text-decoration: none; transition: color .25s ease; }

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

ul { list-style: none; }

/* ---------- Theme tokens (Dark default) ---------- */
:root {
  --bg: #0e1b2c;            /* Charcoal navy */
  --bg-2: #11233a;          /* Card surface */
  --bg-3: #0a1424;          /* Deeper sections */
  --surface: rgba(255,255,255,0.05);
  --surface-strong: rgba(255,255,255,0.08);
  --border: rgba(255,255,255,0.10);
  --border-strong: rgba(255,255,255,0.18);

  --text: #f0f4f9;
  --text-soft: #cdd5df;
  --text-mute: #98a3b3;

  --steel: #3a6ea5;         /* Steel blue */
  --steel-2: #1d4e89;
  --concrete: #c9d2dc;
  --orange: #ff8c42;        /* Safety orange */
  --orange-2: #ff6b1a;
  --green: #5b8c5a;

  --grad-primary: linear-gradient(135deg, #3a6ea5 0%, #1d4e89 100%);
  --grad-accent:  linear-gradient(135deg, #ff8c42 0%, #ff6b1a 100%);
  --grad-hero:    radial-gradient(1200px 600px at 80% -10%, rgba(58,110,165,.25), transparent 60%),
                  radial-gradient(900px 500px at -10% 30%, rgba(255,140,66,.15), transparent 60%),
                  linear-gradient(180deg, #0e1b2c 0%, #0a1424 100%);

  --shadow-sm: 0 2px 10px rgba(0,0,0,.18);
  --shadow-md: 0 6px 20px rgba(0,0,0,.22);
  --shadow-lg: 0 12px 32px rgba(0,0,0,.28);

  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 22px;

  --container: 1200px;

  --t-fast: .2s;
  --t-base: .35s;
  --t-slow: .6s;

  --easing: cubic-bezier(.22,.61,.36,1);
}

/* Light theme overrides */
body.light {
  --bg: #f5f7fa;
  --bg-2: #ffffff;
  --bg-3: #eef2f7;
  --surface: rgba(14,27,44,0.04);
  --surface-strong: rgba(14,27,44,0.07);
  --border: rgba(14,27,44,0.10);
  --border-strong: rgba(14,27,44,0.18);

  --text: #0e1b2c;
  --text-soft: #41556b;
  --text-mute: #6c7c8c;

  --grad-hero: radial-gradient(1200px 600px at 80% -10%, rgba(58,110,165,.18), transparent 60%),
               radial-gradient(900px 500px at -10% 30%, rgba(255,140,66,.12), transparent 60%),
               linear-gradient(180deg, #f5f7fa 0%, #e7ecf3 100%);

  --shadow-sm: 0 4px 14px rgba(14,27,44,.08);
  --shadow-md: 0 10px 30px rgba(14,27,44,.10);
  --shadow-lg: 0 20px 50px rgba(14,27,44,.12);
}

/* ---------- Layout ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 88px 0 80px;
  position: relative;
}
.section-alt {
  background: var(--bg-3);
}

.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section-tag {
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: .82rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--text-soft);
  background: var(--surface);
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  margin-bottom: 18px;
}
.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.section-sub {
  color: var(--text-soft);
  font-size: 1.02rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .02em;
  transition: all var(--t-base) var(--easing);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--grad-accent);
  color: #fff;
  box-shadow: 0 10px 24px rgba(255,107,26,.32);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(255,107,26,.45); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover {
  background: var(--surface-strong);
  border-color: var(--steel);
  color: var(--text);
  transform: translateY(-2px);
}

/* ---------- Glass card ---------- */
.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0;
  height: 3px; width: 0%;
  background: var(--grad-accent);
  z-index: 9999;
  transition: width .1s linear;
}

/* ---------- Background canvas ---------- */
.bg-canvas {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: -1;
  opacity: .28;
  pointer-events: none;
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: all .35s ease;
  background: rgba(14,27,44,0);
  border-bottom: 1px solid transparent;
}
body.light .navbar { background: rgba(245,247,250,0); }
.navbar.scrolled {
  background: rgba(14,27,44,.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
  padding: 12px 0;
  box-shadow: var(--shadow-sm);
}
body.light .navbar.scrolled {
  background: rgba(255,255,255,.85);
}

.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
}
.logo-mark {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--grad-accent);
  color: #fff;
  border-radius: 10px;
  box-shadow: 0 6px 14px rgba(255,107,26,.35);
}
.logo-text span { color: var(--orange); }

.nav-links {
  display: flex; gap: 28px;
}
.nav-links a {
  font-size: .94rem;
  font-weight: 500;
  color: var(--text-soft);
  position: relative;
  padding: 6px 0;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  height: 2px; width: 0; background: var(--orange);
  transition: width .3s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 12px; }
.theme-toggle {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text);
  transition: all .3s ease;
}
.theme-toggle:hover { background: var(--surface-strong); transform: rotate(20deg); }

.hamburger {
  display: none;
  width: 40px; height: 40px;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 5px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
}
.hamburger span {
  display: block; width: 20px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: all .25s ease;
}
.hamburger.open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2){ opacity: 0; }
.hamburger.open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 110px 0 60px;
  overflow: hidden;
  background: var(--grad-hero);
}
.hero-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(58,110,165,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(58,110,165,0.07) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(circle at center, rgba(0,0,0,.9), transparent 75%);
  -webkit-mask-image: radial-gradient(circle at center, rgba(0,0,0,.9), transparent 75%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: .85rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--text-soft);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.eyebrow .dot {
  width: 8px; height: 8px;
  background: #5be08a;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(91,224,138,.5);
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(91,224,138,.5); }
  100% { box-shadow: 0 0 0 12px rgba(91,224,138,0); }
}

.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  color: var(--text);
}
.accent { color: var(--orange); }
.name-last {
  color: var(--text);
  font-weight: 700;
}

.hero-headline {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--text);
  margin-bottom: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  line-height: 1.4;
}
.hero-headline > span:not(.sep) {
  position: relative;
}
.hero-headline > span:not(.sep)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -3px;
  width: 100%; height: 2px;
  background: var(--grad-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--easing);
}
.hero-headline > span:not(.sep):hover::after { transform: scaleX(1); }
.hero-headline .sep {
  color: var(--text-mute);
  font-weight: 300;
  opacity: .7;
}

.hero-desc {
  font-size: 1.02rem;
  color: var(--text-muted-2, #c4cfdb);
  max-width: 600px;
  margin-bottom: 24px;
  line-height: 1.7;
  letter-spacing: 0.005em;
}
body.light .hero-desc { color: #4a5b6f; }
.hero-desc strong {
  color: var(--text);
  font-weight: 600;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 24px;
}
.hero-cta .btn {
  padding: 13px 22px;
  min-height: 48px;
  line-height: 1;
}

.hero-socials { display: flex; gap: 12px; align-items: center; }
.hero-socials a {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-soft);
  transition: all .3s ease;
}
.hero-socials a:hover {
  background: var(--grad-accent);
  color: #fff;
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(255,107,26,.35);
}

/* Hero visual: circular PPE headshot */
.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.headshot-wrap {
  position: relative;
  width: 340px;
  height: 340px;
  max-width: 100%;
  animation: floaty 6s ease-in-out infinite;
}

/* Rotating dashed safety ring */
.headshot-ring {
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 2px dashed rgba(58,110,165,.55);
  animation: spin 22s linear infinite;
}
.headshot-ring::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 1px solid rgba(255,140,66,.35);
}

/* Image frame */
.headshot-frame {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: var(--grad-primary);
  border: 4px solid var(--bg-2);
  box-shadow: 0 10px 28px rgba(0,0,0,.28);
}
body.light .headshot-frame {
  border-color: #fff;
  box-shadow: 0 10px 28px rgba(14,27,44,.14);
}
.headshot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s var(--easing);
}
.headshot-wrap:hover .headshot-img { transform: scale(1.05); }

/* Fallback when image is missing */
.headshot-fallback {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--grad-primary);
  color: rgba(255,255,255,.85);
  font-size: 5rem;
}
.headshot-frame.no-img .headshot-fallback { display: flex; }

/* Floating "Years on site" badge */
.headshot-badge {
  position: absolute;
  bottom: 8px;
  right: -8px;
  padding: 12px 18px;
  border-radius: 16px;
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-strong);
  animation: floaty 6s ease-in-out infinite reverse;
}
.headshot-badge strong {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.45rem;
  color: var(--orange);
  line-height: 1;
}
.headshot-badge span {
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-soft);
}

/* PPE Certified chip */
.headshot-chip {
  position: absolute;
  top: 12px;
  left: -16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-sm);
}
.headshot-chip i { color: var(--steel); }
body.light .headshot-chip i { color: var(--steel-2); }

/* Compact stats strip below the headshot */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  max-width: 360px;
  padding: 14px 20px;
  border-radius: 14px;
}
.hero-stats > div:not(.divider) {
  flex: 1;
  text-align: center;
}
.hero-stats strong {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  color: var(--orange);
  line-height: 1.1;
}
.hero-stats span {
  font-size: .7rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.hero-stats .divider {
  width: 1px;
  height: 28px;
  background: var(--border-strong);
}

@keyframes spin { to { transform: rotate(360deg); } }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.scroll-down {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 44px;
  border: 2px solid var(--border-strong);
  border-radius: 14px;
  display: flex; justify-content: center;
  padding-top: 8px;
}
.scroll-down span {
  width: 4px; height: 8px;
  background: var(--orange);
  border-radius: 2px;
  animation: scrollDown 1.6s ease-in-out infinite;
}
@keyframes scrollDown {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(16px); opacity: 0; }
}

/* ---------- Currently Seeking banner ---------- */
.seeking-section {
  padding: 0 0 28px;
  margin-top: -40px;
  position: relative;
  z-index: 2;
}
.seeking-card {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  padding: 28px 32px;
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.seeking-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #5be08a 0%, var(--steel) 100%);
}

.seeking-left { display: flex; flex-direction: column; gap: 14px; }

.seeking-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #6fa86d;
  font-weight: 600;
}
.seeking-pulse {
  width: 10px; height: 10px;
  background: #5be08a;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(91,224,138,.5);
  animation: pulse 1.8s ease-out infinite;
}
.seeking-label::after {
  content: "";
  display: inline-block;
  width: 36px;
  height: 1px;
  background: var(--border-strong);
  margin-left: 10px;
  vertical-align: middle;
}

.seeking-message {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  font-weight: 500;
  line-height: 1.5;
  color: var(--text);
  max-width: 640px;
}
.seeking-message strong { color: var(--text); font-weight: 700; }

.seeking-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.seeking-roles span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  font-weight: 500;
  padding: 6px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-soft);
}
.seeking-roles span i { color: var(--steel); font-size: .8rem; }
body.light .seeking-roles span i { color: var(--steel-2); }

.seeking-right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding-left: 24px;
  border-left: 1px solid var(--border);
}
.seeking-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.meta-item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.meta-item i {
  width: 34px;
  height: 34px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--steel);
  font-size: .9rem;
  flex-shrink: 0;
}
body.light .meta-item i { color: var(--steel-2); }
.meta-item strong {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: .92rem;
  color: var(--text);
  line-height: 1.2;
}
.meta-item span {
  font-size: .76rem;
  color: var(--text-mute);
}

.seeking-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.btn-sm {
  padding: 10px 16px;
  min-height: auto;
  font-size: .85rem;
}

@media (max-width: 900px) {
  .seeking-card { grid-template-columns: 1fr; padding: 24px; gap: 22px; }
  .seeking-right { padding-left: 0; border-left: none; padding-top: 18px; border-top: 1px solid var(--border); }
}

/* ---------- Experience Snapshot ---------- */
.snapshot-section {
  padding: 20px 0 40px;
}
.snapshot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.snapshot-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform .25s ease, border-color .25s ease;
}
body.light .snapshot-card { background: #fff; }
.snapshot-card:hover {
  transform: translateY(-3px);
  border-color: var(--steel);
}
.snapshot-icon {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  color: var(--steel);
  border-radius: 10px;
  font-size: 1rem;
  margin-bottom: 6px;
}
body.light .snapshot-icon { color: var(--steel-2); }
.snapshot-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-mute);
  font-weight: 600;
}
.snapshot-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}
.snapshot-detail {
  font-size: .84rem;
  color: var(--text-soft);
}
@media (max-width: 900px) {
  .snapshot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .snapshot-grid { grid-template-columns: 1fr; gap: 12px; }
  .snapshot-card { padding: 18px 16px; }
}

/* ---------- Skill Category cards ---------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.category-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 22px 18px;
  transition: border-color .25s ease;
}
body.light .category-card { background: #fff; }
.category-card:hover { border-color: var(--steel); }
.category-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.category-head i {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  color: var(--steel);
  border-radius: 10px;
  font-size: .92rem;
  flex-shrink: 0;
}
body.light .category-head i { color: var(--steel-2); }
.category-head h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}
.category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.category-tags span {
  font-size: .82rem;
  font-weight: 500;
  padding: 6px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-soft);
  border-radius: 8px;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.category-tags span:hover {
  background: var(--surface-strong);
  color: var(--text);
  border-color: var(--border-strong);
}
@media (max-width: 768px) {
  .category-grid { grid-template-columns: 1fr; gap: 14px; }
  .category-card { padding: 18px; }
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 50px;
  align-items: start;
}
.about-text p { color: var(--text-soft); margin-bottom: 18px; }
.about-text strong { color: var(--text); }

.education { margin-top: 32px; }
.education h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  margin-bottom: 18px;
  display: inline-flex; align-items: center; gap: 10px;
}
.education h3 i { color: var(--steel); }

.edu-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 20px;
  padding: 18px;
  border-left: 3px solid var(--steel);
  background: var(--surface);
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  transition: transform .3s ease;
}
.edu-card:hover { transform: translateX(6px); }
.edu-date {
  font-family: 'Space Grotesk', sans-serif;
  font-size: .85rem;
  color: var(--text-mute);
  letter-spacing: .05em;
}
.edu-body h4 { font-size: 1.05rem; margin-bottom: 4px; }
.edu-body span { color: var(--steel); font-size: .9rem; font-weight: 500; }
body.light .edu-body span { color: var(--steel-2); }
.edu-body p { color: var(--text-soft); margin-top: 8px; font-size: .94rem; }

.about-side { display: flex; flex-direction: column; gap: 22px; }
.counter-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
  padding: 24px;
}
.counter strong {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.2rem;
  color: var(--orange);
  line-height: 1;
}
.counter span { font-size: .82rem; color: var(--text-soft); letter-spacing: .04em; }

.strengths { padding: 24px; }
.strengths h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  margin-bottom: 14px;
  display: inline-flex; align-items: center; gap: 10px;
}
.strengths h4 i { color: var(--steel); }
body.light .strengths h4 i { color: var(--steel-2); }
.strengths ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
}
.strengths li {
  display: flex; align-items: center; gap: 8px;
  font-size: .92rem;
  color: var(--text-soft);
}
.strengths li i { color: var(--green); font-size: .8rem; }

/* ---------- Experience timeline ---------- */
.timeline {
  position: relative;
  max-width: 920px; margin: 0 auto;
  padding-left: 40px;
}
.timeline::before {
  content: ""; position: absolute;
  left: 24px; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--steel), rgba(58,110,165,.2));
  border-radius: 2px;
}
.t-item {
  position: relative;
  margin-bottom: 36px;
}
.t-dot {
  position: absolute;
  left: -33px; top: 22px;
  width: 36px; height: 36px;
  background: var(--grad-accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  box-shadow: 0 0 0 6px var(--bg-3);
}
body.light .t-dot { box-shadow: 0 0 0 6px var(--bg-3); }

.t-card {
  padding: 24px 26px;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.t-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}
.t-head {
  display: flex; justify-content: space-between; gap: 16px; align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.t-head h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
}
.t-company { color: var(--steel); font-weight: 500; font-size: .95rem; }
body.light .t-company { color: var(--steel-2); }
.t-date {
  font-family: 'Space Grotesk', sans-serif;
  font-size: .82rem;
  color: var(--text-mute);
  background: var(--surface);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  white-space: nowrap;
}
.t-points li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
  color: var(--text-soft);
  font-size: .96rem;
}
.t-points li::before {
  content: ""; position: absolute;
  left: 4px; top: 11px;
  width: 6px; height: 6px;
  background: var(--steel);
  border-radius: 50%;
}
.t-points strong { color: var(--text); }
.t-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
}
.t-tags span {
  font-size: .75rem; letter-spacing: .05em;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  padding: 4px 10px; border-radius: 999px;
  color: var(--text-soft);
}

/* ---------- Featured Projects ---------- */
.featured-list {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.featured-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform .4s var(--easing), box-shadow .4s ease, border-color .4s ease;
}
body.light .featured-card { background: #fff; }
.featured-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--steel);
}
.featured-card.reverse .featured-media { order: 2; }

/* Featured media (image / fallback visual) */
.featured-media {
  display: flex;
  flex-direction: column;
  background: var(--bg-3);
}
body.light .featured-media { background: #f3f5f8; }

.featured-hero {
  position: relative;
  flex: 1;
  min-height: 320px;
  overflow: hidden;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  cursor: pointer;
  background:
    linear-gradient(135deg, rgba(58,110,165,.95) 0%, rgba(14,27,44,.95) 100%);
  transition: filter .35s ease;
}
.featured-card.reverse .featured-hero {
  background: linear-gradient(135deg, rgba(255,140,66,.85) 0%, rgba(29,78,137,.95) 100%);
}
.featured-hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  opacity: .8;
  z-index: 1;
}
.featured-hero:hover { filter: brightness(1.05); }
.featured-hero:hover .featured-img { transform: scale(1.03); }
.featured-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
  transition: transform .6s var(--easing);
}
.featured-fallback {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  color: #fff;
  padding: 24px;
}
.featured-fallback i {
  font-size: 5.5rem;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,.45));
  color: var(--orange);
}
.featured-fallback.alt i { color: #fff; }
.featured-fallback span {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .9;
}
.featured-hero.no-img .featured-fallback { display: flex; }
.featured-img { display: block; }
.featured-hero:not(.no-img) .featured-fallback { display: none; }

/* Budget & location floating chips on the media */
.featured-budget, .featured-loc {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(14,27,44,.85);
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.15);
  backdrop-filter: blur(6px);
}
.featured-budget {
  top: 18px; left: 18px;
  background: var(--grad-accent);
  border-color: transparent;
  box-shadow: 0 8px 18px rgba(255,107,26,.4);
}
.featured-budget.alt { background: rgba(14,27,44,.85); }
.featured-loc { bottom: 18px; left: 18px; }
.featured-budget i, .featured-loc i { font-size: .9rem; }

/* Featured content */
.featured-content {
  padding: 36px 34px;
  display: flex;
  flex-direction: column;
}
.featured-tagline {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 12px;
}
.featured-tagline i { color: var(--steel); }
body.light .featured-tagline i { color: var(--steel-2); }
.featured-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.2rem, 1.8vw, 1.55rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 10px;
}
.featured-company {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--text-soft);
  font-size: .95rem;
  margin-bottom: 18px;
}
.featured-company i { color: var(--steel); }
body.light .featured-company i { color: var(--steel-2); }

.featured-roles {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 22px;
}
.featured-roles span {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .82rem; font-weight: 500;
  padding: 6px 12px;
  background: rgba(58,110,165,.12);
  border: 1px solid rgba(58,110,165,.30);
  color: var(--steel);
  border-radius: 999px;
}
body.light .featured-roles span { color: var(--steel-2); }
.featured-roles span i { font-size: .78rem; color: var(--steel); }
body.light .featured-roles span i { color: var(--steel-2); }

.featured-sub {
  font-family: 'Space Grotesk', sans-serif;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin: 0 0 10px;
}

.featured-points {
  margin-bottom: 20px;
}
.featured-points li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
  color: var(--text-soft);
  font-size: .94rem;
  line-height: 1.55;
}
.featured-points li::before {
  content: "";
  position: absolute;
  left: 4px; top: 10px;
  width: 6px; height: 6px;
  background: var(--steel);
  border-radius: 50%;
}

.featured-tools {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 22px;
}
.featured-tools span {
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .04em;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 5px 11px;
  border-radius: 8px;
}

.featured-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px dashed var(--border);
}
.featured-highlights .hl {
  display: flex;
  align-items: center;
  gap: 10px;
}
.featured-highlights .hl i {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad-accent);
  color: #fff;
  border-radius: 10px;
  font-size: .95rem;
  flex-shrink: 0;
}
.featured-highlights .hl strong {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1;
}
.featured-highlights .hl span {
  font-size: .72rem;
  color: var(--text-mute);
  letter-spacing: .04em;
}

/* Project gallery (compact thumb grid below hero) */
.featured-gallery {
  padding: 14px 16px 16px;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
}
body.light .featured-gallery { background: #fff; }
.gallery-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.gallery-heading i { color: var(--steel); font-size: .8rem; }
body.light .gallery-heading i { color: var(--steel-2); }
.gallery-count {
  margin-left: auto;
  font-family: 'Inter', sans-serif;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: none;
  color: var(--text-soft);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 999px;
  min-width: 22px;
  text-align: center;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}
.gallery-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gallery-item {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: transform .25s var(--easing), border-color .25s ease, box-shadow .25s ease;
}
.featured-hero.gallery-item {
  aspect-ratio: auto;
  border-radius: 0;
  border: 0;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s var(--easing);
}
.gallery-item:not(.featured-hero)::after {
  content: "\f00e";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(14,27,44,.55);
  color: #fff;
  font-size: .85rem;
  opacity: 0;
  transition: opacity .2s ease;
  pointer-events: none;
}
.gallery-item:not(.featured-hero):hover {
  transform: translateY(-2px);
  border-color: var(--steel);
  box-shadow: 0 6px 14px rgba(0,0,0,.25);
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item:not(.featured-hero):hover::after { opacity: 1; }
.gallery-item:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}
.gallery-grid-3 .gallery-item { aspect-ratio: 4 / 3; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(8,15,26,.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 56px 64px;
}
.lightbox.open { display: flex; animation: lightboxFade .25s ease; }
@keyframes lightboxFade { from { opacity: 0; } to { opacity: 1; } }
.lightbox-figure {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 100%;
  max-height: 100%;
}
.lightbox-img {
  max-width: 90vw;
  max-height: calc(100vh - 140px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 30px 60px rgba(0,0,0,.55);
}
.lightbox-caption {
  font-size: .9rem;
  color: var(--text-soft);
  text-align: center;
  max-width: 720px;
  line-height: 1.5;
}
.lightbox-close,
.lightbox-nav {
  position: absolute;
  width: 48px; height: 48px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.05rem;
  transition: background .25s ease, transform .25s ease, border-color .25s ease;
}
.lightbox-close:hover,
.lightbox-nav:hover {
  background: var(--grad-accent);
  border-color: transparent;
  transform: scale(1.05);
}
.lightbox-close { top: 22px; right: 22px; }
.lightbox-prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 22px; top: 50%; transform: translateY(-50%); }
.lightbox-prev:hover { transform: translateY(-50%) scale(1.05); }
.lightbox-next:hover { transform: translateY(-50%) scale(1.05); }
.lightbox-counter {
  position: absolute;
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Space Grotesk', sans-serif;
  font-size: .8rem;
  letter-spacing: .14em;
  color: rgba(255,255,255,.7);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  padding: 6px 14px;
  border-radius: 999px;
}
body.no-scroll { overflow: hidden; }

@media (max-width: 900px) {
  .featured-card,
  .featured-card.reverse {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .featured-card.reverse .featured-media { order: 0; }
  .featured-hero { min-height: 240px; }
  .featured-fallback i { font-size: 4rem; }
  .featured-content { padding: 28px 24px; }
  .featured-highlights { grid-template-columns: 1fr; gap: 10px; }
  .featured-gallery { padding: 14px 18px 16px; }
  .gallery-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .gallery-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- Projects ---------- */
.filter-bar {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  margin-bottom: 40px;
}
.filter {
  padding: 10px 20px;
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 500;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-soft);
  transition: all .25s ease;
}
.filter:hover { color: var(--text); border-color: var(--border-strong); }
.filter.active {
  background: var(--grad-accent);
  color: #fff; border-color: transparent;
  box-shadow: 0 6px 14px rgba(255,107,26,.35);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 24px;
}
.project-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .4s var(--easing), box-shadow .4s ease, border-color .4s ease;
  display: flex; flex-direction: column;
  opacity: 1;
}
body.light .project-card { background: #fff; }
.project-card.hide { display: none; }
.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--steel);
}
.p-image {
  position: relative;
  aspect-ratio: 16 / 9;
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem; color: rgba(255,255,255,.92);
  overflow: hidden;
}
.p-image::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 24px 24px;
}
.p-image i { position: relative; z-index: 1; transition: transform .5s var(--easing); }
.project-card:hover .p-image i { transform: scale(1.15) rotate(-4deg); }

.p-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.p-body h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  margin-bottom: 8px;
}
.p-body > p { color: var(--text-soft); font-size: .94rem; margin-bottom: 14px; }
.p-meta {
  display: flex; flex-direction: column; gap: 4px;
  margin-bottom: 14px;
  padding: 10px 12px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  font-size: .85rem;
  color: var(--text-soft);
}
.p-meta strong { color: var(--text); }
.p-tools { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.p-tools span {
  font-size: .72rem; font-weight: 500;
  letter-spacing: .04em;
  background: rgba(58,110,165,.12);
  border: 1px solid rgba(58,110,165,.30);
  color: var(--steel);
  padding: 4px 10px; border-radius: 999px;
}
body.light .p-tools span { color: var(--steel-2); }

/* ---------- Skills section subheaders ---------- */
.skills-subhead {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--text);
  margin: 14px 0 22px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--steel);
}
.skills-subhead i { color: var(--steel); font-size: 1rem; }
body.light .skills-subhead { border-bottom-color: var(--steel-2); }
body.light .skills-subhead i { color: var(--steel-2); }
.skills-subhead:not(:first-of-type) { margin-top: 50px; }

/* ---------- Technical software cards ---------- */
.software-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
  margin-bottom: 10px;
}
.sw-card {
  --brand: var(--steel);
  position: relative;
  padding: 22px 18px 18px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-align: center;
  overflow: hidden;
  transition: transform .35s var(--easing),
              border-color .35s ease,
              box-shadow .35s ease;
}
body.light .sw-card { background: #fff; }

.sw-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--brand);
  opacity: .9;
}
.sw-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, var(--brand) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
}
.sw-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand);
}
.sw-card:hover::after { opacity: .05; }

.sw-icon {
  position: relative;
  width: 56px;
  height: 56px;
  margin: 4px auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--brand) 14%, transparent);
  color: var(--brand);
  border-radius: 14px;
  font-size: 1.55rem;
  transition: transform .35s var(--easing), background .35s ease;
}
.sw-card:hover .sw-icon {
  transform: scale(1.08) rotate(-3deg);
  background: color-mix(in srgb, var(--brand) 22%, transparent);
}

.sw-card h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text);
  position: relative;
}
.sw-cat {
  display: inline-block;
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-mute);
  position: relative;
}

/* ---------- Core competency bars ---------- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.skill {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  transition: border-color .3s ease, transform .3s ease;
}
.skill:hover { border-color: var(--steel); transform: translateY(-3px); }
.skill-head {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
}
.skill-head i {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--grad-primary);
  color: #fff;
  border-radius: 8px;
}
.skill-head em { margin-left: auto; font-style: normal; color: var(--text-soft); font-weight: 600; font-size: .9rem; }
.bar {
  height: 8px;
  background: var(--surface-strong);
  border-radius: 999px;
  overflow: hidden;
}
.bar span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--grad-accent);
  border-radius: 999px;
  transition: width 1.4s var(--easing);
}

/* ---------- Certifications ---------- */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 22px;
}
.cert-card {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 50px 24px 22px;
  text-align: center;
  transition: transform .3s var(--easing), border-color .3s ease;
  overflow: hidden;
}
body.light .cert-card { background: #fff; }
.cert-card:hover {
  transform: translateY(-3px);
  border-color: var(--steel);
}

/* Status pill top-right */
.cert-status {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
}
.cert-status.verified {
  background: rgba(91,140,90,.15);
  color: #6fa86d;
  border-color: rgba(91,140,90,.4);
}
.cert-status.progress {
  background: rgba(214,160,32,.14);
  color: #d4a020;
  border-color: rgba(214,160,32,.4);
}
.cert-status i { font-size: .7rem; }

/* Circular seal */
.cert-seal {
  position: relative;
  width: 88px;
  height: 88px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grad-primary);
  color: #fff;
  font-size: 2rem;
  border-radius: 50%;
  box-shadow: 0 10px 24px rgba(29,78,137,.35);
}
.cert-card.progress .cert-seal {
  background: linear-gradient(135deg, #6c7c8c, #41556b);
  box-shadow: 0 10px 24px rgba(108,124,140,.3);
}
.cert-seal-ring {
  position: absolute;
  inset: -6px;
  border: 2px dashed rgba(255,255,255,.0);
  border-radius: 50%;
  border-color: rgba(58,110,165,.45);
  animation: spin 36s linear infinite;
}
.cert-card.progress .cert-seal-ring {
  border-color: rgba(214,160,32,.4);
}

.cert-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
  line-height: 1.3;
}
.cert-issuer {
  color: var(--text-soft);
  font-size: .88rem;
  margin-bottom: 18px;
  min-height: 2.4em;
  line-height: 1.4;
}

.cert-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 14px;
  font-size: .78rem;
  color: var(--text-mute);
  padding-top: 14px;
  border-top: 1px dashed var(--border);
}
.cert-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.cert-meta i {
  color: var(--steel);
  font-size: .78rem;
}
body.light .cert-meta i { color: var(--steel-2); }

/* ---------- Resume ---------- */
.resume-wrap {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 30px;
  align-items: stretch;
}
.resume-info {
  padding: 36px 32px;
  display: flex; flex-direction: column; justify-content: center;
}
.resume-icon {
  width: 70px; height: 70px;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad-accent);
  color: #fff;
  font-size: 2rem;
  border-radius: 18px;
  margin-bottom: 22px;
  box-shadow: 0 12px 24px rgba(255,107,26,.35);
}
.resume-info h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem; margin-bottom: 10px;
}
.resume-info p { color: var(--text-soft); margin-bottom: 22px; }
.resume-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.resume-preview {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-2);
  box-shadow: var(--shadow-md);
  min-height: 540px;
}
.resume-preview iframe {
  width: 100%; height: 100%;
  min-height: 540px;
  border: 0;
  display: block;
}

/* ---------- Contact ---------- */
.contact-info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 900px;
  margin: 0 auto;
}
.info-card {
  display: flex; align-items: center; gap: 16px;
  padding: 22px 24px;
  transition: transform .3s ease, border-color .3s ease;
}
.info-card:hover { transform: translateY(-3px); border-color: var(--orange); }
.info-icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad-primary);
  color: #fff; border-radius: 12px;
  font-size: 1.1rem; flex-shrink: 0;
}
.info-card h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 2px;
  font-weight: 600;
}
.info-card span { color: var(--text); font-weight: 500; word-break: break-word; }
a.info-card { color: inherit; }
a.info-card:hover span { color: var(--orange); }

/* ---------- Let's Connect CTA ---------- */
.cta-section {
  padding: 20px 0 40px;
}
.cta-card {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  padding: 56px 48px;
  overflow: hidden;
  text-align: center;
}
body.light .cta-card { background: #fff; }
.cta-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 240px at 50% 0%, rgba(255,140,66,.12), transparent 70%),
    radial-gradient(500px 200px at 100% 100%, rgba(58,110,165,.12), transparent 70%);
  pointer-events: none;
}
.cta-content { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.cta-tag {
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: .78rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--orange);
  background: rgba(255,140,66,.10);
  border: 1px solid rgba(255,140,66,.28);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.cta-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
  color: var(--text);
}
.cta-text {
  color: var(--text-soft);
  font-size: 1.02rem;
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto 26px;
}
.cta-text strong { color: var(--text); font-weight: 600; }
.cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
@media (max-width: 600px) {
  .cta-card { padding: 40px 24px; }
  .cta-actions { flex-direction: column; align-items: stretch; }
  .cta-actions .btn { justify-content: center; }
}

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-3);
  border-top: 1px solid var(--border);
  padding: 56px 0 22px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1.6fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.footer-col { display: flex; flex-direction: column; gap: 12px; }

.footer-brand .logo { margin-bottom: 4px; }
.footer-brand p {
  color: var(--text-soft);
  font-size: .92rem;
  line-height: 1.55;
}
.footer-status {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  font-size: .84rem !important;
  color: var(--text-soft) !important;
  margin-top: 4px !important;
}
.footer-status .seeking-pulse { width: 8px; height: 8px; }

.footer-heading {
  font-family: 'Space Grotesk', sans-serif;
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 6px;
  font-weight: 600;
}

.footer-contact,
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  margin: 0;
  justify-content: flex-start;
}
.footer-contact li,
.footer-links li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .9rem;
}
.footer-contact i {
  width: 28px;
  height: 28px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--steel);
  border-radius: 8px;
  font-size: .8rem;
  flex-shrink: 0;
}
body.light .footer-contact i { color: var(--steel-2); }
.footer-contact a,
.footer-contact span {
  color: var(--text-soft);
  word-break: break-word;
  line-height: 1.4;
}
.footer-contact a:hover { color: var(--text); }

.footer-links a {
  color: var(--text-soft);
  font-size: .92rem;
  position: relative;
  padding-left: 14px;
}
.footer-links a::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--steel);
  transition: transform .25s ease;
}
body.light .footer-links a::before { color: var(--steel-2); }
.footer-links a:hover { color: var(--text); }
.footer-links a:hover::before { transform: translateX(3px); }

.footer-small {
  color: var(--text-soft);
  font-size: .88rem;
  line-height: 1.5;
}
.footer-cta {
  align-self: flex-start;
  margin-top: 4px;
}

.footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
.footer-socials a {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-soft);
  transition: all .25s ease;
}
.footer-socials a:hover {
  background: var(--grad-accent); color: #fff; border-color: transparent;
  transform: translateY(-3px);
}

.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
  padding-top: 20px;
  font-size: .82rem;
  color: var(--text-mute);
}
.footer-tagline {
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: .04em;
}

@media (max-width: 992px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    text-align: left;
  }
}
@media (max-width: 600px) {
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { justify-content: center; text-align: center; flex-direction: column; gap: 6px; }
  .footer-socials { justify-content: flex-start; }
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  bottom: 26px; right: 26px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--grad-accent);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 26px rgba(255,107,26,.45);
  opacity: 0; visibility: hidden;
  transform: translateY(10px);
  transition: all .3s ease;
  z-index: 999;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-3px) scale(1.05); }

/* ---------- Reveal animation (progressive enhancement) ---------- */
/* Without JS, content is fully visible. With JS, hide until in-view. */
html.js .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s var(--easing), transform .8s var(--easing);
}
html.js .reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* Hero is above-the-fold: animate on page render so it doesn't wait for the IntersectionObserver tick. */
@keyframes heroReveal {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
html.js .hero .reveal {
  animation: heroReveal .65s var(--easing) both;
}
html.js .hero .hero-visual.reveal { animation-delay: .12s; }

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual { order: -1; }
  .headshot-wrap { width: 280px; height: 280px; }
  .headshot-badge { padding: 10px 14px; }
  .headshot-badge strong { font-size: 1.2rem; }

  .about-grid { grid-template-columns: 1fr; }
  .resume-wrap { grid-template-columns: 1fr; }
  .resume-preview { min-height: 600px; }
  .contact-info { grid-template-columns: 1fr; gap: 14px; max-width: 560px; }

}

@media (max-width: 768px) {
  .section { padding: 60px 0 52px; }
  .section-head { margin-bottom: 32px; }

  /* Navbar mobile drawer */
  .nav-links {
    position: fixed;
    top: 64px; right: 0; bottom: 0;
    width: 82%;
    max-width: 320px;
    background: var(--bg-2);
    border-left: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    padding: 20px 24px;
    transform: translateX(100%);
    transition: transform .35s ease;
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
  }
  body.light .nav-links { background: #fff; }
  .nav-links.open { transform: translateX(0); }
  .nav-links a {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    width: 100%;
    font-size: 1rem;
  }
  .nav-links a::after { display: none; }
  .hamburger { display: flex; }

  /* Hero compress + button alignment */
  .hero { padding: 100px 0 50px; min-height: auto; }
  .hero-title { font-size: clamp(2rem, 8vw, 2.6rem); }
  .hero-headline { font-size: .92rem; gap: 6px 8px; }
  .hero-desc { font-size: .95rem; }
  .hero-cta {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 10px;
  }
  .hero-cta .btn {
    flex: 1 1 auto;
    justify-content: center;
    padding: 12px 18px;
    font-size: .9rem;
    min-height: 46px;
  }
  .hero-socials a { width: 38px; height: 38px; }

  /* Headshot smaller on mobile */
  .headshot-wrap { width: 240px; height: 240px; }
  .headshot-badge { padding: 8px 12px; bottom: 6px; right: -4px; }
  .headshot-badge strong { font-size: 1.05rem; }
  .headshot-chip { top: 8px; left: -8px; padding: 6px 10px; font-size: .68rem; }
  .hero-stats { padding: 12px 14px; gap: 8px; }
  .hero-stats strong { font-size: 1rem; }
  .hero-stats span { font-size: .65rem; }
  .hero-stats .divider { height: 22px; }

  /* Currently Seeking banner */
  .seeking-section { padding-bottom: 30px; margin-top: -20px; }
  .seeking-card { padding: 20px 18px; gap: 18px; }
  .seeking-message { font-size: 1rem; }
  .seeking-roles span { font-size: .76rem; padding: 5px 10px; }
  .meta-item i { width: 30px; height: 30px; font-size: .82rem; }
  .meta-item strong { font-size: .88rem; }
  .meta-item span { font-size: .72rem; }
  .seeking-actions .btn { flex: 1; justify-content: center; }

  /* About content */
  .edu-card { grid-template-columns: 1fr; gap: 8px; padding: 16px; }
  .edu-date { font-size: .8rem; }
  .strengths ul { grid-template-columns: 1fr; }
  .counter-grid { grid-template-columns: 1fr 1fr; padding: 18px; gap: 14px; }
  .counter strong { font-size: 1.8rem; }

  /* Timeline */
  .timeline { padding-left: 30px; }
  .timeline::before { left: 17px; }
  .t-dot { left: -27px; width: 30px; height: 30px; font-size: .85rem; }
  .t-card { padding: 20px; }
  .t-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .t-head h3 { font-size: 1.08rem; }
  .t-date { font-size: .76rem; }

  /* Featured + Project cards */
  .featured-hero { min-height: 200px; }
  .featured-fallback i { font-size: 3.4rem; }
  .featured-fallback span { font-size: .9rem; }
  .featured-content { padding: 24px 20px; }
  .featured-title { font-size: 1.2rem; }
  .featured-points li { font-size: .9rem; }
  .featured-highlights { grid-template-columns: 1fr; gap: 10px; }
  .featured-budget, .featured-loc { font-size: .72rem; padding: 6px 10px; }
  .featured-gallery { padding: 12px 16px 14px; }
  .gallery-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
  .gallery-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gallery-heading { font-size: .66rem; }
  .lightbox { padding: 40px 24px; }
  .lightbox-close, .lightbox-nav { width: 40px; height: 40px; font-size: .95rem; }
  .lightbox-close { top: 14px; right: 14px; }
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
  .lightbox-counter { top: 18px; font-size: .72rem; padding: 5px 12px; }
  .lightbox-img { max-height: calc(100vh - 120px); }

  .project-card .p-body { padding: 18px; }
  .filter { padding: 8px 14px; font-size: .8rem; }

  /* Software & competencies */
  .software-grid { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
  .sw-card { padding: 18px 14px 14px; }
  .sw-icon { width: 48px; height: 48px; font-size: 1.3rem; }
  .sw-card h4 { font-size: .92rem; }
  .sw-cat { font-size: .64rem; }
  .skills-subhead:not(:first-of-type) { margin-top: 36px; }

  /* Certifications */
  .cert-card { padding: 46px 20px 20px; }
  .cert-seal { width: 76px; height: 76px; font-size: 1.7rem; }
  .cert-card h3 { font-size: 1rem; }
  .cert-issuer { font-size: .84rem; min-height: 0; }

  /* Resume + Contact */
  .resume-info { padding: 26px 22px; }
  .resume-actions .btn { flex: 1; justify-content: center; }
  .resume-preview { min-height: 480px; }
  .info-card { padding: 18px 20px; }

  .scroll-down { display: none; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .section { padding: 52px 0 44px; }
  .section-head { margin-bottom: 28px; }

  .navbar { padding: 12px 0; }
  .navbar.scrolled { padding: 10px 0; }
  .logo-text { font-size: 1rem; }

  /* Hero */
  .hero-title { font-size: clamp(1.85rem, 9vw, 2.3rem); }
  .eyebrow { font-size: .72rem; padding: 6px 12px; }
  .hero-desc { font-size: .9rem; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }

  /* Headshot — keep visible but compact */
  .headshot-wrap { width: 210px; height: 210px; }
  .headshot-badge { right: 0; }
  .headshot-chip { left: -4px; font-size: .64rem; }
  .hero-stats { flex-wrap: wrap; row-gap: 10px; }
  .hero-stats .divider { display: none; }
  .hero-stats > div:not(.divider) {
    flex: 0 0 33%;
    padding: 4px 6px;
  }

  /* Counters: keep 2 col, smaller font */
  .counter strong { font-size: 1.55rem; }
  .counter span { font-size: .74rem; }

  /* Seeking banner: stack vertical, single-column buttons */
  .seeking-card { padding: 18px 16px; }
  .seeking-actions { flex-direction: column; }
  .seeking-actions .btn { width: 100%; }

  /* Featured */
  .featured-list { gap: 36px; }
  .featured-content { padding: 22px 18px; }
  .featured-title { font-size: 1.1rem; line-height: 1.3; }
  .featured-roles span { font-size: .74rem; padding: 5px 10px; }

  /* Software: 2 col always */
  .software-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .sw-card { padding: 16px 12px 12px; }
  .sw-icon { width: 44px; height: 44px; font-size: 1.2rem; margin-bottom: 10px; }
  .sw-card h4 { font-size: .88rem; }
  .sw-cat { font-size: .6rem; }

  /* Cert: single col */
  .cert-grid { grid-template-columns: 1fr; }
  .cert-status { font-size: .62rem; padding: 3px 8px; }

  /* Resume + Contact */
  .resume-info { padding: 22px 18px; }
  .resume-icon { width: 56px; height: 56px; font-size: 1.6rem; }
  .resume-info h3 { font-size: 1.1rem; }
  .resume-preview { min-height: 400px; }
  .info-card { padding: 16px 18px; }

  /* Back-to-top: smaller, edge-friendly */
  .back-to-top { width: 42px; height: 42px; bottom: 18px; right: 18px; }
}

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