/* ─────────────────────────────────────────────────────
   GUSTAVO DE CAMPOS — Portfolio
   Design: Clean, humanized, inspired by tamalsen.dev
   ───────────────────────────────────────────────────── */

/* ─── TOKENS ──────────────────────────────────────── */
/* ── DARK (padrão) ── */
:root,
[data-theme="dark"] {
  --bg: #080b10;
  --bg-2: #10151c;
  --bg-3: #181e28;
  --ink: #e6edf3;
  --ink-2: #8b949e;
  --ink-3: #525a63;
  --border: #1f2632;
  --accent: #e6edf3;
  --accent-em: #14B8A6;
  --accent-rgb: 20, 184, 166;
  --warm: #5EEAD4;

  --hero-bg: #0d1117;
  --hero-ink: #e6edf3;
  --hero-ink-2: #8b949e;
  --hero-ink-3: #525a63;
  --hero-border: #21262d;

  /* Componentes com cores fixas → agora variáveis */
  --navbar-bg: rgba(8, 11, 16, 0.94);
  --ticker-bg: #07090e;
  --stats-bg: rgba(13, 17, 23, 0.7);
  --hero-strong: #ffffff;
  --hero-tag-bg: rgba(255, 255, 255, 0.04);
  --hero-ghost-hover: rgba(255, 255, 255, 0.05);
  --glow-1: rgba(94, 234, 212, 0.12);
  --glow-2: rgba(20, 184, 166, 0.08);

  --font-sans: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --font-serif: 'Fraunces', Georgia, serif;
  --radius: 8px;
  --section-pad: 9rem;
  --transition: 0.35s cubic-bezier(0.23, 1, 0.32, 1);
}

