/* ============================================================
   STYLES.CSS — Khwezi Maphalala | QA Automation Portfolio
   Theme: Dark charcoal / white split with warm sand accents
   Fonts: Syne (geometric display) + Outfit (technical body)
   ============================================================ */

/* ── CSS CUSTOM PROPERTIES ── */
:root {
  /* Colour system */
  --c-black:       #0D0D0D;
  --c-dark:        #141414;
  --c-dark-2:      #1C1C1C;
  --c-dark-3:      #242424;
  --c-border-dark: #2E2E2E;
  --c-white:       #FAFAFA;
  --c-off-white:   #F2F0ED;
  --c-sand:        #C9B99A;
  --c-sand-pale:   #E8DFD2;
  --c-sand-deep:   #A8956E;
  --c-muted:       #888888;
  --c-muted-2:     #555555;

  /* Semantic */
  --c-bg:          var(--c-white);
  --c-surface:     var(--c-off-white);
  --c-ink:         var(--c-black);
  --c-accent:      var(--c-sand);

  /* Typography */
  --font-display: 'Syne', system-ui, sans-serif;
  --font-body:    'Outfit', system-ui, sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;

  /* Layout */
  --max-width: 1200px;
  --nav-height: 68px;

  /* Animation */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --dur: 550ms;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
  cursor: auto;
}

a, button, [role="button"] { cursor: pointer; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }


/* ── REVEAL ANIMATION ── */
/* Default: content always visible */
.reveal {
  opacity: 1;
  transform: none;
}
/* When JS has loaded, enable animations */
.js-ready .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 550ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 550ms cubic-bezier(0.16, 1, 0.3, 1);
}
.js-ready .reveal.visible {
  opacity: 1;
  transform: none;
}
.delay-1 { transition-delay: 80ms; }
.delay-2 { transition-delay: 160ms; }
.delay-3 { transition-delay: 240ms; }
.delay-4 { transition-delay: 320ms; }

/* ── CONTAINER ── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: clamp(1.5rem, 5vw, 4rem);
}

/* ── SECTION BASE ── */
.section { padding-block: var(--space-xl); }

/* ── REVEAL ANIMATION ── */
.reveal {
  opacity: 1;
  transform: none;
}



/* ── SECTION LABELS & HEADINGS ── */
.section-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-sand);
  margin-bottom: var(--space-sm);
}

.section-label.light { color: var(--c-sand); }

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--c-ink);
  letter-spacing: -0.02em;
}

.section-heading em {
  font-style: normal;
  color: var(--c-sand-deep);
}

.section-heading.light { color: var(--c-white); }
.section-heading.light em { color: var(--c-sand); }

.section-header { margin-bottom: var(--space-lg); }

.section-intro {
  margin-top: 0.75rem;
  font-size: 1rem;
  color: var(--c-muted);
  max-width: 54ch;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.75rem;
  border-radius: 2px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all 250ms var(--ease-out);
}

.btn-primary {
  background: var(--c-ink);
  color: var(--c-white);
  border-color: var(--c-ink);
}
.btn-primary:hover {
  background: var(--c-sand-deep);
  border-color: var(--c-sand-deep);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--c-ink);
  border-color: var(--c-ink);
}
.btn-outline:hover {
  background: var(--c-ink);
  color: var(--c-white);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--c-muted);
  border-color: var(--c-muted-2);
}
.btn-ghost:hover {
  color: var(--c-ink);
  border-color: var(--c-ink);
  transform: translateY(-2px);
}

/* ============================================================
   CUSTOM CURSOR
============================================================ */
.cursor-dot { display: none !important; /* cursor dot disabled */ 
}
.cursor-dot-DISABLED {
  position: fixed;
  top: 0; left: 0;
  width: 12px; height: 12px;
  background: var(--c-sand);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 80ms linear, width 200ms var(--ease), height 200ms var(--ease), background 200ms ease;
  mix-blend-mode: multiply;
}

.cursor-dot.expanded {
  width: 40px;
  height: 40px;
  background: var(--c-sand-pale);
}

@media (hover: none) { .cursor-dot { display: none !important; /* cursor dot disabled */ 
}
.cursor-dot-DISABLED { display: none; } }

/* ============================================================
   NAVIGATION
============================================================ */
.nav-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(250, 250, 250, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 300ms, box-shadow 300ms;
}

.nav-header.scrolled {
  border-bottom-color: #E8E4DF;
  box-shadow: 0 1px 24px rgba(13,13,13,0.08);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: clamp(1.5rem, 5vw, 4rem);
}

