/* ============================================================
   DEBORA LORAYNE — DESIGN SYSTEM
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=DM+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Paleta fixa do projeto. Rosa e roxo são cor de assinatura — usados
     em pontos específicos (link, destaque, botão principal), nunca como
     preenchimento geral de fundo ou borda de todo card. */
  --bg-base: #0b0a0f;
  --bg-elevated: #131019;
  --bg-card: #15121b;
  --bg-card-hover: #1a1622;
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text-primary: #f5f1f5;
  --text-secondary: #a89fac;
  --text-tertiary: #6f6875;
  --accent: #ff4fa3;
  --accent-soft: rgba(255, 79, 163, 0.1);
  --accent-strong: #ff78b8;
  --accent-line: rgba(255, 79, 163, 0.35);
  --on-accent: #1a0510;
  --purple: #8b5cf6;
  --wine: #6d214f;

  /* Tipografia: Space Grotesk pros títulos (tem caráter sem ser "gamer"),
     DM Sans no corpo (legibilidade), JetBrains Mono só em detalhes de código. */
  --font-display: 'Space Grotesk', 'DM Sans', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Espaçamento / raio — cantos discretos, não "bolha de app". */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --container: 1180px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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; }

a, button, input, textarea, select {
  cursor: pointer;
}

input, textarea, select { cursor: text; }

:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 2px;
  border-radius: 4px;
}

@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 !important; transform: none !important; }
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section { position: relative; padding: 120px 0; }

@media (max-width: 768px) {
  section { padding: 72px 0; }
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-strong);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--accent);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.08;
  color: var(--text-primary);
  max-width: 640px;
}

/* ---------- Kicker (label de seção) ----------
   Padrão consistente em todas as seções: número, linha, label.
   Um único sistema tipográfico em vez de títulos discretos e soltos. */
.kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.kicker-num {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--accent);
}

.kicker-line {
  width: 28px;
  height: 1px;
  background: var(--border-strong);
}

.kicker-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.kicker--center { justify-content: center; }
.kicker--center .kicker-line { width: 40px; }

/* ---------- Espinha de scroll ----------
   Único elemento conectivo fixo: preenche conforme o progresso da
   página e acende o nó da seção ativa. Roxo por ser o tom reservado
   para conexões/efeitos técnicos (o rosa fica para a assinatura).
   Só aparece em telas bem largas, para nunca disputar espaço com
   o conteúdo. */
.scroll-spine {
  display: none;
  position: fixed;
  left: 40px;
  top: 50%;
  transform: translateY(-50%);
  height: 300px;
  z-index: 50;
  pointer-events: none;
}

@media (min-width: 1400px) {
  .scroll-spine { display: block; }
}

.scroll-spine-track {
  position: relative;
  width: 1px;
  height: 100%;
  margin: 0 auto;
  background: var(--border-subtle);
  overflow: hidden;
}

.scroll-spine-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: var(--purple);
}

.scroll-spine-nodes {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.spine-node {
  width: 7px;
  height: 7px;
  margin-left: -3px;
  border-radius: 50%;
  background: var(--bg-base);
  border: 1px solid var(--border-strong);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.spine-node.is-active {
  background: var(--purple);
  border-color: var(--purple);
  transform: scale(1.4);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

.section-sub {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 460px;
  margin-top: 12px;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
}

.btn-primary:hover {
  background: var(--accent-strong);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
}

.btn-outline:hover {
  border-color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
  transform: translateY(-1px);
}

.btn-sm { padding: 10px 18px; font-size: 0.85rem; }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 22px 0;
  transition: padding 0.35s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  padding: 14px 0;
  background: rgba(10, 12, 13, 0.78);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.logo span { color: var(--accent-strong); }

.logo--image { display: inline-flex; align-items: center; }
.logo--image img { height: 30px; width: auto; display: block; }

.footer-brand .logo--image img { height: 34px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  transition: color 0.25s var(--ease);
}

.nav-links a:hover { color: var(--text-primary); }

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}

.nav-links a:hover::after { width: 100%; }

.nav-cta { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 26px;
  z-index: 1100;
}

.nav-toggle span {
  height: 2px;
  width: 100%;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-cta .btn-primary.desktop-only { display: none; }
  .nav-toggle { display: flex; }

  .mobile-menu {
    position: fixed;
    inset: 0;
    background: var(--bg-base);
    z-index: 1050;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
  }

  .mobile-menu.open { opacity: 1; transform: translateY(0); pointer-events: all; }

  .mobile-menu a { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; }
}

@media (min-width: 901px) {
  .mobile-menu { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  padding-bottom: 32px;
  position: relative;
  overflow: hidden;
}

#code-rain {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.5;
  mask-image: radial-gradient(ellipse 65% 55% at 50% 35%, black 20%, transparent 75%);
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 30%, transparent 80%);
  z-index: 0;
}

.hero .container {
  max-width: 1480px;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: 40px;
  align-items: center;
}


.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--border-subtle);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-bottom: 18px;
  opacity: 0;
  animation: fadeUp 0.7s var(--ease) 0.1s forwards;
}