/* ── LIGHT ── */
[data-theme="light"] {
  --bg: #f5f7fa;
  --bg-2: #eaecf1;
  --bg-3: #dde1e8;
  --ink: #0d1117;
  --ink-2: #424a53;
  --ink-3: #6e7781;
  --border: #cfd4db;
  --accent: #0d1117;
  --accent-em: #0F766E;
  --accent-rgb: 15, 118, 110;
  --warm: #0D514D;

  --hero-bg: #f5f7fa;
  --hero-ink: #0d1117;
  --hero-ink-2: #424a53;
  --hero-ink-3: #6e7781;
  --hero-border: #cfd4db;

  --navbar-bg: rgba(245, 247, 250, 0.94);
  --ticker-bg: #e4e8ee;
  --stats-bg: rgba(245, 247, 250, 0.85);
  --hero-strong: #0d1117;
  --hero-tag-bg: rgba(0, 0, 0, 0.04);
  --hero-ghost-hover: rgba(0, 0, 0, 0.05);
  --glow-1: rgba(13, 81, 77, 0.15);
  --glow-2: rgba(15, 118, 110, 0.10);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ─── UTILITIES ───────────────────────────────────── */
.mono {
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.text-muted {
  color: var(--ink-3);
}

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



/* ─── NAVBAR ──────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
  background: var(--navbar-bg);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), border-color var(--transition), padding var(--transition), box-shadow var(--transition);
  animation: navbar-enter 0.5s ease both;
}

@keyframes navbar-enter {
  from {
    opacity: 0;
    transform: translateY(-100%);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Estado scrolled: apenas refinamento visual (já visível por padrão) */
#navbar.scrolled {
  padding: 0.85rem 0;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem 0 1rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-logo {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 0;
  white-space: nowrap;
  transition: opacity var(--transition);
}

.nav-logo:hover {
  opacity: 0.75;
}

.logo-surname {
  font-weight: 800;
  letter-spacing: -0.03em;
}

.logo-cursor {
  color: var(--accent-em);
  font-weight: 400;
  margin-left: 1px;
  animation: blink-cursor 1.1s step-end infinite;
}

@keyframes blink-cursor {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.nav-links-wrap {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-left: auto;
}

.nav-link {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-3);
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: color var(--transition);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-em);
  transition: width var(--transition);
}

.nav-link:hover {
  color: var(--ink);
}

.nav-link:hover::after {
  width: 100%;
}

.btn-hire {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  padding: 0.5rem 1.1rem;
  border: 1.5px solid var(--ink);
  border-radius: 100px;
  color: var(--ink);
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-hire:hover {
  background: var(--ink);
  color: var(--bg);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: var(--transition);
}

/* ─── THEME TOGGLE ────────────────────────────────── */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  color: var(--ink-2);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.theme-toggle:hover {
  border-color: var(--accent-em);
  color: var(--accent-em);
  transform: rotate(15deg);
}

.theme-toggle svg {
  width: 16px;
  height: 16px;
  position: absolute;
  transition: opacity 0.3s ease, transform 0.4s ease;
}

/* Dark mode: mostra lua, oculta sol */
.theme-toggle .icon-moon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.theme-toggle .icon-sun {
  opacity: 0;
  transform: rotate(90deg) scale(0.6);
}

/* Light mode: mostra sol, oculta lua */
[data-theme="light"] .theme-toggle .icon-moon {
  opacity: 0;
  transform: rotate(-90deg) scale(0.6);
}

[data-theme="light"] .theme-toggle .icon-sun {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

/* ─── BUTTONS ─────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-sans);
  font-size: 0.87rem;
  font-weight: 600;
  padding: 0.85rem 2rem;
  background: var(--ink);
  color: var(--bg);
  border-radius: 100px;
  border: 1.5px solid var(--ink);
  transition: all var(--transition);
  cursor: pointer;
  letter-spacing: 0.01em;
}

.btn-primary:hover {
  background: var(--accent-em);
  border-color: var(--accent-em);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(var(--accent-rgb), 0.25);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-sans);
  font-size: 0.87rem;
  font-weight: 600;
  padding: 0.85rem 2rem;
  background: transparent;
  color: var(--ink);
  border-radius: 100px;
  border: 1.5px solid var(--border);
  transition: all var(--transition);
  cursor: pointer;
}

.btn-ghost:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

/* ─── SECTION SCAFFOLDING ─────────────────────────── */
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--section-pad) 2rem;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink-3);
  margin-bottom: 3.5rem;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.section-title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.section-title em {
  font-style: italic;
  color: var(--accent-em);
}

.section-desc {
  color: var(--ink-3);
  font-size: 1.05rem;
  line-height: 1.8;
  max-width: 460px;
}

/* ─── HERO ────────────────────────────────────────── */
#hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding: 0 2rem;
  overflow: hidden;
  background: var(--hero-bg);
  color: var(--hero-ink);
  transition: background var(--transition), color var(--transition);
}

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 40% 50% at 55% 40%, var(--glow-1) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 30% 60%, var(--glow-2) 0%, transparent 60%);
  pointer-events: none;
  transition: background var(--transition);
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  padding-top: 6rem;
}

/* Hero text overrides (light text on dark navy bg) */
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--hero-ink);
  padding: 0.5rem 1.2rem;
  display: flex;
  width: fit-content;
  border: 1px solid var(--hero-border);
  border-radius: 100px;
  margin-bottom: 2rem;
  background: var(--hero-tag-bg);
  backdrop-filter: blur(6px);
}

.status-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.25);
  animation: pulse-dot 2.5s ease-in-out infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.25);
  }

  50% {
    box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.1);
  }
}

.hero-title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(2.5rem, 8vw, 6.5rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--hero-ink);
  margin-bottom: 2rem;
  max-width: 15ch;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.hero-title strong {
  color: var(--hero-strong);
  font-weight: 500;
  text-shadow: 0 4px 20px rgba(125, 125, 125, 0.15);
}

.hero-name {
  font-style: italic;
  color: var(--accent-em);
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--hero-ink-2);
  line-height: 1.75;
  max-width: 480px;
  margin-bottom: 2.5rem;
}

