:root {
  --hero-grad:   linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --hero-start:  #667eea;
  --hero-end:    #764ba2;
  --navy:        #0d2340;
  --navy-mid:    #1a3a5c;
  --blue:        #2563eb;
  --blue-light:  #3b82f6;
  --blue-pale:   #eff6ff;
  --gold:        #c9a84c;
  --gold-light:  #f0d990;
  --white:       #ffffff;
  --off-white:   #f9f8f6;
  --stone:       #f3f1ee;
  --border:      #e5e0d8;
  --text-dark:   #0d2340;
  --text-mid:    #4a5568;
  --text-light:  #8a9bb0;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body:    'Outfit', sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}
body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--text-dark);
  overflow-x: hidden;
  max-width: 100%;
  font-size: 15px;
  line-height: 1.6;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 68px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 3rem;
  background: transparent;
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  border-bottom: 1px solid transparent;
}
nav.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}
.nav-logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: 0.01em;
  color: white;
  transition: color 0.35s;
}
nav.scrolled .nav-logo { color: var(--navy); }
.nav-logo em { font-style: italic; color: rgba(255,255,255,0.7); transition: color 0.35s; }
nav.scrolled .nav-logo em { color: var(--gold); }

.nav-links { display: flex; gap: 2.5rem; list-style: none; align-items: center; }
.nav-links a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover { color: white; }
nav.scrolled .nav-links a { color: var(--text-mid); }
nav.scrolled .nav-links a:hover { color: var(--navy); }

.nav-cta {
  background: rgba(255,255,255,0.15) !important;
  color: white !important;
  padding: 0.5rem 1.3rem;
  border-radius: 3px;
  letter-spacing: 0.06em !important;
  border: 1px solid rgba(255,255,255,0.3) !important;
  transition: all 0.2s !important;
}
.nav-cta:hover { background: rgba(255,255,255,0.25) !important; }
nav.scrolled .nav-cta {
  background: var(--navy) !important;
  color: white !important;
  border-color: var(--navy) !important;
}
nav.scrolled .nav-cta:hover { background: var(--navy-mid) !important; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; }
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: white; transition: background 0.35s; }
nav.scrolled .nav-toggle span { background: var(--navy); }

@media (max-width: 820px) {
  nav { padding: 0 1.5rem; }
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: white; flex-direction: column; padding: 1.5rem 2rem 2rem;
    gap: 1.2rem; border-bottom: 1px solid var(--border); align-items: flex-start;
  }
  .nav-links.open { display: flex; }
  .nav-links a { color: var(--text-mid) !important; }
  .nav-cta { background: var(--navy) !important; border-color: var(--navy) !important; }
  .nav-toggle { display: flex; }
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  background: var(--hero-grad);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 2rem 6rem;
  position: relative;
  overflow: visible;
}
/* Subtle mesh overlay for depth */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(255,255,255,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(255,255,255,0.06) 0%, transparent 50%);
  pointer-events: none;
}
/* Decorative floating circles */
.hero::after {
  content: '';
  position: absolute; bottom: -80px; right: -80px;
  width: 400px; height: 400px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.08);
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 1;
  max-width: 680px;
  animation: heroFadeIn 0.9s ease both;
}
@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Profile Picture */
.hero-avatar-wrap {
  margin: 0 auto 1.8rem;
  width: 120px; height: 120px;
  position: relative;
  animation: heroFadeIn 0.9s 0.1s ease both;
}
.hero-avatar {
  width: 120px; height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255,255,255,0.5);
  box-shadow: 0 8px 40px rgba(0,0,0,0.25);
  display: block;
}
.hero-avatar-initials {
  width: 120px; height: 120px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 3px solid rgba(255,255,255,0.4);
  box-shadow: 0 8px 40px rgba(0,0,0,0.2);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 2.2rem; font-weight: 600;
  color: white;
  letter-spacing: 0.02em;
}
.hero-available {
  position: absolute; bottom: 4px; right: 4px;
  width: 18px; height: 18px; border-radius: 50%;
  background: #22c55e;
  border: 2.5px solid white;
  box-shadow: 0 0 0 3px rgba(34,197,94,0.25);
}

