/* =========================================================
   PORTFÓLIO — Folha de estilos principal
   Sumário:
   01. Reset & variáveis
   02. Base & utilitários
   03. Fundo decorativo
   04. Cabeçalho & navegação
   05. Hero
   06. Seções (base)
   07. Sobre
   08. Habilidades
   09. Projetos
   10. Formação (timeline)
   11. Contato
   12. Rodapé
   13. Botões & componentes
   14. Animações
   15. Responsivo
   ========================================================= */

/* ================= 01. RESET & VARIÁVEIS ================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Cores de destaque */
  --accent: #6c5ce7;
  --accent-2: #00d9c0;
  --accent-3: #ff6b9d;

  /* Tipografia */
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-title: "Sora", "Inter", system-ui, sans-serif;

  /* Layout */
  --container: 1160px;
  --radius: 18px;
  --radius-sm: 12px;
  --header-h: 74px;

  /* Transições */
  --t: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast: 0.2s ease;
}

/* ---- Tema escuro (padrão) ---- */
html[data-theme="dark"] {
  --bg: #080a14;
  --bg-alt: #0d1020;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.075);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #e9ecf6;
  --text-soft: #a4abc4;
  --text-dim: #767e99;
  --shadow: 0 24px 60px -22px rgba(0, 0, 0, 0.85);
  --blob-op: 0.5;
  --grid-line: rgba(255, 255, 255, 0.028);
}

/* ---- Tema claro ---- */
html[data-theme="light"] {
  --bg: #f6f7fc;
  --bg-alt: #eceefa;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-2: #ffffff;
  --border: rgba(16, 20, 50, 0.1);
  --border-strong: rgba(16, 20, 50, 0.18);
  --text: #12162c;
  --text-soft: #4c5474;
  --text-dim: #6f7796;
  --shadow: 0 24px 55px -26px rgba(20, 25, 70, 0.35);
  --blob-op: 0.28;
  --grid-line: rgba(20, 25, 70, 0.04);
}

/* ================= 02. BASE & UTILITÁRIOS ================= */
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
  transition: background var(--t), color var(--t);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

code {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.88em;
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 2px 7px;
  border-radius: 7px;
}

::selection {
  background: var(--accent);
  color: #fff;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 22px;
}

.gradient-text {
  background: linear-gradient(120deg, var(--accent), var(--accent-2) 55%, var(--accent-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.accent {
  color: var(--accent);
}

/* ---- Ícones SVG (sprite interno, sem dependência externa) ---- */
.icon {
  width: 1.15em;
  height: 1.15em;
  display: inline-block;
  flex-shrink: 0;
  vertical-align: -0.15em;
  fill: currentColor;
}

.icon-xs { width: 15px; height: 15px; }
.icon-sm { width: 17px; height: 17px; }
.icon-md { width: 22px; height: 22px; }
.icon-lg { width: 30px; height: 30px; }
.icon-xl { width: 3.1rem; height: 3.1rem; }

/* Barra de progresso de scroll */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
  z-index: 999;
  transition: width 0.1s linear;
}

/* ================= 03. FUNDO DECORATIVO ================= */
.bg-decor {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: var(--blob-op);
  transition: opacity var(--t);
}

.blob-1 {
  width: 520px;
  height: 520px;
  background: #6c5ce7;
  top: -160px;
  left: -140px;
  animation: floatBlob 18s ease-in-out infinite;
}

.blob-2 {
  width: 460px;
  height: 460px;
  background: #00d9c0;
  top: 22%;
  right: -170px;
  animation: floatBlob 22s ease-in-out infinite reverse;
}

.blob-3 {
  width: 400px;
  height: 400px;
  background: #ff6b9d;
  bottom: -140px;
  left: 32%;
  animation: floatBlob 26s ease-in-out infinite;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 100%);
}

@keyframes floatBlob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(60px, -40px) scale(1.12); }
  66% { transform: translate(-45px, 45px) scale(0.94); }
}