.hero-tag .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  opacity: 0;
  animation: fadeUp 0.75s var(--ease) 0.22s forwards;
}

.hero-title .accent { color: var(--accent-strong); }

.hero-headline {
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  letter-spacing: -0.01em;
  max-width: 540px;
  font-weight: 600;
  background: linear-gradient(90deg, var(--accent-strong), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0;
  animation: fadeUp 0.75s var(--ease) 0.36s forwards;
}

.hero-text {
  margin-top: 16px;
  color: var(--text-secondary);
  max-width: 660px;
  font-size: 1.45rem;
  line-height: 1.55;
  opacity: 0;
  animation: fadeUp 0.75s var(--ease) 0.48s forwards;
}

.hero-inner .about-skills {
  margin-top: 20px;
  opacity: 0;
  animation: fadeUp 0.75s var(--ease) 0.56s forwards;
}

.hero-actions {
  margin-top: 26px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.75s var(--ease) 0.6s forwards;
}

.hero-actions .btn {
  padding: 18px 34px;
  font-size: 1.05rem;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Code panel visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 0.5s forwards;
}

.hero-photo-wrap {
  position: relative;
  display: inline-block;
}

.hero-visual .about-photo {
  width: auto;
  height: min(72vh, 560px);
  aspect-ratio: 4 / 5;
}

.code-window {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* Mini terminal flutuando perto da foto no hero: reforça a identidade
   "código" sem virar uma segunda coluna de conteúdo. */
.hero-code-float {
  display: none;
  position: absolute;
  bottom: -28px;
  right: -36px;
  width: 230px;
  z-index: 3;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.6);
}

@media (min-width: 1100px) {
  .hero-code-float { display: block; }
}

.hero-code-float .code-window-bar { padding: 10px 12px; }
.hero-code-float .code-window-bar .dot { width: 7px; height: 7px; }
.hero-code-float .code-window-bar span { font-size: 0.66rem; }

.hero-code-float .code-window-body {
  padding: 14px 16px 16px;
  font-size: 0.7rem;
  line-height: 1.6;
  min-height: 0;
}

.hero-code-float .code-window-body .ln { width: 16px; }

.code-window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(255,255,255,0.02);
}

