/* ── DESIGN TOKENS ────────────────────────────────────────────── */
/* Layout: full-width dark sections, constrained inner content    */
:root {
  --bg:          #020817;
  --bg2:         #06152B;
  --bg3:         #0A1F3D;
  --blue:        #007BFF;
  --cyan:        #00D9FF;
  --purple:      #713CFF;
  --fg:          #F4F8FF;
  --fg2:         #A8BCD5;
  --border:      rgba(0,217,255,.12);
  --glow-blue:   0 0 20px rgba(0,123,255,.35);
  --glow-cyan:   0 0 20px rgba(0,217,255,.4);

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  color-scheme: dark;
}

/* ── TEMA CLARO ── */
[data-theme="light"] {
  --bg:    #f0f4ff;
  --bg2:   #e4ebf8;
  --bg3:   #d8e3f5;
  --fg:    #0d1b2e;
  --fg2:   #3d5a80;
  --border: rgba(0,123,255,.18);
  --glow-blue: 0 0 20px rgba(0,123,255,.18);
  --glow-cyan: 0 0 20px rgba(0,123,255,.15);
  color-scheme: light;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
  padding-left: max(0px, env(safe-area-inset-left,0px));
  padding-right: max(0px, env(safe-area-inset-right,0px));
  transition: background .35s ease, color .35s ease;
}

/* Transição suave em todos os elementos ao trocar tema */
html.tema-transitando *,
html.tema-transitando *::before,
html.tema-transitando *::after {
  transition:
    background-color .35s ease,
    border-color .35s ease,
    color .35s ease,
    box-shadow .35s ease !important;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ── UTILS ── */
.container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: max(16px, env(safe-area-inset-left,0px)) max(16px, env(safe-area-inset-right,0px));
}

.gradient-text {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cyan);
}

/* ── HEADER ── */
header {
  position: fixed;
  inset: env(safe-area-inset-top,0px) 0 auto;
  z-index: 100;
  background: rgba(2,8,23,.7);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 14px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-mark {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  box-shadow: var(--glow-blue);
  flex-shrink: 0;
}

.logo-text { line-height: 1.2; }
.logo-name { font-family: var(--font-display); font-weight: 600; font-size: .95rem; color: var(--fg); }
.logo-role { font-size: .72rem; color: var(--fg2); }

nav { display: flex; align-items: center; gap: 4px; }
nav a {
  font-family: var(--font-display);
  font-size: .85rem;
  font-weight: 500;
  color: var(--fg2);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  transition: color .2s, background .2s;
}
nav a:hover { color: var(--fg); background: rgba(255,255,255,.06); }

.btn-cv {
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: 600;
  color: var(--fg);
  background: rgba(0,123,255,.15);
  border: 1px solid rgba(0,123,255,.4);
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  display: flex; align-items: center; gap: 8px;
  transition: background .2s, border-color .2s, box-shadow .2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-cv:hover {
  background: rgba(0,123,255,.28);
  border-color: rgba(0,123,255,.7);
  box-shadow: var(--glow-blue);
}

.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 6px; color: var(--fg); flex-direction: column; gap: 5px; }
.hamburger span { display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s, opacity .25s; }

@media (max-width: 860px) {
  nav, .btn-cv { display: none; }
  .hamburger { display: flex; }
  nav.open {
    display: flex; flex-direction: column; align-items: stretch;
    position: fixed; inset: 68px 0 auto;
    background: rgba(2,8,23,.97);
    border-bottom: 1px solid var(--border);
    padding: 12px 16px 20px;
    gap: 2px;
  }
  nav.open + .btn-cv { display: flex; margin: 0 16px 16px; justify-content: center; }
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-block: calc(env(safe-area-inset-top,0px) + 80px) 60px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 70% 50%, rgba(0,123,255,.07) 0%, transparent 70%),
    radial-gradient(ellipse 40% 50% at 10% 80%, rgba(113,60,255,.06) 0%, transparent 60%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-text { z-index: 1; }

.hero-greeting {
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 16px;
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.08;
  margin-bottom: 12px;
  text-wrap: balance;
}

.hero-role {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 500;
  color: var(--fg2);
  margin-bottom: 24px;
}

.hero-desc {
  font-size: .97rem;
  color: var(--fg2);
  max-width: 440px;
  margin-bottom: 36px;
  line-height: 1.7;
}

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

.btn-primary {
  font-family: var(--font-display);
  font-size: .9rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), #0056d6);
  padding: 12px 26px;
  border-radius: 8px;
  text-decoration: none;
  display: flex; align-items: center; gap: 8px;
  border: none; cursor: pointer;
  box-shadow: 0 4px 24px rgba(0,123,255,.35);
  transition: box-shadow .2s, transform .15s;
}
.btn-primary:hover { box-shadow: 0 6px 32px rgba(0,123,255,.55); transform: translateY(-1px); }

.btn-secondary {
  font-family: var(--font-display);
  font-size: .9rem;
  font-weight: 600;
  color: var(--fg);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.15);
  padding: 12px 26px;
  border-radius: 8px;
  text-decoration: none;
  display: flex; align-items: center; gap: 8px;
  transition: background .2s, border-color .2s;
}
.btn-secondary:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.3); }