/* Name & titles */
.hero-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(3rem, 6vw, 4.8rem);
  line-height: 1.05;
  color: white;
  margin-bottom: 0.3em;
  animation: heroFadeIn 0.9s 0.15s ease both;
}
.hero-eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1rem;
  animation: heroFadeIn 0.9s 0.05s ease both;
}
.hero-blurb {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.75);
  font-weight: 300;
  line-height: 1.75;
  margin-bottom: 1.8rem;
  animation: heroFadeIn 0.9s 0.2s ease both;
}
.hero-blurb strong { color: white; font-weight: 500; }

/* Typed line */
.typed-wrap {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.6);
  font-weight: 300;
  margin-bottom: 2.5rem;
  letter-spacing: 0.03em;
  animation: heroFadeIn 0.9s 0.25s ease both;
}
.typed-word {
  color: rgba(255,255,255,0.95); font-weight: 500;
  display: inline-block;
  transition: filter 0.35s ease, opacity 0.35s ease;
}
.typed-word.blur-out {
  filter: blur(8px);
  opacity: 0;
}
.typed-word.blur-in {
  animation: blurIn 0.45s ease forwards;
}
@keyframes blurIn {
  from { filter: blur(8px); opacity: 0; }
  to   { filter: blur(0px); opacity: 1; }
}

.hero-actions {
  display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center;
  animation: heroFadeIn 0.9s 0.3s ease both;
}
.btn-primary {
  background: white; color: #764ba2;
  padding: 0.8rem 2rem; border-radius: 4px; text-decoration: none;
  font-weight: 600; font-size: 0.82rem; letter-spacing: 0.07em; text-transform: uppercase;
  transition: all 0.2s; box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,0,0,0.2); }
.btn-outline-light {
  background: transparent; color: rgba(255,255,255,0.85);
  padding: 0.8rem 2rem; border-radius: 4px; text-decoration: none;
  font-weight: 400; font-size: 0.82rem; letter-spacing: 0.07em; text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.35); transition: all 0.2s;
}
.btn-outline-light:hover { border-color: rgba(255,255,255,0.7); color: white; transform: translateY(-2px); }

/* Hero social links */
.hero-socials {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 20px;
  animation: heroFadeIn 0.9s 0.35s ease both;
}
.hero-social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.02em;
  backdrop-filter: blur(8px);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.hero-social-link:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}
.hero-social-link i {
  font-size: 1rem;
  opacity: 0.9;
}

/* Hero wave bottom */
.hero-wave {
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 90px;
  pointer-events: none;
  overflow: hidden;
}
.hero-wave canvas {
  display: block;
  width: 100%;
  height: 100%;
}

@media (max-width: 600px) {
  .hero-wave { height: 60px; }
}

@media (max-width: 600px) {
  .hero { padding: 110px 1.5rem 5rem; }
  .hero-name { font-size: 2.8rem; }
}

/* ── SECTIONS ── */
section { padding: 7rem 3rem; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-header { margin-bottom: 4rem; }
.section-eyebrow {
  font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin-bottom: 0.8rem;
  display: flex; align-items: center; gap: 0.7rem;
}
.section-eyebrow::before { content: ''; display: block; width: 28px; height: 1px; background: var(--gold); }
.section-title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2.2rem, 3.5vw, 3rem); line-height: 1.1; color: var(--navy); margin-bottom: 0.8rem;
}
.section-title em { font-style: italic; color: var(--gold); }
.section-sub { color: var(--text-mid); font-size: 0.95rem; line-height: 1.7; max-width: 520px; font-weight: 300; }