/* Logo */
.nav-logo { display: flex; align-items: center; gap: 0.75rem; }

.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  background: var(--c-ink);
  color: var(--c-white);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  border-radius: 2px;
  flex-shrink: 0;
}

.logo-wordmark {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--c-ink);
  letter-spacing: -0.01em;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.2rem);
}

.nav-links a {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-muted);
  transition: color 200ms ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--c-sand);
  transition: width 250ms var(--ease-out);
}

.nav-links a:hover { color: var(--c-ink); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--c-ink); }
.nav-links a.active::after { width: 100%; }

.nav-cta {
  background: var(--c-ink) !important;
  color: var(--c-white) !important;
  padding: 0.45rem 1.1rem;
  border-radius: 2px;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--c-sand-deep) !important; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--c-ink);
  transition: all 280ms var(--ease);
  transform-origin: center;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(4.5px, 4.5px); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(4.5px, -4.5px); }

/* Mobile menu */
.mobile-menu {
  display: none;
  background: var(--c-white);
  border-top: 1px solid #E8E4DF;
  padding: 1.5rem clamp(1.5rem, 5vw, 4rem);
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block;
  padding: 0.9rem 0;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--c-muted);
  border-bottom: 1px solid #F0EDE9;
  letter-spacing: 0.04em;
  transition: color 200ms, padding-left 200ms;
}
.mobile-menu a:hover { color: var(--c-ink); padding-left: 0.5rem; }

/* ============================================================
   HERO SECTION
============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  padding-top: var(--nav-height);
  background: var(--c-dark);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2rem;
  padding-inline: clamp(1.5rem, 5vw, 4rem);
  padding-block: 6rem;
  max-width: 100%;
}

/* Animated grid lines background */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201,185,154,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,185,154,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridShift 20s linear infinite;
}

@keyframes gridShift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 60px 60px, 60px 0; }
}

/* Floating tag chips in background */
.hero-tags {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.htag {
  position: absolute;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(201,185,154,0.12);
  white-space: nowrap;
  animation: floatTag 18s ease-in-out infinite;
}

.htag:nth-child(1) { top: 12%; left: 5%; animation-delay: 0s; }
.htag:nth-child(2) { top: 25%; right: 8%; animation-delay: -3s; }
.htag:nth-child(3) { top: 65%; left: 12%; animation-delay: -6s; }
.htag:nth-child(4) { top: 75%; right: 5%; animation-delay: -9s; }
.htag:nth-child(5) { top: 45%; left: 55%; animation-delay: -12s; }
.htag:nth-child(6) { bottom: 15%; left: 30%; animation-delay: -15s; }

@keyframes floatTag {
  0%, 100% { transform: translateY(0px) translateX(0px); opacity: 0.6; }
  33% { transform: translateY(-12px) translateX(6px); opacity: 1; }
  66% { transform: translateY(8px) translateX(-4px); opacity: 0.4; }
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(201,185,154,0.10);
  border: 1px solid rgba(201,185,154,0.25);
  color: var(--c-sand);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  margin-bottom: 2rem;
  letter-spacing: 0.04em;
}

.status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #4caf50;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 10vw, 7.5rem);
  font-weight: 800;
  line-height: 0.92;
  color: var(--c-white);
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero-name-alt {
  color: var(--c-sand);
  display: block;
}

.hero-role {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.role-line {
  font-family: var(--font-display);
  font-size: clamp(0.9rem, 2vw, 1.15rem);
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--c-white);
  text-transform: uppercase;
}

.role-line.muted { color: var(--c-muted); }

.role-sep {
  color: var(--c-sand);
  font-size: 1.2rem;
  font-weight: 300;
}

.hero-bio {
  font-size: 1rem;
  color: #AAAAAA;
  line-height: 1.8;
  max-width: 52ch;
  margin-bottom: 2.5rem;
}

.hero-bio strong { color: var(--c-sand); font-weight: 600; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Hero stats panel */
.hero-stats {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--c-border-dark);
  border-radius: 4px;
  overflow: hidden;
  background: var(--c-dark-2);
  min-width: 160px;
  align-self: center;
}

.hstat {
  padding: 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  transition: background 250ms ease;
}
.hstat:hover { background: var(--c-dark-3); }

.hstat-divider {
  height: 1px;
  background: var(--c-border-dark);
}

.hstat-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--c-sand);
  line-height: 1;
  letter-spacing: -0.02em;
}

.hstat-label {
  font-size: 0.72rem;
  color: var(--c-muted);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ============================================================
   ABOUT SECTION
============================================================ */
.about-section { background: var(--c-white); }

.about-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}