/* ================= 04. CABEÇALHO & NAVEGAÇÃO ================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: background var(--t), border-color var(--t), backdrop-filter var(--t);
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom-color: var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--accent), #8f7ff7);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  box-shadow: 0 8px 20px -8px var(--accent);
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  position: relative;
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-soft);
  transition: color var(--t-fast), background var(--t-fast);
}

.nav-link:hover {
  color: var(--text);
  background: var(--surface);
}

.nav-link.active {
  color: var(--text);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-soft);
  transition: var(--t-fast);
}

.icon-btn:hover {
  color: var(--text);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

/* Alternância de ícones do tema */
.ico-moon { display: none; }
html[data-theme="light"] .ico-sun { display: none; }
html[data-theme="light"] .ico-moon { display: block; }

/* Hambúrguer */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 0 10px;
}

.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: var(--text);
  transition: var(--t);
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ================= 05. HERO ================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 60px) 0 90px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 60px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px;
  border-radius: 100px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-soft);
  margin-bottom: 26px;
}

.badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22d37f;
  box-shadow: 0 0 0 0 rgba(34, 211, 127, 0.7);
  animation: pulse 2.2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 211, 127, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(34, 211, 127, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 211, 127, 0); }
}

.hero-title {
  font-family: var(--font-title);
  font-size: clamp(2.2rem, 5.4vw, 3.9rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin-bottom: 14px;
}

.hero-role {
  font-family: var(--font-title);
  font-size: clamp(1.05rem, 2.4vw, 1.5rem);
  font-weight: 600;
  color: var(--accent-2);
  min-height: 1.6em;
  margin-bottom: 20px;
}

.cursor {
  display: inline-block;
  color: var(--accent);
  animation: blink 1s step-end infinite;
  font-weight: 300;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-desc {
  max-width: 560px;
  color: var(--text-soft);
  font-size: 1.02rem;
  margin-bottom: 34px;
}

.hero-desc strong {
  color: var(--text);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 38px;
}

.socials {
  display: flex;
  gap: 12px;
}

.socials a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-soft);
  transition: var(--t);
}

.socials a:hover {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 14px 28px -12px var(--accent);
}

/* ---- Foto de perfil ---- */
.hero-photo {
  position: relative;
  display: flex;
  justify-content: center;
}

.photo-wrap {
  position: relative;
  width: min(360px, 78vw);
}

.photo-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
  animation: floatCard 7s ease-in-out infinite;
}

.photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), filter var(--t);
  position: relative;
  z-index: 2;
}

.photo-frame:hover .photo {
  transform: scale(1.045);
}

/* Caso a foto não seja encontrada, este avatar aparece */
.photo-fallback {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  font-family: var(--font-title);
  font-size: 4.5rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(140deg, var(--accent), var(--accent-3));
  z-index: 1;
  letter-spacing: -0.04em;
}

.photo-frame.no-photo .photo { display: none; }
.photo-frame.no-photo .photo-fallback { display: grid; }

.photo-glow {
  position: absolute;
  inset: -35%;
  background: conic-gradient(from 200deg, var(--accent), var(--accent-2), var(--accent-3), var(--accent));
  filter: blur(48px);
  opacity: 0.55;
  z-index: 0;
  animation: spin 14s linear infinite;
}

.photo-ring {
  position: absolute;
  inset: 0;
  border-radius: 28px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14),
    inset 0 -90px 90px -50px rgba(0, 0, 0, 0.7);
  z-index: 3;
  pointer-events: none;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

/* Chips flutuantes ao redor da foto */
.floating-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  border-radius: 100px;
  background: color-mix(in srgb, var(--bg-alt) 88%, transparent);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(10px);
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: var(--shadow);
  z-index: 4;
  animation: floatCard 5.5s ease-in-out infinite;
}

.floating-chip .icon {
  color: var(--accent);
}

