/* ============================================================
   Siyabonga Shembe — Portfolio
   index.css

   Design direction: dark, enterprise-grade, space / SOC aesthetic.
   Palette: Deep Space background · Teal Signal accent · Starlight text.
   Fonts: Space Grotesk (display) · Inter (body) · JetBrains Mono (labels).
   Signature: left-border teal accent on section titles; canvas orbital
              rings in hero; monospace metadata throughout.

   Table of Contents:
   0.  Design Tokens (Custom Properties)
   1.  Reset & Base
   2.  Navigation
   3.  Hero Section
   4.  Section Common
   5.  About
   6.  Experience
   7.  Projects
   8.  Skills
   9.  Education & Certifications
   10. Footer
   11. Reveal Animations
   12. Responsive — Tablet  ≤ 1024 px
   13. Responsive — Mobile  ≤ 768 px
   14. Accessibility & Reduced Motion
   ============================================================ */


/* ============================================================
   0. DESIGN TOKENS
   ============================================================ */
:root {
  /* -- Backgrounds -- */
  --bg:              #030810;   /* base page background */
  --bg-alt:          #060D1A;   /* alternate section bg */
  --surface:         #0A1525;   /* card / panel surfaces */
  --surface-raised:  #0D1C33;   /* hovered card */

  /* -- Borders -- */
  --border:          #162840;
  --border-muted:    #0E1E30;
  --border-bright:   #1E3D60;

  /* -- Accent -- */
  --accent:          #2DD4BF;                    /* teal — primary signal colour */
  --accent-dim:      rgba(45, 212, 191, 0.12);
  --accent-glow:     rgba(45, 212, 191, 0.22);

  /* -- Text -- */
  --text-1:          #C8D8E6;   /* primary body text */
  --text-2:          #7890A5;   /* secondary / metadata */
  --text-3:          #394D5E;   /* muted / decorative */

  /* -- Typography -- */
  --font-display:    'Space Grotesk', sans-serif;
  --font-body:       'Inter', sans-serif;
  --font-mono:       'JetBrains Mono', monospace;

  /* -- Layout -- */
  --nav-h:           64px;
  --max-w:           1100px;
  --section-py:      clamp(5rem, 8vw, 9rem);
  --section-px:      clamp(1.25rem, 4vw, 2rem);

  /* -- Transitions -- */
  --t-fast:          150ms ease;
  --t-base:          220ms ease;

  /* -- Radius -- */
  --r-sm:            4px;
  --r-md:            8px;
}


/* ============================================================
   1. RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg);
  color: var(--text-1);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.7;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
ul, ol   { list-style: none; }
a        { color: inherit; text-decoration: none; }
button   { font-family: inherit; background: none; border: none;
           color: inherit; cursor: pointer; }


/* ============================================================
   2. NAVIGATION
   ============================================================ */
#nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: background-color var(--t-base),
              border-color     var(--t-base),
              backdrop-filter  var(--t-base);
}

#nav.scrolled {
  background-color: rgba(3, 8, 16, 0.90);
  backdrop-filter:  blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--border-muted);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--section-px);
}

/* -- Brand initials -- */
.nav-brand { display: flex; align-items: center; flex-shrink: 0; }

.nav-brand-initials {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-1);
  padding: 0.3rem 0.6rem;
  border: 1.5px solid var(--border-bright);
  border-radius: var(--r-sm);
  transition: border-color var(--t-base), color var(--t-base);
}

.nav-brand:hover .nav-brand-initials,
.nav-brand:focus-visible .nav-brand-initials {
  border-color: var(--accent);
  color: var(--accent);
}

/* -- Link list -- */
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
}

.nav-link {
  position: relative;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-2);
  letter-spacing: 0.02em;
  padding: 0.35rem 0;
  transition: color var(--t-base);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1.5px;
  background-color: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-base);
}

.nav-link:hover,
.nav-link.active          { color: var(--text-1); }
.nav-link:hover::after,
.nav-link.active::after   { transform: scaleX(1); }

/* -- Hamburger (hidden on desktop) -- */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  z-index: 110;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background-color: var(--text-2);
  border-radius: 2px;
  transform-origin: center;
  transition: transform var(--t-base), opacity var(--t-base);
}

.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }


/* ============================================================
   3. HERO SECTION
   ============================================================ */
#hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--bg);
  /* Subtle static radial glow — visible even when animation is off */
  background-image: radial-gradient(
    ellipse 55% 55% at 70% 45%,
    rgba(45, 212, 191, 0.05) 0%,
    transparent 70%
  );
  padding: var(--nav-h) var(--section-px) 4rem;
}

