/* ============================================================
   VARIABLES
============================================================ */
:root {
  --bg-primary:       #080c14;
  --bg-secondary:     #0d1422;
  --bg-card:          #101828;
  --bg-card-hover:    #131f34;

  --accent:           #22d3a5;
  --accent-dim:       rgba(34, 211, 165, 0.12);
  --accent-glow:      rgba(34, 211, 165, 0.25);
  --accent-border:    rgba(34, 211, 165, 0.22);
  --accent-purple:    #8b5cf6;
  --accent-purple-dim: rgba(139, 92, 246, 0.12);
  --accent-purple-border: rgba(139, 92, 246, 0.28);

  --text-primary:     #e2e8f0;
  --text-secondary:   #8892a4;
  --text-dim:         #78869c;

  --border:           rgba(255, 255, 255, 0.06);

  --font-heading:     'Space Grotesk', sans-serif;
  --font-body:        'Inter', sans-serif;
  --font-mono:        'JetBrains Mono', monospace;

  --section-py:       100px;
  --container-max:    1140px;
  --radius:           12px;

  --ease:             0.2s ease;
  --ease-slow:        0.4s ease;
}

/* ============================================================
   RESET
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 22px; }
body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body.menu-open { overflow: hidden; }
body.gallery-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* ============================================================
   LAYOUT UTILITIES
============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 28px;
}

.section { padding: var(--section-py) 0; }

.section-header { margin-bottom: 56px; }

.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

/* ============================================================
   BUTTONS
============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--ease);
  border: 1px solid transparent;
  line-height: 1;
}

.btn--primary {
  background: var(--accent);
  color: #060a10;
  border-color: var(--accent);
}
.btn--primary:hover {
  background: transparent;
  color: var(--accent);
  box-shadow: 0 0 24px var(--accent-glow);
}

.btn--ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border);
}
.btn--ghost:hover {
  border-color: var(--accent-border);
  color: var(--accent);
}

.btn--icon {
  padding: 11px;
  background: transparent;
  border-color: var(--border);
  color: var(--text-secondary);
}
.btn--icon:hover {
  border-color: var(--accent-border);
  color: var(--accent);
}

.btn--lg { padding: 15px 36px; font-size: 1rem; }

/* ============================================================
   TAGS / CHIPS
============================================================ */
.tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  line-height: 1.4;
}
.tag--primary {
  background: var(--accent-dim);
  border-color: var(--accent-border);
  color: var(--accent);
}
.tag--accent {
  background: var(--accent-purple-dim);
  border-color: var(--accent-purple-border);
  color: var(--accent-purple);
}
.tag--sm { padding: 2px 8px; font-size: 0.7rem; }

/* ============================================================
   NAVIGATION
============================================================ */
.nav-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background var(--ease-slow), border var(--ease-slow);
}
.nav-header.scrolled {
  background: rgba(8, 12, 20, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 20px 28px;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.nav-logo-mark {
  display: block;
  width: 56px;
  height: auto;
}

.nav-logo:hover .nav-logo-mark {
  filter: drop-shadow(0 0 8px rgba(34, 211, 165, 0.25));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-link {
  font-size: 0.875rem;
  color: var(--text-secondary);
  position: relative;
  transition: color var(--ease);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform var(--ease);
  transform-origin: left;
}
.nav-link:hover,
.nav-link.active { color: var(--text-primary); }
.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }
.nav-link--cta {
  padding: 7px 18px;
  border: 1px solid var(--accent-border);
  border-radius: 6px;
  color: var(--accent);
}
.nav-link--cta::after { display: none; }
.nav-link--cta:hover { background: var(--accent-dim); color: var(--accent); }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  z-index: 101;
  position: relative;
}
.nav-burger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-primary);
  transition: transform var(--ease), opacity var(--ease);
  border-radius: 2px;
}
.nav-burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================================
   HERO
============================================================ */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(34, 211, 165, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 165, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 75%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent);
  margin-bottom: 22px;
  letter-spacing: 0.05em;
}
.terminal-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.hero-name {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.name-accent { color: var(--accent); }

.hero-title {
  display: flex;
  align-items: center;
  gap: 2px;
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 26px;
  min-height: 1.6em;
}
.terminal-prefix { color: var(--accent); }
.cursor {
  color: var(--accent);
  animation: blink 1s step-end infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.hero-tagline {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--text-dim);
}
.meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
}
.meta-divider { color: var(--border); }

