/*
  Color palette used across the whole site. Change a value here and it
  updates everywhere that variable is referenced (var(--indigo), etc.)
  -- no need to hunt down individual hex codes.
*/
:root {
  --bg: #000000;
  --indigo: #6366f1;
  --indigo-light: #818cf8;
  --sky: #38bdf8;
  --pink: #e879f9;
  --gold: #fbbf24;
  --zinc-200: #e4e4e7;
  --zinc-300: #d4d4d8;
  --zinc-400: #a1a1aa;
  --zinc-500: #71717a;
  --zinc-700: #3f3f46;
  --zinc-800: #27272a;
  --zinc-900: #18181b;
  --zinc-950: #09090b;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: #fff;
  font-family: "Inter", system-ui, sans-serif;
  line-height: 1.4;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.icon {
  width: 16px;
  height: 16px;
}

.icon-sm {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.icon-lg {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

/* ===================== BUTTONS ===================== */
/* Base .btn style, then .btn-pill/.btn-primary/.btn-outline/etc. mix in shape + color variants. */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  font-family: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-pill {
  padding: 12px 22px;
  border-radius: 999px;
}

.btn-primary {
  background: linear-gradient(90deg, #6366f1, #9333ea);
  color: #fff;
}
.btn-primary:hover {
  opacity: 0.9;
}

.btn-outline {
  background: transparent;
  color: var(--zinc-200);
  border: 1px solid var(--zinc-700);
}
.btn-outline:hover {
  background: var(--zinc-900);
}

.btn-outline-dark {
  background: transparent;
  color: #18181b;
  border: 1px solid #d4d4d8;
  padding: 10px 18px;
}
.btn-outline-dark:hover {
  background: #f4f4f5;
}

.btn-dark {
  background: #000;
  color: #fff;
}
.btn-dark:hover {
  background: #111;
}

/* ===================== NAVBAR ===================== */
.navbar {
  padding: 24px 0;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  text-decoration: none;
  color: #fff;
}
.dot {
  color: var(--indigo-light);
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-link {
  background: none;
  border: none;
  color: var(--zinc-300);
  font-family: inherit;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  padding: 6px 0;
  position: relative;
}
.nav-link:hover {
  color: #fff;
}
.nav-link.active {
  color: #fff;
}
.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--indigo-light);
}

@media (max-width: 800px) {
  .nav-links { display: none; }
}

/* ===================== HERO ===================== */
.hero-section {
  position: relative;
  overflow: hidden;
}

/* Blueprint-grid texture behind the whole intro, tinted to near-
   invisibility so it reads as background grain, not a competing visual.
   Swap hero-bg.svg for any image (a real photo works too) without
   touching anything else. The ::after glow uses the same indigo/pink
   the rest of the site already leans on (--indigo, --pink, the
   .btn-primary gradient, .portrait-glow) so the texture reads as part
   of the palette instead of plain grey noise. */
.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("images/hero-bg.svg") center/cover no-repeat;
  opacity: 0.34;
  z-index: 0;
}

.hero-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1100px circle at 82% 12%, rgba(129,140,248,0.35), transparent 60%),
    radial-gradient(900px circle at 8% 92%, rgba(232,121,249,0.22), transparent 55%),
    linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.6) 55%, #000 100%);
  z-index: 0;
}

.hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 32px 24px 64px;
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
}

