/* =========================================================
   Thomaz Arthur — Portfólio
   Dark minimalista / premium developer
   ========================================================= */

/* ---------- Tokens de design ---------- */
:root {
  /* Cores base */
  --bg: #0a0a0b;
  --bg-soft: #0e0e11;
  --surface: #141418;
  --surface-2: #1a1a20;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  /* Texto */
  --text: #f4f4f5;
  --text-muted: #a1a1aa;
  --text-dim: #71717a;

  /* Acento (azul) — exclusivo do filtro "Todos" */
  --accent: #60a5fa;
  --accent-soft: #93c5fd;
  --accent-glow: rgba(59, 130, 246, 0.24);
  --accent-grad: linear-gradient(135deg, #2563eb, #60a5fa);

  /* Categorias de projeto (sem azul) */
  --cat-academicos: #34d399;
  --cat-ferramentas: #22d3ee;
  --cat-comercial: #fbbf24;

  /* Tipografia */
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --font-display: "Space Grotesk", var(--font-sans);
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  /* Layout */
  --container: 1120px;
  --radius: 16px;
  --radius-sm: 10px;
  --nav-h: 72px;

  /* Transições */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* Scrollbar */
  --scrollbar-track: var(--bg);
  --scrollbar-thumb: rgba(255, 255, 255, 0.1);
  --scrollbar-thumb-hover: rgba(255, 255, 255, 0.18);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

/* Firefox + WebKit — scrollbar discreta, integrada ao tema */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

*::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

*::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
}

*::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 999px;
  border: 2px solid var(--scrollbar-track);
}

*::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover);
}

*::-webkit-scrollbar-corner {
  background: var(--scrollbar-track);
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

::selection {
  background: var(--accent-glow);
  color: var(--accent-soft);
}

/* Foco acessível */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Utilitários ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.text-accent {
  color: var(--accent);
}

/* ---------- Fundos decorativos ---------- */
.bg-glow {
  position: fixed;
  top: -200px;
  left: 50%;
  width: 900px;
  height: 700px;
  transform: translateX(-50%);
  background: radial-gradient(
    circle at center,
    var(--accent-glow),
    transparent 60%
  );
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.8;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 80%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 80%);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

main,
.navbar,
.footer {
  position: relative;
  z-index: 1;
}

/* =========================================================
   NAVBAR
   ========================================================= */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  z-index: 100;
  transition: background-color 0.4s var(--ease), backdrop-filter 0.4s var(--ease),
    border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}

.navbar.is-scrolled {
  background-color: rgba(10, 10, 11, 0.7);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom-color: var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav__logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.nav__logo-accent {
  color: var(--accent);
}

.nav__links {
  display: flex;
  gap: 36px;
}

.nav__link {
  position: relative;
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.25s var(--ease);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.3s var(--ease);
}

.nav__link:hover,
.nav__link.is-active {
  color: var(--text);
}

.nav__link:hover::after,
.nav__link.is-active::after {
  width: 100%;
}

/* Botão hambúrguer */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin-inline: auto;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.nav__toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__toggle.is-open span:nth-child(2) {
  opacity: 0;
}
.nav__toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Menu mobile */
.mobile-menu {
  position: fixed;
  inset: var(--nav-h) 0 auto 0;
  background: rgba(10, 10, 11, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transform: translateY(-120%);
  transition: transform 0.45s var(--ease);
  z-index: 99;
}

.mobile-menu.is-open {
  transform: translateY(0);
}

.mobile-menu__links {
  display: flex;
  flex-direction: column;
  padding: 16px 24px 28px;
}

.mobile-menu__link {
  display: block;
  padding: 16px 4px;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  transition: color 0.25s var(--ease), padding-left 0.25s var(--ease);
}

.mobile-menu__link:hover {
  color: var(--accent);
  padding-left: 12px;
}

/* =========================================================
   BOTÕES
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease),
    border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  will-change: transform;
}

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

.btn--primary {
  background: var(--accent-grad);
  color: #ffffff;
  box-shadow: 0 8px 30px -8px var(--accent-glow);
}

.btn--primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 12px 40px -6px var(--accent-glow);
}

.btn--ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

.btn--ghost:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(112px, 28%);
  align-items: center;
  gap: clamp(20px, 4vw, 64px);
  padding-top: calc(var(--nav-h) + 40px);
  padding-bottom: 80px;
  position: relative;
}

.hero__content {
  min-width: 0;
}

.hero__photo {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  justify-self: end;
  border: 2px solid color-mix(in srgb, var(--accent) 45%, var(--border));
  box-shadow:
    0 0 0 8px rgba(96, 165, 250, 0.08),
    0 24px 48px -24px rgba(0, 0, 0, 0.7);
}

.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.35);
  animation: badgePulse 2.4s infinite;
}

@keyframes badgePulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.35); }
  70% { box-shadow: 0 0 0 10px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.hero__name {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 26px;
}

.hero__desc {
  max-width: 520px;
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 36px;
}

.hero__desc strong {
  color: var(--text);
  font-weight: 600;
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* =========================================================
   SEÇÕES GENÉRICAS
   ========================================================= */
.section {
  padding-block: 110px;
}

.section__head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 28px;
}

.section__index {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--accent);
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section__lead {
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 48px;
  font-size: 1.05rem;
}

/* =========================================================
   SOBRE
   ========================================================= */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.about__text p {
  color: var(--text-muted);
  font-size: 1.06rem;
  margin-bottom: 20px;
}

.about__text strong {
  color: var(--text);
  font-weight: 600;
}

.about__cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease),
    background-color 0.3s var(--ease);
}