.about-signature {
  font-family: var(--font-display);
  font-size: 8rem;
  font-weight: 800;
  color: var(--c-off-white);
  line-height: 1;
  letter-spacing: -0.05em;
  margin-top: 1rem;
  user-select: none;
}

.about-philosophy {
  background: var(--c-dark);
  color: var(--c-white);
  padding: 2rem;
  border-radius: 3px;
  margin-bottom: 2rem;
  position: relative;
}

.about-philosophy > i {
  font-size: 2rem;
  color: var(--c-sand);
  margin-bottom: 0.75rem;
  display: block;
}

.about-philosophy blockquote {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--c-sand-pale);
  font-style: normal;
}

.about-body p {
  font-size: 0.98rem;
  color: #444;
  line-height: 1.8;
  margin-bottom: 1.1rem;
}
.about-body strong { color: var(--c-ink); }

.value-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-ink);
  background: var(--c-off-white);
  border: 1px solid #E0DAD2;
  padding: 0.4rem 0.9rem;
  border-radius: 2px;
  transition: all 200ms ease;
}
.chip i { color: var(--c-sand-deep); font-size: 0.9rem; }
.chip:hover { background: var(--c-ink); color: var(--c-white); border-color: var(--c-ink); }
.chip:hover i { color: var(--c-sand); }

/* ============================================================
   SKILLS SECTION — Bento Grid
============================================================ */
.skills-section { background: var(--c-dark); }
.skills-section .section-label { color: var(--c-sand); }
.skills-section .section-heading { color: var(--c-white); }

.skills-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 1px;
  background: var(--c-border-dark);
  border: 1px solid var(--c-border-dark);
  border-radius: 4px;
  overflow: hidden;
}

.bento-card {
  background: var(--c-dark-2);
  padding: 2rem;
  transition: background 250ms ease;
}
.bento-card:hover { background: var(--c-dark-3); }

/* Featured card spans 2 columns */
.bento-featured {
  grid-column: span 2;
}

.bento-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--c-border-dark);
}

.bento-header i {
  font-size: 1.3rem;
  color: var(--c-sand);
}

.bento-header h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-white);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* Skill pills */
.skill-pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-pill {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  border-radius: 2px;
  border: 1px solid var(--c-border-dark);
  color: #CCC;
  background: rgba(255,255,255,0.03);
  transition: all 200ms ease;
  letter-spacing: 0.03em;
}
.skill-pill.primary {
  background: var(--c-sand);
  color: var(--c-black);
  border-color: var(--c-sand);
}
.skill-pill:hover {
  border-color: var(--c-sand);
  color: var(--c-sand);
}
.skill-pill.primary:hover {
  background: var(--c-sand-deep);
  border-color: var(--c-sand-deep);
  color: var(--c-white);
}

/* Dot list */
.skill-dot-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.skill-dot-list li {
  font-size: 0.9rem;
  color: #AAAAAA;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: color 200ms;
}
.skill-dot-list li::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--c-sand);
  flex-shrink: 0;
}
.skill-dot-list li:hover { color: var(--c-white); }

.dot-accent {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c-sand);
  margin-right: 0.4rem;
}

/* Lang badges */
.lang-badges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.lang-badge {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.9rem;
  border-radius: 2px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--c-white);
  border: 1px solid var(--c-border-dark);
  transition: border-color 200ms;
}
.lang-badge:hover { border-color: var(--c-sand); }
.lang-badge span:first-child { color: #CCC; font-size: 0.75rem; }

.lang-initial {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem !important;
  color: var(--c-sand) !important;
  letter-spacing: 0;
}

.lang-badge.java  { border-color: rgba(240, 140, 50, 0.2); }
.lang-badge.csharp { border-color: rgba(89, 74, 226, 0.2); }
.lang-badge.python { border-color: rgba(55, 118, 171, 0.2); }
.lang-badge.oop { border-color: rgba(201,185,154,0.2); }

/* Tool grid */
.tool-grid {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.tool-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: #AAAAAA;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: color 200ms;
}
.tool-item i { color: var(--c-sand); font-size: 0.95rem; }
.tool-item:hover { color: var(--c-white); }

/* ============================================================
   EXPERIENCE SECTION
============================================================ */
.experience-section { background: var(--c-white); }

.exp-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.exp-block {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 2rem;
}

.exp-timeline-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 0.35rem;
}

.etm-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--c-ink);
  border: 3px solid var(--c-sand);
  flex-shrink: 0;
  z-index: 1;
  transition: transform 250ms ease;
}
.etm-dot.small {
  width: 10px; height: 10px;
  border: 2px solid var(--c-muted);
  background: var(--c-muted-2);
}
.exp-block:hover .etm-dot { transform: scale(1.3); }