.eyebrow {
  color: var(--indigo-light);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.hero-name {
  font-size: clamp(42px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 16px;
}

.hero-tagline {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 600;
  color: #f4f4f5;
  line-height: 1.3;
  margin-bottom: 20px;
}

.text-sky { color: var(--sky); }
.text-pink { color: var(--pink); }
.text-indigo { color: var(--indigo-light); }
.text-gold { color: var(--gold); }

.hero-desc {
  color: var(--zinc-400);
  font-size: 14px;
  line-height: 1.7;
  max-width: 420px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

.connect-label {
  font-size: 12px;
  letter-spacing: 0.5px;
  color: var(--zinc-500);
  margin-bottom: 12px;
}

.social-row {
  display: flex;
  gap: 16px;
}

.social-btn {
  height: 36px;
  width: 36px;
  border-radius: 50%;
  border: 1px solid var(--zinc-800);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--zinc-400);
  text-decoration: none;
  transition: all 0.2s ease;
}
.social-btn:hover {
  border-color: var(--zinc-500);
  color: #fff;
}

/* Hero visual -- the photo card, glow, and floating "focus" card on the right side of the hero. */
.hero-visual {
  position: relative;
}

.portrait {
  position: relative;
  z-index: 1;
  aspect-ratio: 4 / 5;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(135deg, #14335a, #0d1b2a 60%, #000);
  border: 1px solid rgba(129, 140, 248, 0.22);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Sits behind the portrait box and peeks past its top-right corner --
   a halo effect that works with any photo, not just a cutout. */
.portrait-glow {
  position: absolute;
  top: -50px;
  right: -50px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56,189,248,0.55), rgba(129,140,248,0.28), transparent 70%);
  filter: blur(30px);
  z-index: 0;
}

.portrait-photo {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.focus-card {
  position: absolute;
  bottom: 24px;
  right: 16px;
  z-index: 2;
  width: 190px;
  background: rgba(9, 9, 11, 0.9);
  backdrop-filter: blur(6px);
  border: 1px solid var(--zinc-800);
  border-radius: 16px;
  padding: 16px;
}

.focus-label {
  font-size: 10px;
  letter-spacing: 0.5px;
  color: var(--zinc-500);
  margin-bottom: 12px;
}

.focus-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.focus-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--zinc-200);
}
.focus-list .icon-sm {
  color: var(--indigo-light);
}

.handwritten {
  display: none;
  position: absolute;
  bottom: -8px;
  left: 0;
  font-family: "Caveat", cursive;
  font-size: 20px;
  color: var(--zinc-500);
  font-style: italic;
}

@media (min-width: 900px) {
  .handwritten { display: block; }
}

/* ===== Page header (used above the Contact section) ===== */
.page-header {
  padding: 64px 24px 8px;
  text-align: center;
}
.page-header .eyebrow {
  justify-content: center;
  display: flex;
}
.page-header h1,
.page-header h2 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  margin-bottom: 12px;
}
.page-header p {
  color: var(--zinc-400);
  font-size: 14px;
  max-width: 480px;
  margin: 0 auto;
}

/* ===================== ABOUT ===================== */
.about-section {
  background: #fafafa;
  color: #18181b;
  border-radius: 40px 40px 0 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr 0.9fr;
  gap: 32px;
  align-items: start;
  padding: 64px 24px;
}

.eyebrow-dark {
  color: var(--indigo);
}

.about-heading {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 16px;
}

.about-desc {
  color: var(--zinc-500);
  font-size: 14px;
  line-height: 1.7;
  max-width: 320px;
  margin-bottom: 24px;
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.stat-card {
  background: #fff;
  border: 1px solid #e4e4e7;
  border-radius: 16px;
  padding: 20px;
}

.card-label {
  font-size: 12px;
  color: var(--zinc-500);
  margin-bottom: 12px;
}

.stat-value {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 2px;
}

.stat-sub {
  font-size: 12px;
  color: var(--zinc-400);
  margin-bottom: 12px;
}

.card-desc {
  font-size: 12px;
  color: var(--zinc-500);
  line-height: 1.6;
}

.card-icon {
  height: 32px;
  width: 32px;
  border-radius: 8px;
  background: #eef2ff;
  color: var(--indigo);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.card-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

/* ----- About photo carousel -----
   A stack of slides (.carousel-slide), only one visible at a time via
   .carousel-track's transform (set by script.js). Each slide holds a
   real <img> on top of a dashed placeholder -- if the img 404s, its
   onerror hides it and the placeholder shows through underneath, so the
   carousel works before you've dropped in any photos. */
.about-carousel {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, #164e63, #18181b 60%, #000);
}

.carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.4s ease;
}

.carousel-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
}