/* ── EXPERIENCE ── */
#experience { background: var(--white); }
.exp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5px;
  background: var(--border);
  border: 1px solid var(--border);
}
.exp-card {
  background: var(--white); padding: 2.2rem;
  transition: background 0.25s; position: relative;
}
.exp-card:hover { background: var(--off-white); }
.exp-card-current { background: var(--blue-pale); }
.exp-card-current:hover { background: #e0ecff; }
.exp-logo-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.4rem;
}
.exp-logo-wrap {
  height: 50px; max-width: 110px;
  display: flex; align-items: center;
}
.exp-logo-wrap img {
  max-height: 50px; max-width: 110px;
  width: auto; object-fit: contain;
  filter: grayscale(30%); opacity: 0.85;
  transition: opacity 0.2s, filter 0.2s;
}
.exp-card:hover .exp-logo-wrap img { opacity: 1; filter: none; }
.exp-logo-fallback {
  font-size: 0.7rem; font-weight: 600; color: var(--text-light);
  letter-spacing: 0.06em; text-transform: uppercase; display: none;
}
.exp-logo-fallback.show { display: block; }
.exp-status {
  font-size: 0.66rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--blue); background: rgba(37,99,235,0.08);
  padding: 0.2rem 0.6rem; border-radius: 2px;
}
.exp-period { font-size: 0.72rem; color: var(--text-light); font-weight: 400; letter-spacing: 0.05em; margin-bottom: 0.5rem; }
.exp-title { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; color: var(--navy); line-height: 1.25; margin-bottom: 0.2rem; }
.exp-company { font-size: 0.82rem; font-weight: 500; color: var(--blue); margin-bottom: 0.2rem; }
.exp-location { font-size: 0.78rem; color: var(--text-light); margin-bottom: 1.5rem; }
.exp-divider { width: 28px; height: 1px; background: var(--gold); margin-bottom: 1.4rem; }
.exp-highlights { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1.6rem; }
.exp-highlights li {
  font-size: 0.83rem; color: var(--text-mid); line-height: 1.6;
  padding-left: 1rem; position: relative;
}
.exp-highlights li::before { content: '—'; position: absolute; left: 0; color: var(--gold); font-size: 0.7rem; top: 0.1rem; }
.exp-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.exp-tag {
  font-size: 0.68rem; font-weight: 500; color: var(--text-mid);
  border: 1px solid var(--border); padding: 0.2rem 0.6rem; border-radius: 2px;
  letter-spacing: 0.04em; background: var(--stone);
}
.exp-loading { padding: 3rem; color: var(--text-light); font-size: 0.9rem; text-align: center; grid-column: 1/-1; }

/* ── PROJECTS ── */
#projects { background: var(--stone); }
.projects-list { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--border); }
.proj-row {
  display: grid; grid-template-columns: 1fr 2fr;
  background: var(--white); border-bottom: 1px solid var(--border);
  transition: background 0.25s;
  overflow: hidden;
}
.proj-row:last-child { border-bottom: none; }
.proj-row:hover { background: var(--off-white); }
.proj-left {
  padding: 2.5rem 2rem 2.5rem 2.5rem;
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; justify-content: space-between;
  min-width: 0;
}
.proj-number {
  font-family: var(--font-display); font-size: 3.5rem; font-weight: 400;
  color: var(--border); line-height: 1; margin-bottom: 1rem;
}
.proj-name { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; color: var(--navy); line-height: 1.25; margin-bottom: 0.5rem; }
.proj-tech-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: auto; padding-top: 1.5rem; }
.proj-tech-tag {
  font-size: 0.67rem; font-weight: 500; color: var(--text-mid);
  border: 1px solid var(--border); padding: 0.2rem 0.55rem;
  border-radius: 2px; letter-spacing: 0.04em; background: var(--stone);
}
.proj-right { padding: 2.5rem; min-width: 0; overflow: hidden; }
.proj-overview { font-size: 0.92rem; color: var(--text-mid); line-height: 1.75; margin-bottom: 1.4rem; font-weight: 300; }
.proj-features { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.proj-features li {
  font-size: 0.82rem; color: var(--text-mid); padding-left: 1.1rem;
  position: relative; line-height: 1.6;
}
.proj-features li::before { content: '—'; position: absolute; left: 0; color: var(--gold); font-size: 0.7rem; top: 0.1rem; }
.proj-loading { padding: 3rem; color: var(--text-light); font-size: 0.9rem; text-align: center; }

/* ── PROJECT VIEW LINK ── */
.proj-view-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border: 1px solid var(--blue-light);
  border-radius: 3px;
  background: var(--blue-pale);
  transition: all 0.2s;
  align-self: flex-start;
}
.proj-view-link:hover {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(37,99,235,0.2);
}
.proj-view-link-arrow {
  display: inline-block;
  transition: transform 0.2s;
}
.proj-view-link:hover .proj-view-link-arrow { transform: translateX(3px); }

