/* ============================================================
   João Victor Ralin — Portfólio
   Liquid Glass · tema claro/escuro
   ============================================================ */

/* ---------- Tokens — tema claro (padrão) ---------- */
:root {
  --color-bg: #f5f5f7;
  --color-surface: rgba(255, 255, 255, 0.55);
  --color-text: #1d1d1f;
  --color-text-secondary: #6e6e73;
  --color-accent: #0071e3;
  --color-accent-hover: #0077ed;
  --color-border: rgba(0, 0, 0, 0.08);

  /* Liquid glass — mais translúcido, mais blur, brilho interno */
  --glass-bg: rgba(255, 255, 255, 0.38);
  --glass-bg-strong: rgba(255, 255, 255, 0.55);
  --glass-blur: saturate(200%) blur(28px);
  --glass-border: rgba(255, 255, 255, 0.65);
  --glass-edge: rgba(0, 0, 0, 0.06);
  --glass-highlight: rgba(255, 255, 255, 0.85);
  --glass-sheen: linear-gradient(
          135deg,
          rgba(255, 255, 255, 0.5) 0%,
          rgba(255, 255, 255, 0.08) 35%,
          rgba(255, 255, 255, 0) 60%
  );

  --nav-bg: rgba(255, 255, 255, 0.32);
  --nav-bg-scrolled: rgba(255, 255, 255, 0.5);

  --chip-bg: rgba(255, 255, 255, 0.45);
  --chip-border: rgba(255, 255, 255, 0.7);

  --input-bg: rgba(255, 255, 255, 0.5);
  --input-border: rgba(0, 0, 0, 0.1);

  --tag-bg: rgba(0, 0, 0, 0.045);

  --bg-orb-1: rgba(0, 113, 227, 0.10);
  --bg-orb-2: rgba(125, 180, 255, 0.12);

  --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-lift: 0 12px 40px rgba(0, 0, 0, 0.10);

  --radius: 1.25rem;
  --radius-sm: 0.75rem;

  --font-display: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "Satoshi", "Inter", -apple-system, sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --container: 1080px;

  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);

  color-scheme: light;
}

/* ---------- Tokens — tema escuro ---------- */
[data-theme="dark"] {
  --color-bg: #0a0a0c;
  --color-surface: rgba(40, 40, 44, 0.5);
  --color-text: #f5f5f7;
  --color-text-secondary: #a1a1a6;
  --color-accent: #0a84ff;
  --color-accent-hover: #2e95ff;
  --color-border: rgba(255, 255, 255, 0.1);

  --glass-bg: rgba(28, 28, 32, 0.38);
  --glass-bg-strong: rgba(35, 35, 40, 0.55);
  --glass-border: rgba(255, 255, 255, 0.14);
  --glass-edge: rgba(255, 255, 255, 0.05);
  --glass-highlight: rgba(255, 255, 255, 0.12);
  --glass-sheen: linear-gradient(
          135deg,
          rgba(255, 255, 255, 0.09) 0%,
          rgba(255, 255, 255, 0.02) 35%,
          rgba(255, 255, 255, 0) 60%
  );

  --nav-bg: rgba(20, 20, 24, 0.35);
  --nav-bg-scrolled: rgba(24, 24, 28, 0.55);

  --chip-bg: rgba(255, 255, 255, 0.06);
  --chip-border: rgba(255, 255, 255, 0.12);

  --input-bg: rgba(255, 255, 255, 0.06);
  --input-border: rgba(255, 255, 255, 0.12);

  --tag-bg: rgba(255, 255, 255, 0.07);

  --bg-orb-1: rgba(10, 132, 255, 0.10);
  --bg-orb-2: rgba(94, 92, 230, 0.10);

  --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-lift: 0 12px 40px rgba(0, 0, 0, 0.55);

  color-scheme: dark;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color 0.45s ease, color 0.45s ease;
}