/* ── HERO CANVAS AREA ── */
.hero-visual {
  position: relative;
  height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 600px;
}

#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
}

/* Floating code panels */
.code-panel {
  position: absolute;
  background: rgba(6,21,43,.85);
  border: 1px solid rgba(0,217,255,.2);
  border-radius: 10px;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: .7rem;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 32px rgba(0,0,0,.4), 0 0 0 1px rgba(0,217,255,.05);
  z-index: 2;
  animation: float linear infinite;
}

.code-panel .dot-row { display: flex; gap: 5px; margin-bottom: 8px; }
.code-panel .dot { width: 7px; height: 7px; border-radius: 50%; }
.dot-r { background: #FF5F56; }
.dot-y { background: #FFBD2E; }
.dot-g { background: #27C93F; }

.code-line { line-height: 1.6; white-space: nowrap; }
.c-kw  { color: #C792EA; }
.c-fn  { color: #82AAFF; }
.c-str { color: #C3E88D; }
.c-cy  { color: var(--cyan); }
.c-or  { color: #F78C6C; }
.c-cm  { color: #546E7A; }

.panel-1 {
  top: 12%; left: -4%;
  animation-duration: 7s;
  animation-delay: 0s;
}
.panel-2 {
  bottom: 14%; right: -6%;
  animation-duration: 9s;
  animation-delay: -3s;
}

@keyframes float {
  0%   { transform: translateY(0px) rotate(0deg); }
  25%  { transform: translateY(-8px) rotate(.4deg); }
  50%  { transform: translateY(-4px) rotate(0deg); }
  75%  { transform: translateY(-10px) rotate(-.3deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

/* Tech badges */
.tech-badge {
  position: absolute;
  background: rgba(6,21,43,.9);
  border: 1px solid rgba(0,217,255,.25);
  border-radius: 10px;
  padding: 8px 12px;
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 600;
  color: var(--fg);
  display: flex; align-items: center; gap: 7px;
  z-index: 3;
  box-shadow: 0 0 18px rgba(0,123,255,.2);
  animation: float linear infinite;
}

.badge-php  { top: 5%;  right: 25%; animation-duration: 6s; animation-delay: -1s; }
.badge-php .badge-icon { width: 20px; height: 20px; background: #8892BF; border-radius: 4px; display: grid; place-items: center; font-size: .58rem; font-weight: 700; color: #fff; }

.badge-cs   { top: 40%; left: 2%; animation-duration: 8s; animation-delay: -2s; }
.badge-cs .badge-icon  { width: 20px; height: 20px; background: #9B4F96; border-radius: 4px; display: grid; place-items: center; font-size: .65rem; font-weight: 700; color: #fff; }

.badge-js   { bottom: 20%; left: 8%; animation-duration: 7.5s; animation-delay: -4s; }
.badge-js .badge-icon  { width: 20px; height: 20px; background: #F7DF1E; border-radius: 4px; display: grid; place-items: center; font-size: .65rem; font-weight: 700; color: #000; }

.badge-cloud { bottom: 5%; right: 18%; animation-duration: 10s; animation-delay: -5s; }
.badge-cloud svg { color: var(--cyan); }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-visual { height: 280px; }
  .hero-text { text-align: center; }
  .hero-desc { margin-inline: auto; }
  .hero-btns { justify-content: center; }
  .panel-1 { top: 0; left: 0; font-size: .62rem; }
  .panel-2 { bottom: 0; right: 0; font-size: .62rem; }
}

/* ── SECTION BASE ── */
section { padding-block: 80px; }

.section-header { margin-bottom: 52px; }
.section-header .eyebrow { margin-bottom: 10px; }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  text-wrap: balance;
  margin-bottom: 12px;
}
.section-sub { color: var(--fg2); max-width: 520px; }

/* ── ABOUT ── */
#sobre { background: var(--bg2); }

.about-grid {
  display: grid;
  grid-template-columns: 220px 1fr 280px;
  gap: 36px;
  align-items: start;
}

.about-photo-wrap {
  position: relative;
  width: 200px;
  height: 240px;
}

.about-photo-frame {
  width: 100%; height: 100%;
  border-radius: 18px;
  border: 1px solid rgba(0,217,255,.3);
  background: var(--bg3);
  overflow: hidden;
  box-shadow: var(--glow-cyan), inset 0 0 40px rgba(0,217,255,.04);
  position: relative;
}

.about-photo-frame::before,
.about-photo-frame::after {
  content: '';
  position: absolute;
  border: 1.5px solid var(--cyan);
  border-radius: 4px;
  opacity: .6;
}
.about-photo-frame::before { top: -6px; left: -6px; right: 36px; bottom: 36px; }
.about-photo-frame::after  { bottom: -6px; right: -6px; top: 36px; left: 36px; }

.photo-placeholder {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: 3rem; font-weight: 700;
  background: linear-gradient(135deg, rgba(0,123,255,.2), rgba(113,60,255,.15));
  color: var(--fg2);
}

.about-greeting { font-family: var(--font-display); font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--fg2); margin-bottom: 8px; }
.about-heading { font-family: var(--font-display); font-size: 1.75rem; font-weight: 700; margin-bottom: 16px; }
.about-body { color: var(--fg2); font-size: .95rem; line-height: 1.75; margin-bottom: 24px; }

.about-meta { display: flex; gap: 20px; flex-wrap: wrap; }
.meta-item {
  display: flex; align-items: center; gap: 7px;
  font-size: .82rem; color: var(--fg2);
}
.meta-item svg { color: var(--cyan); flex-shrink: 0; }

.about-card {
  background: rgba(0,123,255,.07);
  border: 1px solid rgba(0,217,255,.15);
  border-radius: 14px;
  padding: 24px 20px;
  position: relative;
  overflow: hidden;
}
.about-card::before {
  content: 'A';
  position: absolute;
  right: 16px; top: 12px;
  font-family: var(--font-display);
  font-size: 7rem; font-weight: 800;
  color: rgba(0,217,255,.06);
  line-height: 1;
  pointer-events: none;
}
.card-label { font-family: var(--font-display); font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); margin-bottom: 12px; }
.card-quote { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; line-height: 1.4; color: var(--fg); margin-bottom: 16px; text-wrap: balance; }
.card-accent { display: block; width: 32px; height: 3px; background: linear-gradient(90deg, var(--blue), var(--cyan)); border-radius: 2px; }
.card-sub { margin-top: 12px; font-size: .82rem; color: var(--fg2); line-height: 1.6; }

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photo-wrap { margin-inline: auto; }
}

/* ── TECHNOLOGIES ── */
.tech-layout {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: start;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 14px;
}

.tech-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 12px 14px;
  text-align: center;
  cursor: default;
  transition: border-color .25s, box-shadow .25s, transform .2s;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.tech-card:hover {
  border-color: rgba(0,217,255,.4);
  box-shadow: 0 0 18px rgba(0,217,255,.15);
  transform: translateY(-3px);
}

.tech-icon-wrap {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: grid; place-items: center;
  font-size: 1.3rem;
  font-family: var(--font-display);
  font-weight: 800;
  color: #fff;
}

.tech-name { font-family: var(--font-display); font-size: .78rem; font-weight: 600; color: var(--fg); }
.tech-sub  { font-size: .68rem; color: var(--fg2); }

.tech-cta-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 24px;
  width: 200px;
  align-self: center;
}
.tech-cta-icon {
  width: 40px; height: 40px;
  background: rgba(0,217,255,.1);
  border: 1px solid rgba(0,217,255,.25);
  border-radius: 8px;
  display: grid; place-items: center;
  color: var(--cyan);
  margin-bottom: 14px;
}
.tech-cta-title { font-family: var(--font-display); font-size: 1rem; font-weight: 700; margin-bottom: 8px; line-height: 1.3; }
.tech-cta-sub { font-size: .78rem; color: var(--fg2); margin-bottom: 16px; line-height: 1.5; }
.tech-cta-line { display: block; width: 32px; height: 3px; background: linear-gradient(90deg, var(--blue), var(--cyan)); border-radius: 2px; }

@media (max-width: 760px) {
  .tech-layout { grid-template-columns: 1fr; }
  .tech-cta-card { width: 100%; }
}

/* ── PROJECTS ── */
#projetos { background: var(--bg2); }

.projects-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: 48px; flex-wrap: wrap;
}
.projects-header .section-header { margin-bottom: 0; }

.btn-link {
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: 600;
  color: var(--cyan);
  text-decoration: none;
  display: flex; align-items: center; gap: 6px;
  white-space: nowrap;
  border: 1px solid rgba(0,217,255,.25);
  padding: 8px 14px;
  border-radius: 7px;
  transition: background .2s, border-color .2s;
}
.btn-link:hover { background: rgba(0,217,255,.07); border-color: rgba(0,217,255,.5); }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.project-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color .25s, box-shadow .25s, transform .2s;
}
.project-card:hover {
  border-color: rgba(0,123,255,.4);
  box-shadow: 0 8px 36px rgba(0,123,255,.12);
  transform: translateY(-4px);
}

.project-img {
  width: 100%; aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--bg2), var(--bg3));
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.project-img svg { opacity: .35; }

.project-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,123,255,.15), rgba(113,60,255,.1));
}

.project-body { padding: 16px 18px 18px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.project-name { font-family: var(--font-display); font-size: 1rem; font-weight: 700; }
.project-desc { font-size: .83rem; color: var(--fg2); line-height: 1.6; flex: 1; }

.project-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag {
  font-family: var(--font-mono);
  font-size: .68rem;
  background: rgba(0,123,255,.12);
  color: var(--cyan);
  border: 1px solid rgba(0,217,255,.15);
  padding: 3px 8px;
  border-radius: 4px;
}

.project-actions { display: flex; gap: 10px; align-items: center; margin-top: 4px; }
.project-link {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  display: grid; place-items: center;
  color: var(--fg2);
  text-decoration: none;
  transition: background .2s, color .2s;
}
.project-link:hover { background: rgba(0,217,255,.12); color: var(--cyan); }

/* ── EXPERIENCE ── */
.timeline-wrapper { position: relative; overflow-x: auto; padding-bottom: 8px; }

.timeline {
  display: flex;
  gap: 0;
  position: relative;
  min-width: 700px;
  padding-top: 48px;
}

.timeline-line {
  position: absolute;
  top: 15px; left: 24px; right: 24px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue) 10%, var(--cyan) 50%, var(--blue) 90%, transparent);
}

.timeline-item {
  flex: 1;
  min-width: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  padding-top: 36px;
}

.timeline-dot {
  position: absolute;
  top: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--bg2);
  border: 2px solid var(--cyan);
  display: grid; place-items: center;
  color: var(--cyan);
  box-shadow: 0 0 12px rgba(0,217,255,.4);
  z-index: 1;
  transition: box-shadow .25s;
}
.timeline-item:hover .timeline-dot { box-shadow: 0 0 22px rgba(0,217,255,.7); }