.carousel-photo {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-placeholder {
  position: absolute;
  inset: 12px;
  z-index: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  color: rgba(224, 231, 255, 0.55);
  border: 1.5px dashed rgba(224, 231, 255, 0.3);
  border-radius: 12px;
}

.carousel-placeholder .icon-lg {
  color: rgba(224, 231, 255, 0.4);
}

.carousel-placeholder p {
  font-size: 12px;
  line-height: 1.6;
}

.carousel-placeholder span {
  display: block;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
  color: rgba(224, 231, 255, 0.35);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  height: 36px;
  width: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(9, 9, 11, 0.55);
  backdrop-filter: blur(4px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}
.carousel-btn:hover {
  background: rgba(9, 9, 11, 0.85);
}
.carousel-prev { left: 12px; }
.carousel-next { right: 12px; }

.carousel-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.carousel-dot {
  height: 8px;
  width: 8px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: all 0.2s ease;
}
.carousel-dot.active {
  background: #fff;
  width: 20px;
  border-radius: 999px;
}

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
}

/* ===================== CAREER & EDUCATION ===================== */
.career-section {
  padding: 80px 24px;
}

.career-header {
  margin-bottom: 40px;
}

.career-title {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 800;
  margin-bottom: 16px;
}

.career-desc {
  color: var(--zinc-400);
  font-size: 14px;
  max-width: 460px;
}

.career-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 900px) {
  .career-grid { grid-template-columns: 1fr; }
}

/* ----- Timeline ----- */
.timeline {
  list-style: none;
  position: relative;
}

.timeline-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 20px;
}

.timeline-marker {
  position: relative;
  display: flex;
  justify-content: center;
}

/* The connecting vertical line, drawn behind the dot on every item
   except the last (so it doesn't dangle past the final entry). */
.timeline-item:not(:last-child) .timeline-marker::after {
  content: "";
  position: absolute;
  top: 40px;
  bottom: -32px;
  width: 2px;
  background: var(--zinc-800);
}