/* ── PROJECT PHOTO CAROUSEL ── */
.proj-carousel {
  position: relative;
  margin-bottom: 1.6rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  background: var(--stone);
  /* Critical: prevent carousel from overflowing its grid cell */
  width: 100%;
  max-width: 100%;
}
.proj-carousel-track { position: relative; width: 100%; overflow: hidden; }
.proj-carousel-slide {
  display: none;
  position: relative;
  width: 100%;
}
.proj-carousel-slide.active { display: block; }
.proj-carousel-slide img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}
.proj-carousel-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 0.55rem 1rem;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.9);
  background: linear-gradient(transparent, rgba(13,35,64,0.72));
  letter-spacing: 0.02em;
  font-weight: 400;
}

/* Prev / Next arrows */
.proj-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.88);
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
  line-height: 1;
}
.proj-carousel-arrow:hover { background: var(--navy); color: white; border-color: var(--navy); }
.proj-carousel-prev { left: 0.65rem; }
.proj-carousel-next { right: 0.65rem; }

/* Dot indicators */
.proj-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 5px;
  padding: 0.55rem 0;
  background: var(--stone);
  border-top: 1px solid var(--border);
}
.proj-carousel-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}
.proj-carousel-dot.active {
  background: var(--navy);
  transform: scale(1.3);
}
.proj-carousel-dot:hover { background: var(--blue-light); }

@media (max-width: 700px) {
  .proj-row { grid-template-columns: 1fr; }
  .proj-left { border-right: none; border-bottom: 1px solid var(--border); padding: 2rem; }
  .proj-right { padding: 2rem; }
}