.timeline-period {
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--cyan);
  margin-bottom: 8px;
  font-weight: 500;
}
.timeline-role {
  font-family: var(--font-display);
  font-size: .88rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 4px;
  line-height: 1.3;
}
.timeline-company {
  font-size: .76rem;
  color: var(--fg2);
  margin-bottom: 8px;
}
.timeline-desc {
  font-size: .75rem;
  color: var(--fg2);
  line-height: 1.55;
  max-width: 180px;
}

/* ── CONTACT ── */
#contato { background: var(--bg2); }

.contact-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 48px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 100% 50%, rgba(0,123,255,.06) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 0% 50%, rgba(113,60,255,.05) 0%, transparent 60%);
  pointer-events: none;
}

.contact-icon-wrap {
  position: absolute;
  top: 24px; left: 32px;
  width: 44px; height: 44px;
  background: rgba(0,217,255,.1);
  border: 1px solid rgba(0,217,255,.2);
  border-radius: 10px;
  display: grid; place-items: center;
  color: var(--cyan);
}

.contact-heading {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 8px;
  margin-top: 52px;
}
.contact-sub { font-size: .92rem; color: var(--fg2); line-height: 1.6; }

.contact-info { display: flex; flex-direction: column; gap: 14px; }
.info-item { display: flex; align-items: center; gap: 12px; font-size: .88rem; color: var(--fg2); }
.info-item svg { color: var(--cyan); flex-shrink: 0; }

