/* --- Variables --- */
:root {
  --bg: #0f0f0f;
  --bg-alt: #141414;
  --surface: #1a1a1a;
  --surface-elevated: #222;
  --text: #e8e8e8;
  --text-muted: #9ca3af;
  --accent: #22c55e;
  --accent-dim: #16a34a;
  --border: #2d2d2d;
  --font-sans: 'DM Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --max-width: 720px;
  --max-width-wide: 860px;
  --space: 1.5rem;
  --radius: 8px;
  --radius-lg: 12px;
}

/* --- Reset & base --- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}
body {
  margin: 0;
  min-width: 0;
  width: 100%;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
main { min-width: 0; width: 100%; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { padding-left: 1.25rem; margin: 0 0 1rem; }
img { max-width: 100%; height: auto; vertical-align: middle; }

/* --- Header --- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: rgba(15,15,15,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  animation: fadeDown 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}
.nav {
  position: relative;
  width: 100%;
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: var(--space) 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
}
.logo {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--accent);
  letter-spacing: 0.05em;
  padding: 0.25rem 0;
  display: inline-block;
}
.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav-links a { color: var(--text-muted); font-size: 0.9rem; }
.nav-links a:hover { color: var(--text); }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.25s ease;
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg);
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: blobFloat 20s ease-in-out infinite;
}
.hero-blob--1 {
  width:  min(60vw, 400px);
  height: min(60vw, 400px);
  background: rgba(34, 197, 94, 0.15);
  top: -10%;
  right: -5%;
  animation-delay: 0s;
}
.hero-blob--2 {
  width:  min(50vw, 320px);
  height: min(50vw, 320px);
  background: rgba(22, 163, 74, 0.12);
  bottom: -15%;
  left: -10%;
  animation-delay: -7s;
}
.hero-blob--3 {
  width:  min(40vw, 260px);
  height: min(40vw, 260px);
  background: rgba(34, 197, 94, 0.1);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -14s;
}
@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}
.hero-blob--3 { animation-name: blobFloatCenter; }
@keyframes blobFloatCenter {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.1); }
}
.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4rem) clamp(1rem, 4vw, 1.5rem) clamp(2rem, 5vw, 3rem);
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  flex-wrap: wrap;
  justify-content: center;
  min-width: 0;
}
.hero-content {
  flex: 1 1 320px;
  min-width: 0;
  max-width: 100%;
  text-align: left;
  overflow-wrap: break-word;
}
.hero-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin: 0 0 0.5rem;
  opacity: 0;
  transform: translateY(20px);
  animation: heroReveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-name {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.4rem;
  line-height: 1.15;
  color: var(--text);
  opacity: 0;
  transform: translateY(24px);
  animation: heroReveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes heroReveal {
  to { opacity: 1; transform: translateY(0); }
}
.hero-role {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--accent);
  margin: 0 0 0.75rem;
  opacity: 0;
  transform: translateY(20px);
  animation: heroReveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-tagline {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 1rem;
  opacity: 0;
  transform: translateY(20px);
  animation: heroReveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
  opacity: 0;
  transform: translateY(20px);
  animation: heroReveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-tech span {
  display: inline-block;
  padding: 0.3rem 0.65rem;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.2);
  color: var(--text);
  border-radius: 6px;
  font-size: 0.8rem;
  font-family: var(--font-mono);
}
.hero-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  opacity: 0;
  transform: translateY(20px);
  animation: heroReveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-stat-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.7;
}
.hero-contact {
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  animation: heroReveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-contact .sep { color: var(--border); margin: 0 0.5rem; }
.hero-contact a { word-break: break-all; }
.hero-cta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  animation: heroReveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-photo-wrap {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
  max-width: 100%;
}
.hero-photo {
  position: relative;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow:
    0 0 0 3px rgba(34, 197, 94, 0.25),
    0 25px 50px -12px rgba(0, 0, 0, 0.5),
    0 0 60px -15px rgba(34, 197, 94, 0.2);
  animation: photoReveal 1s cubic-bezier(0.22, 1, 0.36, 1) 0.3s backwards;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-photo-fallback {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-elevated) 100%);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}
@keyframes photoReveal {
  from {
    opacity: 0;
    transform: scale(0.9) perspective(600px) rotateY(-8deg);
  }
  to {
    opacity: 1;
    transform: scale(1) perspective(600px) rotateY(0);
  }
}
.btn {
  display: inline-block;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 500;
  transition: transform 0.25s ease, background 0.2s, color 0.2s, box-shadow 0.25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-primary:hover { background: var(--accent-dim); text-decoration: none; box-shadow: 0 8px 24px rgba(34, 197, 94, 0.35); }
.btn-secondary { border: 1px solid var(--border); color: var(--text); }
.btn-secondary:hover { border-color: var(--text-muted); background: var(--surface); text-decoration: none; }

/* --- Scroll reveal --- */
[data-animate="reveal"] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
[data-animate="reveal"].visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- 3D cards --- */
.card-3d {
  transform-style: preserve-3d;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
  will-change: transform;
}
.card-3d:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* --- Sections --- */
.section {
  margin: 0;
  padding: 3rem clamp(1rem, 4vw, 1.5rem);
  border-top: 1px solid var(--border);
}
.section-inner {
  width: 100%;
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0 clamp(0.5rem, 3vw, 0);
  min-width: 0;
}
.section-inner--narrow { max-width: var(--max-width); }
.section--alt { background: var(--bg-alt); }
.section--compact { padding: 2.5rem 1.5rem; }
.section--contact { padding-bottom: 4rem; }
.section--cta { text-align: center; }
.section-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin: 0 0 0.5rem;
  font-weight: 600;
}
.section-lead {
  color: var(--text-muted);
  font-size: 1rem;
  margin: 0 0 2rem;
  max-width: 42ch;
}