.etm-line {
  width: 1px;
  flex: 1;
  background: linear-gradient(to bottom, var(--c-sand), #E8E4DF);
  margin-top: 4px;
  min-height: 3rem;
}

.exp-content {
  padding-bottom: 3rem;
  padding-top: 0;
}

.exp-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.exp-company {
  display: block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-sand-deep);
  margin-bottom: 0.3rem;
}

.exp-role {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--c-ink);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.exp-type-badge {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border-radius: 2px;
  white-space: nowrap;
  background: var(--c-ink);
  color: var(--c-sand);
  border: 1px solid var(--c-ink);
  flex-shrink: 0;
}

.exp-type-badge.past {
  background: var(--c-off-white);
  color: var(--c-muted);
  border-color: #E0DAD2;
}

.exp-summary {
  font-size: 0.93rem;
  color: #555;
  line-height: 1.75;
  margin-bottom: 1rem;
  max-width: 68ch;
}

.exp-bullets {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 1.25rem;
}

.exp-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: #555;
  line-height: 1.55;
}

.exp-bullets li i {
  color: var(--c-sand-deep);
  font-size: 0.9rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.exp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.exp-tags span {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-muted);
  background: var(--c-off-white);
  border: 1px solid #E0DAD2;
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
  transition: all 200ms;
}
.exp-tags span:hover {
  background: var(--c-ink);
  color: var(--c-sand);
  border-color: var(--c-ink);
}

/* ============================================================
   PROJECTS SECTION
============================================================ */
.projects-section { background: var(--c-dark); }
.projects-section .section-label { color: var(--c-sand); }
.projects-section .section-heading { color: var(--c-white); }
.projects-section .section-intro { color: var(--c-muted); }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--c-border-dark);
  border: 1px solid var(--c-border-dark);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 3rem;
}

.proj-card {
  background: var(--c-dark-2);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: background 300ms ease;
}
.proj-card:hover { background: var(--c-dark-3); }

.proj-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--c-border-dark);
  line-height: 1;
  letter-spacing: -0.03em;
}

.proj-icon-wrap {
  width: 44px; height: 44px;
  border-radius: 3px;
  background: rgba(201,185,154,0.10);
  border: 1px solid rgba(201,185,154,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--c-sand);
}

.proj-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--c-white);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.proj-desc {
  font-size: 0.88rem;
  color: #888;
  line-height: 1.7;
  flex: 1;
}

.proj-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.proj-tech span {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-sand);
  background: rgba(201,185,154,0.08);
  border: 1px solid rgba(201,185,154,0.2);
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
}

.proj-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--c-border-dark);
  margin-top: auto;
}

.proj-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-sand);
  transition: color 200ms ease;
}
.proj-link-btn:hover { color: var(--c-white); }
.proj-link-btn i { font-size: 0.95rem; }

.proj-gh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 2px;
  border: 1px solid var(--c-border-dark);
  color: var(--c-muted);
  font-size: 1rem;
  margin-left: auto;
  transition: all 200ms ease;
}
.proj-gh-btn:hover { border-color: var(--c-sand); color: var(--c-sand); }

.projects-cta { text-align: center; }

/* ============================================================
   EDUCATION SECTION
============================================================ */
.education-section { background: var(--c-off-white); }

.edu-stack {
  display: flex;
  flex-direction: column;
  gap: 1px;
  border: 1px solid #E0DAD2;
  border-radius: 4px;
  overflow: hidden;
}

.edu-item {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 2rem;
  align-items: center;
  background: var(--c-white);
  padding: 2rem 2rem;
  transition: background 250ms ease;
}
.edu-item:hover { background: var(--c-off-white); }

.edu-degree-marker {
  text-align: center;
}

.edu-level {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-sand-deep);
  background: var(--c-sand-pale);
  padding: 0.35rem 0.6rem;
  border-radius: 2px;
  display: inline-block;
}

.edu-institution {
  display: block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: 0.3rem;
}

.edu-qual {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--c-ink);
  margin-bottom: 0.35rem;
  letter-spacing: -0.01em;
}

.edu-note {
  font-size: 0.85rem;
  color: var(--c-muted);
  line-height: 1.5;
}

.edu-cap-icon {
  font-size: 2rem;
  color: var(--c-sand-pale);
}

/* ============================================================
   ACHIEVEMENTS SECTION
============================================================ */
.achievements-section { background: var(--c-white); }

