/* ============================================================================
   ESTILO BASE DA PLATAFORMA
   Mesmo padrão visual do portfólio (cores, fontes, menu, botões, rodapé).
   É uma cópia independente: alterar o portfólio NÃO altera a plataforma.
   Todas as cores ficam nas variáveis abaixo.
   ============================================================================ */

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

:root {
  --bg: #0f1216;
  --bg-2: #13171c;
  --surface: #181c22;
  --surface-2: #1f242b;
  --border: #2a3038;
  --text: #e7eaee;
  --muted: #9aa4af;
  --primary: #00bcd4;      /* ciano — cor da marca */
  --primary-2: #4dd9ea;
  --accent: #f9b234;       /* amarelo */
  --ok: #3ecd5e;
  --alerta: #f9b234;
  --perigo: #ff6b3d;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --mono: "JetBrains Mono", Consolas, "Courier New", monospace;
  --max: 1120px;
  --header-h: 64px;

  /* Nomes antigos, mantidos para compatibilidade com páginas mais antigas */
  --bg-dark: var(--bg);
  --bg-darker: var(--bg-2);
  --bg-light: var(--surface);
  --text-light: var(--text);
  --card-green: var(--ok);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

main { flex: 1; }

img { max-width: 100%; }

a { color: var(--primary); }

h1, h2, h3, h4 { line-height: 1.25; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; }

:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }

/* Na plataforma o container empilha os blocos com espaço entre eles */
.container {
  width: min(var(--max), 100% - 2rem);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.muted { color: var(--muted); }

/* ------------------------------- Menu ---------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 18, 22, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.navbar {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-h);
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}
.logo-link img { width: 30px; height: 30px; display: block; }
.logo-link a { color: inherit; text-decoration: none; }
.logo-nome:hover { color: var(--primary); }

/* Ícone do menu = atalho para o portfólio */
.logo-portfolio {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: border-color 0.2s, background 0.2s;
}
.logo-portfolio:hover { border-color: var(--primary); background: var(--surface-2); }

.menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.menu a {
  display: block;
  padding: 0.45rem 0.8rem;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s, background 0.2s;
}
.menu a:hover { color: var(--text); background: var(--surface-2); }
.menu a.active { color: var(--primary); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  width: 42px;
  height: 38px;
  font-size: 1.2rem;
  cursor: pointer;
}

/* ------------------------------ Botões --------------------------------- */

.btn-primary,
.btn-secundario {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  align-self: flex-start;
  padding: 0.7rem 1.2rem;
  border-radius: 10px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s, background 0.2s, border-color 0.2s, color 0.2s;
}
.btn-primary:hover,
.btn-secundario:hover { transform: translateY(-2px); }

.btn-primary { background: var(--primary); color: #04262b; }
.btn-primary:hover { background: var(--primary-2); color: #04262b; }

.btn-secundario { background: transparent; color: var(--text); border-color: var(--border); }
.btn-secundario:hover { border-color: var(--primary); color: var(--primary); }

/* ------------------------------ Seções --------------------------------- */

.section { padding: 3.5rem 0; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--border); }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--primary);
  letter-spacing: 0.05em;
}

.page-hero { padding: 3.5rem 0 1rem; }
.page-hero .container { gap: 0.4rem; }
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 800; }
.page-hero p { color: var(--muted); max-width: 65ch; }

/* ------------------------------ Rodapé --------------------------------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.8rem 0;
  margin-top: 3rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.site-footer .container { flex-direction: row; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--primary); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* --------------------------- Responsividade ---------------------------- */

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .menu {
    display: none;
    position: absolute;
    top: var(--header-h); left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 0.8rem 1rem 1.2rem;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
  }
  .menu.aberto { display: flex; }
  .menu a { padding: 0.75rem 1rem; }
  .section { padding: 2.5rem 0; }
  .page-hero { padding-top: 2.5rem; }
}