.about-card {
  display: block;
}

.about-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: var(--surface-2);
}

.about-card__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.about-card__desc {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* =========================================================
   SKILLS
   ========================================================= */
.skills {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
}

.skill {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 26px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  cursor: default;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease),
    background-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.skill:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--accent) 50%, var(--border));
  background: var(--surface-2);
  box-shadow: 0 16px 40px -16px var(--accent-glow);
}

.skill__icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--text-muted);
  transition: color 0.3s var(--ease), transform 0.3s var(--ease);
}

.skill:hover .skill__icon {
  color: var(--accent);
  transform: scale(1.12);
}

.skill__icon svg {
  width: 100%;
  height: 100%;
}

.skill__name {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.3s var(--ease);
}

.skill:hover .skill__name {
  color: var(--text);
}

/* =========================================================
   PROJETOS — filtros
   ========================================================= */
.projects-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease),
    background-color 0.25s var(--ease);
}

.filter-btn:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.filter-btn.is-active {
  color: var(--text);
  background: var(--surface-2);
  border-color: var(--border-strong);
}

.filter-btn__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

/* =========================================================
   PROJETOS — cards
   ========================================================= */
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 24px;
}

.project-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  padding: 0;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
  will-change: transform;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.9);
}

.project-card__cover {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface-2);
}

.project-card__cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s var(--ease);
}

.project-card:hover .project-card__cover img {
  transform: scale(1.06);
}

/* Capa com logo (contain). Cor/gradiente vêm do projeto via style inline. */
.project-card__cover--contain {
  background-color: #1866fa;
}

.project-card__cover--contain img {
  object-fit: contain;
  padding: 0;
}

.project-card:hover .project-card__cover--contain img {
  transform: none;
}

/* Capa placeholder (quando não há imagem) */
.project-card__cover--placeholder {
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 30% 20%, rgba(59, 130, 246, 0.16), transparent 60%),
    var(--surface-2);
}

.project-card__cover--placeholder span {
  font-family: var(--font-mono);
  font-size: 2.4rem;
  color: var(--accent);
  opacity: 0.7;
}

.project-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px;
}

/* Etiqueta de categoria */
.category-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.category-label__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.project-card__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.project-card__desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 18px;
  flex: 1;
}

.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  padding: 5px 10px;
  border-radius: 100px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.project-card__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
}

.project-card__more svg {
  transition: transform 0.25s var(--ease);
}

.project-card:hover .project-card__more svg {
  transform: translateX(4px);
}

/* =========================================================
   MODAL DE PROJETO
   ========================================================= */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
}

.modal.is-open {
  visibility: visible;
  opacity: 1;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 7, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
}

.modal__dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 820px;
  max-height: 88vh;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, 0.9);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.35s var(--ease);
}

