/* ========================================
   Variables & Reset
   ======================================== */
:root {
  --bg: #09090b;
  --bg-subtle: #0f0f12;
  --bg-card: #141418;
  --text: #fafafa;
  --text-secondary: #a1a1aa;
  --text-muted: #52525b;
  --accent: #3b82f6;
  --accent-2: #06b6d4;
  --accent-3: #8b5cf6;
  --border: #1e1e24;
  --border-hover: #2e2e38;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-w: 1060px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
strong { color: var(--text); font-weight: 600; }

::selection { background: var(--accent); color: #fff; }

/* ========================================
   Accessibility: Skip Link
   ======================================== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  padding: 12px 24px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.88rem;
  border-radius: 0 0 8px 8px;
  z-index: 200;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;
}

/* ========================================
   Accessibility: Focus Styles
   ======================================== */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
}

/* ========================================
   Cursor Glow
   ======================================== */
.cursor-glow {
  position: fixed;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,0.07) 0%, rgba(139,92,246,0.03) 40%, transparent 70%);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
  opacity: 0;
}
.cursor-glow.active { opacity: 1; }

/* ========================================
   Animations
   ======================================== */
.animate-fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.7s var(--ease) forwards;
}
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.22s; }
.delay-3 { animation-delay: 0.36s; }
.delay-4 { animation-delay: 0.5s; }

@keyframes fadeUp { to { opacity: 1; transform: none; } }

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Staggered reveal for children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.reveal-stagger.visible > * {
  opacity: 1;
  transform: none;
}
.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.12s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.19s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.26s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.33s; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.4s; }

/* ========================================
   Buttons
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s;
}
.btn:hover::before { opacity: 1; }

.btn--primary {
  background: var(--accent);
  color: #fff;
}
.btn--primary::before {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
}
.btn--primary:hover {
  box-shadow: 0 0 30px rgba(59,130,246,0.35), 0 0 60px rgba(59,130,246,0.15);
  transform: translateY(-2px);
}
.btn--glass {
  background: rgba(255,255,255,0.05);
  color: var(--text-secondary);
  border-color: var(--border);
  backdrop-filter: blur(8px);
}
.btn--glass:hover {
  background: rgba(255,255,255,0.1);
  color: var(--text);
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(59,130,246,0.15);
  transform: translateY(-2px);
}
.btn--lg { padding: 14px 30px; font-size: 0.92rem; }

.btn--magnetic {
  transition: transform 0.2s var(--ease);
}

/* ========================================
   Nav
   ======================================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(9,9,11,0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.nav--scrolled { border-bottom-color: var(--border); }

.nav__container {
  max-width: var(--max-w);
  margin: 0 auto; padding: 0 28px;
  display: flex; align-items: center;
  justify-content: space-between; height: 60px;
}
.nav__logo {
  font-size: 0.88rem; font-weight: 600;
  color: var(--text-muted); letter-spacing: -0.2px;
  transition: color 0.2s;
}
.nav__logo:hover { color: var(--text); }

.nav__menu { display: flex; align-items: center; gap: 2px; }
.nav__link {
  padding: 6px 12px; font-size: 0.82rem; font-weight: 500;
  color: var(--text-muted); border-radius: 8px; transition: all 0.2s;
  position: relative;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%; transform: translateX(-50%);
  width: 0; height: 1.5px;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}
.nav__link:hover::after { width: 60%; }
.nav__link:hover { color: var(--text-secondary); }
.nav__link--cta {
  background: rgba(59,130,246,0.12); color: var(--accent);
  margin-left: 6px;
}
.nav__link--cta::after { display: none; }
.nav__link--cta:hover {
  background: rgba(59,130,246,0.2); color: #60a5fa;
  box-shadow: 0 0 16px rgba(59,130,246,0.15);
}

.nav__toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.nav__toggle span {
  width: 20px; height: 1.5px; background: var(--text-secondary);
  border-radius: 2px; transition: all 0.25s; transform-origin: center;
}

/* ========================================
   Hero
   ======================================== */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: 140px 28px 100px; position: relative; overflow: hidden;
}

.hero__particles {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
}

