/* ==========================================================
   MARCELO VALE — Portfolio
   Design: Technical Aesthetics / Dark Mode
   Stack: Vanilla CSS (zero frameworks)
   ========================================================== */

/* --- FONTS: loaded via <link> in <head> (preconnect + stylesheet), not @import --- */

/* --- DESIGN TOKENS --- */
:root {
  --bg: #0D1117;
  --bg-card: #161B22;
  --bg-elevated: #21262D;
  --bg-glass: rgba(22, 27, 34, 0.65);

  --text: #E6EDF3;
  --text-secondary: #8B949E;
  --text-muted: #484F58;

  --accent: #58A6FF;
  --accent-hover: #79C0FF;
  --accent-subtle: rgba(88, 166, 255, 0.1);
  --accent-glow: rgba(88, 166, 255, 0.25);

  --green: #3FB950;
  --purple: #BC8CFF;
  --orange: #D29922;

  --border: #30363D;
  --border-hover: #484F58;

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --radius-xl: 14px;

  --container: 1100px;
  --header-h: 72px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

/* --- BASE --- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

/* --- UTILITIES --- */
.container { width: min(var(--container), 92%); margin-inline: auto; }
.mono { font-family: 'JetBrains Mono', monospace; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s var(--ease);
  white-space: nowrap;
}
.btn:hover {
  border-color: var(--border-hover);
  background: var(--bg-elevated);
  transform: translateY(-1px);
}
.btn:active { transform: translateY(0) scale(0.98); }

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #0D1117;
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

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

.btn-sm { padding: 8px 14px; font-size: 0.8125rem; border-radius: var(--radius-sm); }

.btn svg { width: 16px; height: 16px; }

/* --- SECTION COMMON --- */
.section {
  padding: 96px 0;
  position: relative;
}
.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(90%, 600px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 56px;
}
.section-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.05em;
}
.section-divider {
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  border-radius: 2px;
}
.section-header h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* =======================================
   HEADER & NAVIGATION
   ======================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 17, 23, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: box-shadow 0.3s var(--ease);
}
.header.scrolled { box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--accent);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  font-size: 0.875rem;
  color: var(--accent);
}
.logo-text {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s var(--ease);
  position: relative;
}
.nav-link:hover { color: var(--text); background: var(--accent-subtle); }
.nav-link.active { color: var(--accent); }
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.nav-actions { display: flex; gap: 10px; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 110;
}
.hamburger .bar {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
  transform-origin: center;
}
.hamburger.open .bar:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open .bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open .bar:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(13, 17, 23, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  padding: 32px 24px;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s var(--ease);
  z-index: 90;
}
.mobile-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.mobile-link {
  padding: 16px 20px;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  transition: all 0.2s var(--ease);
}
.mobile-link:hover { color: var(--text); background: var(--accent-subtle); }
.mobile-actions {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mobile-actions .btn { width: 100%; justify-content: center; }

/* =======================================
   HERO
   ======================================= */
.hero-grid-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.25;
  mask-image: radial-gradient(ellipse 70% 60% at 30% 30%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 30% 30%, #000 0%, transparent 75%);
}
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, var(--bg), transparent);
  z-index: 1;
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.kicker-line {
  width: 32px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.kicker-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--accent);
  text-transform: uppercase;
}
.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 8px;
  color: var(--text);
}
.hero-role {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(0.8rem, 1.5vw, 0.95rem);
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}
.hero-subtitle {
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  color: var(--text-secondary);
  max-width: 55ch;
  line-height: 1.7;
}
.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 28px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all 0.2s var(--ease);
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip svg { width: 14px; height: 14px; opacity: 0.7; }

.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* Hero Visual / Photo */
.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.hero-photo-wrapper {
  position: relative;
  width: 240px;
  height: 240px;
}
.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  position: relative;
}
.photo-tag {
  position: absolute;
  left: 50%;
  bottom: -14px;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 6px 12px;
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

/* Hero Status Card */
.hero-card {
  width: 100%;
  max-width: 340px;
  padding: 20px;
  display: grid;
  gap: 16px;
}
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--green);
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.stat-item {
  text-align: center;
  padding: 12px 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.stat-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent);
  display: block;
}
.stat-label {
  font-size: 0.6875rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 2px;
}

/* =======================================
   ABOUT
   ======================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: start;
}
.about-text p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 16px;
}
.about-text strong { color: var(--text); font-weight: 600; }
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.about-stat {
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all 0.3s var(--ease);
}
.about-stat:hover {
  border-color: var(--accent);
  box-shadow: 0 0 24px var(--accent-subtle);
  transform: translateY(-2px);
}
.about-stat .stat-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  display: block;
  line-height: 1;
  margin-bottom: 6px;
}
.about-stat .stat-desc {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* =======================================
   TIMELINE / EXPERIENCE
   ======================================= */
.timeline {
  position: relative;
  padding-left: 40px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--border) 60%, transparent);
}
.timeline-item {
  position: relative;
  padding-bottom: 40px;
}
.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -40px;
  top: 8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 2px solid var(--border);
  z-index: 2;
  transition: all 0.3s var(--ease);
}
.timeline-item.active .timeline-dot {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 16px var(--accent-glow);
}
.timeline-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all 0.3s var(--ease);
}
.timeline-content:hover {
  border-color: var(--border-hover);
  transform: translateX(4px);
}
.timeline-item.active .timeline-content {
  border-color: rgba(88, 166, 255, 0.2);
  box-shadow: 0 0 32px var(--accent-subtle);
}
.timeline-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.timeline-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 14px;
}
.timeline-meta span { display: flex; align-items: center; gap: 6px; }
.timeline-meta svg { width: 14px; height: 14px; opacity: 0.6; }
.timeline-list {
  list-style: none;
  display: grid;
  gap: 8px;
}
.timeline-list li {
  position: relative;
  padding-left: 18px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.timeline-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.75rem;
}