.chip-1 { top: 8%; left: -18px; animation-delay: 0.4s; }
.chip-2 { top: 46%; right: -26px; animation-delay: 1.1s; }
.chip-3 { bottom: 9%; left: -10px; animation-delay: 1.8s; }

.scroll-hint {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mouse {
  width: 22px;
  height: 34px;
  border: 2px solid var(--text-dim);
  border-radius: 12px;
  position: relative;
}

.mouse::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 7px;
  border-radius: 3px;
  background: var(--text-dim);
  animation: scrollDot 1.8s infinite;
}

@keyframes scrollDot {
  0% { opacity: 0; transform: translate(-50%, 0); }
  40% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, 12px); }
}

/* ================= 06. SEÇÕES (BASE) ================= */
.section {
  padding: 100px 0;
  position: relative;
}

.section-alt {
  background: color-mix(in srgb, var(--bg-alt) 70%, transparent);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  max-width: 680px;
  margin-bottom: 58px;
}

.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-title);
  font-size: clamp(1.75rem, 3.8vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 14px;
}

.section-sub {
  color: var(--text-soft);
  font-size: 1rem;
}

/* ================= 07. SOBRE ================= */
.about-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 54px;
  align-items: start;
}

.about-text p {
  color: var(--text-soft);
  margin-bottom: 17px;
}

.about-text strong {
  color: var(--text);
  font-weight: 600;
}

.about-info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 32px;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 15px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.9rem;
  font-weight: 500;
}

.info-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.76rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  position: sticky;
  top: calc(var(--header-h) + 22px);
}

.stat-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: var(--t);
}

.stat-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}

.stat-number {
  font-family: var(--font-title);
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.4;
}

/* ================= 08. HABILIDADES ================= */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}

.skill-card {
  padding: 30px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(10px);
  transition: var(--t);
}

.skill-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}

.skill-card-head {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.skill-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--accent);
}

.skill-card-head h3 {
  font-family: var(--font-title);
  font-size: 1.03rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.skill-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.skill-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--t-fast);
}

.skill-list li:hover {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  transform: translateX(5px);
}

.skill-list .icon {
  color: var(--accent);
}

/* Nuvem de tecnologias */
.tech-cloud-title {
  margin-top: 46px;
  margin-bottom: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.tech-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.tech-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--text-soft);
  transition: var(--t-fast);
}

.tech-chip .icon {
  color: var(--text-dim);
  transition: color var(--t-fast);
}

.tech-chip:hover .icon {
  color: var(--accent);
}

.tech-chip:hover {
  color: var(--text);
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  transform: translateY(-3px);
}

/* ================= 09. PROJETOS ================= */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 34px;
}

.filter-btn {
  padding: 9px 18px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-soft);
  transition: var(--t-fast);
}

.filter-btn:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px -12px var(--accent);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 22px;
}

.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  transition: transform var(--t), border-color var(--t), box-shadow var(--t), opacity 0.35s, scale 0.35s;
  animation: cardIn 0.45s ease backwards;
}

.project-card:hover {
  transform: translateY(-7px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}

.project-card.hide {
  display: none;
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.project-thumb {
  position: relative;
  height: 170px;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, color-mix(in srgb, var(--accent) 30%, var(--bg-alt)), color-mix(in srgb, var(--accent-2) 22%, var(--bg-alt)));
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--border);
}

.project-thumb .icon {
  position: relative;
  z-index: 1;
  color: var(--accent);
  opacity: 0.92;
  transition: transform var(--t), opacity var(--t);
}

.project-card:hover .project-thumb .icon {
  transform: scale(1.12);
  opacity: 1;
}

.project-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, color-mix(in srgb, var(--bg) 65%, transparent));
}

