/* ══════════════════════════════════════════════════
   RESET & BASE
══════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

/* ══════════════════════════════════════════════════
   THEME VARIABLES
══════════════════════════════════════════════════ */
:root {
  --teal:       #14b8a6;
  --teal-d:     #0d9488;
  --teal-glow:  rgba(20,184,166,.18);
  --teal-dim:   rgba(20,184,166,.08);
  --transition: .28s cubic-bezier(.4,0,.2,1);
  --nav-h:      64px;
  --radius:     14px;
  --radius-sm:  8px;
  --mono:       'JetBrains Mono', monospace;
  --display:    'Syne', sans-serif;
  --body:       'Nunito', sans-serif;
}

/* DARK */
[data-theme="dark"] {
  --bg:         #080f1e;
  --bg2:        #0c1527;
  --bg3:        #101d34;
  --card:       #0f1c30;
  --card-b:     rgba(20,184,166,.2);
  --txt:        #e8f1ff;
  --txt2:       #8ba8cc;
  --txt3:       #4d6a8a;
  --border:     rgba(20,184,166,.15);
  --shadow:     0 8px 40px rgba(0,0,0,.5);
  --nav-bg:     rgba(8,15,30,.85);
  --code-bg:    #060e1a;
  --mark:       rgba(20,184,166,.22);
}

/* LIGHT */
[data-theme="light"] {
  --bg:         #f0f6ff;
  --bg2:        #e4edf8;
  --bg3:        #dae6f5;
  --card:       #ffffff;
  --card-b:     rgba(13,148,136,.3);
  --txt:        #0a1628;
  --txt2:       #3a5570;
  --txt3:       #7a9ab8;
  --border:     rgba(13,148,136,.18);
  --shadow:     0 8px 40px rgba(0,0,0,.1);
  --nav-bg:     rgba(240,246,255,.9);
  --code-bg:    #e8f0fb;
  --mark:       rgba(13,148,136,.15);
  --teal:       #0d9488;
  --teal-d:     #0a7c72;
  --teal-glow:  rgba(13,148,136,.15);
  --teal-dim:   rgba(13,148,136,.06);
}

body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--txt);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img, svg { display: block; }

/* canvas */
#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: .5;
}

/* ══════════════════════════════════════════════════
   UTILS
══════════════════════════════════════════════════ */
.container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: clamp(1.2rem, 5vw, 2.5rem);
}

.section {
  position: relative;
  z-index: 1;
  padding-block: clamp(5rem, 10vw, 8rem);
}

.sec-tag {
  font-family: var(--mono);
  font-size: .75rem;
  color: var(--teal);
  letter-spacing: .12em;
  margin-bottom: .6rem;
}

.sec-title {
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: var(--txt);
  line-height: 1.1;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

mark {
  background: var(--mark);
  color: var(--teal);
  padding: .05em .25em;
  border-radius: 4px;
}

/* ══════════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .72rem 1.6rem;
  border-radius: var(--radius-sm);
  font-family: var(--body);
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}
.btn-primary:hover {
  background: var(--teal-d);
  border-color: var(--teal-d);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px var(--teal-glow);
}

.btn-outline {
  background: transparent;
  border-color: var(--teal);
  color: var(--teal);
}
.btn-outline:hover {
  background: var(--teal-dim);
  transform: translateY(-2px);
}

.btn-big {
  padding: .9rem 2.2rem;
  font-size: 1rem;
}

/* ══════════════════════════════════════════════════
   HEADER / NAV
══════════════════════════════════════════════════ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), background var(--transition);
}
.header.scrolled {
  border-bottom-color: var(--border);
}

.nav {
  height: var(--nav-h);
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: clamp(1.2rem, 5vw, 2.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-logo {
  font-family: var(--mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--txt);
  flex-shrink: 0;
  transition: color var(--transition);
}
.nav-logo:hover { color: var(--teal); }
.logo-lt { color: var(--teal); }

/* Desktop nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex: 1;
  justify-content: center;
}

.nav-link {
  font-family: var(--mono);
  font-size: .78rem;
  color: var(--txt2);
  letter-spacing: .06em;
  position: relative;
  padding-bottom: 3px;
  transition: color var(--transition);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--teal);
  border-radius: 2px;
  transition: width var(--transition);
}
.nav-link:hover,
.nav-link.active { color: var(--teal); }
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

/* Right side of nav */
.nav-right {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-shrink: 0;
}

/* Download button in nav */
.btn-dl {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .42rem 1rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--teal);
  color: var(--teal);
  font-family: var(--mono);
  font-size: .73rem;
  font-weight: 700;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-dl:hover {
  background: var(--teal-dim);
  transform: translateY(-1px);
}

/* ══════════════════════════════════════════════════
   THEME TOGGLE
══════════════════════════════════════════════════ */
.theme-switch {
  display: flex;
  align-items: center;
  cursor: pointer;
  flex-shrink: 0;
}
.theme-switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.theme-switch__track {
  position: relative;
  width: 52px;
  height: 28px;
  background: var(--bg3);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  display: flex;
  align-items: center;
  transition: background var(--transition), border-color var(--transition);
}
.theme-switch:hover .theme-switch__track {
  border-color: var(--teal);
}
.theme-switch__knob {
  position: absolute;
  left: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: left var(--transition), background var(--transition);
  font-size: 11px;
  line-height: 1;
  overflow: hidden;
}
.theme-switch input:checked ~ .theme-switch__track .theme-switch__knob {
  left: calc(100% - 24px);
}
.theme-icon { position: absolute; transition: opacity var(--transition), transform var(--transition); }
.theme-icon--moon { opacity: 1; transform: scale(1); }
.theme-icon--sun  { opacity: 0; transform: scale(0); }
.theme-switch input:checked ~ .theme-switch__track .theme-icon--moon { opacity: 0; transform: scale(0); }
.theme-switch input:checked ~ .theme-switch__track .theme-icon--sun  { opacity: 1; transform: scale(1); }

/* ══════════════════════════════════════════════════
   HAMBURGER
══════════════════════════════════════════════════ */
.hbg {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0 10px;
  flex-shrink: 0;
  transition: border-color var(--transition), background var(--transition);
}
.hbg:hover { border-color: var(--teal); background: var(--teal-dim); }

.hbg span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--txt);
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease, background var(--transition);
}
.hbg.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); background: var(--teal); }
.hbg.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hbg.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background: var(--teal); }

