/* ============================================
   Tokens
   ============================================ */
:root {
  --bg: #08080a;
  --bg-alt: #0d0d10;
  --surface: #131318;
  --surface-hover: #191920;
  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.16);
  --text: #f3f3f6;
  --text-secondary: #a6a6b0;
  --text-muted: #6b6b76;
  --accent: #e8262e;
  --accent-light: #ff5c56;
  --accent-dim: rgba(232,38,46,0.14);
  --accent-glow: rgba(232,38,46,0.35);

  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;

  --container: 1120px;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================
   Reset / base
   ============================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

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

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

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

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2a2a32; border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  z-index: 999;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.section-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ============================================
   Header / Nav
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(8,8,10,0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.scrolled {
  border-bottom-color: var(--border);
  background: rgba(8,8,10,0.85);
}
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}
.logo-dot { color: var(--accent); }

.main-nav { display: flex; gap: 2rem; }
.nav-link {
  font-size: 0.9rem;
  color: var(--text-secondary);
  position: relative;
  padding: 6px 2px;
  transition: color 0.2s var(--ease);
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1.5px;
  background: var(--accent);
  transition: width 0.25s var(--ease);
}
.nav-link:hover { color: var(--text); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link.active { color: var(--text); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 24px -8px var(--accent-glow);
}
.btn-primary:hover { background: var(--accent-light); box-shadow: 0 10px 30px -6px var(--accent-glow); }

.btn-outline {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent-light); }

.btn-ghost {
  background: rgba(255,255,255,0.04);
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: var(--border-strong); }

.btn-sm { padding: 9px 16px; font-size: 0.82rem; }

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-grid {
  position: absolute;
  inset: -1px;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 40%, transparent 90%);
}
.hero-glow {
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, var(--accent-dim) 0%, transparent 65%);
  filter: blur(20px);
}

.hero-inner { position: relative; z-index: 1; padding-top: 3rem; padding-bottom: 4rem; }

.hero-top {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 4.5rem;
}
.hero-text .hero-actions { margin-bottom: 0; }

.hero-photo {
  position: relative;
  justify-self: center;
  width: min(360px, 74vw);
  aspect-ratio: 0.86;
  animation: floaty 6.5s ease-in-out infinite;
}
.hero-photo-glow {
  position: absolute;
  inset: -12%;
  background: radial-gradient(circle, var(--accent-dim) 0%, transparent 70%);
  filter: blur(6px);
  z-index: 0;
}
.hero-photo-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
  clip-path: url(#blobClip);
  border: none;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-photo { animation: none; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 2rem;
}
.pulse-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #3ecf6a;
  box-shadow: 0 0 0 0 rgba(62,207,106,0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(62,207,106,0.55); }
  70% { box-shadow: 0 0 0 8px rgba(62,207,106,0); }
  100% { box-shadow: 0 0 0 0 rgba(62,207,106,0); }
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}
.text-accent { color: var(--accent); }

.hero-role {
  font-family: var(--font-mono);
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--accent-light);
  margin-bottom: 1.5rem;
}

.hero-tagline {
  max-width: 640px;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
}
.hero-tagline .hl { color: var(--text); font-weight: 600; }

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 4.5rem; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat {
  background: rgba(255,255,255,0.02);
  padding: 1.5rem 1.25rem;
}
.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.scroll-cue {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 1.5px solid var(--border-strong);
  border-radius: 999px;
  z-index: 1;
}
.scroll-cue span {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--accent);
  border-radius: 3px;
  animation: scrollcue 1.8s infinite;
}
@keyframes scrollcue {
  0% { opacity: 1; top: 8px; }
  70% { opacity: 0; top: 20px; }
  100% { opacity: 0; top: 20px; }
}

/* ============================================
   Sections generic
   ============================================ */
.section { padding: 7rem 0; position: relative; scroll-margin-top: 72px; }
.section-alt { background: var(--bg-alt); }
.hero { scroll-margin-top: 0; }

.section-kicker {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent-light);
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 3rem;
  max-width: 700px;
}

/* ============================================
   Reveal animation
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal:nth-child(1) { transition-delay: 0s; }
.reveal:nth-child(2) { transition-delay: 0.05s; }
.reveal:nth-child(3) { transition-delay: 0.1s; }
.reveal:nth-child(4) { transition-delay: 0.15s; }

/* ============================================
   About
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3rem;
  align-items: start;
}
.about-text p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 1.3rem;
}
.about-text p:last-child { margin-bottom: 0; }

.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.about-card-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.about-card-row:last-child { border-bottom: none; padding-bottom: 0; }
.about-card-row:first-child { padding-top: 0; }
.about-card-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.about-card-value { font-size: 0.95rem; color: var(--text); font-weight: 500; }

/* ============================================
   Skills
   ============================================ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.skill-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.skill-card:hover { border-color: var(--border-strong); transform: translateY(-4px); }
.skill-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 1.1rem; }
.skill-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--accent-dim);
  color: var(--accent-light);
  flex-shrink: 0;
}
.skill-card-head h3 { font-size: 1rem; font-weight: 600; }

.pill-list { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  font-size: 0.78rem;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 999px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.skill-card:hover .pill { }
.pill:hover { color: var(--text); border-color: var(--border-strong); }
.pill-sm { font-size: 0.72rem; padding: 5px 10px; }

/* ============================================
   Certifications
   ============================================ */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.cert-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), background 0.3s var(--ease);
}
.cert-card:hover { border-color: var(--accent); transform: translateY(-4px); background: var(--surface-hover); }
.cert-card img { width: 84px; height: auto; flex-shrink: 0; }
.cert-info h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 4px; }
.cert-meta { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 10px; }
.cert-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--accent-light);
  font-weight: 600;
}