.ach-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.ach-card {
  padding: 2rem;
  border: 1px solid #E8E4DF;
  border-radius: 3px;
  transition: box-shadow 300ms ease, transform 300ms ease, border-color 300ms ease;
}
.ach-card:hover {
  box-shadow: 0 8px 40px rgba(13,13,13,0.08);
  transform: translateY(-3px);
  border-color: var(--c-sand-pale);
}

.ach-icon {
  width: 48px; height: 48px;
  border-radius: 3px;
  background: var(--c-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--c-sand);
  margin-bottom: 1.25rem;
}

.ach-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--c-ink);
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}

.ach-card p {
  font-size: 0.88rem;
  color: #666;
  line-height: 1.7;
}

/* ============================================================
   CONTACT SECTION
============================================================ */
.contact-section { background: var(--c-dark); }

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}

.contact-invite {
  font-size: 0.95rem;
  color: #888;
  line-height: 1.8;
  margin-top: 1.25rem;
  max-width: 42ch;
}

.contact-location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--c-muted);
  margin-top: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.contact-location i { color: var(--c-sand); }

/* Contact cards */
.contact-right {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  background: var(--c-dark-2);
  border: 1px solid var(--c-border-dark);
  border-radius: 3px;
  transition: all 300ms ease;
}
.contact-card:hover {
  background: var(--c-dark-3);
  border-color: var(--c-sand);
  transform: translateX(4px);
}

.cc-icon {
  width: 40px; height: 40px;
  border-radius: 2px;
  background: rgba(201,185,154,0.1);
  border: 1px solid rgba(201,185,154,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--c-sand);
  flex-shrink: 0;
}

.cc-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.cc-label {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-muted);
}

.cc-value {
  font-size: 0.88rem;
  color: var(--c-white);
  font-weight: 400;
}

.cc-arrow {
  font-size: 1rem;
  color: var(--c-border-dark);
  transition: color 200ms, transform 200ms;
}
.contact-card:hover .cc-arrow {
  color: var(--c-sand);
  transform: translate(2px, -2px);
}

/* ============================================================
   FOOTER
============================================================ */
.site-footer {
  background: var(--c-black);
  border-top: 1px solid var(--c-border-dark);
  padding-block: 2rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: var(--c-sand);
  background: var(--c-dark-2);
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  border: 1px solid var(--c-border-dark);
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.footer-name {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--c-white);
  letter-spacing: -0.01em;
}

.footer-role {
  font-size: 0.75rem;
  color: var(--c-muted);
  letter-spacing: 0.02em;
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--c-muted-2);
  letter-spacing: 0.02em;
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
============================================================ */

/* Tablet — ≤ 960px */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }

  /* Hero */
  .hero { grid-template-columns: 1fr; padding-block: 5rem; }
  .hero-stats {
    flex-direction: row;
    min-width: unset;
    width: 100%;
  }
  .hstat { flex: 1; }
  .hstat-divider { width: 1px; height: auto; }
  .htag { display: none; }

  /* About */
  .about-layout { grid-template-columns: 1fr; gap: 3rem; }
  .about-signature { display: none; }

  /* Skills bento */
  .skills-bento { grid-template-columns: 1fr 1fr; }
  .bento-featured { grid-column: span 2; }

  /* Experience */
  .exp-block { grid-template-columns: 24px 1fr; gap: 1.25rem; }

  /* Projects */
  .projects-grid { grid-template-columns: 1fr; }

  /* Education */
  .edu-item { grid-template-columns: 80px 1fr; }
  .edu-cap-icon { display: none; }

  /* Achievements */
  .ach-grid { grid-template-columns: 1fr; }

  /* Contact */
  .contact-layout { grid-template-columns: 1fr; gap: 3rem; }
}

/* Mobile — ≤ 600px */
@media (max-width: 600px) {
  .section { padding-block: 4rem; }

  .hero { padding-block: 4rem; }
  .hero-name { font-size: clamp(2.8rem, 14vw, 5rem); }
  .hero-stats { flex-direction: column; }
  .hstat-divider { width: 100%; height: 1px; }

  .skills-bento { grid-template-columns: 1fr; }
  .bento-featured { grid-column: span 1; }

  .edu-item { grid-template-columns: 1fr; }
  .edu-degree-marker { text-align: left; }

  .footer-inner { flex-direction: column; align-items: flex-start; }

  .hero-actions { flex-direction: column; align-items: flex-start; }
  .btn { width: 100%; justify-content: center; }
}

/* Large — ≥ 1400px */
@media (min-width: 1400px) {
  :root { --max-width: 1320px; }
}