.code-window-bar .dot { width: 10px; height: 10px; border-radius: 50%; }
.code-window-bar .dot.red { background: #ff5f56; }
.code-window-bar .dot.yellow { background: #ffbd2e; }
.code-window-bar .dot.green { background: #27c93f; }

.code-window-bar span {
  margin-left: 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-tertiary);
}

.code-window-body {
  padding: 26px 26px 30px;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  line-height: 1.75;
  min-height: 260px;
}

.code-window-body .ln { color: var(--text-tertiary); display: inline-block; width: 22px; }
.code-window-body .kw { color: var(--purple); }
.code-window-body .fn { color: #7c9fff; }
.code-window-body .str { color: #9be69b; }
.code-window-body .cm { color: var(--text-tertiary); }
.code-window-body .prop { color: var(--accent-strong); }

.typing-cursor {
  display: inline-block;
  width: 7px;
  height: 1.1em;
  background: var(--accent-strong);
  vertical-align: text-bottom;
  animation: blink 1s steps(1) infinite;
}

@keyframes blink { 50% { opacity: 0; } }

.scroll-cue {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  z-index: 2;
}

.scroll-cue .line {
  width: 1px;
  height: 30px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollLine 1.8s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- Reveal on scroll ----------
   A animação de entrada é feita via GSAP + ScrollTrigger (js/effects.js),
   que define opacity/transform inline. Aqui só garantimos o estado inicial
   (para não piscar conteúdo antes do JS rodar) e o fallback sem JS/GSAP. */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Foto (no Hero) ---------- */
.about-photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: linear-gradient(160deg, var(--bg-card), var(--bg-elevated));
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* A foto já tem fundo rosa (a própria cor de marca --accent), então a
   vinheta aqui é só um leve degradê para integrar as bordas ao card,
   sem esconder o rosa vibrante da imagem. */
.about-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(10,10,13,0.35) 0%, transparent 14%, transparent 82%, rgba(10,10,13,0.5) 100%),
    linear-gradient(to right, rgba(10,10,13,0.25) 0%, transparent 10%, transparent 90%, rgba(10,10,13,0.25) 100%);
  box-shadow: inset 0 0 40px 10px rgba(10,10,13,0.3);
}

.about-photo .initials {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 700;
  color: var(--text-primary);
  opacity: 0.9;
  position: relative;
  z-index: 1;
}

.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; position: relative; z-index: 0; }

.about-badge {
  position: absolute;
  bottom: 18px;
  left: 18px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(19, 23, 24, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  padding: 8px 14px;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-secondary);
}

.typing-cursor-sm {
  width: 5px;
  height: 0.9em;
}

.about-skills {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 0;
}

.about-skills li {
  font-size: 0.92rem;
  color: var(--text-secondary);
  padding: 0 16px;
  border-right: 1px solid var(--border-subtle);
}

.about-skills li:last-child { border-right: none; }

/* ---------- Serviços ----------
   Grid assimétrico conectado por um trilho (rail) com nós numerados:
   os serviços parecem parte de um mesmo sistema, não cards soltos. */
.services-rail {
  display: flex;
  justify-content: space-between;
  padding: 0 6px 20px;
  position: relative;
}

.services-rail::before {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  top: 3px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border-strong) 8%, var(--border-strong) 92%, transparent);
}

.rail-dot {
  position: relative;
  z-index: 1;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--bg-base);
  border: 1px solid var(--border-strong);
}

@media (max-width: 700px) { .services-rail { display: none; } }

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

@media (max-width: 860px) { .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .services-grid { grid-template-columns: minmax(0, 1fr); } }

.service-node {
  position: relative;
  grid-column: span 1;
  padding: 26px 24px;
  background: var(--bg-card);
  cursor: default;
  transition: background 0.25s var(--ease);
}

.service-node--wide { grid-column: span 2; }
@media (max-width: 860px) { .service-node--wide { grid-column: span 2; } }
@media (max-width: 560px) { .service-node--wide { grid-column: span 1; } }

.service-node-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  color: var(--on-accent);
  background: var(--accent);
  padding: 3px 9px;
  border-radius: 100px;
  font-weight: 600;
}

.service-node:hover,
.service-node:focus-visible {
  background: var(--bg-card-hover);
  outline: none;
}

/* Tick que sobe do card até o trilho (só visível em telas largas,
   onde o trilho também aparece). */
.service-node-tick {
  display: none;
}

@media (min-width: 701px) {
  .service-node-tick {
    display: block;
    position: absolute;
    top: -20px;
    left: 24px;
    width: 1px;
    height: 20px;
    background: var(--border-subtle);
    transition: background 0.25s var(--ease);
  }
  .service-node:hover .service-node-tick,
  .service-node:focus-visible .service-node-tick { background: var(--purple); }
}

.service-node-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-tertiary);
  margin-bottom: 14px;
  transition: color 0.25s var(--ease);
}

.service-node:hover .service-node-num,
.service-node:focus-visible .service-node-num { color: var(--purple); }

.service-node h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.service-node-desc {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.5;
}