/* Avatar */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.avatar-wrapper {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}
.avatar-glow {
  position: absolute;
  width: 340px; height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 68%);
  filter: blur(36px);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  animation: glow-breathe 4s ease-in-out infinite;
}
@keyframes glow-breathe {
  0%, 100% { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
}

.avatar-frame {
  position: relative;
  z-index: 1;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid var(--accent-border);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04),
    0 24px 64px rgba(0,0,0,0.55),
    0 0 48px var(--accent-glow);
}
.avatar-img {
  width: 380px;
  height: 380px;
  object-fit: cover;
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.avatar-badge {
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--bg-card);
  border: 1px solid var(--accent-border);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 0.76rem;
  font-family: var(--font-mono);
  color: var(--accent);
  white-space: nowrap;
  z-index: 2;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 36px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-dim);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.scroll-line {
  width: 1px; height: 36px;
  background: linear-gradient(to bottom, var(--text-dim), transparent);
  animation: scroll-anim 2s ease-in-out infinite;
}
@keyframes scroll-anim {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 0; }
  30%  { opacity: 1; }
  60%  { transform: scaleY(1); transform-origin: top; }
  61%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* ============================================================
   ABOUT
============================================================ */
.about { background: var(--bg-secondary); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 80px;
  align-items: start;
}

.about-lead {
  font-size: 1.1rem;
  color: var(--text-primary);
  line-height: 1.8;
  margin-bottom: 20px;
}
.about-text p:not(.about-lead) {
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-size: 0.95rem;
}
.about-text strong { color: var(--text-primary); font-weight: 600; }

.about-links {
  display: flex;
  gap: 20px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.about-link {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.875rem;
  color: var(--accent);
  border-bottom: 1px solid var(--accent-border);
  padding-bottom: 2px;
  transition: border-color var(--ease), opacity var(--ease);
}
.about-link:hover { border-color: var(--accent); opacity: 0.8; }
.about-credentials { margin-top: 24px; }

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color var(--ease), transform var(--ease);
}
.stat-card:hover {
  border-color: var(--accent-border);
  transform: translateY(-2px);
}
.stat-number {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.stat-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* ============================================================
   SKILLS
============================================================ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.skill-group {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: border-color var(--ease), transform var(--ease);
}
.skill-group:hover {
  border-color: var(--accent-border);
  transform: translateY(-2px);
}
.skill-group-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
}
.skill-icon { opacity: 0.75; font-size: 1rem; line-height: 1; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 7px; }

/* ============================================================
   EXPERIENCE
============================================================ */
.experience { background: var(--bg-secondary); }

.timeline { display: flex; flex-direction: column; }

.timeline-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 22px;
  padding-bottom: 44px;
}
.timeline-item:last-child { padding-bottom: 0; }

.timeline-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 8px;
}
.timeline-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--text-dim);
  border: 2px solid var(--bg-secondary);
  flex-shrink: 0;
  z-index: 1;
}
.timeline-dot.current {
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-dim);
}
.timeline-line {
  width: 1px;
  flex: 1;
  background: linear-gradient(to bottom, var(--border), transparent);
  margin-top: 8px;
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: border-color var(--ease);
}
.timeline-card:hover { border-color: var(--accent-border); }

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}
.timeline-role {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.timeline-company {
  display: block;
  font-size: 0.875rem;
  color: var(--accent);
}
.timeline-period {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  white-space: nowrap;
  padding-top: 4px;
}
.timeline-location {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-bottom: 14px;
}
.timeline-points {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.timeline-points li {
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding-left: 16px;
  position: relative;
  line-height: 1.6;
}
.timeline-points li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.68rem;
  top: 4px;
}
.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* ============================================================
   PROJECTS
============================================================ */
.projects-subtitle {
  margin-bottom: 10px;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--text-primary);
}
.projects-subtitle--spaced { margin-top: 60px; }
.projects-intro {
  margin-bottom: 24px;
  color: var(--text-secondary);
  font-size: 0.92rem;
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.projects-grid--public { grid-template-columns: repeat(2, 1fr); }
.projects-note {
  grid-column: 1 / -1;
  max-width: 760px;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.7;
  margin: -18px 0 12px;
}
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color var(--ease), transform var(--ease), box-shadow var(--ease);
}
.project-card:hover {
  border-color: var(--accent-border);
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.25);
}
.project-card--highlight {
  border-color: var(--accent-purple-border);
  background: linear-gradient(135deg, var(--bg-card), rgba(139,92,246,0.05));
}
.project-card--highlight:hover { border-color: rgba(139,92,246,0.45); }