.contact-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 16px; }
.social-links { display: flex; gap: 10px; }
.social-link {
  width: 38px; height: 38px;
  border-radius: 9px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  display: grid; place-items: center;
  color: var(--fg2);
  text-decoration: none;
  transition: background .2s, color .2s, border-color .2s;
}
.social-link:hover { background: rgba(0,217,255,.1); color: var(--cyan); border-color: rgba(0,217,255,.3); }

@media (max-width: 860px) {
  .contact-card { grid-template-columns: 1fr; padding: 36px 24px; }
  .contact-actions { align-items: flex-start; }
}

/* ── FOOTER ── */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding-block: 32px;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  bottom: 0; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue) 30%, var(--cyan) 50%, var(--blue) 70%, transparent);
  animation: scanline 4s ease-in-out infinite;
}

@keyframes scanline {
  0%, 100% { opacity: .3; }
  50% { opacity: .8; }
}

.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
}

.footer-copy { font-size: .8rem; color: var(--fg2); }
.footer-sub  { font-size: .75rem; color: rgba(168,188,213,.5); margin-top: 2px; }

.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { font-size: .8rem; color: var(--fg2); text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: var(--cyan); }

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.visible { opacity: 1; transform: none; transition: none; }
}

/* ── CONTEÚDO RICH TEXT (Quill) no site público ── */
.projeto-body h1 { font-size: 1.6rem; font-weight: 700; color: var(--fg); margin: 20px 0 10px; line-height: 1.25; }
.projeto-body h2 { font-size: 1.25rem; font-weight: 600; color: var(--fg); margin: 16px 0 8px; line-height: 1.3; }
.projeto-body h3 { font-size: 1rem; font-weight: 600; color: var(--fg); margin: 14px 0 6px; }
.projeto-body p  { color: var(--fg2); line-height: 1.75; margin-bottom: 12px; }
.projeto-body ul, .projeto-body ol { padding-left: 22px; margin-bottom: 12px; color: var(--fg2); }
.projeto-body li { margin-bottom: 5px; line-height: 1.65; }
.projeto-body ul li { list-style: disc; }
.projeto-body ol li { list-style: decimal; }
.projeto-body strong { font-weight: 700; color: var(--fg); }
.projeto-body em     { font-style: italic; }
.projeto-body u      { text-decoration: underline; }
.projeto-body a      { color: var(--cyan); text-decoration: underline; transition: opacity .2s; }
.projeto-body a:hover { opacity: .8; }
.projeto-body blockquote {
  border-left: 3px solid var(--cyan);
  padding: 10px 16px;
  color: var(--fg2);
  font-style: italic;
  background: rgba(0,217,255,.04);
  border-radius: 0 8px 8px 0;
  margin: 16px 0;
}