.services-note {
  display: block;
  margin-top: 24px;
  padding: 18px 20px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.92rem;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.services-note:hover {
  border-color: var(--accent-line);
  color: var(--text-primary);
}

/* ---------- Projetos ---------- */
.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 20px;
  border-radius: 100px;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.3s var(--ease);
}

.filter-btn:hover { border-color: var(--accent-line); color: var(--text-primary); }

.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

.projects-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  position: relative;
}

@media (max-width: 860px) { .projects-grid { grid-template-columns: minmax(0, 1fr); } }

/* Projetos com mais informação (problema/solução/resultado) ganham
   destaque de largura total — nem todo projeto pesa igual. O tom vinho
   marca visualmente o destaque sem repetir o rosa de novo. */
.project-card--featured {
  grid-column: 1 / -1;
  border-color: rgba(109, 33, 79, 0.5);
  background: linear-gradient(135deg, rgba(109, 33, 79, 0.15), var(--bg-card) 45%);
}

@media (min-width: 860px) {
  .project-card--featured { display: grid; grid-template-columns: 340px minmax(0, 1fr); }
  .project-card--featured .mockup { padding: 24px; display: flex; align-items: center; }
  .project-card--featured .mockup-browser { width: 100%; }
}

.project-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  overflow: hidden;
  transition: border-color 0.3s var(--ease);
}

.project-card:hover {
  border-color: var(--border-strong);
}

.project-card.filtered-out {
  opacity: 0;
  transform: scale(0.96);
  pointer-events: none;
  position: absolute;
}

.mockup {
  padding: 20px 20px 0;
}

.mockup[data-gallery-index] { cursor: pointer; }
.mockup[data-gallery-index]:hover .mockup-browser { border-color: var(--accent-line); }

.mockup-browser {
  border: 1px solid var(--border-subtle);
  border-radius: 8px 8px 0 0;
  background: var(--bg-elevated);
  overflow: hidden;
}

.project-card--featured .mockup-browser { border-radius: 8px; }

.mockup-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.mockup-bar .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-tertiary); opacity: 0.5; }

.mockup-screen {
  height: 150px;
  background: repeating-linear-gradient(120deg, rgba(255,255,255,0.025) 0 2px, transparent 2px 40px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.mockup-screen svg { color: var(--text-tertiary); width: 40px; height: 40px; }

.mockup-screen--image {
  padding: 0;
  height: auto;
  aspect-ratio: 16 / 8;
  background: var(--bg-elevated);
}

.mockup-screen img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.project-body { padding: 22px; }

.project-category-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 10px;
}

.project-body h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.mockup-num {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-tertiary);
  letter-spacing: 0.04em;
}

.project-body > p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-bottom: 16px;
}

.project-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

@media (max-width: 700px) {
  .project-meta { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}

.project-meta-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 6px;
}

.project-meta p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.5;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 5px 10px;
  border-radius: 4px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.project-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Ícone do badge "disponível" na foto do hero */
.tech-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-tertiary);
  flex-shrink: 0;
}

/* ---------- Processo ---------- */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  position: relative;
}

@media (max-width: 860px) {
  .timeline { grid-template-columns: minmax(0, 1fr); gap: 36px; }
}

.timeline-step { position: relative; padding-top: 0; }

.timeline-number {
  font-family: var(--font-mono);
  color: var(--accent);
}

.timeline-sep {
  color: var(--border-strong);
  font-weight: 400;
}

.timeline-step h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.timeline-step p { color: var(--text-secondary); font-size: 0.92rem; max-width: 260px; }

/* ---------- CTA ---------- */
.cta-section {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.cta-inner {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.cta-inner .section-title { margin: 0 auto 18px; }

.cta-inner p { color: var(--text-secondary); font-size: 1.05rem; margin-bottom: 40px; }

.cta-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ---------- Contato ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  gap: 60px;
  align-items: center;
}

@media (max-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; } }

.form-group { margin-bottom: 20px; }

.form-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }

@media (max-width: 560px) { .form-row { grid-template-columns: minmax(0, 1fr); } }

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

input, select, textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