/* ══════════════════════════════════════════════════
   MOBILE OVERLAY MENU
══════════════════════════════════════════════════ */
.mobile-overlay {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0; bottom: 0;
  background: var(--bg);
  z-index: 999;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0;
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity .3s ease, transform .3s ease;
  pointer-events: none;
}
.mobile-overlay.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .2rem;
  padding: 2rem 1rem;
  width: 100%;
  max-width: 320px;
}

.mobile-link {
  display: block;
  width: 100%;
  text-align: center;
  padding: 1rem;
  font-family: var(--mono);
  font-size: 1.1rem;
  color: var(--txt2);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.mobile-link:hover,
.mobile-link.active {
  color: var(--teal);
  background: var(--teal-dim);
}

.mobile-dl {
  display: block;
  width: 100%;
  text-align: center;
  padding: .9rem 1rem;
  margin-top: 1rem;
  background: var(--teal);
  color: #fff;
  font-weight: 700;
  border-radius: var(--radius-sm);
  font-size: .95rem;
  transition: background var(--transition);
}
.mobile-dl:hover { background: var(--teal-d); }

/* ══════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════ */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: var(--nav-h);
}

.hero-inner {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding-block: clamp(3rem, 8vw, 5rem);
}

/* Left */
.hero-text { display: flex; flex-direction: column; gap: 1.25rem; }

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--mono);
  font-size: .75rem;
  color: var(--teal);
  letter-spacing: .1em;
}
.eyebrow-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--teal);
  animation: blink 1.8s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }

.hero-name {
  font-family: var(--display);
  line-height: .95;
  font-weight: 800;
}
.hero-name__first {
  display: block;
  font-size: clamp(3.2rem, 7vw, 5.5rem);
  color: var(--txt);
}
.hero-name__last {
  display: block;
  font-size: clamp(3.2rem, 7vw, 5.5rem);
  color: var(--teal);
  -webkit-text-stroke: 1px var(--teal);
}

.hero-role {
  font-size: clamp(.9rem, 2vw, 1.1rem);
  color: var(--txt2);
  font-weight: 600;
}
.role-accent {
  font-family: var(--mono);
  color: var(--teal);
  margin-right: .4rem;
}

.hero-loc {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: .82rem;
  color: var(--txt3);
}
.hero-loc svg { flex-shrink: 0; }

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.chip {
  padding: .25rem .7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: .7rem;
  color: var(--teal);
  background: var(--teal-dim);
  transition: background var(--transition), border-color var(--transition);
}
.chip:hover { background: var(--teal-glow); border-color: var(--teal); }

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

/* Right — code card */
.hero-card { display: flex; justify-content: flex-end; }

.code-win {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 420px;
  transition: background var(--transition), border-color var(--transition);
}