/* ============================================
   Timeline / Experience
   ============================================ */
.timeline { position: relative; }
.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: linear-gradient(var(--border-strong), var(--border) 90%, transparent);
}
.tl-item {
  position: relative;
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 1.75rem;
  padding-bottom: 3rem;
}
.tl-item:last-child { padding-bottom: 0; }
.tl-marker { display: flex; justify-content: center; padding-top: 6px; }
.tl-dot {
  width: 17px; height: 17px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--border-strong);
  position: relative;
  z-index: 1;
}
.tl-dot-current { border-color: var(--accent); background: var(--accent-dim); box-shadow: 0 0 0 4px var(--accent-dim); }
.tl-dot-first { border-color: var(--text-muted); }

.tl-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  transition: border-color 0.3s var(--ease);
}
.tl-content:hover { border-color: var(--border-strong); }

.tl-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.9rem;
}
.tl-head h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.tl-company-sub { font-size: 0.95rem; font-weight: 400; color: var(--text-muted); }
.tl-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  background: var(--accent);
  color: #fff;
  padding: 3px 9px;
  border-radius: 999px;
  letter-spacing: 0.03em;
}
.tl-role { color: var(--accent-light); font-size: 0.88rem; margin-top: 3px; }
.tl-date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
  padding-top: 4px;
}
.tl-context {
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-style: italic;
  margin-bottom: 1.1rem;
  padding-left: 14px;
  border-left: 2px solid var(--border);
}
.tl-sub-head {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: 1rem 0 0.5rem;
}
.tl-list { display: flex; flex-direction: column; gap: 9px; margin-bottom: 1.25rem; }
.tl-list:last-of-type { margin-bottom: 1.25rem; }
.tl-list li {
  position: relative;
  padding-left: 20px;
  font-size: 0.93rem;
  color: var(--text-secondary);
  line-height: 1.55;
}
.tl-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--accent);
  transform: rotate(45deg);
}
.tl-tech { display: flex; flex-wrap: wrap; gap: 7px; padding-top: 1rem; border-top: 1px solid var(--border); }

.timeline-compact .tl-content { padding: 1.25rem 1.75rem; }
.timeline-compact .tl-item { padding-bottom: 1.5rem; }
.timeline-compact .tl-head { margin-bottom: 0; }

/* ============================================
   Contact
   ============================================ */
.contact-lede {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 560px;
  margin-top: -1.5rem;
  margin-bottom: 3rem;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 3rem;
}
.contact-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
a.contact-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--accent-dim);
  color: var(--accent-light);
}
.contact-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.contact-value { font-size: 0.9rem; font-weight: 500; word-break: break-word; }
.contact-value.copied { color: var(--accent-light); }
.contact-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

.contact-card-btn {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  text-align: left;
  background: var(--surface);
  appearance: none;
  cursor: pointer;
  width: 100%;
}
.contact-card-btn:hover { border-color: var(--accent); transform: translateY(-4px); }
.contact-card-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.contact-value-mask {
  font-family: var(--font-mono);
  letter-spacing: 0.03em;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.contact-value-mask::after {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 8px 0 0 var(--accent-dim), 16px 0 0 var(--accent-dim);
  opacity: 0.8;
}
.contact-card-btn.is-revealed .contact-value {
  font-family: var(--font-mono);
  color: var(--accent-light);
}

/* ============================================
   Contact form
   ============================================ */
.contact-form {
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
  max-width: 640px;
}
.contact-form-title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}
.form-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 1rem; }
.form-field label {
  font-size: 0.82rem;
  color: var(--text-secondary);
}
.form-field input,
.form-field textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.92rem;
  resize: vertical;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface-hover);
}
.form-footer { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.form-status { font-size: 0.85rem; color: var(--text-muted); }
.form-status-success { color: #3ecf6a; }
.form-status-error { color: var(--accent-light); }

/* ============================================
   Footer
   ============================================ */
.site-footer { padding: 2.5rem 0; border-top: 1px solid var(--border); }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.site-footer p { font-size: 0.85rem; color: var(--text-muted); }
.back-to-top {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}
.back-to-top:hover { border-color: var(--accent); color: var(--accent-light); transform: translateY(-3px); }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-top { grid-template-columns: 1fr; gap: 2.5rem; text-align: center; }
  .hero-top .hero-photo { order: -1; }
  .hero-text .hero-actions { justify-content: center; }
  .hero-tagline { margin-left: auto; margin-right: auto; }
}

@media (max-width: 860px) {
  .main-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(8,8,10,0.98);
    backdrop-filter: blur(14px);
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 2rem 1.5rem;
    border-bottom: 1px solid var(--border);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  }
  .main-nav.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .main-nav .nav-link { padding: 14px 0; border-bottom: 1px solid var(--border); }
  .main-nav .nav-link:last-child { border-bottom: none; }
  .menu-toggle { display: flex; }
  .header-actions .btn-sm span { display: none; }
}

@media (max-width: 640px) {
  .section-inner { padding: 0 1.25rem; }
  .header-inner { padding: 0 1.25rem; }
  .section { padding: 4.5rem 0; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .skills-grid { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: 1fr; }
  .cert-card { flex-direction: column; text-align: center; }
  .contact-grid { grid-template-columns: 1fr; }
  .tl-item { grid-template-columns: 14px 1fr; gap: 1rem; }
  .form-row { grid-template-columns: 1fr; }
  .tl-content { padding: 1.4rem 1.25rem; }
  .tl-date { font-size: 0.75rem; }
  .hero-actions .btn { flex: 1; justify-content: center; }
  .footer-inner { flex-direction: column; gap: 1.25rem; text-align: center; }
}
