@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root{
  --bg:#14111f;
  --bg-alt:#1a1729;
  --painel:#221d36;
  --painel-alt:#2a2440;
  --borda:#342c50;
  --tinta:#f4f2fb;
  --tinta-suave:rgba(244,242,251,0.72);
  --muted:#a89fc7;
  --acento:#f2a65a;
  --acento-escuro:#171425;
  --acento2:#7dd3fc;
  --erro:#f2789a;
  --sucesso:#6fcf97;

  --fonte-titulo:'Space Grotesk', sans-serif;
  --fonte-corpo:'Inter', sans-serif;
  --fonte-mono:'JetBrains Mono', monospace;
}

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

html{
  scroll-behavior:smooth;
}

body{
  background:var(--bg);
  color:var(--tinta);
  font-family:var(--fonte-corpo);
  min-height:100vh;
  overflow-x:hidden;
}

body::before{
  content:"";
  position:fixed;
  inset:0;
  background-image:radial-gradient(circle, rgba(244,242,251,0.045) 1px, transparent 1px);
  background-size:28px 28px;
  z-index:-2;
}

body::after{
  content:"";
  position:fixed;
  top:-20%;
  right:-10%;
  width:600px;
  height:600px;
  background:radial-gradient(circle, rgba(242,166,90,0.14), transparent 70%);
  z-index:-1;
  pointer-events:none;
}

::selection{
  background:var(--acento);
  color:var(--acento-escuro);
}