.hero__glow {
  position: absolute;
  top: -40%; left: 50%; transform: translateX(-50%);
  width: 1000px; height: 700px;
  background: radial-gradient(ellipse, rgba(59,130,246,0.14) 0%, rgba(139,92,246,0.07) 30%, rgba(6,182,212,0.05) 50%, transparent 70%);
  pointer-events: none; filter: blur(40px);
  animation: glowPulse 6s ease-in-out infinite alternate;
}
@keyframes glowPulse {
  0% { opacity: 0.7; transform: translateX(-50%) scale(1); }
  100% { opacity: 1; transform: translateX(-50%) scale(1.1); }
}

.hero__aurora {
  position: absolute;
  top: 0; left: 0; right: 0; height: 50%;
  background:
    linear-gradient(135deg, rgba(59,130,246,0.06) 0%, transparent 50%),
    linear-gradient(225deg, rgba(139,92,246,0.05) 0%, transparent 50%),
    linear-gradient(315deg, rgba(6,182,212,0.04) 0%, transparent 50%);
  filter: blur(80px);
  pointer-events: none;
  animation: aurora 8s ease-in-out infinite alternate;
}
@keyframes aurora {
  0% { transform: translateY(0) rotate(0deg); opacity: 0.5; }
  100% { transform: translateY(-20px) rotate(2deg); opacity: 1; }
}

.hero__container {
  max-width: var(--max-w); margin: 0 auto; width: 100%;
  position: relative; z-index: 1;
}

.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 100px;
  background: rgba(59,130,246,0.08); border: 1px solid rgba(59,130,246,0.15);
  font-size: 0.78rem; font-weight: 500; color: #60a5fa;
  margin-bottom: 28px;
  animation: badgeGlow 3s ease-in-out infinite alternate;
}
@keyframes badgeGlow {
  0% { box-shadow: 0 0 8px rgba(59,130,246,0.1); }
  100% { box-shadow: 0 0 20px rgba(59,130,246,0.25); }
}

.hero__badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px #22c55e; }
  50% { opacity: 0.4; box-shadow: 0 0 16px #22c55e; }
}

.hero__name {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 12px;
}

.hero__heading {
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  font-weight: 800; line-height: 1.1; letter-spacing: -2px;
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--text) 0%, var(--accent) 50%, var(--accent-2) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 6s ease-in-out infinite alternate;
}
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

.hero__sub {
  font-size: 1.08rem; color: var(--text-secondary);
  max-width: 540px; margin-bottom: 20px; line-height: 1.75;
}

/* Floating keywords */
.hero__keywords {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 36px; max-width: 600px;
}
.hero__keyword {
  padding: 4px 14px;
  font-size: 0.72rem; font-weight: 600;
  color: var(--accent-2);
  background: rgba(6,182,212,0.06);
  border: 1px solid rgba(6,182,212,0.12);
  border-radius: 100px;
  animation: keywordFloat 3s ease-in-out infinite alternate;
  animation-delay: calc(var(--i) * 0.15s);
  transition: all 0.3s var(--ease);
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.hero__keyword:hover {
  background: rgba(6,182,212,0.14);
  border-color: rgba(6,182,212,0.3);
  color: #67e8f9;
  box-shadow: 0 0 20px rgba(6,182,212,0.2);
  transform: translateY(-3px) scale(1.05);
}
@keyframes keywordFloat {
  0% { transform: translateY(0); }
  100% { transform: translateY(-4px); }
}

.hero__actions { display: flex; gap: 12px; margin-bottom: 48px; flex-wrap: wrap; }

.hero__proof { display: flex; gap: 24px; flex-wrap: wrap; }
.hero__proof-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 500; color: var(--text-muted);
  transition: color 0.3s;
}
.hero__proof-item:hover { color: var(--text-secondary); }
.hero__proof-item svg { color: #22c55e; flex-shrink: 0; }

/* Architecture Diagram */
.arch-diagram {
  margin-top: 56px;
  width: 100%;
}

.arch-diagram__title {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 16px;
}
.arch-diagram__title svg { color: var(--accent); opacity: 0.6; }

.arch-diagram__canvas {
  position: relative;
  width: 100%;
  aspect-ratio: 960 / 420;
}

.arch-diagram__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.arch-path {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: archDraw 1s ease-out forwards;
  animation-delay: calc(0.8s + var(--path-index, 0) * 0.3s);
}
@keyframes archDraw {
  to { stroke-dashoffset: 0; }
}

.arch-node {
  position: absolute;
  width: 15.1%;
  padding: 10px 12px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  transform: translateY(12px) scale(0.92);
  animation: archNodeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: var(--node-delay, 0s);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
  z-index: 1;
  cursor: default;
}
.arch-node:hover {
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 4px 24px rgba(59, 130, 246, 0.12);
  transform: translateY(-3px) scale(1.03);
}
@keyframes archNodeIn {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.arch-node--1 { left: 1.56%; top: 75%; }
.arch-node--2 { left: 21.35%; top: 55.95%; }
.arch-node--3 { left: 41.67%; top: 36.9%; }
.arch-node--4 { left: 61.98%; top: 17.86%; }
.arch-node--5 { left: 82.29%; top: 0.48%; }

.arch-node--current {
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.15), 0 0 40px rgba(59, 130, 246, 0.05);
}
.arch-node--current::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(6, 182, 212, 0.08));
  z-index: -1;
  animation: archPulse 3s ease-in-out infinite alternate;
}
@keyframes archPulse {
  0% { opacity: 0.5; }
  100% { opacity: 1; }
}