.hero-sub em {
  color: var(--hero-ink);
  font-style: normal;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

/* Ghost button variant for dark hero bg */
#hero .btn-ghost {
  border-color: var(--hero-border);
  color: var(--hero-ink);
}

#hero .btn-ghost:hover {
  border-color: var(--hero-ink-2);
  background: var(--hero-ghost-hover);
}

.hero-scroll-hint {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--hero-ink-3);
  letter-spacing: 0.1em;
}

.scroll-line {
  width: 60px;
  height: 1px;
  background: var(--border);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--accent-em);
  animation: slide-line 2s ease-in-out infinite;
}

@keyframes slide-line {
  0% {
    left: -100%;
  }

  50% {
    left: 0%;
  }

  100% {
    left: 100%;
  }
}

.hero-stats {
  position: absolute;
  right: max(2rem, calc((100vw - 1100px)/2));
  bottom: 3rem;
  display: flex;
  align-items: center;
  gap: 2.5rem;
  background: var(--stats-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--hero-border);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  transition: background var(--transition), border-color var(--transition);
}

.stat-n {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 300;
  line-height: 1;
  color: var(--hero-ink);
  letter-spacing: -0.03em;
}

.stat-n span {
  color: var(--accent-em);
  font-size: 1.2rem;
}

.stat-l {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--hero-ink-3);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 0.25rem;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--hero-border);
}

/* ─── TICKER / MENU ESTEIRA ──────────────────────── */
/* Quando dentro do hero: ancora na base */
#hero .ticker-wrap {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  border-bottom: none;
}

.ticker-wrap {
  width: 100%;
  overflow: hidden;
  background: var(--ticker-bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0.9rem 0;
  position: relative;
  z-index: 10;
  transition: background var(--transition);
}

/* fade nas bordas */
.ticker-wrap::before,
.ticker-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 6rem;
  z-index: 2;
  pointer-events: none;
}

.ticker-wrap::before {
  left: 0;
  background: linear-gradient(to right, var(--ticker-bg), transparent);
}

.ticker-wrap::after {
  right: 0;
  background: linear-gradient(to left, var(--ticker-bg), transparent);
}

.ticker-track {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  animation: ticker-scroll 35s linear infinite;
  will-change: transform;
}

.ticker-item {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding: 0 1.25rem;
  transition: color 0.2s;
}

.ticker-item:hover {
  color: var(--accent-em);
}

.ticker-sep {
  color: var(--ink-3);
  font-size: 0.55rem;
  flex-shrink: 0;
  opacity: 0.5;
}

@keyframes ticker-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* Pausa ao hover */
.ticker-wrap:hover .ticker-track {
  animation-play-state: paused;
}

/* ─── SOBRE ───────────────────────────────────────── */
#sobre {
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.sobre-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  margin-bottom: 4rem;
}

.sobre-text h2 {
  margin-bottom: 1.75rem;
}

.sobre-text p {
  color: var(--ink-2);
  font-size: 1.05rem;
  line-height: 1.85;
  margin-bottom: 1rem;
}

.sobre-signature {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--ink-3);
  margin-top: 1.5rem;
}

.sobre-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-content: start;
}

.card-small {
  padding: 1.5rem;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.card-small:hover {
  border-color: var(--accent-em);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(var(--accent-rgb), 0.08);
}

.card-icon {
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
}

.card-label {
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.card-small p {
  font-size: 0.78rem;
  color: var(--ink-3);
  line-height: 1.6;
}

.skills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.skill-tag {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  padding: 0.45rem 1rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--ink-2);
  background: var(--bg);
  transition: all var(--transition);
}

.skill-tag:hover {
  border-color: var(--accent-em);
  color: var(--accent-em);
}

.skill-tag.active {
  background: var(--accent-em);
  border-color: var(--accent-em);
  color: #fff;
}

/* ─── EXPERIÊNCIA ─────────────────────────────────── */
#experiencia {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}

.exp-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 6rem;
  align-items: start;
}