/* =======================================
   ENVIRONMENT / STACK
   ======================================= */
.env-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.env-card {
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.3s var(--ease);
}
.env-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}
.env-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  background: var(--accent-subtle);
  color: var(--accent);
  margin-bottom: 18px;
}
.env-icon svg { width: 24px; height: 24px; }
.env-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 14px;
}
.env-card ul { display: grid; gap: 10px; }
.env-card li {
  position: relative;
  padding-left: 20px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}
.env-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.5;
}

/* =======================================
   PROJECTS
   ======================================= */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s var(--ease);
  display: flex;
  flex-direction: column;
}
.project-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}
.project-preview {
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: var(--bg-elevated);
  position: relative;
}
.project-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}
.project-card:hover .project-preview img { transform: scale(1.05); }
.project-preview-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--bg-elevated), var(--bg-card));
  color: var(--text-muted);
}
.project-preview-placeholder svg { width: 40px; height: 40px; opacity: 0.3; }

.project-info { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.project-info h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.project-info p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 14px;
  flex: 1;
}
.project-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6875rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: var(--accent-subtle);
  color: var(--accent);
  border: 1px solid rgba(88, 166, 255, 0.15);
}
.project-actions { display: flex; gap: 8px; }

/* =======================================
   SKILLS
   ======================================= */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.skill-category {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.3s var(--ease);
}
.skill-category:hover {
  border-color: var(--border-hover);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}
.category-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.category-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: var(--accent-subtle);
  color: var(--accent);
}
.category-icon svg { width: 20px; height: 20px; }
.category-header h3 { font-size: 1rem; font-weight: 700; }
.category-items { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s var(--ease);
}
.skill-item:hover { color: var(--text); border-color: var(--border-hover); }
.skill-item svg { width: 16px; height: 16px; opacity: 0.6; }

/* Skill category color variants */
.skill-category[data-color="blue"] .category-icon { background: rgba(88,166,255,0.1); color: #58A6FF; }
.skill-category[data-color="green"] .category-icon { background: rgba(63,185,80,0.1); color: #3FB950; }
.skill-category[data-color="purple"] .category-icon { background: rgba(188,140,255,0.1); color: #BC8CFF; }
.skill-category[data-color="orange"] .category-icon { background: rgba(210,153,34,0.1); color: #D29922; }

/* =======================================
   CONTACT
   ======================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 24px;
  align-items: start;
}
.contact-main {
  padding: 32px;
}
.contact-main > p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 28px;
}
.contact-main strong { color: var(--text); }
.contact-links {
  display: grid;
  gap: 12px;
}
.contact-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  transition: all 0.2s var(--ease);
}
.contact-link:hover {
  color: var(--text);
  border-color: var(--accent);
  background: var(--accent-subtle);
  transform: translateX(4px);
}
.contact-link svg { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; }

.contact-side {
  padding: 28px;
  text-align: center;
}
.contact-side h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.contact-side p { font-size: 0.875rem; color: var(--text-secondary); margin-bottom: 20px; }
.contact-side .btn { width: 100%; }

/* =======================================
   FOOTER
   ======================================= */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-brand .logo-mark {
  width: 32px;
  height: 32px;
  font-size: 0.75rem;
}
.footer-brand p { font-size: 0.875rem; color: var(--text-secondary); }
.footer-links { display: flex; gap: 24px; }
.footer-links a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
  transition: color 0.2s var(--ease);
}
.footer-links a:hover { color: var(--accent); }
.footer-social {
  display: flex;
  gap: 12px;
}
.social-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: all 0.2s var(--ease);
}
.social-icon:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-subtle); }
.social-icon svg { width: 18px; height: 18px; }

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.footer-bottom p {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* =======================================
   SCROLL REVEAL
   ======================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* =======================================
   RESPONSIVE
   ======================================= */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-content { order: 2; }
  .hero-visual { order: 1; }
  .hero-subtitle { margin-inline: auto; }
  .hero-chips { justify-content: center; }
  .hero-cta { justify-content: center; }
  .hero-kicker { justify-content: center; }
  .about-grid { grid-template-columns: 1fr; }
  .env-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }

  /* 7 nav links + brand + CTA don't fit below 1024px — hamburger takes over here. */
  .nav-links, .nav-actions { display: none; }
  .hamburger { display: flex; }
}

@media (max-width: 768px) {
  :root { --header-h: 64px; }
  .section { padding: 64px 0; }
  .section-header { margin-bottom: 36px; }

  .hero { padding: 100px 0 60px; min-height: auto; }
  .hero-photo-wrapper { width: 180px; height: 180px; }

  .skills-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .env-grid { grid-template-columns: 1fr; }
  .timeline { padding-left: 32px; }
  .timeline-dot { left: -32px; width: 14px; height: 14px; }

  .footer-content { flex-direction: column; gap: 24px; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2rem; }
  .hero-stats { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr; }
  .hero-photo-wrapper { width: 150px; height: 150px; }
}

/* =======================================
   REDUCED MOTION
   ======================================= */
@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;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-grid-bg { display: none; }
}