/* ── EDUCATION ── */
#education { background: var(--navy); }
#education .section-title { color: white; }
#education .section-sub { color: rgba(255,255,255,0.5); }
.edu-card {
  display: grid; grid-template-columns: 1fr auto;
  gap: 2rem; align-items: start;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-left: 3px solid var(--gold);
  padding: 2.5rem 2.8rem;
  max-width: 820px;
  transition: background 0.25s;
  margin-bottom: 1.5rem;
}
.edu-card:hover { background: rgba(255,255,255,0.07); }
.edu-logo-wrap {
  margin-bottom: 1.4rem;
  height: 36px; display: flex; align-items: center;
}
.edu-logo-wrap img { max-height: 36px; max-width: 160px; object-fit: contain; }
.edu-year-pill {
  font-family: var(--font-display); font-size: 1rem; font-weight: 500;
  font-style: italic; color: var(--gold); white-space: nowrap; padding-top: 0.3rem;
}
.edu-degree {
  font-family: var(--font-display); font-weight: 600; font-size: 1.6rem;
  color: white; margin-bottom: 0.3rem; line-height: 1.2;
}
.edu-school { font-size: 0.85rem; font-weight: 500; color: rgba(255,255,255,0.55); margin-bottom: 0.15rem; letter-spacing: 0.02em; }
.edu-location { font-size: 0.78rem; color: rgba(255,255,255,0.3); margin-bottom: 1.6rem; }
.edu-divider { width: 28px; height: 1px; background: var(--gold); margin-bottom: 1.4rem; }
.edu-points { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.edu-points li {
  font-size: 0.83rem; color: rgba(255,255,255,0.55);
  padding-left: 1.1rem; position: relative; line-height: 1.6;
}
.edu-points li::before { content: '—'; position: absolute; left: 0; color: var(--gold); font-size: 0.7rem; top: 0.1rem; }
.edu-loading { color: rgba(255,255,255,0.4); font-size: 0.9rem; padding: 2rem 0; }
@media (max-width: 600px) { .edu-card { grid-template-columns: 1fr; } }

/* ── CERTIFICATIONS ── */
#certifications { background: var(--white); }
.certs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.cert-card { border: 1px solid var(--border); padding: 2rem 2.2rem; transition: all 0.25s; position: relative; }
.cert-card:hover { border-color: var(--gold); transform: translateY(-3px); box-shadow: 0 8px 32px rgba(201,168,76,0.1); }
.cert-card.award { border-color: var(--gold); background: #fffdf5; }
.cert-issuer-logo { height: 22px; margin-bottom: 1.2rem; display: flex; align-items: center; }
.cert-issuer-logo img { max-height: 22px; max-width: 90px; object-fit: contain; }
.cert-year {
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem;
}
.cert-year::before { content: ''; display: block; width: 18px; height: 1px; background: var(--gold); }
.cert-name { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; color: var(--navy); line-height: 1.25; margin-bottom: 0.3rem; }
.cert-issuer { font-size: 0.8rem; color: var(--text-light); margin-bottom: 1.2rem; font-weight: 400; }
.cert-divider { width: 24px; height: 1px; background: var(--border); margin-bottom: 1.2rem; }
.cert-desc { font-size: 0.83rem; color: var(--text-mid); line-height: 1.65; font-weight: 300; }
.cert-award-badge { position: absolute; top: 1.8rem; right: 1.8rem; font-size: 1.2rem; }
.certs-loading { color: var(--text-light); font-size: 0.9rem; padding: 2rem 0; }

/* ── SKILLS ── */
#skills { background: var(--off-white); }
.skills-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5px; background: var(--border); border: 1px solid var(--border);
}
.skill-category { background: var(--white); padding: 2rem 2.2rem; transition: background 0.25s; }
.skill-category:hover { background: var(--off-white); }
.skill-cat-name {
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; color: var(--navy);
  margin-bottom: 1rem; padding-bottom: 0.8rem; border-bottom: 1px solid var(--border);
}
.skill-list { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.skill-pill {
  font-size: 0.72rem; background: var(--stone); border: 1px solid var(--border);
  color: var(--text-mid); padding: 0.25rem 0.65rem; border-radius: 2px;
  font-weight: 400; letter-spacing: 0.03em;
}
@media (max-width: 700px) { .skills-grid { grid-template-columns: 1fr; } }

/* ── CONTACT ── */
#contact {
  background: var(--hero-grad);
  position: relative; overflow: hidden;
}
#contact::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 60%, rgba(255,255,255,0.07) 0%, transparent 60%);
  pointer-events: none;
}
#contact .section-eyebrow { color: rgba(255,255,255,0.6); }
#contact .section-eyebrow::before { background: rgba(255,255,255,0.4); }
#contact .section-title { color: white; }
#contact .section-title em { color: rgba(255,255,255,0.7); font-style: italic; }
#contact .section-sub { color: rgba(255,255,255,0.6); max-width: 460px; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-top: 3rem;
}
.contact-info-list { display: flex; flex-direction: column; gap: 1.2rem; }
.contact-info-item {
  display: flex; align-items: center; gap: 1.2rem;
  text-decoration: none;
  color: rgba(255,255,255,0.75);
  font-size: 0.95rem; font-weight: 400;
  transition: color 0.2s;
  padding: 1.2rem 1.4rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 4px;
  backdrop-filter: blur(4px);
}
.contact-info-item:hover { color: white; background: rgba(255,255,255,0.14); }
.contact-info-icon {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
}
.contact-info-label {
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: rgba(255,255,255,0.45);
  display: block; margin-bottom: 0.1rem;
}
.contact-info-value { font-size: 0.9rem; color: rgba(255,255,255,0.85); }