/* Orbes de fundo — dão profundidade pro glass refratar algo */
body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  transition: background 0.45s ease;
}
body::before {
  width: 55vw;
  height: 55vw;
  top: -18vw;
  right: -14vw;
  background: var(--bg-orb-1);
}
body::after {
  width: 48vw;
  height: 48vw;
  bottom: -16vw;
  left: -12vw;
  background: var(--bg-orb-2);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
strong { font-weight: 700; }

::selection { background: rgba(0, 113, 227, 0.22); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- Glass utility — liquid glass ---------- */
.glass {
  position: relative;
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow:
          var(--shadow-soft),
          inset 0 1px 1px var(--glass-highlight),
          inset 0 0 0 1px var(--glass-edge);
  transition: background-color 0.45s ease, border-color 0.45s ease, box-shadow 0.45s ease;
}

/* Brilho especular no topo do vidro */
.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--glass-sheen);
  pointer-events: none;
}
.glass > * { position: relative; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.6rem;
  border-radius: 980px;
  font-family: var(--font-display);
  font-size: 0.975rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  border: none;
  cursor: pointer;
  transition: transform 0.3s var(--ease-out),
  box-shadow 0.3s var(--ease-out),
  background-color 0.2s ease;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 2px 12px rgba(0, 113, 227, 0.28),
  inset 0 1px 1px rgba(255, 255, 255, 0.35);
}
.btn-primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 113, 227, 0.34),
  inset 0 1px 1px rgba(255, 255, 255, 0.35);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: var(--glass-bg);
  color: var(--color-text);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  box-shadow: inset 0 1px 1px var(--glass-highlight);
}
.btn-ghost:hover {
  background: var(--glass-bg-strong);
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft), inset 0 1px 1px var(--glass-highlight);
}

.btn-full { width: 100%; }

.btn:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100% - 1.5rem), var(--container));
  z-index: 100;
  border-radius: 980px;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(200%) blur(18px);
  backdrop-filter: saturate(200%) blur(18px);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 1px var(--glass-highlight);
  transition: background 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease,
  -webkit-backdrop-filter 0.4s ease, backdrop-filter 0.4s ease;
}

.navbar.scrolled {
  background: var(--nav-bg-scrolled);
  -webkit-backdrop-filter: saturate(210%) blur(28px);
  backdrop-filter: saturate(210%) blur(28px);
  box-shadow: var(--shadow-soft), inset 0 1px 1px var(--glass-highlight);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0.625rem 0.5rem 1.4rem;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  color: var(--color-text);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav-links {
  display: flex;
  gap: 0.25rem;
}
.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.85rem;
  font-size: 0.925rem;
  color: var(--color-text-secondary);
  border-radius: 980px;
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-links a:hover {
  color: var(--color-text);
  background: var(--tag-bg);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-nav { min-height: 44px; padding: 0.55rem 1.25rem; font-size: 0.9rem; }

/* ---------- Botão de tema (sol / lua) ---------- */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  box-shadow: inset 0 1px 1px var(--glass-highlight);
  color: var(--color-text);
  cursor: pointer;
  transition: transform 0.3s var(--ease-out), background 0.25s ease,
  border-color 0.25s ease;
}
.theme-toggle:hover {
  transform: translateY(-1px) scale(1.04);
  background: var(--glass-bg-strong);
}
.theme-toggle:active { transform: scale(0.94); }

.theme-toggle svg {
  width: 19px;
  height: 19px;
  position: absolute;
  transition: opacity 0.35s ease, transform 0.45s var(--ease-out);
}

/* claro: mostra a lua (clique = vai pro escuro) */
.theme-toggle .icon-sun  { opacity: 0; transform: rotate(-90deg) scale(0.5); }
.theme-toggle .icon-moon { opacity: 1; transform: rotate(0) scale(1); }

/* escuro: mostra o sol (clique = volta pro claro) */
[data-theme="dark"] .theme-toggle .icon-sun  { opacity: 1; transform: rotate(0) scale(1); }
[data-theme="dark"] .theme-toggle .icon-moon { opacity: 0; transform: rotate(90deg) scale(0.5); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 50%;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 7.5rem 1.25rem 3rem;
  overflow: hidden;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 720px;
}

/* --- Avatar liquid glass --- */
.hero-avatar {
  position: relative;
  width: 132px;
  height: 132px;
  margin-bottom: 2rem;
}

.avatar-ring {
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  background: conic-gradient(
          from 0deg,
          rgba(0, 113, 227, 0.55),
          rgba(255, 255, 255, 0.9),
          rgba(120, 180, 255, 0.45),
          rgba(255, 255, 255, 0.95),
          rgba(0, 113, 227, 0.55)
  );
  animation: ring-spin 9s linear infinite;
  filter: blur(0.5px);
}
[data-theme="dark"] .avatar-ring {
  background: conic-gradient(
          from 0deg,
          rgba(10, 132, 255, 0.7),
          rgba(255, 255, 255, 0.35),
          rgba(94, 92, 230, 0.55),
          rgba(255, 255, 255, 0.4),
          rgba(10, 132, 255, 0.7)
  );
}
@keyframes ring-spin { to { transform: rotate(360deg); } }

.avatar-glass {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 4px solid var(--glass-border);
  box-shadow: var(--shadow-soft), inset 0 1px 2px var(--glass-highlight);
}
.avatar-glass img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.avatar-fallback {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-text-secondary);
}
.hero-avatar.no-photo img { display: none; }
.hero-avatar.no-photo .avatar-fallback { display: flex; }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 8vw, 4.75rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--color-text);
}