.project-badge {
  position: absolute;
  top: 13px;
  left: 13px;
  z-index: 2;
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  background: color-mix(in srgb, var(--accent) 85%, #000);
  backdrop-filter: blur(6px);
}

.project-destaque {
  position: absolute;
  top: 13px;
  right: 13px;
  z-index: 2;
  padding: 5px 11px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #04121a;
  background: linear-gradient(120deg, var(--accent-2), #7ff5e3);
}

.project-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 22px 24px;
}

.project-body h3 {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 9px;
}

.project-body p {
  color: var(--text-soft);
  font-size: 0.92rem;
  margin-bottom: 16px;
  flex: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 20px;
}

.project-tags span {
  padding: 4px 11px;
  border-radius: 8px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--accent-2);
  background: color-mix(in srgb, var(--accent-2) 13%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent-2) 25%, transparent);
}

.project-links {
  display: flex;
  gap: 10px;
}

.project-links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  border-radius: 10px;
  font-size: 0.83rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  transition: var(--t-fast);
}

.project-links a:hover {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  transform: translateY(-2px);
}

.project-links a.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.project-links a.primary:hover {
  background: color-mix(in srgb, var(--accent) 82%, #000);
}

.projects-empty {
  grid-column: 1 / -1;
  padding: 60px 20px;
  text-align: center;
  color: var(--text-dim);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
}

/* ============ SEÇÃO CURRÍCULO ============ */
.cv-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.cv-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.cv-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cv-card {
  padding: 26px 26px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(10px);
  transition: var(--t);
}

.cv-card:hover {
  border-color: var(--border-strong);
}

.cv-title {
  font-family: var(--font-title);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.cv-card p {
  color: var(--text-soft);
  font-size: 0.94rem;
}

.cv-group + .cv-group {
  margin-top: 20px;
}

.cv-group h4 {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 10px;
}

.cv-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.cv-tags li {
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-2);
  background: color-mix(in srgb, var(--accent-2) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent-2) 24%, transparent);
}

.cv-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.cv-list li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.cv-list .icon {
  color: var(--accent);
  margin-top: 3px;
}

.cv-side-title {
  font-family: var(--font-title);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text);
}

/* ================= 10. FORMAÇÃO ================= */
.timeline {
  position: relative;
  max-width: 860px;
  padding-left: 34px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2), transparent);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  padding-bottom: 34px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -34px;
  top: 8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}

.timeline-content {
  padding: 26px 26px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: var(--t);
}

.timeline-content:hover {
  border-color: var(--border-strong);
  transform: translateX(5px);
}

.timeline-date {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.timeline-content h3 {
  font-family: var(--font-title);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.timeline-content h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.timeline-content p {
  color: var(--text-soft);
  font-size: 0.94rem;
  margin-bottom: 14px;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.timeline-tags li {
  padding: 4px 11px;
  border-radius: 8px;
  font-size: 0.74rem;
  font-weight: 600;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-soft);
}

/* ================= 11. CONTATO ================= */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 34px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: var(--t);
}

.contact-card:hover {
  transform: translateX(6px);
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 9%, var(--surface));
}

.contact-ico {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
}

.contact-card strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
}

.contact-card small {
  font-size: 0.82rem;
  color: var(--text-dim);
}

.contact-form {
  padding: 32px 30px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(10px);
}

/* Campo armadilha antispam (invisível para humanos) */
.contact-form .honey {
  display: none;
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-size: 0.83rem;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--text-soft);
}

.field input,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-family: inherit;
  font-size: 0.94rem;
  resize: vertical;
  transition: var(--t-fast);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-dim);
}

.field.invalid input,
.field.invalid textarea {
  border-color: #ff5f6d;
  box-shadow: 0 0 0 4px rgba(255, 95, 109, 0.12);
}

.error-msg {
  display: block;
  min-height: 15px;
  margin-top: 5px;
  font-size: 0.76rem;
  color: #ff7b85;
}

.form-note {
  margin-top: 14px;
  font-size: 0.85rem;
  text-align: center;
  color: var(--accent-2);
  min-height: 20px;
}