.code-win__bar {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .6rem 1rem;
  background: var(--bg3);
  border-bottom: 1px solid var(--border);
}
.cw-dot {
  width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0;
}
.cw-r { background: #ff5f57; }
.cw-y { background: #febc2e; }
.cw-g { background: #28c840; }
.cw-file {
  margin-left: auto;
  font-family: var(--mono);
  font-size: .7rem;
  color: var(--txt3);
}

.code-win__body {
  padding: 1.4rem 1.6rem;
  font-family: var(--mono);
  font-size: clamp(.72rem, 1.5vw, .82rem);
  line-height: 1.9;
  overflow-x: auto;
  color: var(--txt2);
}
.code-win__body code { display: block; }

/* Syntax colors */
.ck { color: #7dd3fc; }
.cv { color: #e2e8f0; }
.co { color: var(--txt3); }
.cp { color: #86efac; }
.cs { color: var(--teal); }

[data-theme="light"] .ck { color: #0369a1; }
[data-theme="light"] .cv { color: #1e293b; }
[data-theme="light"] .cp { color: #166534; }
[data-theme="light"] .cs { color: var(--teal); }

.hero-scroll {
  padding-bottom: 1.5rem;
  color: var(--txt3);
  animation: bounce .9s ease-in-out infinite;
  z-index: 1;
}
@keyframes bounce { 0%,100%{transform:translateY(0)} 50%{transform:translateY(6px)} }

/* ══════════════════════════════════════════════════
   SOBRE
══════════════════════════════════════════════════ */
.sobre { background: var(--bg2); }

.sobre-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 3rem;
  align-items: start;
}

.sobre-left { display: flex; flex-direction: column; gap: 2rem; align-items: center; }

.avatar-wrap { position: relative; width: 120px; }
.avatar {
  width: 120px; height: 120px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-family: var(--mono);
  font-size: 2.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 40px var(--teal-glow);
}
.avatar-glow {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px solid var(--teal);
  opacity: .35;
  animation: spin 8s linear infinite;
}
.avatar-glow::before {
  content: '';
  position: absolute;
  top: -4px; left: 30%;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--teal);
}
@keyframes spin { from{transform:rotate(0)} to{transform:rotate(360deg)} }

.info-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.info-row {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: .85rem 1.1rem;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.info-row:last-child { border-bottom: none; }
.info-row:hover { background: var(--teal-dim); }
.info-ico { font-size: 1.2rem; flex-shrink: 0; }
.info-lbl {
  display: block;
  font-family: var(--mono);
  font-size: .62rem;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: .1em;
}
.info-val {
  display: block;
  font-size: .88rem;
  color: var(--txt2);
  font-weight: 600;
}
.open { color: var(--teal) !important; }

.sobre-right { display: flex; flex-direction: column; gap: 1.4rem; }
.sobre-p { color: var(--txt2); font-size: 1rem; line-height: 1.85; }
.sobre-p strong { color: var(--teal); font-weight: 700; }

.sobre-stats {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.stat {
  flex: 1;
  min-width: 80px;
  padding: 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-align: center;
  transition: border-color var(--transition), transform var(--transition);
}
.stat:hover { border-color: var(--teal); transform: translateY(-3px); }
.stat-n {
  display: block;
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--teal);
}
.stat-l {
  font-size: .72rem;
  color: var(--txt3);
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* ══════════════════════════════════════════════════
   SKILLS
══════════════════════════════════════════════════ */
.skills { background: var(--bg); }

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.4rem;
}

.sk-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: .9rem;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  cursor: default;
}
.sk-card:hover {
  transform: translateY(-4px);
  border-color: var(--teal);
  box-shadow: 0 8px 32px var(--teal-glow);
}

.sk-top {
  display: flex;
  align-items: center;
  gap: .9rem;
}

.sk-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sk-html { background: rgba(228,77,38,.12); color: #e44d26; }
.sk-css  { background: rgba(21,114,182,.12); color: #1572b6; }
.sk-js   { background: rgba(247,223,30,.12); color: #c9a800; }
.sk-node { background: rgba(104,160,99,.12); color: #68a063; }
.sk-cy   { background: rgba(69,193,191,.12); color: #45c1bf; }
.sk-ec   { background: rgba(20,184,166,.12); color: var(--teal); }

[data-theme="light"] .sk-js { color: #a08500; }

.sk-info { flex: 1; }
.sk-name {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--txt);
  line-height: 1.2;
}
.sk-sub {
  font-size: .72rem;
  color: var(--txt3);
  font-family: var(--mono);
}

.sk-pct {
  font-family: var(--mono);
  font-size: .85rem;
  font-weight: 700;
  color: var(--teal);
}

.sk-bar {
  height: 5px;
  background: var(--bg3);
  border-radius: 999px;
  overflow: hidden;
}
.sk-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--teal-d), var(--teal));
  border-radius: 999px;
  transition: width 1.1s cubic-bezier(.4,0,.2,1);
}
.sk-fill.go { width: calc(var(--p) * 1%); }

.sk-desc {
  font-size: .8rem;
  color: var(--txt3);
  line-height: 1.6;
}

/* ══════════════════════════════════════════════════
   CONTATO
══════════════════════════════════════════════════ */
.contato { background: var(--bg2); }

.contato-sub {
  color: var(--txt2);
  font-size: 1rem;
  margin-top: -.5rem;
  margin-bottom: 2.5rem;
  max-width: 520px;
}

.contato-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.1rem;
  margin-bottom: 2.5rem;
}

.ct-card {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  padding: 1.3rem 1.4rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.ct-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--teal);
  transform: scaleY(0);
  transition: transform var(--transition);
  border-radius: 2px 0 0 2px;
}
.ct-card:hover {
  transform: translateY(-3px);
  border-color: var(--teal);
  box-shadow: 0 8px 28px var(--teal-glow);
}
.ct-card:hover::before { transform: scaleY(1); }

.ct-ico { font-size: 1.4rem; }
.ct-lbl {
  font-family: var(--mono);
  font-size: .65rem;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-top: .2rem;
}
.ct-val {
  font-size: .82rem;
  color: var(--txt2);
  font-weight: 600;
  word-break: break-word;
}

.contato-cta {
  display: flex;
  justify-content: center;
}

/* ══════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════ */
.footer {
  position: relative;
  z-index: 1;
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding-block: 1.8rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  font-family: var(--mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--txt);
}

.footer-copy { font-size: .78rem; color: var(--txt3); }

.footer-social {
  display: flex;
  gap: 1rem;
}
.footer-social a {
  color: var(--txt3);
  transition: color var(--transition), transform var(--transition);
}
.footer-social a:hover { color: var(--teal); transform: translateY(-2px); }

/* ══════════════════════════════════════════════════
   SCROLL REVEAL
══════════════════════════════════════════════════ */
[data-anim] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
}
[data-anim].visible {
  opacity: 1;
  transform: none;
}

/* ══════════════════════════════════════════════════
   HERO ENTRANCE ANIMATIONS
══════════════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity:0; transform:translateY(20px); }
  to   { opacity:1; transform:translateY(0); }
}
.hero-eyebrow   { animation: fadeUp .5s .1s both; }
.hero-name      { animation: fadeUp .5s .22s both; }
.hero-role      { animation: fadeUp .5s .34s both; }
.hero-loc       { animation: fadeUp .5s .42s both; }
.hero-chips     { animation: fadeUp .5s .5s both; }
.hero-btns      { animation: fadeUp .5s .6s both; }
.hero-card      { animation: fadeUp .5s .35s both; }

/* ══════════════════════════════════════════════════
   RESPONSIVE — TABLET  ≤ 900px
══════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .sobre-grid {
    grid-template-columns: 1fr;
  }
  .sobre-left {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 1.5rem;
  }
  .avatar-wrap { flex-shrink: 0; }
  .info-list { flex: 1; min-width: 220px; }
}

/* ══════════════════════════════════════════════════
   RESPONSIVE — MOBILE  ≤ 680px
══════════════════════════════════════════════════ */
@media (max-width: 680px) {

  /* Show hamburger, hide desktop links */
  .hbg       { display: flex; }
  .nav-links { display: none; }
  .btn-dl span { display: none; }
  .btn-dl { padding: .42rem .65rem; }

  /* Mobile overlay becomes visible when open */
  .mobile-overlay { display: flex; }

  /* Hero stacks */
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-top: 2rem;
  }
  .hero-card { justify-content: center; }
  .code-win { max-width: 100%; }
  .hero-name__first,
  .hero-name__last { font-size: clamp(2.8rem, 12vw, 4rem); }

  /* Sobre */
  .sobre-left {
    flex-direction: column;
    align-items: center;
  }
  .info-list { width: 100%; }

  /* Contato grid */
  .contato-grid { grid-template-columns: 1fr 1fr; }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* ══════════════════════════════════════════════════
   RESPONSIVE — SMALL  ≤ 420px
══════════════════════════════════════════════════ */
@media (max-width: 420px) {
  .contato-grid  { grid-template-columns: 1fr; }
  .skills-grid   { grid-template-columns: 1fr; }
  .sobre-stats   { gap: .6rem; }
  .hero-btns     { flex-direction: column; align-items: flex-start; }
  .hero-btns .btn { width: 100%; justify-content: center; }
}