.hero-subtitle {
  margin-top: 1.25rem;
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  color: var(--color-text-secondary);
  max-width: 34ch;
  letter-spacing: -0.01em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.875rem;
  margin-top: 2.25rem;
}

/* --- Marquee de tags --- */
.hero-marquee {
  position: relative;
  z-index: 1;
  width: min(560px, 92%);
  margin-top: 4rem;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  width: max-content;
  animation: marquee 22s linear infinite;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.marquee-track i {
  font-style: normal;
  color: rgba(0, 113, 227, 0.45);
  font-size: 0.7rem;
}
[data-theme="dark"] .marquee-track i { color: rgba(10, 132, 255, 0.6); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   SEÇÕES
   ============================================================ */
.section { padding: 6.5rem 0; }

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.825rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 5vw, 2.9rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 3rem;
}

/* ============================================================
   SOBRE
   ============================================================ */
.section-sobre { padding-top: 4rem; }

.sobre-card { padding: 2.25rem; }

.sobre-text {
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  line-height: 1.7;
  letter-spacing: -0.01em;
  max-width: 62ch;
}

.sobre-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  margin-top: 2.25rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.stat {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  flex-wrap: wrap;
}
.stat-number,
.stat-suffix {
  display: inline;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--color-text);
  line-height: 1.1;
}
.stat-number + .stat-suffix { margin-left: 1px; }
.stat > .stat-number { display: inline; }
.stat-label {
  width: 100%;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  margin-top: 0.2rem;
}

/* ============================================================
   SERVIÇOS — layout assimétrico
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.service-card {
  position: relative;
  padding: 2rem;
  transform-style: preserve-3d;
  will-change: transform;
  transition: box-shadow 0.4s var(--ease-out),
  background-color 0.45s ease, border-color 0.45s ease;
}
.service-card:hover {
  background: var(--glass-bg-strong);
  box-shadow: var(--shadow-lift), inset 0 1px 1px var(--glass-highlight);
}

.service-wide { grid-column: 1 / -1; }

.service-icon {
  width: 30px;
  height: 30px;
  color: var(--color-text);
  margin-bottom: 1.1rem;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
}

.service-card p {
  color: var(--color-text-secondary);
  font-size: 1rem;
  max-width: 56ch;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.4rem;
}
.service-tags li {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  background: var(--tag-bg);
  border: 1px solid var(--glass-edge);
  border-radius: 980px;
  padding: 0.3rem 0.75rem;
}

/* ============================================================
   SKILLS
   ============================================================ */
.skills-groups {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem 3rem;
}

.skill-group-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  letter-spacing: 0.02em;
  margin-bottom: 0.9rem;
}

.chips { display: flex; flex-wrap: wrap; gap: 0.55rem; }

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1.05rem;
  background: var(--chip-bg);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border: 1px solid var(--chip-border);
  border-radius: 980px;
  box-shadow: inset 0 1px 1px var(--glass-highlight);
  font-family: var(--font-display);
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--color-text);
  transition: border-color 0.25s ease, box-shadow 0.25s ease,
  transform 0.25s var(--ease-out), background-color 0.45s ease;
}
.chip:hover {
  border-color: rgba(0, 113, 227, 0.4);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.07), var(--shadow-soft),
  inset 0 1px 1px var(--glass-highlight);
  transform: translateY(-1px);
}
[data-theme="dark"] .chip:hover {
  border-color: rgba(10, 132, 255, 0.5);
  box-shadow: 0 0 0 4px rgba(10, 132, 255, 0.1), var(--shadow-soft),
  inset 0 1px 1px var(--glass-highlight);
}