a{ color:inherit; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible{
  outline:2px solid var(--acento2);
  outline-offset:3px;
  border-radius:4px;
}

.container{
  max-width:1100px;
  margin:0 auto;
  padding:0 1.5rem;
}

.eyebrow{
  font-family:var(--fonte-mono);
  font-size:0.85rem;
  color:var(--acento2);
  letter-spacing:0.02em;
  display:block;
}

.titulo-secao{
  font-family:var(--fonte-titulo);
  font-size:clamp(1.8rem, 4vw, 2.4rem);
  margin:0.4rem 0 2.5rem;
}

.titulo-secao span{
  color:var(--acento);
}

@keyframes flutuar{
  0%, 100%{ transform:translateY(0) rotate(var(--rot, 0deg)); }
  50%{ transform:translateY(-10px) rotate(var(--rot, 0deg)); }
}

@keyframes floatSoft{
  0%, 100%{ transform:translateY(0); }
  50%{ transform:translateY(-6px); }
}

@keyframes girar-lento{
  from{ transform:rotate(0deg); }
  to{ transform:rotate(360deg); }
}

@keyframes pulsar-online{
  0%{ box-shadow:0 0 0 0 rgba(111,207,151,0.55); }
  70%{ box-shadow:0 0 0 8px rgba(111,207,151,0); }
  100%{ box-shadow:0 0 0 0 rgba(111,207,151,0); }
}

@keyframes brilho-gradiente{
  0%, 100%{ background-position:0% 50%; }
  50%{ background-position:100% 50%; }
}

@keyframes aparecer-modal{
  from{ opacity:0; transform:translateY(12px) scale(0.98); }
  to{ opacity:1; transform:translateY(0) scale(1); }
}

@keyframes entrada-hero{
  from{ opacity:0; transform:translateY(16px); }
  to{ opacity:1; transform:translateY(0); }
}

.navegacao{
  position:fixed;
  top:0;
  width:100%;
  z-index:100;
  background:rgba(20,17,31,0.85);
  backdrop-filter:blur(12px);
  border-bottom:1px solid var(--borda);
}

.nav-conteudo{
  max-width:1100px;
  margin:0 auto;
  padding:0 1.5rem;
  display:flex;
  align-items:center;
  justify-content:space-between;
  height:64px;
}

.nav-marca{
  font-family:var(--fonte-mono);
  font-weight:700;
  font-size:1.05rem;
  color:var(--acento);
  text-decoration:none;
}

.nav-marca span{ color:var(--muted); }

.menu{
  display:flex;
  list-style:none;
  gap:0.3rem;
}

.menu-link{
  position:relative;
  display:block;
  text-decoration:none;
  color:var(--muted);
  font-family:var(--fonte-corpo);
  font-weight:500;
  font-size:0.92rem;
  padding:0.9rem 1.1rem;
  transition:color 0.2s ease;
}

.menu-link::after{
  content:"";
  position:absolute;
  left:50%;
  bottom:0.4rem;
  width:4px;
  height:4px;
  border-radius:50%;
  background:var(--acento);
  opacity:0;
  transform:translateX(-50%) scale(0.4);
  transition:opacity 0.2s ease, transform 0.2s ease;
}

.menu-link:hover{
  color:var(--tinta);
}

.menu-link.ativo{
  color:var(--acento);
}

.menu-link.ativo::after{
  opacity:1;
  transform:translateX(-50%) scale(1);
}

.nav-toggle{
  display:none;
  flex-direction:column;
  gap:5px;
  background:none;
  border:none;
  cursor:pointer;
  padding:0.5rem;
}

.nav-toggle span{
  width:22px;
  height:2px;
  background:var(--tinta);
}

.cabecalho{
  min-height:100vh;
  display:flex;
  align-items:center;
  padding:6.5rem 0 3rem;
}

.hero-grade{
  display:grid;
  grid-template-columns:1.05fr 0.95fr;
  gap:3rem;
  align-items:center;
  width:100%;
}

.hero-cargo{
  font-family:var(--fonte-mono);
  font-size:0.95rem;
  color:var(--acento2);
  letter-spacing:0.02em;
  margin-bottom:0.6rem;
}

.hero-titulo{
  font-family:var(--fonte-titulo);
  font-size:clamp(2.2rem, 5vw, 3.4rem);
  line-height:1.12;
  margin-bottom:1.2rem;
  color:var(--tinta);
}

.hero-descricao{
  color:var(--tinta-suave);
  font-size:1.05rem;
  max-width:50ch;
  margin-bottom:2rem;
  line-height:1.75;
}

.hero-entrada{
  opacity:0;
  animation:entrada-hero 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-texto .hero-entrada:nth-child(1){ animation-delay:0.08s; }
.hero-texto .hero-entrada:nth-child(2){ animation-delay:0.16s; }
.hero-texto .hero-entrada:nth-child(3){ animation-delay:0.24s; }
.hero-texto .hero-entrada:nth-child(4){ animation-delay:0.32s; }
.hero-visual.hero-entrada{ animation-delay:0.18s; }

.hero-acoes{
  display:flex;
  flex-wrap:wrap;
  gap:1rem;
  margin-bottom:2.2rem;
}

.botao{
  font-family:var(--fonte-mono);
  font-size:0.88rem;
  padding:0.85rem 1.5rem;
  border-radius:8px;
  text-decoration:none;
  border:1px solid transparent;
  cursor:pointer;
  transition:border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  display:inline-flex;
  align-items:center;
  gap:0.5rem;
}

.botao:active,
.rede-link:active,
.contato-rede-botao:active{
  transform:translateY(0) scale(0.97);
}

.botao-primario{
  background:var(--acento);
  color:var(--acento-escuro);
  font-weight:700;
}

.botao-primario:hover{
  background:#f4b675;
  transform:translateY(-2px);
}

.botao-secundario{
  border-color:var(--borda);
  color:var(--tinta);
  background:var(--painel);
}

.botao-secundario:hover{
  border-color:var(--acento2);
  color:var(--acento2);
  transform:translateY(-2px);
}

.redes-sociais{
  display:flex;
  gap:0.9rem;
}

.rede-link{
  width:42px;
  height:42px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:11px;
  background:#f4f2fb;
  transition:transform 0.2s ease, box-shadow 0.2s ease;
}

.rede-link svg{ width:22px; height:22px; display:block; }

.rede-link:hover{
  transform:translateY(-3px) scale(1.05);
  box-shadow:0 8px 20px rgba(0,0,0,0.35);
}

.rede-link.git{ background:#181717; }
.rede-link.git svg{ width:24px; height:24px; }

.rede-link.linkedin{ background:#0a66c2; }

.rede-link.email{ background:var(--acento2); }
.rede-link.email svg{ stroke:var(--acento-escuro); }

.rede-link.instagram,
.contato-rede-botao.instagram{
  background:radial-gradient(circle at 30% 110%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.hero-visual{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:1.8rem;
}

.foto-moldura{
  position:relative;
  width:300px;
  height:300px;
  display:flex;
  align-items:center;
  justify-content:center;
  animation:floatSoft 7s ease-in-out infinite;
}

.foto-moldura::before{
  content:"";
  position:absolute;
  inset:-18px;
  border-radius:50%;
  background:conic-gradient(from 0deg, rgba(242,166,90,0.9), rgba(125,211,252,0.9), rgba(242,166,90,0.9));
  filter:blur(18px);
  opacity:0.7;
  animation:girar-lento 16s linear infinite;
  z-index:0;
}

.foto-halo{
  position:absolute;
  inset:-18%;
  background:radial-gradient(circle, rgba(242,166,90,0.28), rgba(125,211,252,0.12) 55%, transparent 75%);
  filter:blur(10px);
  border-radius:50%;
  z-index:0;
  animation:pulsar-online 3s infinite;
}

.foto-anel{
  position:absolute;
  inset:-9%;
  border:1.5px dashed rgba(125, 211, 252, 0.7);
  border-radius:50%;
  z-index:1;
  box-shadow:0 0 20px rgba(125,211,252,0.18);
  animation:girar-lento 30s linear infinite;
}

.pontos-decorativos{
  position:absolute;
  top:8%;
  right:-22%;
  width:110px;
  height:140px;
  background-image:radial-gradient(circle, rgba(125,211,252,0.55) 1.5px, transparent 1.5px);
  background-size:14px 14px;
  z-index:0;
  opacity:0.6;
}

.foto-fallback{
  position:absolute;
  inset:0;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-family:var(--fonte-titulo);
  font-size:3.2rem;
  font-weight:700;
  color:var(--acento-escuro);
  background:linear-gradient(135deg, var(--acento), var(--acento2));
  z-index:1;
  border:3px solid var(--borda);
}

.foto-perfil{
  position:relative;
  z-index:2;
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:50%;
  border:3px solid var(--borda);
  box-shadow:0 25px 60px rgba(0,0,0,0.5);
  animation:floatSoft 7s ease-in-out infinite;
}

.hero-social{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:0.8rem;
}

.hero-social-legenda{
  font-family:var(--fonte-mono);
  font-size:0.78rem;
  letter-spacing:0.06em;
  color:var(--muted);
  text-transform:uppercase;
}

.sobre{
  padding:6rem 0;
}

.sobre-grade{
  display:block;
}

.sobre-texto-unico{
  max-width:70ch;
}

.sobre-texto p{
  color:var(--tinta-suave);
  font-size:1.05rem;
  line-height:1.8;
  margin-bottom:1.2rem;
}

.sobre-texto p:last-child{ margin-bottom:0; }

.tecnologias{
  padding:2rem 0 5rem;
}

.tech-grupos{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(230px, 1fr));
  gap:1.4rem;
  align-items:stretch;
}

.tech-grupo{
  display:flex;
  flex-direction:column;
  gap:0.85rem;
  background:linear-gradient(180deg, rgba(34,29,54,0.92), rgba(26,23,41,0.92));
  border:1px solid var(--borda);
  border-radius:16px;
  padding:1rem 1rem 1.1rem;
  min-height:100%;
  box-shadow:0 18px 30px rgba(0,0,0,0.12);
  transition:border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  animation:floatSoft 6s ease-in-out infinite;
}

.tech-grupo:nth-child(even){ animation-delay:0.9s; }

.tech-grupo:hover{
  border-color:var(--acento2);
  transform:translateY(-4px);
  box-shadow:0 18px 34px rgba(0,0,0,0.2);
}

.tech-grupo-titulo{
  font-family:var(--fonte-corpo);
  font-weight:600;
  font-size:0.95rem;
  color:var(--muted);
  margin-bottom:0.9rem;
}

.tech-cards{
  display:flex;
  flex-wrap:wrap;
  gap:0.7rem;
}

.tech-card{
  display:flex;
  align-items:center;
  gap:0.6rem;
  padding:0.7rem 0.9rem;
  background:rgba(36,31,52,0.9);
  border:1px solid var(--borda);
  border-radius:12px;
  font-size:0.9rem;
  font-weight:500;
  color:var(--tinta);
  min-width:0;
  transition:border-color 0.2s ease, transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.tech-card:hover{
  border-color:var(--acento2);
  background:var(--painel-alt);
  transform:translateY(-3px) scale(1.01);
  box-shadow:0 12px 22px rgba(0,0,0,0.18);
}

.tech-icone{
  width:20px;
  height:20px;
  flex-shrink:0;
  transition:transform 0.25s ease;
}

.tech-card:hover .tech-icone{
  transform:rotate(-6deg) scale(1.12);
}

.experiencia{
  padding:2rem 0 5rem;
}

.timeline{
  list-style:none;
  position:relative;
  max-width:74ch;
}

.timeline::before{
  content:"";
  position:absolute;
  left:5px;
  top:6px;
  bottom:6px;
  width:1.5px;
  background:var(--borda);
}

.timeline-item{
  position:relative;
  padding-left:2.2rem;
}

.timeline-item + .timeline-item{
  margin-top:2.2rem;
}

.timeline-conteudo{
  transition:transform 0.25s ease;
}

.timeline-item:hover .timeline-conteudo{
  transform:translateX(5px);
}

.timeline-marcador{
  position:absolute;
  left:0;
  top:0.35rem;
  width:11px;
  height:11px;
  border-radius:50%;
  background:var(--acento);
  box-shadow:0 0 0 4px var(--bg), 0 0 0 5px var(--borda);
}

.timeline-periodo{
  font-family:var(--fonte-mono);
  font-size:0.78rem;
  color:var(--acento2);
}

.timeline-conteudo h3{
  font-family:var(--fonte-titulo);
  font-size:1.15rem;
  margin:0.3rem 0 0.2rem;
}

.timeline-empresa{
  font-family:var(--fonte-mono);
  font-size:0.82rem;
  color:var(--muted);
  margin-bottom:0.8rem;
}

.timeline-lista{
  list-style:none;
  display:flex;
  flex-direction:column;
  gap:0.5rem;
}

.timeline-lista li{
  position:relative;
  padding-left:1.1rem;
  color:var(--tinta-suave);
  font-size:0.95rem;
  line-height:1.6;
}

.timeline-lista li::before{
  content:"—";
  position:absolute;
  left:0;
  color:var(--acento2);
}

.projetos{
  padding:4rem 0 6rem;
}

.abas-projetos{
  display:flex;
  gap:0.5rem;
  border-bottom:1px solid var(--borda);
  margin-bottom:2.4rem;
}

.aba-botao{
  font-family:var(--fonte-mono);
  font-size:0.9rem;
  color:var(--muted);
  background:none;
  border:none;
  padding:0.9rem 0.3rem;
  margin-right:1.6rem;
  cursor:pointer;
  border-bottom:2px solid transparent;
  transition:color 0.2s ease, border-color 0.2s ease;
}

.aba-botao:hover{
  color:var(--tinta);
}

.aba-botao.ativa{
  color:var(--acento);
  border-color:var(--acento);
}

.aba-painel{
  display:none;
}

.aba-painel.ativa{
  display:block;
  animation:aparecer-painel 0.4s ease;
}

@keyframes aparecer-painel{
  from{ opacity:0; transform:translateY(8px); }
  to{ opacity:1; transform:translateY(0); }
}

.aba-intro{
  color:var(--tinta-suave);
  max-width:65ch;
  margin-bottom:2.2rem;
  line-height:1.7;
}

.projeto-destaque{
  background:var(--painel);
  border:1px solid var(--borda);
  border-radius:14px;
  padding:2rem;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:2rem;
  align-items:center;
  margin-bottom:1.4rem;
  transition:border-color 0.25s ease, box-shadow 0.25s ease;
}

.projeto-destaque:hover{
  border-color:var(--acento2);
  box-shadow:0 20px 45px rgba(0,0,0,0.35);
  transform:translateY(-3px);
}

.projeto-destaque{
  transition:border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.projeto-destaque-tela{
  background:var(--bg-alt);
  border:1px solid var(--borda);
  border-radius:10px;
  padding:1.4rem;
  display:flex;
  flex-direction:column;
  gap:1.2rem;
}

.projeto-stat{
  display:flex;
  flex-direction:column;
}

.projeto-stat-numero{
  font-family:var(--fonte-titulo);
  font-size:1.9rem;
  color:var(--acento);
}

.projeto-stat-label{
  font-size:0.85rem;
  color:var(--muted);
}

.etiqueta-status{
  display:inline-block;
  font-family:var(--fonte-mono);
  font-size:0.75rem;
  color:var(--acento);
  border:1px solid var(--acento);
  border-radius:20px;
  padding:0.2rem 0.7rem;
  margin-bottom:0.8rem;
}

.projeto-destaque h3{
  font-family:var(--fonte-titulo);
  font-size:1.6rem;
  margin-bottom:0.7rem;
}

.projeto-destaque p{
  color:var(--tinta-suave);
  margin-bottom:1.2rem;
  line-height:1.7;
}

.tags-tecnologia{
  display:flex;
  flex-wrap:wrap;
  gap:0.5rem;
  margin-bottom:1.4rem;
}

.tag-tec{
  font-family:var(--fonte-mono);
  font-size:0.78rem;
  color:var(--acento2);
  background:rgba(125,211,252,0.08);
  border:1px solid rgba(125,211,252,0.3);
  padding:0.3rem 0.7rem;
  border-radius:6px;
}

.projeto-destaque-acoes{
  display:flex;
  gap:0.8rem;
}

.projetos-grade{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(280px, 1fr));
  gap:1.4rem;
}

.projeto-card{
  background:var(--painel);
  border:1px solid var(--borda);
  border-radius:12px;
  padding:1.6rem;
  display:flex;
  flex-direction:column;
  transition:border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.projeto-card:hover{
  border-color:var(--acento2);
  transform:translateY(-4px);
  box-shadow:0 18px 36px rgba(0,0,0,0.35);
}

.projeto-card h4{
  font-family:var(--fonte-titulo);
  font-size:1.15rem;
  margin-bottom:0.6rem;
}

.projeto-card p{
  color:var(--tinta-suave);
  font-size:0.92rem;
  line-height:1.65;
  margin-bottom:1.1rem;
  flex-grow:1;
}

.projeto-card .tags-tecnologia{
  margin-bottom:1.2rem;
}

.projeto-card-acoes{
  display:flex;
  gap:0.6rem;
}

.link-card{
  font-family:var(--fonte-mono);
  font-size:0.82rem;
  color:var(--tinta);
  text-decoration:none;
  border:1px solid var(--borda);
  padding:0.5rem 0.9rem;
  border-radius:7px;
  transition:border-color 0.2s ease, color 0.2s ease;
}

.link-card:hover{
  border-color:var(--acento);
  color:var(--acento);
}

.arquivos-grade{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(260px, 1fr));
  gap:1.2rem;
}

.arquivo-card{
  background:var(--painel);
  border:1px solid var(--borda);
  border-radius:10px;
  overflow:hidden;
  transition:border-color 0.2s ease;
}

.arquivo-card:hover{
  border-color:var(--acento2);
}

.arquivo-cabecalho{
  display:flex;
  align-items:center;
  gap:0.7rem;
  padding:1rem 1.1rem 0.6rem;
}

.arquivo-extensao{
  font-family:var(--fonte-mono);
  font-size:0.7rem;
  font-weight:700;
  color:var(--acento-escuro);
  background:var(--acento2);
  border-radius:5px;
  padding:0.2rem 0.4rem;
  flex-shrink:0;
}

.arquivo-nome{
  font-family:var(--fonte-mono);
  font-size:0.92rem;
  color:var(--tinta);
}

.arquivo-descricao{
  padding:0 1.1rem 1rem;
  color:var(--tinta-suave);
  font-size:0.9rem;
}

.arquivo-codigo-fonte{ display:none; }

.link-codigo{
  display:inline-flex;
  align-items:center;
  gap:0.4rem;
  margin:0 1.1rem 1.1rem;
  background:none;
  border:1px solid var(--borda);
  color:var(--acento2);
  font-family:var(--fonte-corpo);
  font-size:0.85rem;
  font-weight:500;
  padding:0.5rem 0.9rem;
  border-radius:7px;
  cursor:pointer;
  transition:border-color 0.2s ease, background 0.2s ease;
}

.link-codigo:hover{
  border-color:var(--acento2);
  background:rgba(125,211,252,0.08);
}

.modal-codigo{
  position:fixed;
  inset:0;
  z-index:200;
  display:none;
  align-items:center;
  justify-content:center;
  padding:1.5rem;
}

.modal-codigo.aberto{ display:flex; }

.modal-codigo-fundo{
  position:absolute;
  inset:0;
  background:rgba(10,8,18,0.72);
  backdrop-filter:blur(3px);
}

.modal-codigo-caixa{
  position:relative;
  z-index:1;
  width:100%;
  max-width:640px;
  max-height:80vh;
  display:flex;
  flex-direction:column;
  background:var(--painel);
  border:1px solid var(--borda);
  border-radius:12px;
  overflow:hidden;
  box-shadow:0 30px 70px rgba(0,0,0,0.5);
  animation:aparecer-modal 0.25s ease;
}

.modal-codigo-barra{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0.9rem 1.1rem;
  background:var(--bg-alt);
  border-bottom:1px solid var(--borda);
}

.modal-codigo-titulo{
  font-family:var(--fonte-mono);
  font-size:0.88rem;
  color:var(--tinta);
}

.modal-codigo-fechar{
  background:none;
  border:none;
  color:var(--muted);
  font-size:1rem;
  cursor:pointer;
  padding:0.2rem 0.4rem;
  border-radius:6px;
  transition:color 0.2s ease, background 0.2s ease;
}

.modal-codigo-fechar:hover{
  color:var(--tinta);
  background:var(--painel-alt);
}

.modal-codigo-conteudo{
  margin:0;
  padding:1.2rem 1.4rem;
  overflow:auto;
  font-family:var(--fonte-mono);
  font-size:0.85rem;
  line-height:1.7;
  color:var(--tinta-suave);
  white-space:pre;
}

.nota-editar{
  margin-top:2.5rem;
  font-family:var(--fonte-mono);
  font-size:0.85rem;
  color:var(--muted);
  border-left:2px solid var(--acento);
  padding-left:1rem;
}

.contatos{
  padding:6rem 0;
}

.contatos-grade{
  display:grid;
  grid-template-columns:1.1fr 0.9fr;
  gap:3rem;
  align-items:start;
}

.formulario-contato{
  background:var(--painel);
  border:1px solid var(--borda);
  border-radius:14px;
  padding:2rem;
  transition:border-color 0.25s ease;
}

.formulario-contato:focus-within{
  border-color:var(--acento2);
}

.grupo-form{
  margin-bottom:1.3rem;
}

.rotulo-form{
  display:block;
  font-family:var(--fonte-mono);
  font-size:0.8rem;
  color:var(--muted);
  margin-bottom:0.4rem;
}

.campo-form{
  width:100%;
  padding:0.85rem 1rem;
  border-radius:8px;
  border:1px solid var(--borda);
  background:var(--bg-alt);
  color:var(--tinta);
  outline:none;
  font-family:var(--fonte-corpo);
  font-size:0.95rem;
  transition:border-color 0.2s ease, box-shadow 0.2s ease;
}

.campo-form:focus{
  border-color:var(--acento2);
  box-shadow:0 0 0 3px rgba(125,211,252,0.15);
}

.botao-form{
  width:100%;
  padding:0.95rem;
  border:none;
  border-radius:8px;
  font-family:var(--fonte-mono);
  font-weight:700;
  font-size:0.95rem;
  cursor:pointer;
  color:var(--acento-escuro);
  background:var(--acento);
  transition:background 0.2s ease, transform 0.2s ease;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:0.6rem;
}

.botao-form:hover{
  background:#f4b675;
  transform:translateY(-2px);
}

.botao-form:active{
  transform:translateY(0) scale(0.99);
}

.contato-lateral{
  display:flex;
  flex-direction:column;
  gap:1.4rem;
}

.disponibilidade-cartao{
  background:var(--bg-alt);
  border:1px solid var(--borda);
  border-radius:12px;
  padding:1.3rem 1.4rem;
}

.disponibilidade-status{
  display:flex;
  align-items:center;
  font-size:0.95rem;
  color:var(--tinta);
  font-weight:500;
  margin-bottom:0.4rem;
}

.disponibilidade-detalhe{
  font-size:0.85rem;
  color:var(--muted);
}

.ponto-online{
  display:inline-block;
  width:8px;
  height:8px;
  border-radius:50%;
  background:var(--sucesso);
  margin-right:0.6rem;
  flex-shrink:0;
  animation:pulsar-online 2s infinite;
}

.contato-lateral-legenda{
  font-family:var(--fonte-mono);
  font-size:0.85rem;
  color:var(--muted);
}

.contato-redes-grade{
  display:flex;
  gap:1rem;
}

.contato-rede-botao{
  position:relative;
  width:56px;
  height:56px;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#f4f2fb;
  transition:transform 0.2s ease, box-shadow 0.2s ease;
}

.contato-rede-botao svg{
  width:24px;
  height:24px;
}

.contato-rede-botao.git{ background:#181717; }
.contato-rede-botao.linkedin{ background:#0a66c2; }
.contato-rede-botao.email{ background:var(--acento2); }
.contato-rede-botao.email svg{ stroke:var(--acento-escuro); }
.contato-rede-botao.phone{ background:var(--acento); }
.contato-rede-botao.phone svg{ stroke:var(--acento-escuro); }

.contato-rede-botao::after{
  content:attr(data-tooltip);
  position:absolute;
  bottom:calc(100% + 10px);
  left:50%;
  transform:translateX(-50%) translateY(4px);
  background:var(--painel-alt);
  border:1px solid var(--borda);
  color:var(--tinta);
  font-family:var(--fonte-mono);
  font-size:0.72rem;
  padding:0.3rem 0.6rem;
  border-radius:6px;
  white-space:nowrap;
  opacity:0;
  pointer-events:none;
  transition:opacity 0.2s ease, transform 0.2s ease;
}

.contato-rede-botao:hover{
  transform:translateY(-4px) scale(1.06);
  box-shadow:0 10px 24px rgba(0,0,0,0.4);
}

.contato-rede-botao:hover::after{
  opacity:1;
  transform:translateX(-50%) translateY(0);
}

.rodape{
  padding:2rem 0 2.5rem;
  text-align:center;
  font-family:var(--fonte-mono);
  font-size:0.8rem;
  color:var(--muted);
  border-top:1px solid var(--borda);
}

.rodape span{ color:var(--acento); }

/* ============================
   RESPONSIVO
   ============================ */

html{
  overflow-x:hidden;
}

img{
  max-width:100%;
}

/* Tablets e telas médias */
@media (max-width:1024px){
  .hero-grade{
    gap:2.2rem;
  }

  .foto-moldura{
    width:260px;
    height:260px;
  }
}

@media (max-width:820px){
  .container{
    padding:0 1.25rem;
  }

  .nav-conteudo{
    padding:0 1.25rem;
    height:60px;
  }

  .nav-marca{
    max-width:calc(100% - 3.5rem);
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }

  .hero-grade,
  .sobre-grade,
  .contatos-grade{
    grid-template-columns:1fr;
  }

  .cabecalho{
    min-height:auto;
    padding:6rem 0 3.5rem;
  }

  .hero-texto{
    text-align:center;
  }

  .hero-descricao{
    margin-left:auto;
    margin-right:auto;
  }

  .hero-acoes{
    justify-content:center;
  }

  .hero-visual{
    order:-1;
    margin-bottom:0.5rem;
  }

  .sobre{
    padding:4rem 0;
  }

  .sobre-texto-unico{
    max-width:none;
  }

  .tecnologias{
    padding:1.5rem 0 3.5rem;
  }

  .experiencia{
    padding:1.5rem 0 3.5rem;
  }

  .projetos{
    padding:3rem 0 4rem;
  }

  .projeto-destaque{
    grid-template-columns:1fr;
    padding:1.35rem;
    gap:1.4rem;
  }

  .nav-toggle{
    display:flex;
    width:40px;
    height:40px;
    align-items:center;
    justify-content:center;
    padding:0;
  }

  .menu{
    position:absolute;
    top:60px;
    left:0;
    width:100%;
    flex-direction:column;
    background:var(--bg-alt);
    border-bottom:1px solid var(--borda);
    max-height:0;
    overflow:hidden;
    box-shadow:0 16px 30px rgba(0,0,0,0.3);
    transition:max-height 0.3s ease;
  }

  .menu.aberto{ max-height:340px; }

  .menu-link{
    padding:1rem 1.5rem;
    border-bottom:1px solid var(--borda);
  }

  .menu-link::after{ display:none; }

  .abas-projetos{
    gap:0;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:thin;
  }

  .aba-botao{
    margin-right:1rem;
    font-size:0.82rem;
    white-space:nowrap;
    flex-shrink:0;
  }

  .foto-moldura{
    width:230px;
    height:230px;
  }

  .contatos{
    padding:4rem 0;
  }

  .formulario-contato{
    padding:1.35rem;
  }

  .disponibilidade-status{
    align-items:flex-start;
    line-height:1.5;
  }

  .ponto-online{
    margin-top:0.3rem;
  }

  .contato-redes-grade{
    flex-wrap:wrap;
    justify-content:center;
  }

  .contato-lateral{
    align-items:center;
    text-align:center;
  }

  .disponibilidade-cartao{
    width:100%;
  }
}

/* Celulares grandes */
@media (max-width:600px){
  .titulo-secao{
    font-size:clamp(1.6rem, 6vw, 2rem);
    margin-bottom:2rem;
  }

  .hero-descricao{
    font-size:1rem;
  }

  .foto-moldura{
    width:200px;
    height:200px;
  }

  .foto-fallback{
    font-size:2.4rem;
  }

  .pontos-decorativos{
    display:none;
  }

  .tech-grupos{
    grid-template-columns:repeat(auto-fit, minmax(160px, 1fr));
    gap:1rem;
  }

  .tech-grupo{
    padding:0.9rem 0.9rem 1rem;
  }

  .tech-card{
    padding:0.6rem 0.75rem;
    font-size:0.85rem;
  }

  .arquivos-grade{
    grid-template-columns:1fr;
  }

  .projeto-destaque-tela{
    flex-direction:row;
    flex-wrap:wrap;
    gap:1rem 1.6rem;
  }

  .modal-codigo-caixa{
    max-height:75vh;
  }

  .modal-codigo-conteudo{
    font-size:0.8rem;
    padding:1rem;
  }

  .contato-rede-botao{
    width:50px;
    height:50px;
  }

  .contato-rede-botao::after{
    display:none;
  }
}

/* Celulares pequenos */
@media (max-width:380px){
  .container,
  .nav-conteudo{ padding:0 1.1rem; }

  .titulo-secao{
    font-size:1.7rem;
    line-height:1.2;
    margin-bottom:2rem;
  }

  .hero-cargo{
    font-size:0.8rem;
  }

  .hero-titulo{
    font-size:2rem;
  }

  .hero-descricao,
  .sobre-texto p{
    font-size:0.95rem;
  }

  .hero-acoes{
    flex-direction:column;
    align-items:stretch;
  }

  .hero-acoes .botao,
  .projeto-destaque-acoes .botao{
    justify-content:center;
    width:100%;
  }

  .projeto-destaque-acoes{
    flex-direction:column;
  }

  .tech-grupos{
    grid-template-columns:1fr;
  }

  .tech-card{
    flex:1 1 100%;
  }

  .foto-moldura{
    width:170px;
    height:170px;
  }

  .foto-fallback{
    font-size:2rem;
  }

  .modal-codigo{
    padding:0.75rem;
  }

  .modal-codigo-conteudo{
    padding:1rem;
    font-size:0.75rem;
  }

  .contato-redes-grade{
    gap:0.7rem;
  }

  .contato-rede-botao{
    width:48px;
    height:48px;
  }

  .arquivo-nome{
    font-size:0.82rem;
    word-break:break-all;
  }

  .projeto-stat-numero{
    font-size:1.6rem;
  }
}

/* Telas muito baixas (celular deitado) */
@media (max-height:480px) and (max-width:900px){
  .cabecalho{
    min-height:auto;
    padding:6rem 0 2.5rem;
  }

  .foto-moldura{
    width:170px;
    height:170px;
  }
}

@media (prefers-reduced-motion: reduce){
  *{
    animation-duration:0.001ms !important;
    animation-iteration-count:1 !important;
    transition-duration:0.001ms !important;
  }


  [data-aos]{
    opacity:1 !important;
    transform:none !important;
  }
}