.arch-node__company {
  font-size: 0.72rem; font-weight: 700;
  color: var(--text); line-height: 1.2;
}
.arch-node__role {
  font-size: 0.6rem; color: var(--text-secondary); line-height: 1.3;
}
.arch-node__year {
  font-size: 0.56rem; color: var(--accent-2);
  font-weight: 600; letter-spacing: 0.5px;
}

/* ========================================
   Sections
   ======================================== */
.section { padding: 100px 28px; position: relative; }
.section--dark { background: var(--bg-subtle); }
.section--cta {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
}

.section__container { max-width: var(--max-w); margin: 0 auto; }
.section__container--center { text-align: center; max-width: 600px; }

.section__header { margin-bottom: 48px; }

.section__tag {
  display: inline-block; font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px;
  color: var(--accent); margin-bottom: 16px;
  position: relative;
}
.section__tag::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 100%; height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0.5;
}

.section__heading {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 700; letter-spacing: -0.8px; line-height: 1.25;
  color: var(--text);
}
.section__heading--large {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -1px;
}

/* ========================================
   About
   ======================================== */
.about { display: flex; flex-direction: column; gap: 48px; }
.about__text {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
.about__text p {
  font-size: 0.95rem; color: var(--text-secondary); line-height: 1.8;
}

.about__metrics {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--border); border-radius: 14px; overflow: hidden;
}
.metric {
  background: var(--bg-card); padding: 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.metric::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(59,130,246,0.03) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
}
.metric:hover::before { opacity: 1; }

.metric__value {
  font-size: 2.4rem; font-weight: 800; letter-spacing: -1px;
  background: linear-gradient(135deg, var(--accent), var(--accent-3), var(--accent-2));
  background-size: 200% 200%;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; line-height: 1; margin-bottom: 8px;
  animation: metricGradient 4s ease-in-out infinite alternate;
  position: relative; z-index: 1;
}
@keyframes metricGradient {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}
.metric__label {
  font-size: 0.78rem; font-weight: 500; color: var(--text-muted);
  line-height: 1.4; position: relative; z-index: 1;
}

/* ========================================
   Experience
   ======================================== */
.exp-timeline {
  display: flex; flex-direction: column; gap: 16px;
}
.exp-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 16px; padding: 36px;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
  position: relative; overflow: hidden;
}
.exp-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-2), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}
.exp-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 8px 40px rgba(59,130,246,0.08);
}
.exp-card:hover::before { opacity: 1; }

