/* BOXICONS */
@import url('https://unpkg.com/boxicons@latest/css/boxicons.min.css');

:root {
  --bg: #0f1115;
  --surface: #141821;
  --surface-2: #0f141c;
  --text: #e6e8ec;
  --muted: #a3a8b3;
  --brand: #4b8cff;
  --brand-2: #8fb6ff;
  --border: #232838;
  --space-1: 6px;
  --space-2: 10px;
  --space-3: 14px;
  --space-4: 18px;
  --space-5: 24px;
  --space-6: 32px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f7fb;
    --surface: #ffffff;
    --surface-2: #f2f4f8;
    --text: #141821;
    --muted: #5b6472;
    --brand: #2f6fff;
    --brand-2: #7fa6ff;
    --border: #dde1ea;
  }
}

[data-theme="dark"] {
  --bg: #0f1115;
  --surface: #141821;
  --surface-2: #0f141c;
  --text: #e6e8ec;
  --muted: #a3a8b3;
  --brand: #4b8cff;
  --brand-2: #8fb6ff;
  --border: #232838;
}

[data-theme="light"] {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-2: #f2f4f8;
  --text: #211414;
  --muted: #02070f;
  --brand: #2f6fff;
  --brand-2: #7fa6ff;
  --border: #dde1ea;
}

* {
  box-sizing: border-box;

  /* FOR THEME TRANSITION - ONLY TARGETING PROPERTIES THAT CHANGE THE UI */
  transition: background 0.2s ease, border 0.2s ease, color 0.2s ease;
  will-change: background, border, color;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

.section {
  padding: 72px 0;
}

.section-muted {
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(20, 24, 33, 0.7);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
}

.logo{
  max-height: 58px;
  /* filter: invert(100%); */
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-left: 10px;
}

.nav-link {
  color: var(--muted);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 10px;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.hero-links a, .link{
  text-decoration: none;
}

.btn {
  appearance: none;
  border: 2px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--brand);
  border-color: var(--brand);
  color: white;
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  text-decoration: none;
}

.btn-ghost {
  background: solid;
  border: 2px solid black;
}

.btn-theme {
  display: flex;
  align-items: center;
  justify-content: center;

  height: 40px;
  width: 40px;
  border-radius: 100px;
}

.btn-theme > i {
  font-size: 1rem;
}

.link {
  color: var(--brand);
  background: transparent;
  border: none;
  padding: 0;
}

.link:hover {
  text-decoration: underline;
}

.input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.split {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 20px;
}
.projeticos{
  display: flex;
  flex-wrap: wrap;
}
@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
    gap: 5px;
  }
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  border: 1px solid var(--border);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.9rem;
  background: var(--surface);
}

.list {
  margin: 10px 0 0 0;
  padding-left: 18px;
}

.list li {
  margin: 8px 0;
  color: var(--muted);
}

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

.grid .item {
  transition: transform 0.2s ease;
}

.grid .item:hover {
  transform: translateY(-4px);
}

.chip {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
}

.chip.is-active {
  border-color: var(--brand);
}

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 20px;
  padding: 72px 10px;
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
}

.hero-cta {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.hero-links {
  display: flex;
  gap: 14px;
  padding: 0;
  margin: 14px 0 0 0;
  list-style: none;
}

.hero-media {
  position: relative;
  display: grid;
  place-items: start;
  gap: 10px;
}

.portrait {
  width: 220px;
  height: 220px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid var(--border);
}

.stat {
  display: grid;
  gap: 2px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  width: fit-content;
}

.stat-value {
  font-size: 1.6rem;
  font-weight: 700;
}

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

.timeline {
  margin: 20px 0 0 0;
  padding: 0;
  list-style: none;
  border-left: 2px solid var(--border);
}

.timeline li {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  padding: 0 0 18px 18px;
  position: relative;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 6px;
  width: 12px;
  height: 12px;
  background: var(--brand);
  border-radius: 50%;
}

.time {
  color: var(--muted);
  font-weight: 600;
}

.item h3 {
  margin: 0 0 4px 0;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.filters {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.dialog {
  border: none;
  background: transparent;
}

.dialog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  width: min(880px, 92vw);
}

.dialog-card .close {
  float: right;
}

.pubs {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 10px 0 0 0;
  list-style: none;
}

.pubs li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 30px 0;
  background: var(--surface-2);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

#bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
}

/* Acessibilidade básica */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Botão hamburguer */
.hamburger {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  position: relative;
}

.hamburger .hamb-line {
  position: absolute;
  left: 10px;
  right: 10px;
  top: 50%;
  height: 2px;
  background: var(--text);
  box-shadow: 0 -8px 0 var(--text), 0 8px 0 var(--text);
  transform: translateY(-1px);
}

/* Gaveta e overlay */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: ease;
  z-index: 390;
}

.drawer {
  position: fixed;
  inset: 0 auto 0 0;
  width: min(86vw, 360px);
  background: var(--surface);
  border-right: 1px solid var(--border);
  transform: translateX(-100%);
  transition: transform .25s ease;
  z-index: 40;
}


.drawer-inner {
  padding: 20px;
  display: grid;
  gap: 10px;
}

.drawer a {
  background-color: var(--brand);
  color: var(--text);
  text-decoration: none;
  padding: 10px 6px;
  border-radius: 10px;
  border: solid var(--border) 2px;
}

.drawer a:hover {
  background: var(--brand-2);
  color: var(--text);
}

body.menu-open .drawer {
  transform: translateX(0);
}

body.menu-open #overlay {
  opacity: 1;
  pointer-events: auto;
}

body.menu-open {
  overflow: hidden;
}

/* Responsividade */
@media (max-width: 900px) {
  .nav {
    display: none;
  }
  .hamburger {
    display: inline-block;
  }
}
