:root{
  --bg:#0f1220;
  --card:#171a2a;
  --text:#f2f3f7;
  --muted:#aab0c0;
  --brand:#00bcd4;
  --border:rgba(255,255,255,.08);
  --shadow: 0 12px 30px rgba(0,0,0,.25);
}

body.light{
  --bg:#f6f7fb;
  --card:#ffffff;
  --text:#12131a;
  --muted:#586074;
  --brand:#007c8a;
  --border:rgba(0,0,0,.10);
  --shadow: 0 12px 30px rgba(0,0,0,.10);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: Arial, Helvetica, sans-serif;
  background:var(--bg);
  color:var(--text);
}

.container{
  width:min(1100px, 92%);
  margin:0 auto;
}

.cabecalho{
  position:sticky;
  top:0;
  z-index:10;
  background:rgba(15,18,32,.78);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--border);
}
body.light .cabecalho{ background:rgba(246,247,251,.78); }

.header-interno{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:14px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
}

.avatar-mini{
  width:44px;
  height:44px;
  border-radius:14px;
  display:grid;
  place-items:center;
  overflow:hidden; /* importante: corta a imagem certinho no arredondado */
  background:linear-gradient(135deg, var(--brand), rgba(255,255,255,.15));
  font-weight:700;
}

/* a imagem se adapta sem estourar o header */
.avatar-mini img{
  width:100%;
  height:100%;
  object-fit:cover;   /* preenche sem distorcer */
  display:block;      /* evita “bordinha”/espaço estranho */
}

.titulo{margin:0; font-size:18px}
.subtitulo{margin:2px 0 0; color:var(--muted); font-size:13px}

.menu{
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.menu a{
  color:var(--text);
  text-decoration:none;
  opacity:.9;
  font-size:14px;
}
.menu a:hover{opacity:1; color:var(--brand)}

.btn, .btn-ghost{
  border:1px solid var(--border);
  border-radius:12px;
  padding:10px 14px;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  cursor:pointer;
  transition:.2s;
  font-weight:600;
}
.btn{
  background:var(--brand);
  color:#071016;
  border-color:transparent;
}
.btn:hover{transform:translateY(-1px)}
.btn-ghost{
  background:transparent;
  color:var(--text);
}
.btn-ghost:hover{border-color:var(--brand); color:var(--brand)}

.secao{padding:70px 0}
.hero{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:30px;
  align-items:center;
}
.hero h2{margin:0 0 10px; font-size:32px}
.hero p{color:var(--muted); line-height:1.6}

.hero-botoes{display:flex; gap:12px; flex-wrap:wrap; margin:18px 0}
.links{display:flex; gap:10px; align-items:center; color:var(--muted)}
.links a{color:var(--brand); text-decoration:none}
.links a:hover{text-decoration:underline}

.hero-foto{
  display:flex;
  justify-content:center;
}
.hero-foto img{
  width:220px;
  height:220px;
  border-radius:28px;
  object-fit:cover;
  border:1px solid var(--border);
  box-shadow: var(--shadow);
  transition:0.3s;
}

.hero-foto img:hover{
  transform: scale(1.05);
}

.foto-fallback{
  width:220px;height:220px;
  border-radius:28px;
  display:grid;place-items:center;
  font-size:52px;
  font-weight:800;
  background:linear-gradient(135deg, var(--brand), rgba(255,255,255,.10));
  border:1px solid var(--border);
  box-shadow: var(--shadow);
}

h2{font-size:26px; margin:0 0 18px}
.muted{color:var(--muted)}

.chips{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.chip{
  background:var(--card);
  border:1px solid var(--border);
  padding:10px 12px;
  border-radius:999px;
  color:var(--text);
  box-shadow: 0 8px 18px rgba(0,0,0,.12);
}

.secao-topo{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
}

.grid-projetos{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap:18px;
  margin-top:20px;
}

.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:18px;
  overflow:hidden;
  box-shadow: var(--shadow);
  transform: translateY(0);
  transition: .25s;
}
.card:hover{transform: translateY(-6px)}

.thumb{
  display:block;
  height:170px;
  overflow:hidden;
  background:rgba(255,255,255,.04);
  position:relative;
}
.thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  transform: scale(1);
  transition:.35s;
}
.card:hover .thumb img{transform:scale(1.07)}
.thumb-fallback{
  width:100%; height:100%;
  display:grid; place-items:center;
  font-weight:800;
  color:rgba(255,255,255,.7);
  padding:10px;
  text-align:center;
}

.card-body{padding:16px}
.card-body h3{margin:0 0 8px}
.card-body p{margin:0 0 12px; color:var(--muted); line-height:1.5}

.tags{display:flex; gap:8px; flex-wrap:wrap; margin-bottom:12px}
.tags span{
  font-size:12px;
  padding:6px 10px;
  border:1px solid var(--border);
  border-radius:999px;
  color:var(--text);
  opacity:.9;
}

.acoes{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.link{
  color:var(--brand);
  text-decoration:none;
  font-weight:700;
}
.link:hover{text-decoration:underline}

.dica{
  margin-top:18px;
  color:var(--muted);
}

.contato{
  text-align:center;
}
.contato-cards{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap:14px;
  margin-top:18px;
}
.contato-card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:18px;
  padding:16px;
  text-decoration:none;
  color:var(--text);
  box-shadow: var(--shadow);
  transition:.25s;
}
.contato-card:hover{
  transform:translateY(-4px);
  border-color: rgba(0,188,212,.35);
}
.contato-card span{display:block; color:var(--muted); margin-top:6px}

.rodape{
  border-top:1px solid var(--border);
  padding:18px 0;
  color:var(--muted);
}

/* animação de entrada */
.reveal{
  opacity:0;
  transform: translateY(12px);
  transition: .6s ease;
}
.reveal.show{
  opacity:1;
  transform: translateY(0);
}

/* responsivo */
@media (max-width: 860px){
  .hero{grid-template-columns:1fr}
  .header-interno{align-items:flex-start}
}