.exp-card__top {
  display: flex; justify-content: space-between;
  align-items: flex-start; margin-bottom: 20px;
  flex-wrap: wrap; gap: 12px;
}
.exp-card__company-name {
  font-size: 0.82rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--accent);
}
.exp-card__location {
  display: block; font-size: 0.8rem; color: var(--text-muted);
  margin-top: 2px;
}
.exp-card__role h3 {
  font-size: 1.3rem; font-weight: 700;
  letter-spacing: -0.5px;
}
.exp-card__role p {
  font-size: 0.88rem; color: var(--text-muted); margin-top: 2px;
}
.exp-card__date {
  display: inline-block;
  font-size: 0.78rem; font-weight: 500;
  color: var(--text-muted); margin-top: 4px;
}
.exp-card__desc {
  font-size: 0.92rem; color: var(--text-secondary);
  line-height: 1.8; margin-bottom: 24px;
}
.exp-card__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.exp-card__tags span {
  padding: 4px 14px; font-size: 0.75rem; font-weight: 500;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 100px;
  transition: all 0.3s var(--ease);
}
.exp-card__tags span:hover {
  background: rgba(59,130,246,0.1);
  border-color: rgba(59,130,246,0.2);
  color: #93c5fd;
  box-shadow: 0 0 12px rgba(59,130,246,0.1);
}

/* ========================================
   Skills
   ======================================== */
.skills {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.skill-col { display: flex; flex-direction: column; gap: 24px; }

.skill-block {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 14px; padding: 28px;
  transition: all 0.35s var(--ease);
  position: relative; overflow: hidden;
}
.skill-block::after {
  content: '';
  position: absolute;
  inset: 0; border-radius: inherit;
  background: linear-gradient(135deg, rgba(59,130,246,0.04) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}
.skill-block:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}
.skill-block:hover::after { opacity: 1; }

.skill-block__title {
  font-size: 0.88rem; font-weight: 700;
  color: var(--text); margin-bottom: 14px;
  letter-spacing: -0.2px; position: relative; z-index: 1;
}

.skill-block__items { display: flex; flex-wrap: wrap; gap: 6px; position: relative; z-index: 1; }
.skill-block__items span {
  padding: 5px 12px; font-size: 0.76rem; font-weight: 500;
  background: rgba(255,255,255,0.04); color: var(--text-secondary);
  border-radius: 6px; transition: all 0.25s var(--ease);
}
.skill-block__items span:hover {
  background: rgba(59,130,246,0.12); color: #93c5fd;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59,130,246,0.1);
}

/* ========================================
   Certifications
   ======================================== */
.certs { display: flex; flex-direction: column; gap: 12px; }

.cert-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: 14px;
  transition: all 0.3s var(--ease); cursor: pointer;
  position: relative; overflow: hidden;
}
.cert-row::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  opacity: 0;
  transition: opacity 0.3s;
}
.cert-row:hover {
  border-color: var(--border-hover);
  transform: translateX(4px);
  box-shadow: 0 4px 20px rgba(59,130,246,0.06);
}
.cert-row:hover::before { opacity: 1; }

.cert-row__left { display: flex; align-items: center; gap: 16px; }

.cert-row__badge {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 10px;
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.5px;
  background: linear-gradient(135deg, rgba(59,130,246,0.15), rgba(6,182,212,0.1));
  color: #60a5fa;
  transition: all 0.3s;
}
.cert-row:hover .cert-row__badge {
  box-shadow: 0 0 20px rgba(59,130,246,0.2);
  background: linear-gradient(135deg, rgba(59,130,246,0.25), rgba(6,182,212,0.15));
}

.cert-row__title {
  font-size: 0.95rem; font-weight: 600;
  color: var(--text); letter-spacing: -0.2px;
}
.cert-row__issuer {
  font-size: 0.8rem; color: var(--text-muted); margin-top: 2px;
}

.cert-row__arrow {
  font-size: 1.1rem; color: var(--text-muted);
  transition: all 0.3s; opacity: 0;
  transform: translateX(-8px);
}
.cert-row:hover .cert-row__arrow {
  opacity: 1; color: var(--accent);
  transform: translateX(0);
}

/* ========================================
   Contact
   ======================================== */
.contact__sub {
  font-size: 1rem; color: var(--text-secondary);
  margin: 16px auto 36px; max-width: 440px;
  line-height: 1.7;
}
.contact__buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ========================================
   Footer
   ======================================== */
.footer {
  padding: 24px 28px; border-top: 1px solid var(--border);
}
.footer__container {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; justify-content: space-between;
}
.footer__name {
  font-size: 0.78rem; font-weight: 600; color: var(--text-muted);
}
.footer__copy {
  font-size: 0.78rem; color: var(--text-muted);
}