.contact-cta-box {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 4px;
  padding: 2.5rem;
  backdrop-filter: blur(4px);
}
.contact-cta-title {
  font-family: var(--font-display);
  font-size: 1.8rem; font-weight: 500;
  color: white; line-height: 1.2; margin-bottom: 0.8rem;
}
.contact-cta-title em { font-style: italic; color: rgba(255,255,255,0.65); }
.contact-cta-text {
  font-size: 0.88rem; color: rgba(255,255,255,0.6);
  line-height: 1.7; margin-bottom: 2rem; font-weight: 300;
}
.btn-contact {
  display: inline-block;
  background: white; color: #764ba2;
  padding: 0.85rem 2rem; border-radius: 4px; text-decoration: none;
  font-weight: 600; font-size: 0.82rem; letter-spacing: 0.07em; text-transform: uppercase;
  transition: all 0.2s; box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.btn-contact:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,0,0,0.2); }

@media (max-width: 820px) {
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ── FOOTER ── */
footer {
  background: var(--navy); padding: 3.5rem 3rem;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1rem;
}
.footer-name { font-family: var(--font-display); font-weight: 500; font-size: 2rem; color: white; }
.footer-name em { color: var(--gold); }
.footer-role { font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(255,255,255,0.35); font-weight: 400; }
.footer-divider { width: 40px; height: 1px; background: rgba(255,255,255,0.15); }
.footer-links { display: flex; gap: 2rem; flex-wrap: wrap; justify-content: center; }
.footer-links a { color: rgba(255,255,255,0.4); text-decoration: none; font-size: 0.8rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--gold); }
.footer-copy { font-size: 0.72rem; color: rgba(255,255,255,0.2); }

/* ── REVEAL ── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

@media (max-width: 600px) {
  section { padding: 5rem 1.5rem; }
  nav { padding: 0 1.2rem; }
}

/* ════════════════════════════════════════════════════════
   BLOG SECTION — append to main.css
   ════════════════════════════════════════════════════════ */

/* ── SECTION BACKGROUND ── */
#blog { background: var(--stone); }

/* ── GRID ── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

/* ── CARD ── */
.blog-card {
  background: var(--white);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  overflow: hidden;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(13, 35, 64, 0.1);
  border-color: var(--gold);
}

/* Thumbnail */
.blog-card-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  background: var(--stone);
  transition: filter 0.3s;
}
.blog-card:hover .blog-card-thumb { filter: brightness(1.04); }

/* No-image fallback banner */
.blog-card-thumb-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--hero-grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  opacity: 0.25;
}

/* Card body */
.blog-card-body { padding: 1.6rem 1.8rem 2rem; display: flex; flex-direction: column; flex: 1; }

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.8rem;
}
.blog-card-meta::before { content: ''; display: block; width: 18px; height: 1px; background: var(--gold); }

.blog-card-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 0.8rem;
  transition: color 0.2s;
}
.blog-card:hover .blog-card-title { color: var(--blue); }

.blog-card-excerpt {
  font-size: 0.85rem;
  color: var(--text-mid);
  line-height: 1.7;
  font-weight: 300;
  flex: 1;
  margin-bottom: 1.4rem;
  /* clamp to 3 lines */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: auto; }
.blog-card-tag {
  font-size: 0.67rem;
  font-weight: 500;
  color: var(--text-mid);
  border: 1px solid var(--border);
  padding: 0.2rem 0.55rem;
  border-radius: 2px;
  letter-spacing: 0.04em;
  background: var(--stone);
}