/* --- About --- */
.about-lead {
  font-size: 1.15rem;
  color: var(--text);
  margin: 0 0 1.25rem;
  line-height: 1.5;
}
.about-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.highlight-pill {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  background: rgba(34, 197, 94, 0.12);
  color: var(--accent);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
}
.about-content p { margin: 0 0 1rem; }
.about-content p:last-child { margin-bottom: 0; }

/* --- Experience (timeline) --- */
.timeline {
  position: relative;
  padding-left: 1.5rem;
  border-left: 2px solid var(--border);
  margin-left: 0.5rem;
}
.timeline-item {
  position: relative;
  margin-bottom: 2rem;
  backface-visibility: hidden;
}
.timeline-item:last-child { margin-bottom: 0; }
.timeline-marker {
  position: absolute;
  left: -1.5rem;
  top: 0.4rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateX(-5px);
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 4px var(--accent);
}
.timeline-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.5rem;
  transition: border-color 0.25s, box-shadow 0.25s;
  min-width: 0;
  overflow-wrap: break-word;
}
.timeline-content:hover { border-color: rgba(34, 197, 94, 0.3); }
.job-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}
.job-date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
}
.job-role {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.job-company {
  margin: 0 0 0.75rem;
  font-size: 1.2rem;
  font-weight: 600;
}
.tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.tech-pills span {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  background: var(--surface-elevated);
  color: var(--text-muted);
  border-radius: 6px;
  font-size: 0.78rem;
  font-family: var(--font-mono);
}
.job-summary {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
}
.job-bullets {
  margin: 0.75rem 0 0;
  padding-left: 1.25rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
}
.job-bullets li {
  margin-bottom: 0.35rem;
}
.job-bullets li:last-child { margin-bottom: 0; }

/* --- Education --- */
.education-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 1.5rem;
}
.edu-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.5rem;
  backface-visibility: hidden;
}
.edu-badge {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.edu-card h3 { margin: 0 0 0.35rem; font-size: 1.1rem; }
.edu-school { color: var(--text-muted); font-size: 0.9rem; margin: 0; }
.edu-date { font-family: var(--font-mono); font-size: 0.85rem; color: var(--text-muted); margin: 0.25rem 0 0.5rem; }
.edu-desc { margin: 0; font-size: 0.95rem; color: var(--text-muted); line-height: 1.5; }

/* --- Skills (pills) --- */
.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.skill-pill {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius);
  font-size: 0.9rem;
  transition: border-color 0.2s, background 0.2s;
}
.skill-pill:hover {
  border-color: var(--accent);
  background: rgba(34, 197, 94, 0.06);
}

/* --- Projects --- */
.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.5rem;
  margin-bottom: 1.5rem;
  backface-visibility: hidden;
  min-width: 0;
  overflow-wrap: break-word;
}
.project-card:last-child { margin-bottom: 0; }
.project-label {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.35rem;
}
.project-card h3 { margin: 0 0 0.5rem; font-size: 1.15rem; }
.project-card h3 a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.project-card h3 a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.project-desc {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
}
.project-card .tech-pills { margin-bottom: 0; }
.project-link {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  margin-top: 0.25rem;
  transition: transform 0.2s, color 0.2s;
}
.project-link:hover { color: var(--accent-dim); text-decoration: none; transform: translateX(4px); }

/* --- Certifications --- */
.cert-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.cert-pill {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius);
  font-size: 0.9rem;
}
.cert-pill:hover {
  border-color: var(--accent);
  background: rgba(34, 197, 94, 0.06);
}

/* --- Languages --- */
.lang-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.lang-pill {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 999px;
  font-size: 0.9rem;
}