/* ============================================================
   EXPERIÊNCIA
   ============================================================ */
.timeline {
  display: grid;
  gap: 1rem;
}

.timeline-item { padding: 1.75rem 2rem; }

.timeline-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.timeline-period {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-secondary);
}

.timeline-badge {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-accent);
  background: rgba(0, 113, 227, 0.08);
  border-radius: 980px;
  padding: 0.25rem 0.7rem;
}
[data-theme="dark"] .timeline-badge { background: rgba(10, 132, 255, 0.14); }

.timeline-item h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 0.35rem;
}

.timeline-item p {
  color: var(--color-text-secondary);
  font-size: 0.975rem;
  max-width: 64ch;
}

.formacao {
  margin-top: 2rem;
  color: var(--color-text-secondary);
  font-size: 0.975rem;
}
.formacao strong { color: var(--color-text); }

/* ============================================================
   CONTATO
   ============================================================ */
.contato-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.contato-form { padding: 2rem; display: grid; gap: 1.25rem; }

.field { display: grid; gap: 0.45rem; }

.field label {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
}

.field input,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.8rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  background: var(--input-bg);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-sm);
  box-shadow: inset 0 1px 1px var(--glass-highlight);
  transition: border-color 0.2s ease, box-shadow 0.2s ease,
  background-color 0.45s ease;
  resize: vertical;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--color-text-secondary); opacity: 0.7; }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.12),
  inset 0 1px 1px var(--glass-highlight);
}
[data-theme="dark"] .field input:focus,
[data-theme="dark"] .field textarea:focus {
  box-shadow: 0 0 0 4px rgba(10, 132, 255, 0.18),
  inset 0 1px 1px var(--glass-highlight);
}

.contato-links { display: grid; gap: 0.875rem; }

.contato-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  min-height: 44px;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out),
  background-color 0.45s ease, border-color 0.45s ease;
}
.contato-link:hover {
  transform: translateY(-2px);
  background: var(--glass-bg-strong);
  box-shadow: var(--shadow-lift), inset 0 1px 1px var(--glass-highlight);
}
.contato-link svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--color-text);
}
.contato-link div { display: grid; }
.contato-link-label {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.contato-link-value {
  font-size: 0.95rem;
  color: var(--color-text);
  word-break: break-all;
}

.contato-local {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.25rem;
  font-size: 0.925rem;
  color: var(--color-text-secondary);
}
.contato-local svg { width: 18px; height: 18px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: transparent;
  border-top: 1px solid var(--color-border);
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--color-text-secondary);
  font-size: 0.9rem;
}

.footer-social { display: flex; gap: 0.4rem; }
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--color-text-secondary);
  transition: color 0.2s ease, background 0.2s ease;
}
.footer-social a:hover {
  color: var(--color-text);
  background: var(--tag-bg);
}
.footer-social svg { width: 19px; height: 19px; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  --reveal-delay: 0ms;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--reveal-delay);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVO
   ============================================================ */
@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr; }
  .contato-grid { grid-template-columns: 1fr; }
  .skills-groups { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .section { padding: 4.5rem 0; }

  .nav-links {
    position: absolute;
    top: calc(100% + 0.6rem);
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 0.75rem;
    border-radius: var(--radius);
    background: var(--glass-bg-strong);
    -webkit-backdrop-filter: saturate(200%) blur(28px);
    backdrop-filter: saturate(200%) blur(28px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-lift), inset 0 1px 1px var(--glass-highlight);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
  }
  .nav-links.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-links a { width: 100%; padding: 0 1rem; }

  .nav-toggle { display: flex; }
  .btn-nav { display: none; }

  .hero { padding-top: 6.5rem; }
  .hero-avatar { width: 112px; height: 112px; }
  .hero-marquee { margin-top: 3rem; }

  .sobre-card { padding: 1.6rem; }
  .sobre-stats { gap: 1.75rem; }

  .service-card { padding: 1.6rem; }
  .timeline-item { padding: 1.4rem 1.5rem; }
  .contato-form { padding: 1.5rem; }
}

/* ============================================================
   MOVIMENTO REDUZIDO
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .avatar-ring { animation: none; }
  .marquee-track { animation: none; }

  #hero-canvas { display: none; }
}