/* ================= 12. RODAPÉ ================= */
.site-footer {
  padding: 54px 0 34px;
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-alt) 60%, transparent);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}

.footer-brand .logo-mark {
  display: inline-grid;
  vertical-align: middle;
  margin-right: 9px;
}

.footer-brand .logo-text {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.05rem;
  vertical-align: middle;
}

.footer-brand p {
  margin-top: 12px;
  font-size: 0.86rem;
  color: var(--text-dim);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.footer-nav a {
  padding: 7px 13px;
  border-radius: 9px;
  font-size: 0.86rem;
  color: var(--text-soft);
  transition: var(--t-fast);
}

.footer-nav a:hover {
  color: var(--text);
  background: var(--surface);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* Botão voltar ao topo */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 16px 32px -14px var(--accent);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: var(--t);
  z-index: 90;
}

.to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top:hover {
  transform: translateY(-4px);
}

/* ================= 13. BOTÕES ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: 13px;
  font-size: 0.92rem;
  font-weight: 600;
  font-family: var(--font-body);
  border: 1px solid transparent;
  transition: var(--t);
  white-space: nowrap;
}

.btn svg {
  transition: transform var(--t-fast);
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn-primary {
  background: linear-gradient(120deg, var(--accent), #8b7bf9);
  color: #fff;
  box-shadow: 0 16px 32px -14px var(--accent);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 40px -14px var(--accent);
}

.btn-outline {
  border-color: var(--border-strong);
  background: var(--surface);
  color: var(--text);
}

.btn-outline:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}

.btn-ghost {
  border-color: var(--border);
  background: transparent;
  color: var(--text-soft);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--accent);
}

/* Botão de site no ar (com indicador pulsante) */
.btn-live {
  border-color: color-mix(in srgb, var(--accent-2) 45%, transparent);
  background: color-mix(in srgb, var(--accent-2) 12%, transparent);
  color: var(--text);
}

.btn-live:hover {
  transform: translateY(-3px);
  border-color: var(--accent-2);
  box-shadow: 0 16px 32px -16px var(--accent-2);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22d37f;
  box-shadow: 0 0 0 0 rgba(34, 211, 127, 0.7);
  animation: pulse 2.2s infinite;
}

.btn-sm {
  padding: 9px 17px;
  font-size: 0.85rem;
  border-radius: 11px;
}

.btn-block {
  width: 100%;
}

/* ================= 14. ANIMAÇÕES ================= */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@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;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ================= 15. RESPONSIVO ================= */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 66px;
    text-align: center;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions,
  .socials {
    justify-content: center;
  }

  .hero-photo {
    order: -1;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-stats {
    position: static;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .cv-layout {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .scroll-hint {
    display: none;
  }
}

@media (max-width: 860px) {
  .hamburger {
    display: flex;
  }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 18px 22px 26px;
    background: color-mix(in srgb, var(--bg) 96%, transparent);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-130%);
    opacity: 0;
    visibility: hidden;
    transition: var(--t);
    box-shadow: var(--shadow);
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-link {
    padding: 14px 16px;
    font-size: 1rem;
    border-bottom: 1px solid var(--border);
    border-radius: 10px;
  }

  .nav-link.active::after {
    display: none;
  }

  .nav-link.active {
    background: color-mix(in srgb, var(--accent) 14%, transparent);
    color: var(--text);
  }

  .hide-mobile {
    display: none;
  }

  .section {
    padding: 76px 0;
  }

  .about-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  body {
    font-size: 15px;
  }

  .hero {
    padding-top: calc(var(--header-h) + 34px);
  }

  .photo-wrap {
    width: min(300px, 78vw);
  }

  .chip-1 { left: -6px; }
  .chip-2 { right: -6px; }
  .chip-3 { left: 2px; }

  .about-info {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 24px 20px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .timeline {
    padding-left: 26px;
  }

  .timeline-dot {
    left: -26px;
  }

  .to-top {
    right: 15px;
    bottom: 15px;
  }
}