.project-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.project-icon {
  font-size: 1.4rem;
  line-height: 1;
}
.project-badge {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  padding: 3px 8px;
  border-radius: 3px;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid var(--accent-border);
  letter-spacing: 0.04em;
}
.project-title {
  font-family: var(--font-heading);
  font-size: 0.975rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
}
.project-desc {
  font-size: 0.845rem;
  color: var(--text-secondary);
  line-height: 1.65;
  flex: 1;
}
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}
.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding-top: 10px;
}
.project-links a {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.project-links a:hover { color: var(--text-primary); }

.project-gallery {
  width: min(1200px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100vh - 32px);
  margin: auto;
  padding: 0;
  overflow: auto;
  color: var(--text-primary);
  background: var(--bg-card);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.65);
}
.project-gallery::backdrop { background: rgba(0, 0, 0, 0.82); }
.project-gallery-inner { padding: 22px; }
.project-gallery-header,
.project-gallery-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.project-gallery-header { margin-bottom: 16px; }
.project-gallery-header .section-label { margin-bottom: 4px; }
.project-gallery-header h2 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
}
.project-gallery-close {
  flex: none;
  width: 40px;
  height: 40px;
  color: var(--text-primary);
  font-size: 1.5rem;
  line-height: 1;
  border: 1px solid var(--border);
  border-radius: 6px;
}
.project-gallery-close:hover,
.project-gallery-controls button:hover { color: var(--accent); border-color: var(--accent-border); }
.project-gallery-figure img {
  display: block;
  width: 100%;
  max-height: 55vh;
  object-fit: contain;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 6px;
}
.project-gallery-figure figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
  color: var(--text-secondary);
  font-size: 0.82rem;
}
.project-gallery-figure figcaption a { color: var(--accent); }
.project-gallery-figure figcaption a:hover { color: var(--text-primary); }
.project-gallery-controls { margin-top: 18px; }
.project-gallery-controls button {
  padding: 8px 12px;
  color: var(--text-primary);
  font-size: 0.82rem;
  border: 1px solid var(--border);
  border-radius: 6px;
}
.project-gallery-controls span {
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

/* ============================================================
   CONTACT
============================================================ */
.contact { background: var(--bg-secondary); }

.contact-inner {
  max-width: 580px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.contact-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.025em;
}
.contact-subtitle {
  color: var(--text-secondary);
  font-size: 0.975rem;
  line-height: 1.75;
  margin-bottom: 4px;
}
.contact-links {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 8px;
}
.contact-social {
  display: flex;
  align-items: center;
  gap: 7px;
  transition: color var(--ease);
}
.contact-social:hover { color: var(--accent); }
.contact-divider { color: var(--border); }

/* ============================================================
   FOOTER
============================================================ */
.footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-name {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent);
}
.footer-copy {
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* ============================================================
   SCROLL REVEAL (initial state, JS adds transition)
============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 52px;
  }
  .hero-visual { order: -1; }
  .avatar-img { width: 300px; height: 300px; }
  .avatar-glow { width: 280px; height: 280px; }
  .hero-eyebrow,
  .hero-actions,
  .hero-meta { justify-content: center; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --section-py: 68px; }

  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(8, 12, 20, 0.97);
    backdrop-filter: blur(12px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 36px;
    z-index: 100;
  }
  .nav-links.open { display: flex; }
  .nav-links.open .nav-link { font-size: 1.25rem; color: var(--text-primary); }
  .nav-links.open .nav-link--cta { font-size: 1.25rem; }

  .nav-burger { display: flex; }

  .avatar-img { width: 260px; height: 260px; }
  .skills-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .timeline-marker { display: none; }
  .timeline-card { margin-bottom: 16px; }

  .footer-inner { flex-direction: column; text-align: center; gap: 8px; }
}

@media (max-width: 480px) {
  .hero-name { font-size: 2.6rem; }
  .avatar-img { width: 220px; height: 220px; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .hero-actions { flex-direction: column; align-items: center; }
  .project-gallery-inner { padding: 14px; }
  .project-gallery-controls button { padding: 8px; }
}

/* ============================================================
   REDUCED MOTION
============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
