:root {
  --bg: #0e0f12;
  --panel: #151820;
  --text: #eaecef;
  --muted: #9aa4b2;
  --brand: #6aa6ff;
  --chip: #232735;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* Containers */
.container {
  max-width: 1100px;
  padding: 0 20px;
  margin: 0 auto;
}

/* Header */
.site-header {
  border-bottom: 1px solid #1f2430;
  position: sticky;
  top: 0;
  background: rgba(14,15,18,.85);
  backdrop-filter: blur(8px);
  z-index: 10;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}
.header-inner h1 {
  margin: 0;
  font-size: 1.4rem;
  letter-spacing: .3px;
}
.subtitle {
  margin: .2rem 0 0;
  color: var(--muted);
  font-size: .95rem;
}
.links a {
  color: var(--text);
  margin-left: 14px;
  text-decoration: none;
  opacity: .85;
}
.links a:hover { opacity: 1; }

/* Intro */
.intro {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 18px;
  padding: 28px 0;
  align-items: center;
}
.avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 2px solid #252a36;
  object-fit: cover;
}

/* Toolbar */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 12px 0 22px;
  flex-wrap: wrap;
}
.filters { display: flex; gap: 8px; }
.chip {
  background: var(--chip);
  border: 1px solid #2a3040;
  color: var(--text);
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
}
.chip.is-active, .chip:hover { outline: 2px solid #31405a; }

#search {
  flex: 1;
  min-width: 220px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #2a3040;
  background: #0f1218;
  color: var(--text);
}

/* Grid de projetos */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 920px){ .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px){ .grid { grid-template-columns: 1fr; } .intro { grid-template-columns: 1fr; } }

/* Card */
.card {
  background: var(--panel);
  border: 1px solid #202535;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
.card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card h3 { margin: 0; font-size: 1.08rem; }
.desc { color: var(--muted); margin: 0; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag {
  background: #1b2030;
  border: 1px solid #2c3448;
  color: #cbd5e1;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: .78rem;
}

/* Botões */
.actions { display: flex; gap: 8px; margin-top: 6px; }
.btn {
  background: var(--brand);
  color: #0b1220;
  border: none;
  border-radius: 10px;
  padding: 9px 12px;
  font-weight: 800;
  text-decoration: none;
  display: inline-block;
}
.btn.ghost {
  background: transparent;
  color: #cfe1ff;
  border: 1px solid #324566;
}
.btn:hover { filter: brightness(1.05); }

/* Footer */
.site-footer {
  margin: 36px 0 28px;
  color: var(--muted);
  text-align: center;
}

/* Modal */
.modal { position: fixed; inset: 0; display: none; }
.modal.show { display: block; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.6);
}
.modal-content {
  position: relative;
  background: #0d1117;
  width: min(1100px, 92vw);
  height: min(80vh, 760px);
  margin: 8vh auto 0;
  border-radius: 14px;
  border: 1px solid #232a3a;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.modal-close {
  position: absolute;
  top: 6px;
  right: 10px;
  font-size: 28px;
  line-height: 1;
  background: transparent;
  color: #cbd5e1;
  border: none;
  cursor: pointer;
}
.embed-wrap { width: 100%; height: 100%; }
.embed-wrap iframe { width: 100%; height: 100%; }