.modal.is-open .modal__dialog {
  transform: translateY(0) scale(1);
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgba(10, 10, 11, 0.6);
  color: var(--text);
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.modal__close:hover {
  background: var(--surface-2);
  border-color: var(--border-strong);
}

.modal__cover {
  height: 180px;
  flex-shrink: 0;
  background: radial-gradient(circle at 30% 20%, rgba(59, 130, 246, 0.22), transparent 60%),
    var(--surface-2);
  background-size: cover;
  background-position: center;
}

.modal__cover--contain {
  background-size: contain, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
}

.modal__head {
  padding: 20px 28px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.modal__title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.modal__category {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.modal__category .category-label__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.modal__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.modal__body {
  display: grid;
  grid-template-columns: 180px 1fr;
  flex: 1;
  min-height: 0;
}

.modal__nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 18px 12px;
  border-right: 1px solid var(--border);
  overflow-y: auto;
}

.modal__nav-btn {
  text-align: left;
  padding: 10px 14px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 0.92rem;
  cursor: pointer;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.modal__nav-btn:hover {
  color: var(--text);
  background: var(--surface);
}

.modal__nav-btn.is-active {
  color: var(--accent);
  background: var(--surface);
  font-weight: 600;
}

.modal__content {
  padding: 24px 28px;
  overflow-y: auto;
}

.modal__content h4 {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 22px 0 10px;
}

.modal__content h4:first-child {
  margin-top: 0;
}

.modal__content p {
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.7;
}

.modal__content ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal__content li {
  position: relative;
  padding-left: 18px;
  color: var(--text-muted);
}

.modal__content li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.modal__content img {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  margin-top: 8px;
}

/* Checklist (aba Testes) */
.modal__content ul.check-list li::before {
  content: "✓";
  background: none;
  width: auto;
  height: auto;
  top: 0;
  left: 0;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
}

/* Arquitetura (aba do modal) */
.arch-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.arch-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.arch-row:last-child {
  border-bottom: none;
}

.arch-label {
  font-size: 0.88rem;
  color: var(--text-dim);
}

.arch-value {
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 500;
}

.arch-structure {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.arch-structure__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.arch-path {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--accent-soft);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 10px;
  display: inline-block;
}

.arch-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

.arch-list li::before {
  width: 5px;
  height: 5px;
  top: 10px;
}

/* MER (aba Modelo Entidade-Relacionamento) */
.mer {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin: 6px 0 4px;
}

.mer-entity {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.mer-entity__name {
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mer-entity__fields {
  list-style: none;
  display: flex;
  flex-direction: column;
  padding: 8px 0;
}

.mer-entity__fields li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.mer-entity__fields li::before {
  content: none;
}

.mer-key {
  font-size: 0.62rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--accent-glow);
  color: var(--accent-soft);
  letter-spacing: 0.04em;
}

.mer-rel li {
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.modal__footer {
  display: flex;
  gap: 12px;
  padding: 16px 28px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.modal__footer .btn {
  padding: 11px 18px;
  font-size: 0.9rem;
}

/* =========================================================
   CONTATO
   ========================================================= */
.contact {
  text-align: center;
}

.contact__lead {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.5vw, 2.1rem);
  font-weight: 600;
  margin-bottom: 48px;
  letter-spacing: -0.02em;
}

.contact__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.contact-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 132px;
  height: 132px;
  padding: 16px 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease),
    background-color 0.3s var(--ease);
}

.contact-link:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  background: var(--surface-2);
}

.contact-link__icon {
  color: var(--text-muted);
  transition: color 0.3s var(--ease);
}

.contact-link__icon svg {
  width: 28px;
  height: 28px;
}

.contact-link:hover .contact-link__icon {
  color: var(--accent);
}

.contact-link__label {
  font-weight: 600;
  font-size: 0.92rem;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  border-top: 1px solid var(--border);
  padding-block: 36px;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer__logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
}

.footer__text {
  color: var(--text-dim);
  font-size: 0.88rem;
}

/* =========================================================
   ANIMAÇÕES — estados iniciais (controlados pelo GSAP)
   Se o JS/GSAP falhar, o conteúdo permanece visível.
   ========================================================= */
.js-anim [data-hero-anim],
.js-anim [data-reveal],
.js-anim [data-stagger-item] {
  opacity: 0;
}

/* =========================================================
   RESPONSIVIDADE
   ========================================================= */
@media (max-width: 900px) {
  .hero {
    min-height: auto;
    padding-top: calc(var(--nav-h) + 56px);
  }

  .hero__photo {
    box-shadow:
      0 0 0 5px rgba(96, 165, 250, 0.08),
      0 16px 32px -16px rgba(0, 0, 0, 0.7);
  }

  .about {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .nav__links {
    display: none;
  }

  .nav__toggle {
    display: flex;
  }
}

@media (max-width: 600px) {
  .section {
    padding-block: 80px;
  }

  .project-card__actions {
    flex-direction: column;
  }

  .skills {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  }

  .modal {
    padding: 0;
  }

  .modal__dialog {
    max-width: 100%;
    max-height: 100vh;
    height: 100vh;
    border-radius: 0;
    border: none;
  }

  .modal__body {
    grid-template-columns: 1fr;
  }

  .modal__nav {
    flex-direction: row;
    overflow-x: auto;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 12px;
  }

  .modal__nav-btn {
    white-space: nowrap;
  }

  .modal__footer {
    flex-direction: column;
  }

  .arch-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* Acessibilidade: respeitar redução de movimento */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .js-anim [data-hero-anim],
  .js-anim [data-reveal],
  .js-anim [data-stagger-item] {
    opacity: 1 !important;
  }
}

/* ---------- Cursor customizado (GSAP) ---------- */
.cursor__dot,
.cursor__ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10000;
  pointer-events: none;
  border-radius: 50%;
  opacity: 0;
  visibility: hidden;
  will-change: transform;
}

body.has-custom-cursor .cursor__dot,
body.has-custom-cursor .cursor__ring {
  opacity: 1;
  visibility: visible;
}

body.has-custom-cursor,
body.has-custom-cursor * {
  cursor: none !important;
}

.cursor__dot {
  width: 8px;
  height: 8px;
  background: var(--accent-soft);
  box-shadow: 0 0 14px var(--accent-glow);
}

.cursor__ring {
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  z-index: 9999;
  transition: width 0.2s var(--ease), height 0.2s var(--ease);
}

body.has-custom-cursor.is-cursor-hover .cursor__dot {
  opacity: 0 !important;
}

body.has-custom-cursor.is-cursor-hover .cursor__ring {
  width: 52px;
  height: 52px;
  border-color: var(--accent-soft);
  background: color-mix(in srgb, var(--accent) 18%, transparent);
}

body.has-custom-cursor.is-cursor-press .cursor__ring {
  width: 28px;
  height: 28px;
}