/* --- Contact (CTA) --- */
.contact-intro { margin: 0 0 1.5rem; color: var(--text-muted); max-width: 44ch; margin-left: auto; margin-right: auto; }
.contact-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.contact-buttons .btn { min-width: 120px; }

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.footer p { margin: 0; }

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  .header { animation: none; }
  .hero-label, .hero-name, .hero-role, .hero-tagline, .hero-tech, .hero-meta, .hero-contact, .hero-cta {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .hero-blob { animation: none; }
  .hero-photo { animation: none; }
  .hero-name { color: var(--text); }
  [data-animate="reveal"] { opacity: 1; transform: none; transition: none; }
  .card-3d:hover { transform: none; }
  .btn:hover { transform: none; }
  .nav-links { transition: none; }
  .nav-links.open li { transition: none; }
  .nav-toggle span { transition: none; }
}

/* --- Tablet --- */
@media (max-width: 900px) {
  .hero-inner { flex-direction: column-reverse; text-align: center; }
  .hero-content {
    flex: 1 1 100%;
    text-align: center;
  }
  .hero-tech { justify-content: center; }
  .hero-meta { justify-content: center; }
  .hero-cta { justify-content: center; }
  .hero-photo { width: 200px; height: 200px; }
  .section-lead { margin-left: auto; margin-right: auto; }
}

/* --- Mobile --- */
@media (max-width: 640px) {
  .hero { min-height: auto; padding: 2rem 0; }
  .hero-inner { flex-direction: column-reverse; padding: 2rem 1rem; }
  .hero-name { font-size: clamp(1.75rem, 8vw, 2.25rem); }
  .hero-role { font-size: 0.95rem; }
  .hero-tagline { font-size: 0.9rem; }
  .hero-tech span { font-size: 0.75rem; padding: 0.25rem 0.5rem; }
  .hero-meta { font-size: 0.85rem; justify-content: center; }
  .hero-contact { font-size: 0.85rem; text-align: center; }
  .hero-contact a { word-break: break-all; }
  .hero-photo { width: 160px; height: 160px; }
  .hero-photo-fallback { font-size: 2.5rem; }
  .hero-cta { gap: 0.5rem; }
  .btn { padding: 0.6rem 1rem; font-size: 0.9rem; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .nav { padding: 0.75rem 1rem; }
  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    min-width: 44px;
    min-height: 44px;
  }
  .nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }
  .nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  .logo { min-height: 44px; display: inline-flex; align-items: center; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 0 1rem 1rem;
    gap: 0;
    box-sizing: border-box;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  }
  .nav-links.open {
    max-height: 320px;
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links li {
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.2s ease;
  }
  .nav-links.open li {
    opacity: 1;
    transform: translateY(0);
  }
  .nav-links.open li:nth-child(1) { transition-delay: 0.05s; }
  .nav-links.open li:nth-child(2) { transition-delay: 0.1s; }
  .nav-links.open li:nth-child(3) { transition-delay: 0.15s; }
  .nav-links.open li:nth-child(4) { transition-delay: 0.2s; }
  .nav-links.open li:nth-child(5) { transition-delay: 0.25s; }
  .nav-links.open li:nth-child(6) { transition-delay: 0.3s; }
  .nav-links a { padding: 0.75rem; min-height: 44px; display: flex; align-items: center; }
  .hero-contact { flex-wrap: wrap; justify-content: center; }
  .section-lead { max-width: 100%; }
  .contact-intro { max-width: 100%; }
  .timeline { padding-left: 1.25rem; margin-left: 0.25rem; }
  .timeline-marker { left: -1.25rem; width: 8px; height: 8px; transform: translateX(-4px); }
  .timeline-content { padding: 1.25rem 1rem; }
  .job-company { font-size: 1.05rem; }
  .tech-pills span { font-size: 0.72rem; padding: 0.2rem 0.5rem; }
  .education-grid { grid-template-columns: 1fr; }
  .section { padding: 2.5rem 1rem; }
  .section-inner { padding: 0; }
  .section--contact { padding-bottom: 3rem; }
  .card-3d { transform: none !important; }
  .contact-buttons { flex-direction: column; gap: 0.75rem; }
  .contact-buttons .btn { width: 100%; min-width: 0; min-height: 48px; }
  .contact-intro { font-size: 0.95rem; padding: 0 0.5rem; }
  .footer { padding: 1rem; font-size: 0.8rem; }
}

/* --- Small mobile --- */
@media (max-width: 480px) {
  .education-grid { grid-template-columns: 1fr; }
}

@media (max-width: 380px) {
  .hero-inner { padding: 1.5rem 0.75rem; }
  .hero-name { font-size: 1.6rem; }
  .hero-photo { width: 140px; height: 140px; }
  .hero-photo-fallback { font-size: 2rem; }
  .hero-tech { gap: 0.35rem; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .section { padding: 2rem 0.75rem; }
  .timeline-content { padding: 1rem 0.75rem; }
  .project-card { padding: 1.25rem 1rem; }
  .edu-card { padding: 1.25rem 1rem; }
  .section-inner { padding: 0 0.5rem; }
}