/* Sticky left column */
.exp-left {
  position: sticky;
  top: 7rem;
}

.exp-big-title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(2.8rem, 5.5vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin-bottom: 1.5rem;
}

.exp-big-title em {
  font-style: italic;
  color: var(--accent-em);
}

.exp-context {
  font-size: 0.9rem;
  color: var(--ink-3);
  line-height: 1.75;
  max-width: 280px;
}

/* Right column: items */
.exp-right {
  display: flex;
  flex-direction: column;
}

.exp-item {
  padding: 2.25rem 0;
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
}

.exp-item:first-child {
  border-top: 1px solid var(--border);
}

.exp-item:hover {
  padding-left: 1rem;
  border-color: var(--accent-em);
}

.exp-item-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.35rem;
  flex-wrap: wrap;
}

.exp-role {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.2rem;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.exp-period {
  font-size: 0.72rem;
  color: var(--ink-3);
  letter-spacing: 0.05em;
  white-space: nowrap;
  padding-top: 0.2rem;
}

.exp-company {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-em);
  letter-spacing: 0.04em;
  margin-bottom: 0.85rem;
}

.exp-desc {
  font-size: 0.87rem;
  color: var(--ink-2);
  line-height: 1.8;
  max-width: 500px;
  margin-bottom: 1rem;
}

.exp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.exp-tags span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--ink-3);
  padding: 0.25rem 0.6rem;
  background: var(--bg-3);
  border-radius: 4px;
  border: 1px solid var(--border);
}

.exp-proj-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.exp-item--cta {
  border-bottom: none !important;
  padding-top: 1.5rem;
}

/* ── Categorias de projeto ──────────────────────────── */
.proj-category {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 2rem 0 0.5rem;
}

.proj-cat-label {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-em);
  opacity: 0.7;
  white-space: nowrap;
}

.proj-category::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}


/* ─── PROJETOS ────────────────────────────────────── */
#projetos {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}

.projects-header {
  display: flex;
  gap: 4rem;
  align-items: flex-end;
  margin-bottom: 4rem;
}

.projects-header .section-title {
  flex: 1;
}

.projects-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.project-item {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 2.5rem;
  align-items: center;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
  cursor: default;
}

.project-item:first-child {
  border-top: 1px solid var(--border);
}

.project-item:hover {
  background: var(--bg-2);
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  margin: 0 -1.5rem;
  border-radius: var(--radius);
  border-color: transparent;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.project-num {
  font-size: 0.72rem;
  color: var(--ink-3);
  letter-spacing: 0.05em;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.6rem;
  gap: 1rem;
}

.project-title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.wip-badge {
  font-size: 0.65rem;
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--warm);
  color: var(--warm);
  border-radius: 100px;
  font-style: normal;
}

.project-links {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.project-link {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-3);
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  transition: all var(--transition);
}

.project-link:hover {
  border-color: var(--accent-em);
  color: var(--accent-em);
}

.project-desc {
  font-size: 0.87rem;
  color: var(--ink-3);
  line-height: 1.75;
  margin-bottom: 1rem;
  max-width: 540px;
}

.project-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.project-tags span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--ink-3);
  padding: 0.25rem 0.6rem;
  background: var(--bg-3);
  border-radius: 4px;
}

.project-thumb {
  width: 90px;
  height: 90px;
  flex-shrink: 0;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  border: 1px solid var(--border);
  transition: transform var(--transition);
}

.project-item:hover .project-thumb {
  transform: rotate(-3deg) scale(1.05);
}