/* ── LOAD MORE BUTTON ── */
.blog-actions { text-align: center; }
.btn-load-more {
  display: inline-block;
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
  padding: 0.8rem 2.4rem;
  border-radius: 4px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-load-more:hover {
  background: var(--navy);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(13,35,64,0.15);
}

/* Loading state */
.blog-loading { color: var(--text-light); font-size: 0.9rem; padding: 2rem 0; text-align: center; grid-column: 1/-1; }

/* ── MODAL OVERLAY ── */
.blog-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(13, 35, 64, 0.72);
  backdrop-filter: blur(6px);
  overflow-y: auto;
  padding: 2rem 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.blog-modal-overlay.open {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.blog-modal-overlay.visible { opacity: 1; }

/* ── MODAL BOX ── */
.blog-modal {
  background: var(--white);
  max-width: 780px;
  width: 100%;
  position: relative;
  border: 1px solid var(--border);
  box-shadow: 0 32px 80px rgba(13,35,64,0.25);
  transform: translateY(20px);
  transition: transform 0.35s ease;
  margin: auto;
}
.blog-modal-overlay.visible .blog-modal { transform: translateY(0); }

/* Close button */
.blog-modal-close {
  position: sticky;
  top: 1.2rem;
  float: right;
  margin: 1.2rem 1.2rem 0 0;
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-mid);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.blog-modal-close:hover {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
  transform: rotate(90deg);
}

/* Modal inner content */
.blog-modal-inner { padding: 0 0 3rem; clear: both; }

/* ── MODAL HEADER PHOTO ── */
.blog-modal-hero {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  display: block;
}
.blog-modal-hero-placeholder {
  width: 100%;
  aspect-ratio: 21 / 9;
  background: var(--hero-grad);
}

/* ── MODAL CONTENT AREA ── */
.blog-modal-content { padding: 2.4rem 3rem; }

.blog-modal-meta {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.blog-modal-meta::before { content: ''; display: block; width: 28px; height: 1px; background: var(--gold); }

.blog-modal-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 1.2rem;
}
.blog-modal-title em { font-style: italic; color: var(--gold); }

.blog-modal-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--border); }
.blog-modal-tag {
  font-size: 0.68rem; font-weight: 500; color: var(--text-mid);
  border: 1px solid var(--border); padding: 0.25rem 0.65rem;
  border-radius: 2px; letter-spacing: 0.04em; background: var(--stone);
}

/* ── MODAL BODY TYPOGRAPHY ── */
.blog-modal-body {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.85;
  font-weight: 300;
}

.blog-modal-body h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--navy);
  margin: 2.4rem 0 0.8rem;
  line-height: 1.2;
}
.blog-modal-body h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
  margin: 2rem 0 0.7rem;
}
.blog-modal-body p { margin-bottom: 1.3rem; }

.blog-modal-body strong { color: var(--navy); font-weight: 600; }
.blog-modal-body em { font-style: italic; color: var(--gold); }

.blog-modal-body a {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-color: rgba(37,99,235,0.35);
  text-underline-offset: 3px;
  transition: color 0.2s, text-decoration-color 0.2s;
}
.blog-modal-body a:hover { color: var(--navy); text-decoration-color: var(--navy); }

/* Blockquote */
.blog-modal-body blockquote {
  margin: 1.8rem 0;
  padding: 1.2rem 1.6rem;
  border-left: 3px solid var(--gold);
  background: var(--off-white);
  font-style: italic;
  color: var(--text-dark);
  font-size: 1rem;
}

/* Inline code */
.blog-modal-body code {
  font-family: 'Courier New', monospace;
  font-size: 0.85em;
  background: var(--stone);
  border: 1px solid var(--border);
  padding: 0.1em 0.4em;
  border-radius: 2px;
  color: var(--navy);
}