/* Canvas: z=0, behind overlay */
#bg-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* Dark gradient overlay — ensures text legibility over canvas */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    112deg,
    rgba(3, 8, 16, 0.97) 0%,
    rgba(3, 8, 16, 0.88) 55%,
    rgba(3, 8, 16, 0.65) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding-top: 2rem;
}

/* Role label — monospace, uppercase, with short leading dash */
.hero-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.hero-label-line {
  display: block;
  width: 30px;
  height: 1px;
  background-color: var(--accent);
  flex-shrink: 0;
}

/* Full name — typographic centrepiece */
.hero-name {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 9vw, 7rem);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.022em;
  margin-bottom: 1.75rem;
}

.hero-firstname {
  display: block;
  color: var(--text-1);
}

/* Surname is slightly dimmer — creates depth within the name */
.hero-lastname {
  display: block;
  color: var(--text-2);
}

.hero-period {
  color: var(--accent);
}

/* Intro paragraph */
.hero-intro {
  max-width: 540px;
  font-size: clamp(0.9rem, 1.5vw, 1.0625rem);
  line-height: 1.8;
  color: var(--text-2);
  margin-bottom: 1.5rem;
}

/* Current-role badge */
.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--text-2);
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 50px;
  margin-bottom: 2.5rem;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent);
  flex-shrink: 0;
  animation: blink-dot 2.4s ease-in-out infinite;
}

@keyframes blink-dot {
  0%, 100% { opacity: 1;   transform: scale(1);   }
  50%       { opacity: 0.4; transform: scale(0.75); }
}

/* Profile link buttons */
.hero-links {
  display: flex;
  gap: 0.875rem;
  flex-wrap: wrap;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.65rem 1.35rem;
  border: 1.5px solid var(--border-bright);
  border-radius: var(--r-sm);
  color: var(--text-2);
  transition: color var(--t-base), border-color var(--t-base),
              background-color var(--t-base);
}

.hero-link:hover {
  color: var(--text-1);
  border-color: var(--text-2);
}

/* LinkedIn — primary CTA, teal-tinted */
.hero-link--primary {
  background-color: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent);
}
.hero-link--primary:hover {
  background-color: var(--accent-glow);
}

.link-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* Scroll indicator — floats at bottom-centre of hero */
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  animation: hero-scroll-float 2.6s ease-in-out infinite;
}

.scroll-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}

.scroll-label {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
}

@keyframes hero-scroll-float {
  0%, 100% { transform: translateX(-50%) translateY(0);  opacity: 0.55; }
  50%       { transform: translateX(-50%) translateY(-7px); opacity: 1;  }
}


/* ============================================================
   4. SECTION COMMON
   ============================================================ */
.section {
  padding: var(--section-py) var(--section-px);
  background-color: var(--bg);
}

/* Every other section gets a slightly elevated background */
.section--alt {
  background-color: var(--bg-alt);
}

.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.section-header {
  margin-bottom: clamp(2.5rem, 4vw, 3.5rem);
}

/* Tiny coordinate-style identifier above the heading */
.section-tag {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--text-3);
  margin-bottom: 0.35rem;
}

/* Section heading with left teal bar — the site's structural signature */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-1);
  line-height: 1.15;
  padding-left: 1rem;
  border-left: 3px solid var(--accent);
}


/* ============================================================
   5. ABOUT
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 272px;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

.about-bio p {
  color: var(--text-2);
  line-height: 1.85;
  margin-bottom: 1.25rem;
  font-size: 0.9375rem;
}
.about-bio p:last-child { margin-bottom: 0; }

/* Contact card — sticks while bio scrolls on desktop */
.about-contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1.5rem;
  position: sticky;
  top: calc(var(--nav-h) + 1.5rem);
  transition: border-color var(--t-base);
}
.about-contact-card:hover { border-color: var(--border-bright); }

.contact-card-title {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 1.25rem;
}

.contact-list { display: flex; flex-direction: column; gap: 0.8rem; }

.contact-item { display: flex; flex-direction: column; gap: 0.1rem; }

.contact-label {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  line-height: 1;
}

.contact-link {
  font-size: 0.8125rem;
  color: var(--text-2);
  word-break: break-all;
  transition: color var(--t-fast);
}
.contact-link:hover { color: var(--accent); }

.contact-item > span:not(.contact-label) {
  font-size: 0.8125rem;
  color: var(--text-2);
}


/* ============================================================
   6. EXPERIENCE
   ============================================================ */