textarea { resize: vertical; min-height: 120px; }

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent-line);
  background: var(--bg-card-hover);
}

input.error, select.error, textarea.error { border-color: #ff5f70; }

.field-error {
  font-size: 0.78rem;
  color: #ff8a95;
  margin-top: 6px;
  min-height: 16px;
}

.form-status {
  margin-top: 18px;
  font-size: 0.9rem;
  color: var(--accent-strong);
  display: none;
}

.form-status.visible { display: block; }

.contact-info { display: flex; flex-direction: column; gap: 14px; }

.contact-info--center {
  align-items: center;
  max-width: 380px;
  margin: 0 auto;
  text-align: left;
}

.contact-info--center .contact-info-item { width: 100%; }
.contact-info--center .contact-info-item:hover { transform: translateY(-2px); }

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.contact-info-item:hover { border-color: var(--accent-line); transform: translateX(4px); }

.contact-socials {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}

.contact-info-item .icon-box {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-item .label { font-size: 0.78rem; color: var(--text-tertiary); }
.contact-info-item .value { font-size: 0.95rem; font-weight: 500; }

/* ---------- Footer ---------- */
.footer {
  padding: 60px 0 30px;
  border-top: 1px solid var(--border-subtle);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-brand .logo { margin-bottom: 12px; }
.footer-brand p { color: var(--text-tertiary); max-width: 320px; font-size: 0.92rem; }

.footer-links { display: flex; gap: 60px; flex-wrap: wrap; }

.footer-col h4 {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 16px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--text-secondary); font-size: 0.92rem; transition: color 0.25s var(--ease); }
.footer-col a:hover { color: var(--text-primary); }

.footer-socials { display: flex; gap: 12px; }

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.3s var(--ease);
}

.social-icon:hover { border-color: var(--accent-line); color: var(--accent-strong); transform: translateY(-3px); }

.footer-bottom {
  padding-top: 26px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--text-tertiary);
  font-size: 0.85rem;
}

/* ---------- WhatsApp flutuante ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  z-index: 900;
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.whatsapp-float:hover {
  transform: scale(1.06);
  box-shadow: 0 14px 30px -8px rgba(0, 0, 0, 0.55);
}

@media (max-width: 600px) {
  .whatsapp-float { width: 52px; height: 52px; bottom: 18px; right: 18px; }
}

/* ============================================================
   MODAL DE GALERIA — projetos internos sem link público
   ============================================================ */

.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.gallery-modal.open { display: flex; }

.gallery-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 6, 7, 0.8);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.gallery-panel {
  position: relative;
  width: 100%;
  max-width: 920px;
  max-height: 90vh;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.7);
}

.gallery-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 16px;
  padding-right: 40px;
}

.gallery-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  z-index: 1;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.gallery-close:hover { border-color: var(--accent-line); color: var(--text-primary); }

.gallery-frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
}

.gallery-frame img {
  width: 100%;
  max-height: 60vh;
  object-fit: contain;
  display: block;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: rgba(11, 10, 15, 0.7);
  color: var(--text-primary);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.gallery-nav:hover { border-color: var(--accent-line); background: rgba(11, 10, 15, 0.9); }
.gallery-prev { left: 14px; }
.gallery-next { right: 14px; }

.gallery-counter {
  margin-top: 14px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

@media (max-width: 600px) {
  .gallery-panel { padding: 18px; }
  .gallery-nav { width: 34px; height: 34px; }
}

/* ============================================================
   MODAL MULTI-STEP — "Falar no WhatsApp"
   ============================================================ */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(5, 6, 7, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.modal-overlay.is-open { display: flex; }

body.modal-open { overflow: hidden; }

.modal-panel {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.7);
}

@media (max-width: 600px) {
  .modal-panel { padding: 26px 20px; max-height: 94vh; }
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.modal-close:hover { border-color: var(--accent-line); color: var(--text-primary); }

.modal-head { padding-right: 30px; margin-bottom: 24px; }

.modal-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 440px;
}

.modal-progress-track {
  width: 100%;
  height: 4px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-bottom: 8px;
}

.modal-progress-fill {
  height: 100%;
  width: 25%;
  background: var(--accent);
  border-radius: 100px;
  transition: width 0.35s var(--ease);
}

.modal-progress-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-tertiary);
  letter-spacing: 0.06em;
  margin-bottom: 24px;
}