.timeline-dot {
  position: relative;
  z-index: 1;
  height: 40px;
  width: 40px;
  border-radius: 50%;
  background: var(--zinc-900);
  border: 1px solid var(--zinc-700);
  color: var(--indigo-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.timeline-item:first-child .timeline-dot {
  background: linear-gradient(135deg, rgba(129,140,248,0.25), rgba(232,121,249,0.25));
  border-color: var(--indigo-light);
  box-shadow: 0 0 0 4px rgba(129, 140, 248, 0.12);
}

.timeline-content {
  padding-bottom: 40px;
}

.timeline-period {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.5px;
  color: var(--sky);
  margin-bottom: 8px;
}

.timeline-role {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 2px;
}

.timeline-company {
  font-size: 13px;
  color: var(--zinc-400);
  font-weight: 500;
  margin-bottom: 14px;
}

.timeline-scope {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.timeline-scope li {
  position: relative;
  padding-left: 16px;
  font-size: 13px;
  color: var(--zinc-400);
  line-height: 1.6;
}

.timeline-scope li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  height: 5px;
  width: 5px;
  border-radius: 50%;
  background: var(--indigo-light);
}

.timeline-achievements {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.achievement-chip {
  font-size: 11px;
  font-weight: 500;
  color: var(--gold);
  border: 1px solid rgba(251, 191, 36, 0.3);
  background: rgba(251, 191, 36, 0.08);
  border-radius: 999px;
  padding: 6px 12px;
  line-height: 1.3;
}

/* ----- Education ----- */
.education-list {
  position: sticky;
  top: 32px;
}

.education-label {
  font-size: 12px;
  letter-spacing: 0.5px;
  color: var(--zinc-500);
  margin-bottom: 16px;
}

.education-card {
  background: var(--zinc-900);
  border: 1px solid var(--zinc-800);
  border-radius: 16px;
  padding: 24px;
}

.education-icon {
  height: 44px;
  width: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(129,140,248,0.18), rgba(232,121,249,0.18));
  color: var(--indigo-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.education-degree {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 6px;
}

.education-school {
  font-size: 13px;
  color: var(--zinc-300);
  font-weight: 500;
  margin-bottom: 2px;
}

.education-years {
  font-size: 12px;
  color: var(--zinc-500);
  margin-bottom: 12px;
}

.education-card .card-desc {
  color: var(--zinc-500);
}

@media (max-width: 900px) {
  .education-list { position: static; }
}

/* ===================== CREDENTIALS / CERTIFICATIONS ===================== */
/* Alternates the black/white rhythm with a dark charcoal band instead
   of a white one -- a shade lighter than the page's pure-black body
   (var(--zinc-950) vs. #000), rounded on all four corners since it
   sits between two pure-black sections (Career, Projects) rather than
   hanging off the Hero like About does. The cards inside step up one
   shade lighter again (var(--zinc-800) vs. the section's zinc-950) so
   they still read as raised panels instead of blending into the band. */
.credentials-section {
  background: var(--zinc-950);
  border-radius: 40px;
  padding: 80px 0;
}

.credentials-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.credentials-title {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 800;
  margin-bottom: 16px;
}

.credentials-desc {
  color: var(--zinc-400);
  font-size: 14px;
  max-width: 420px;
}

.credentials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .credentials-grid { grid-template-columns: 1fr; }
}

.credential-card {
  background: var(--zinc-800);
  border: 1px solid var(--zinc-700);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.credential-card:hover {
  border-color: var(--zinc-500);
  transform: translateY(-2px);
}

.credential-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.credential-icon {
  height: 44px;
  width: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(129,140,248,0.18), rgba(232,121,249,0.18));
  color: var(--indigo-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.credential-icon .icon {
  width: 22px;
  height: 22px;
}

.credential-badge {
  font-size: 10px;
  letter-spacing: 0.5px;
  color: var(--gold);
  border: 1px solid rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.08);
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
}

.credential-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}

.credential-issuer {
  font-size: 13px;
  color: var(--zinc-300);
  font-weight: 500;
}

.credential-meta {
  font-size: 12px;
  color: var(--zinc-500);
  line-height: 1.6;
}

.credential-link {
  margin-top: auto;
  align-self: flex-start;
  color: var(--indigo-light);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s ease;
  /* This is a <button> (opens the credential modal, no page navigation) styled to look like the text link it used to be. */
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  cursor: pointer;
}
.credential-link:hover {
  gap: 10px;
}

.credentials-add-card {
  border: 1px dashed var(--zinc-700);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  color: var(--zinc-500);
  min-height: 180px;
}
.credentials-add-card .icon {
  width: 24px;
  height: 24px;
  color: var(--zinc-600);
}
.credentials-add-card p {
  font-size: 12px;
  line-height: 1.6;
  max-width: 220px;
}

/* ===================== PROJECTS ===================== */
.projects-section {
  padding: 80px 24px;
}

.projects-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.projects-title {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 800;
  margin-bottom: 16px;
}

.projects-desc {
  color: var(--zinc-400);
  font-size: 14px;
  max-width: 380px;
  margin-bottom: 16px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .project-grid { grid-template-columns: 1fr; }
}

/* Disclaimer under the project grid -- see the HTML comment above it
   for why it exists. Small and muted so it reads as a footnote, not
   a competing headline. */
.projects-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 24px;
  padding: 12px 16px;
  border: 1px solid var(--zinc-800);
  border-radius: 10px;
  color: var(--zinc-500);
  font-size: 12px;
  line-height: 1.6;
}

.projects-disclaimer .icon-sm {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--zinc-500);
}

.project-thumb {
  aspect-ratio: 4/3;
  border-radius: 16px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.project-thumb.dark {
  background: linear-gradient(135deg, #18181b, #27272a);
}
.project-thumb.darker {
  background: linear-gradient(135deg, #18181b, #000);
}
.project-thumb.light {
  background: #f4f4f5;
}

.project-kicker {
  font-size: 22px;
  font-weight: 800;
  color: rgba(255,255,255,0.9);
  letter-spacing: -0.5px;
}

.mock-app {
  width: 85%;
  background: #fff;
  border-radius: 10px;
  padding: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.mock-title {
  font-size: 11px;
  font-weight: 700;
  color: #18181b;
  margin-bottom: 10px;
}
.mock-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f4f4f5;
  border-radius: 6px;
  height: 18px;
  padding: 0 8px;
  margin-bottom: 6px;
}
.dot-indigo {
  height: 6px;
  width: 6px;
  border-radius: 50%;
  background: var(--indigo);
  flex-shrink: 0;
}
.mock-bar {
  height: 6px;
  border-radius: 999px;
  background: #d4d4d8;
}

.project-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 10px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  font-size: 11px;
  border: 1px solid var(--zinc-800);
  color: var(--zinc-400);
  border-radius: 999px;
  padding: 4px 10px;
}

/* ===================== CONTACT ===================== */
.contact-section {
  padding: 48px 24px 80px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-card {
  background: var(--zinc-900);
  border: 1px solid var(--zinc-800);
  border-radius: 16px;
  padding: 24px;
}

.contact-card .card-icon {
  background: rgba(129,140,248,0.12);
  color: var(--indigo-light);
}

.contact-card .card-title {
  font-size: 15px;
  color: #fff;
}

.contact-card a {
  color: var(--zinc-300);
  font-size: 13px;
  text-decoration: none;
  word-break: break-word;
}
.contact-card a:hover {
  color: #fff;
}

.contact-socials {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  padding: 40px 24px;
  background: var(--zinc-900);
  border: 1px solid var(--zinc-800);
  border-radius: 24px;
}

.contact-socials h3 {
  font-size: 20px;
  font-weight: 700;
}

.contact-socials p {
  color: var(--zinc-400);
  font-size: 14px;
  max-width: 380px;
}

/* ===================== FOOTER ===================== */
.footer {
  border-top: 1px solid var(--zinc-900);
  padding: 32px 24px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 14px;
  color: var(--zinc-500);
}

.heart {
  color: #ef4444;
}

/* ---------------------------------------------------------
   Techie side scroll nav
   Fixed vertical HUD on the right edge of the viewport that
   tracks scroll position: a glowing progress rail plus a
   monospace index/label per section, terminal-style.
--------------------------------------------------------- */
.scroll-nav {
  position: fixed;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 200;
  display: flex;
  align-items: stretch;
  gap: 14px;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

.scroll-nav-rail {
  position: relative;
  width: 2px;
  border-radius: 999px;
  background: var(--zinc-800);
  overflow: hidden;
}

.scroll-nav-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, var(--sky), var(--indigo-light));
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.8);
  transition: height 0.1s linear;
}

.scroll-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.scroll-nav-item {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  text-decoration: none;
  color: var(--zinc-500);
  white-space: nowrap;
  transition: color 0.25s ease;
}

.scroll-nav-num {
  font-size: 10px;
  letter-spacing: 0.5px;
  opacity: 0.55;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.scroll-nav-label {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0;
  max-width: 0;
  overflow: hidden;
  transform: translateX(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, max-width 0.2s ease;
}

.scroll-nav-item .cursor {
  color: var(--sky);
  opacity: 0;
  animation: cursor-blink 1s steps(1) infinite;
}

.scroll-nav-item:hover .scroll-nav-label,
.scroll-nav-item.active .scroll-nav-label {
  opacity: 1;
  max-width: 140px;
  transform: translateX(0);
}

.scroll-nav-item:hover .cursor,
.scroll-nav-item.active .cursor {
  opacity: 1;
}

.scroll-nav-item:hover .scroll-nav-num,
.scroll-nav-item.active .scroll-nav-num {
  color: var(--sky);
  opacity: 1;
}

.scroll-nav-item.active {
  color: #fff;
}

.scroll-nav-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--zinc-950);
  border: 1px solid var(--zinc-600);
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.scroll-nav-item:hover .scroll-nav-dot {
  border-color: var(--zinc-300);
}

.scroll-nav-item.active .scroll-nav-dot {
  background: var(--sky);
  border-color: var(--sky);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.15), 0 0 12px rgba(56, 189, 248, 0.7);
}

@keyframes cursor-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/*
  Dynamic theme: sections opt into a light background via
  data-theme="light" (see the About section). initScrollNav() in
  script.js reads that and adds/removes .on-light on .scroll-nav as the
  visitor scrolls, so the nav swaps to dark-on-light colors instead of
  staying a fixed color that disappears over a white section.
*/
.scroll-nav.on-light .scroll-nav-rail {
  background: var(--zinc-300);
}

.scroll-nav.on-light .scroll-nav-progress {
  background: linear-gradient(180deg, var(--indigo), var(--indigo-light));
  box-shadow: 0 0 8px rgba(99, 102, 241, 0.45);
}

.scroll-nav.on-light .scroll-nav-item {
  color: var(--zinc-500);
}

.scroll-nav.on-light .scroll-nav-item.active {
  color: var(--zinc-900);
}

.scroll-nav.on-light .scroll-nav-item:hover .scroll-nav-num,
.scroll-nav.on-light .scroll-nav-item.active .scroll-nav-num,
.scroll-nav.on-light .cursor {
  color: var(--indigo);
}

.scroll-nav.on-light .scroll-nav-dot {
  background: #fff;
  border-color: var(--zinc-400);
}

.scroll-nav.on-light .scroll-nav-item:hover .scroll-nav-dot {
  border-color: var(--zinc-600);
}

.scroll-nav.on-light .scroll-nav-item.active .scroll-nav-dot {
  background: var(--indigo);
  border-color: var(--indigo);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15), 0 0 10px rgba(99, 102, 241, 0.55);
}

@media (max-width: 900px) {
  .scroll-nav { display: none; }
}

/* ---------------------------------------------------------
   Credential modal
   The pop-up opened by a "View Credential" button instead of
   navigating away -- see the CREDENTIAL MODAL markup near the end of
   index.html and the openCertModal()/closeCertModal() logic in
   script.js. Hidden by default via the `hidden` attribute; JS toggles
   that off/on and adds/removes .open for the fade/scale transition.
--------------------------------------------------------- */
.cert-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.cert-modal[hidden] {
  display: none;
}

.cert-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 9, 11, 0.8);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.cert-modal-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
  background: var(--zinc-900);
  border: 1px solid var(--zinc-800);
  border-radius: 20px;
  padding: 20px;
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.cert-modal.open .cert-modal-backdrop {
  opacity: 1;
}

.cert-modal.open .cert-modal-dialog {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.cert-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  height: 32px;
  width: 32px;
  border-radius: 50%;
  border: 1px solid var(--zinc-700);
  background: var(--zinc-900);
  color: var(--zinc-300);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.cert-modal-close:hover {
  color: #fff;
  border-color: var(--zinc-500);
}

.cert-modal-image-wrap {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 14px;
  overflow: hidden;
  background: var(--zinc-950);
  margin-bottom: 16px;
}

.cert-modal-image {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.cert-modal-placeholder {
  position: absolute;
  inset: 12px;
  z-index: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  color: var(--zinc-500);
  border: 1.5px dashed var(--zinc-700);
  border-radius: 10px;
}

.cert-modal-placeholder .icon-lg {
  color: var(--zinc-600);
}

.cert-modal-placeholder p {
  font-size: 13px;
  line-height: 1.6;
  padding: 0 16px;
}

.cert-modal-placeholder span {
  display: block;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  color: var(--zinc-600);
  word-break: break-all;
}

.cert-modal-title {
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  padding: 0 32px;
}