.experience-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  transition: border-color var(--t-base);
}
.experience-card:hover { border-color: var(--border-bright); }

.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

.exp-company {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 0.3rem;
}

.exp-role {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.exp-details {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
  flex-shrink: 0;
}

.exp-date {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-2);
  letter-spacing: 0.04em;
}

.exp-location {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-3);
}

.exp-bullets {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.exp-bullets li {
  position: relative;
  padding-left: 1.3rem;
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.75;
}

/* Small teal circle bullet */
.exp-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 5px;
  height: 5px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}


/* ============================================================
   7. PROJECTS
   ============================================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: border-color var(--t-base), transform var(--t-base),
              background-color var(--t-base);
}

.project-card:hover {
  border-color: var(--border-bright);
  background-color: var(--surface-raised);
  transform: translateY(-2px);
}

/* Minimal cards (no detail bullets) are compact */
.project-card--minimal {
  justify-content: flex-start;
}

.project-header { margin-bottom: 1rem; }

.project-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.65rem;
}

.project-date {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-3);
  letter-spacing: 0.08em;
}

.project-tags { display: flex; gap: 0.4rem; flex-wrap: wrap; }

.project-tag {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(45, 212, 191, 0.2);
  border-radius: 2px;
  padding: 0.15rem 0.5rem;
}

.project-title {
  font-family: var(--font-display);
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  font-weight: 600;
  color: var(--text-1);
  line-height: 1.35;
}

.project-diagram {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 0 1.15rem;
  padding: 0.45rem;
  background:
    linear-gradient(rgba(45, 212, 191, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 212, 191, 0.035) 1px, transparent 1px),
    rgba(3, 8, 16, 0.42);
  background-size: 28px 28px;
  border: 1px solid var(--border-muted);
  border-radius: var(--r-md);
}

.diagram-line {
  fill: none;
  stroke: rgba(45, 212, 191, 0.34);
  stroke-width: 1.5;
  stroke-dasharray: 4 5;
  stroke-linecap: round;
}

.diagram-line--solid {
  stroke-dasharray: none;
}

.diagram-node rect {
  fill: rgba(10, 21, 37, 0.9);
  stroke: rgba(30, 61, 96, 0.95);
  stroke-width: 1;
}

.diagram-node--accent rect {
  fill: rgba(45, 212, 191, 0.08);
  stroke: rgba(45, 212, 191, 0.62);
}

.diagram-node--core rect {
  fill: rgba(45, 212, 191, 0.12);
  stroke: rgba(45, 212, 191, 0.48);
}

.diagram-node text {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  fill: var(--text-1);
  text-anchor: middle;
  dominant-baseline: middle;
}

.diagram-node-sub {
  font-size: 7.5px;
  font-weight: 400;
  fill: var(--text-2);
}

.project-bullets {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}

.project-bullets li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.855rem;
  color: var(--text-2);
  line-height: 1.65;
}

.project-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 4px;
  height: 4px;
  background-color: var(--text-3);
  border-radius: 50%;
}

.project-note {
  font-size: 0.8125rem;
  color: var(--text-3);
  margin-top: 0.25rem;
  line-height: 1.65;
}


/* ============================================================
   8. SKILLS
   ============================================================ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.skill-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1.5rem;
  transition: border-color var(--t-base);
}
.skill-panel:hover { border-color: var(--border-bright); }

.skill-panel-header {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.2rem;
}

.skill-panel-icon {
  color: var(--accent);
  font-size: 0.7rem;
  line-height: 1;
  flex-shrink: 0;
}

.skill-panel-title {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-2);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.skill-tag {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--text-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 0.3rem 0.7rem;
  line-height: 1.4;
  cursor: default;
  transition: color var(--t-fast), border-color var(--t-fast),
              background-color var(--t-fast);
}

.skill-tag:hover {
  color: var(--accent);
  border-color: rgba(45, 212, 191, 0.3);
  background-color: var(--accent-dim);
}


/* ============================================================
   9. EDUCATION & CERTIFICATIONS
   ============================================================ */
.education-grid {
  display: grid;
  grid-template-columns: 1fr 256px;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

.education-subheading {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 1.75rem;
}

/* -- Timeline -- */
.education-list {
  display: flex;
  flex-direction: column;
}

.edu-entry {
  position: relative;
  padding-left: 1.5rem;
  padding-bottom: 2.25rem;
  border-left: 1px solid var(--border);
}
.edu-entry:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}

/* Timeline dot */
.edu-entry::before {
  content: '';
  position: absolute;
  left: -4px;
  top: 0.4rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--bg);
  border: 1.5px solid var(--accent);
}