.modal-step-title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  font-weight: 600;
  margin-bottom: 18px;
  min-height: 40px;
}

.modal-step-body {
  min-height: 180px;
  opacity: 1;
  transition: opacity 0.14s ease;
}

.modal-step-body.is-swapping { opacity: 0; }

.modal-panel.modal-shake { animation: modalShake 0.32s ease; }

@keyframes modalShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

.modal-panel {
  animation: modalIn 0.3s var(--ease);
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 560px) {
  .modal-options { grid-template-columns: minmax(0, 1fr); }
}

.modal-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-secondary);
  font-size: 0.88rem;
  text-align: left;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), transform 0.2s var(--ease);
}

.modal-option:hover { border-color: var(--accent-line); color: var(--text-primary); transform: translateY(-1px); }

.modal-option-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid var(--text-tertiary);
  flex-shrink: 0;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.modal-option.is-selected {
  background: var(--accent-soft);
  border-color: var(--accent-strong);
  color: var(--text-primary);
}

.modal-option.is-selected .modal-option-dot {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  box-shadow: 0 0 8px var(--accent-strong);
}

.modal-helper {
  color: var(--text-tertiary);
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.modal-textarea {
  width: 100%;
  min-height: 140px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  resize: vertical;
  transition: border-color 0.25s var(--ease);
}

.modal-textarea:focus { outline: none; border-color: var(--accent-line); }

.modal-field-group { margin-bottom: 18px; }

.modal-field-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.modal-field-group .req { color: var(--accent-strong); }

.modal-field-group input {
  width: 100%;
  padding: 13px 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
}

.modal-field-group input:focus { outline: none; border-color: var(--accent-line); }

.modal-field-error {
  min-height: 18px;
  font-size: 0.78rem;
  color: #ff8a95;
  margin-top: 8px;
  grid-column: 1 / -1;
}

.modal-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}

.modal-actions .btn-primary { margin-left: auto; }

/* ============================================================
   RESPONSIVO — HERO
   Colocado no final do arquivo de propósito: como usa os mesmos
   seletores das regras base do hero (mesma especificidade), a ordem
   no arquivo decide quem vence. Ficando por último, essas regras
   sempre têm prioridade na tela certa, sem precisar de !important.
   ============================================================ */

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .hero-inner .hero-visual { justify-content: center; margin: 28px auto 0; }
  .hero-visual .about-photo { height: auto; width: min(320px, 100%); }
  /* Nesta largura o hero já não cabe em 100vh (texto + foto empilhados),
     então o indicador de scroll perde sentido e atrapalha visualmente. */
  .scroll-cue { display: none; }
}

@media (max-width: 600px) {
  .hero { padding-top: 84px; padding-bottom: 24px; }

  .hero-title { font-size: 2.1rem; line-height: 1.1; }

  .hero-headline { font-size: 1rem; margin-top: 10px; }

  .hero-text { font-size: 1rem; line-height: 1.5; margin-top: 12px; }

  .hero-inner .about-skills { margin-top: 16px; gap: 8px; }
  .about-skills li {
    font-size: 0.82rem;
    padding: 8px 14px;
    border-right: none;
    border: 1px solid var(--border-subtle);
    border-radius: 100px;
    background: var(--bg-card);
  }

  .hero-actions { margin-top: 20px; gap: 12px; }
  .hero-actions .btn { padding: 13px 22px; font-size: 0.9rem; }

  /* width fixo (não %) evita referência circular com .hero-photo-wrap,
     que precisa encolher para o tamanho do conteúdo (foto). */
  .hero-photo-wrap { width: max-content; max-width: 100%; }
  .hero-visual .about-photo { width: 240px; max-width: 80vw; }

  /* WhatsApp e e-mail centralizados no celular, não só o bloco como um
     todo, mas o ícone + texto dentro de cada card. */
  .contact-info-item {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 10px;
  }
}