/* Code blocks */
.blog-modal-body pre {
  background: var(--navy);
  color: #e2e8f0;
  padding: 1.4rem 1.8rem;
  overflow-x: auto;
  margin: 1.5rem 0;
  border-radius: 4px;
  font-size: 0.82rem;
  line-height: 1.65;
}
.blog-modal-body pre code {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

/* Lists */
.blog-modal-body ul,
.blog-modal-body ol {
  padding-left: 1.6rem;
  margin: 0 0 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.blog-modal-body ul { list-style: none; padding-left: 1rem; }
.blog-modal-body ul li { padding-left: 1.2rem; position: relative; }
.blog-modal-body ul li::before {
  content: '—';
  position: absolute; left: 0;
  color: var(--gold); font-size: 0.8em; top: 0.15em;
}

/* Horizontal rule */
.blog-modal-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

/* ── IMAGES inside blog body ── */
.blog-modal-body img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.8rem 0;
  border: 1px solid var(--border);
}
.blog-modal-body figure {
  margin: 2rem 0;
}
.blog-modal-body figure img { margin: 0; }
.blog-modal-body figcaption {
  font-size: 0.78rem;
  color: var(--text-light);
  text-align: center;
  padding: 0.6rem 0 0;
  font-style: italic;
}

/* ── VIDEOS inside blog body ── */
.blog-modal-body video {
  max-width: 100%;
  display: block;
  margin: 1.8rem 0;
  background: #000;
}
.blog-modal-body .video-embed {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  margin: 1.8rem 0;
  background: var(--navy);
}
.blog-modal-body .video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ── MODAL "OPEN IN NEW TAB" link ── */
.blog-modal-readmore {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  text-decoration: none;
  transition: color 0.2s, gap 0.2s;
}
.blog-modal-readmore:hover { color: var(--navy); gap: 0.75rem; }

/* ── RESPONSIVE ── */
@media (max-width: 820px) {
  .blog-modal-content { padding: 1.8rem 1.8rem; }
}
@media (max-width: 600px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-modal-content { padding: 1.4rem 1.4rem; }
  .blog-modal-body { font-size: 0.9rem; }
  .blog-modal-hero { aspect-ratio: 16 / 9; }
}

/* Prevent body scroll while modal open */
body.blog-modal-open { overflow: hidden; }

.exp-more-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.8rem;
  color: var(--accent); /* or whatever your accent color variable is */
  padding: 4px 0 8px;
  opacity: 0.75;
}
.exp-more-btn:hover { opacity: 1; }
/* ── PROJECT PHOTO LIGHTBOX ── */
#projLightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10, 18, 32, 0.96);
  backdrop-filter: blur(10px);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  opacity: 0;
  transition: opacity 0.3s ease;
}
#projLightbox.open    { display: flex; }
#projLightbox.visible { opacity: 1; }
body.plb-open { overflow: hidden; }

/* Image wrapper */
.plb-img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 92vw;
  max-height: 80vh;
  position: relative;
}
.plb-img {
  max-width: 92vw;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 3px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6);
  transform: scale(0.96);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
#projLightbox.visible .plb-img { transform: scale(1); }

/* Caption */
.plb-caption {
  margin-top: 1rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.04em;
  text-align: center;
  max-width: 600px;
  padding: 0 1rem;
}

/* Counter  e.g. "2 / 4" */
.plb-counter {
  margin-top: 0.4rem;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.1em;
  font-family: var(--font-display);
}

/* Close button */
.plb-close {
  position: fixed;
  top: 1.2rem;
  right: 1.4rem;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.75);
  font-size: 1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
  z-index: 10;
}
.plb-close:hover {
  background: rgba(255,255,255,0.2);
  color: white;
  transform: rotate(90deg);
}

/* Prev / Next arrows */
.plb-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.8);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
  z-index: 10;
}
.plb-arrow:hover {
  background: rgba(255,255,255,0.2);
  color: white;
}
.plb-prev { left: 1.4rem; }
.plb-next { right: 1.4rem; }

@media (max-width: 600px) {
  .plb-arrow { width: 38px; height: 38px; font-size: 1rem; }
  .plb-prev  { left: 0.6rem; }
  .plb-next  { right: 0.6rem; }
  .plb-img-wrap { max-width: 96vw; }
  .plb-img      { max-width: 96vw; max-height: 72vh; }
}