.edu-entry-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.edu-qual {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-1);
  line-height: 1.35;
  margin-bottom: 0.2rem;
}

.edu-institution {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.03em;
  color: var(--accent);
}

.edu-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.15rem;
  flex-shrink: 0;
}

.edu-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-2);
  white-space: nowrap;
}

.edu-location {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-3);
  white-space: nowrap;
}

.edu-bullets {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.edu-bullets li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.85rem;
  color: var(--text-2);
  line-height: 1.6;
}
.edu-bullets li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--text-3);
  font-size: 0.75rem;
  line-height: inherit;
}

/* -- Certifications -- */
.certifications-list {
  position: sticky;
  top: calc(var(--nav-h) + 1.5rem);
}

.cert-entry {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  margin-bottom: 0.75rem;
  transition: border-color var(--t-base), transform var(--t-base);
}
.cert-entry:hover {
  border-color: var(--border-bright);
  transform: translateY(-1px);
}

.cert-logo {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.cert-logo--ibm {
  background: rgba(0, 98, 255, 0.12);
  border: 1px solid rgba(0, 98, 255, 0.22);
  color: #6699FF;
}

.cert-logo--google {
  background: rgba(66, 133, 244, 0.1);
  border: 1px solid rgba(66, 133, 244, 0.2);
  color: #74AAFF;
}

.cert-name {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-1);
  line-height: 1.3;
  margin-bottom: 0.15rem;
}

.cert-year {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-3);
  letter-spacing: 0.07em;
}


/* ============================================================
   10. FOOTER
   ============================================================ */
#contact {
  background-color: var(--bg);
  border-top: 1px solid var(--border-muted);
  padding: 4rem var(--section-px) 3rem;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border-muted);
}

.footer-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 0.3rem;
}

.footer-role {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--text-3);
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.6rem;
}

.footer-link {
  font-size: 0.8125rem;
  color: var(--text-2);
  transition: color var(--t-fast);
}
.footer-link:hover { color: var(--accent); }

.footer-copy {
  max-width: var(--max-w);
  margin: 0 auto;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-3);
  letter-spacing: 0.06em;
}


/* ============================================================
   11. REVEAL ANIMATIONS
   Initial hidden state added by JS (avoids flash without JS).
   JS adds .visible when element enters viewport.
   ============================================================ */
.js-ready .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease var(--reveal-delay, 0ms),
              transform 0.55s ease var(--reveal-delay, 0ms);
}

.js-ready .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ============================================================
   12. RESPONSIVE — TABLET  ≤ 1024 px
   ============================================================ */
@media (max-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* ============================================================
   13. RESPONSIVE — MOBILE  ≤ 768 px
   ============================================================ */
@media (max-width: 768px) {

  /* Nav — reveal toggle, stack links */
  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    z-index: 99;
    flex-direction: column;
    align-items: center;
    gap: 0;
    background: rgba(3, 8, 16, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    max-height: 0;
    overflow: hidden;
    padding: 0;
    border-bottom: 1px solid transparent;
    transition: max-height 0.32s ease, padding 0.22s ease, border-color 0.22s ease;
  }

  .nav-links.open {
    max-height: 380px;
    padding: 0.75rem 0;
    border-bottom-color: var(--border-muted);
  }

  .nav-links li { width: 100%; }

  .nav-link {
    display: block;
    padding: 0.85rem 2rem;
    font-size: 0.9rem;
    text-align: center;
  }
  .nav-link::after { display: none; }

  /* Hero */
  .hero-name { font-size: clamp(2.75rem, 13vw, 4rem); }
  .hero-scroll { display: none; }

  /* About */
  .about-grid { grid-template-columns: 1fr; }
  .about-contact-card { position: static; }

  /* Experience */
  .exp-header  { flex-direction: column; gap: 0.75rem; }
  .exp-details { align-items: flex-start; }

  /* Projects */
  .projects-grid { grid-template-columns: 1fr; }

  /* Skills */
  .skills-grid { grid-template-columns: 1fr; }

  /* Education */
  .education-grid  { grid-template-columns: 1fr; }
  .certifications-list { position: static; }
  .edu-entry-header { flex-direction: column; gap: 0.5rem; }
  .edu-meta { align-items: flex-start; }

  /* Footer */
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-links { align-items: flex-start; }
}

/* Extra-small screens */
@media (max-width: 400px) {
  .hero-name { font-size: 2.6rem; }
}


/* ============================================================
   14. ACCESSIBILITY & REDUCED MOTION
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration:   0.01ms !important;
    transition-duration:  0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