/* ========================================
   3D Tilt card
   ======================================== */
.tilt-card {
  transform-style: preserve-3d;
  perspective: 1000px;
}

/* ========================================
   Animated gradient border
   ======================================== */
@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
.gradient-border {
  position: relative;
}
.gradient-border::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--angle), var(--accent), var(--accent-2), var(--accent-3), var(--accent));
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  animation: rotateBorder 4s linear infinite;
  opacity: 0;
  transition: opacity 0.3s;
}
.gradient-border:hover::before { opacity: 1; }
@keyframes rotateBorder {
  to { --angle: 360deg; }
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
  .cursor-glow { display: none; }

  .nav__menu {
    position: fixed; top: 0; right: -100%;
    width: 260px; height: 100vh;
    background: var(--bg-subtle);
    flex-direction: column; padding: 72px 24px 24px;
    gap: 2px; border-left: 1px solid var(--border);
    transition: right 0.3s ease; align-items: stretch;
  }
  .nav__menu.open { right: 0; }
  .nav__link { padding: 12px 12px; font-size: 0.92rem; }
  .nav__link::after { display: none; }
  .nav__link--cta { margin-left: 0; margin-top: 8px; text-align: center; }
  .nav__toggle { display: flex; }
  .nav__toggle.open span:nth-child(1) { transform: rotate(45deg) translate(3px, 3px); }
  .nav__toggle.open span:nth-child(2) { transform: rotate(-45deg) translate(3px, -3px); }

  .hero { padding: 120px 20px 64px; min-height: auto; }
  .hero__heading { letter-spacing: -1px; }
  .hero__proof { flex-direction: column; gap: 10px; }
  .arch-diagram { display: none; }

  .about__text { grid-template-columns: 1fr; }
  .about__metrics { grid-template-columns: 1fr; }

  .skills { grid-template-columns: 1fr; }

  .exp-card { padding: 24px; }
  .exp-card__top { flex-direction: column-reverse; }

  .section { padding: 72px 20px; }
  .contact__buttons { flex-direction: column; }
}

/* ========================================
   Reduced Motion (accessibility)
   ======================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero__particles,
  .cursor-glow,
  .hero__aurora { display: none; }
  .animate-fade-up { opacity: 1; transform: none; }
  .reveal { opacity: 1; transform: none; }
  .reveal-stagger > * { opacity: 1; transform: none; }
  .arch-node { opacity: 1; transform: none; }
  .arch-path { stroke-dashoffset: 0; }
  .arch-dot { display: none; }
}

/* ========================================
   Print Stylesheet
   ======================================== */
@media print {
  body {
    background: #fff;
    color: #111;
    font-size: 11pt;
    line-height: 1.5;
  }
  .nav, .cursor-glow, .hero__particles, .hero__glow,
  .hero__aurora, .hero__keywords, .hero__actions,
  .hero__proof, .contact__buttons, .skip-link,
  .arch-diagram {
    display: none !important;
  }
  .hero {
    min-height: auto;
    padding: 20px 0;
  }
  .section, .section--dark, .section--cta {
    padding: 16px 0;
    background: #fff;
    border-top: 1px solid #ddd;
  }
  .hero__name {
    color: #111;
    font-size: 14pt;
  }
  .hero__heading {
    -webkit-text-fill-color: #111;
    background: none;
    font-size: 22pt;
  }
  .hero__sub { color: #333; }
  .section__tag { color: #333; }
  .section__heading { color: #111; }
  .exp-card, .skill-block, .cert-row, .metric {
    background: #fff;
    border-color: #ddd;
    box-shadow: none;
    break-inside: avoid;
  }
  .exp-card__company-name { color: #111; }
  .exp-card__tags span,
  .skill-block__items span {
    background: #f0f0f0;
    color: #333;
    border-color: #ccc;
  }
  .metric__value {
    -webkit-text-fill-color: #111;
    background: none;
  }
  .cert-row__arrow { display: none; }
  .footer {
    border-top: 1px solid #ddd;
  }
  .footer__name, .footer__copy { color: #666; }
  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #555;
    word-break: break-all;
  }
}