.thumb-1 {
  background: linear-gradient(135deg, #2d2b5e 0%, #1e1c4a 100%);
}

.thumb-2 {
  background: linear-gradient(135deg, #1a2e1a 0%, #0f2010 100%);
}

.thumb-3 {
  background: linear-gradient(135deg, #2e2010 0%, #1f1508 100%);
}

.projects-cta {
  margin-top: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ─── CONTATO ─────────────────────────────────────── */
#contato {
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
}

.contact-title {
  margin-bottom: 1.5rem;
}

.contact-left p {
  color: var(--ink-2);
  font-size: 1.05rem;
  line-height: 1.85;
  margin-bottom: 2rem;
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.channel-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
  background: var(--bg-2);
}

.channel-item:hover {
  border-color: var(--accent-em);
  transform: translateX(5px);
  background: var(--bg-3);
  box-shadow: 0 8px 20px rgba(20, 184, 166, 0.08);
}

.channel-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.channel-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--ink-3);
  margin-bottom: 0.1rem;
}

.channel-val {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink);
}

/* ─── FORM ────────────────────────────────────────── */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-field label {
  font-size: 0.72rem;
  color: var(--ink-3);
  letter-spacing: 0.05em;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--ink);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  resize: none;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--ink-3);
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--accent-em);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.1);
  background: var(--bg-2);
}

/* ─── FOOTER ──────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  background: var(--bg);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--ink-3);
}

.footer-socials {
  display: flex;
  gap: 1.5rem;
}

.footer-socials a {
  font-size: 0.82rem;
  color: var(--ink-3);
  transition: color var(--transition);
}

.footer-socials a:hover {
  color: var(--ink);
}

/* ─── ANIMATIONS (AOS override) ───────────────────── */
[data-aos] {
  transition-timing-function: cubic-bezier(0.23, 1, 0.32, 1) !important;
}

/* ─── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 900px) {
  :root {
    --section-pad: 6rem;
  }

  .hero-stats {
    position: static;
    margin-top: 3rem;
    width: 100%;
    justify-content: flex-start;
  }

  .sobre-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .exp-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .exp-left {
    position: static;
  }

  .projects-header {
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
  }

  .project-item {
    grid-template-columns: 40px 1fr;
  }

  .project-item:hover {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    margin: 0 -0.75rem;
  }

  .project-thumb {
    display: none;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav-links-wrap {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 2rem;
  }

  .nav-links-wrap.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .btn-hire {
    display: none;
  }

  .btn-wa-nav {
    display: none;
  }

  .hero-title {
    font-size: clamp(2rem, 10vw, 3.5rem);
    line-height: 1.1;
  }

  .sobre-cards {
    grid-template-columns: 1fr;
  }

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

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-socials {
    justify-content: center;
  }
}

/* ─── WHATSAPP NAV BUTTON ─────────────────────────── */
.btn-wa-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  color: var(--ink-2);
  white-space: nowrap;
  transition: all var(--transition);
}

.btn-wa-nav svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.btn-wa-nav:hover {
  border-color: #25D366;
  color: #25D366;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
}

/* ─── FABs FLUTUANTES ─────────────────────────────── */
.fab-wrap {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 500;
  align-items: center;
}

.fab {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transition: all var(--transition);
  text-decoration: none;
}

.fab svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.fab:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

/* WhatsApp FAB */
.fab-wa {
  background: var(--bg-2);
  color: var(--ink-2);
  border: 1.5px solid var(--border);
}

.fab-wa:hover {
  background: #25D366;
  color: #fff;
  border-color: #25D366;
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.4);
}

/* Back to top FAB */
.fab-top {
  background: var(--accent-em);
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, box-shadow var(--transition), background var(--transition);
}

.fab-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.fab-top:hover {
  background: var(--warm);
}

/* Pulse sutil no WhatsApp FAB */
@keyframes wa-pulse {

  0%,
  100% {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2), 0 0 0 0 rgba(37, 211, 102, 0.35);
  }

  50% {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2), 0 0 0 8px rgba(37, 211, 102, 0);
  }
}

.fab-wa {
  animation: wa-pulse 3s ease-in-out infinite;
}

.fab-wa:hover {
  animation: none;
}