/* ============================================================
   CORES — edite aqui para personalizar
============================================================ */
:root {
  --bg:          #080810;
  --surface:     #0e0e1a;
  --surface2:    #13132a;
  --border:      #1e1e3a;
  --border2:     #2e2e5a;
  --purple:      #b44eff;   /* roxo principal */
  --purple-dim:  #7b2fd4;
  --cyan:        #00f5ff;   /* ciano neon */
  --pink:        #ff2d78;   /* rosa neon */
  --text:        #e8e0ff;
  --muted:       #6a6090;
  --font-mono:   'Share Tech Mono', monospace;
  --font-head:   'Orbitron', sans-serif;
  --font-body:   'Rajdhani', sans-serif;
  --max:         1100px;
  --radius:      6px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ============================================================
   ACESSIBILIDADE — respeita usuários com sensibilidade a movimento
============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .grid-bg, .scanlines { display: none; }
  .glitch::before, .glitch::after { display: none; }
  .avatar-frame .scan-line { display: none; }
  .project-card { transform: none !important; }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; }

/* ============================================================
   GRADE ANIMADA DE FUNDO
============================================================ */
.grid-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(180,78,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(180,78,255,0.04) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0%   { background-position: 0 0; }
  100% { background-position: 50px 50px; }
}

/* scanlines */
.scanlines {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.08) 2px,
    rgba(0,0,0,0.08) 4px
  );
}

/* vinheta */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(8,8,16,0.7) 100%);
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 10;
}

section { padding: 6rem 0; }

.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-label::before {
  content: '//';
  color: var(--purple);
  opacity: 0.6;
}

/* ============================================================
   NAVBAR
============================================================ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid transparent;
  transition: all 0.3s;
}

nav.scrolled {
  background: rgba(8,8,16,0.95);
  backdrop-filter: blur(16px);
  border-color: var(--border2);
  box-shadow: 0 0 30px rgba(180,78,255,0.08);
}

.nav-logo {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 16px;
  letter-spacing: 0.1em;
  color: var(--text);
}

.nav-logo span { color: var(--purple); text-shadow: 0 0 12px rgba(180,78,255,0.8); }

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
  box-shadow: 0 0 6px var(--cyan);
}

.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }

.btn-primary {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 9px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--purple);
  background: rgba(180,78,255,0.12);
  color: var(--purple);
  cursor: pointer;
  transition: all 0.2s;
  text-shadow: 0 0 8px rgba(180,78,255,0.6);
  box-shadow: 0 0 14px rgba(180,78,255,0.1), inset 0 0 14px rgba(180,78,255,0.04);
}

.btn-primary:hover {
  background: rgba(180,78,255,0.22);
  box-shadow: 0 0 24px rgba(180,78,255,0.3), inset 0 0 14px rgba(180,78,255,0.08);
  transform: translateY(-1px);
}

.btn-outline {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 9px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border2);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-outline:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  text-shadow: 0 0 8px rgba(0,245,255,0.6);
  transform: translateY(-1px);
}

/* ============================================================
   HERO
============================================================ */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

/* tag de status */
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--cyan);
  border: 1px solid rgba(0,245,255,0.25);
  border-radius: 2px;
  padding: 5px 14px;
  margin-bottom: 1.75rem;
  background: rgba(0,245,255,0.04);
  text-shadow: 0 0 10px rgba(0,245,255,0.7);
}

.hero-tag .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--cyan); }
  50%       { opacity: 0.3; box-shadow: none; }
}

/* nome com glitch */
.hero-name {
  font-family: var(--font-head);
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.05;
  margin-bottom: 0.5rem;
  position: relative;
}

.glitch {
  position: relative;
  display: inline-block;
  color: var(--text);
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}

.glitch::before {
  color: var(--cyan);
  animation: glitch1 3.5s infinite;
  clip-path: polygon(0 20%, 100% 20%, 100% 40%, 0 40%);
  text-shadow: -2px 0 var(--cyan);
}

.glitch::after {
  color: var(--pink);
  animation: glitch2 3.5s infinite;
  clip-path: polygon(0 60%, 100% 60%, 100% 80%, 0 80%);
  text-shadow: 2px 0 var(--pink);
}

@keyframes glitch1 {
  0%, 90%, 100% { transform: translate(0); opacity: 0; }
  92%           { transform: translate(-3px, 1px); opacity: 1; }
  94%           { transform: translate(3px, -1px); opacity: 1; }
  96%           { transform: translate(0); opacity: 0; }
}

@keyframes glitch2 {
  0%, 90%, 100% { transform: translate(0); opacity: 0; }
  93%           { transform: translate(3px, 2px); opacity: 1; }
  95%           { transform: translate(-3px, -1px); opacity: 1; }
  97%           { transform: translate(0); opacity: 0; }
}

.hero-name .line2 {
  display: block;
  color: var(--purple);
  text-shadow: 0 0 30px rgba(180,78,255,0.6);
}

/* subtítulo tipo terminal */
.hero-subtitle {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--purple);
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
  opacity: 0.8;
}

.hero-subtitle span { color: var(--cyan); }

.hero-desc {
  font-size: 16px;
  font-weight: 300;
  color: white;
  max-width: 430px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

/* CARD direito do hero */
.hero-right { display: flex; justify-content: center; }

.avatar-frame {
  width: 250px;
  height: 380px;
  border-radius: var(--radius);
  border: 1px solid var(--border2);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* cantos decorativos */
.avatar-frame::before,
.avatar-frame::after {
  content: '';
  position: absolute;
  width: 20px; height: 20px;
  border-color: var(--purple);
  border-style: solid;
}
.avatar-frame::before { top: 10px; left: 10px; border-width: 2px 0 0 2px; box-shadow: -4px -4px 8px rgba(180,78,255,0.2); }
.avatar-frame::after  { bottom: 10px; right: 10px; border-width: 0 2px 2px 0; box-shadow: 4px 4px 8px rgba(180,78,255,0.2); }

/* linha de scan animada */
.avatar-frame .scan-line {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0.6;
  animation: scan 3s ease-in-out infinite;
  box-shadow: 0 0 10px var(--cyan);
}

@keyframes scan {
  0%   { top: 0%; }
  100% { top: 100%; }
}

/* ============================================================
   FOTO DE PERFIL
   → Coloque sua foto em: img/foto-perfil.jpg
   → O estilo abaixo cuida do resto automaticamente
============================================================ */
.avatar-foto {
  max-width: 100%;
  height: 100%;
  object-fit: cover;         /* recorta sem distorcer */
  object-position: center;
  inset: 0;
  z-index: 1;
}

/* Placeholder — aparece quando não há foto */
.avatar-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  z-index: 2;
}

.avatar-icon {
  width: 80px; height: 80px;
  border-radius: 50%;
  border: 2px solid var(--border2);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
}

.avatar-hint {
  font-family: var(--font-mono);
  font-size: 11px;
  text-align: center;
  line-height: 1.6;
  max-width: 180px;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.hero-stats {
  position: absolute;
  bottom: 16px; left: 16px; right: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  z-index: 3;
}

.stat-chip {
  background: rgba(8,8,16,0.85);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 10px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}

.stat-chip strong {
  display: block;
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  color: var(--purple);
  text-shadow: 0 0 14px rgba(180,78,255,0.7);
  line-height: 1.1;
}

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

#sobre .sobre-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.sobre-texto h2 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: white;
}

.sobre-texto h2 span { color: var(--purple); text-shadow: 0 0 20px rgba(180,78,255,0.5); }

.sobre-texto p {
  font-weight: 300;
  color: white;
  margin-bottom: 1rem;
  font-size: 15.5px;
}

/* ============================================================
   SKILLS — pills agrupados por categoria
============================================================ */
.skills-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.skills-block-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.75rem;
  text-shadow: 0 0 8px rgba(0,245,255,0.4);
}

.skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  padding: 7px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--purple);
  background: rgba(180,78,255,0.08);
  color: var(--purple);
  text-shadow: 0 0 8px rgba(180,78,255,0.5);
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}

.skill-tag:hover {
  background: rgba(180,78,255,0.18);
  box-shadow: 0 0 14px rgba(180,78,255,0.3);
  transform: translateY(-1px);
}

.skill-tag.muted {
  border-color: var(--border2);
  background: var(--surface);
  color: var(--muted);
  text-shadow: none;
}

.skill-tag.muted:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 12px rgba(0,245,255,0.2);
  text-shadow: 0 0 8px rgba(0,245,255,0.5);
}

.skill-tag.alt {
  border-color: var(--border);
  background: transparent;
  color: var(--text);
  opacity: 0.75;
  text-shadow: none;
}

.skill-tag.alt:hover {
  opacity: 1;
  border-color: var(--purple);
}

/* mantido para compatibilidade (legado, não usado mais) */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.skill-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: var(--purple);
  opacity: 0;
  transition: opacity 0.2s;
  box-shadow: 0 0 8px var(--purple);
}

.skill-card:hover { border-color: var(--border2); box-shadow: 0 0 16px rgba(180,78,255,0.1); }
.skill-card:hover::before { opacity: 1; }

.skill-name {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 13px;
  color: var(--text);
  margin-bottom: 4px;
}

.skill-level {
  font-size: 11px;
  color: var(--muted);
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
}

.skill-bar {
  margin-top: 10px;
  height: 2px;
  background: var(--border);
  border-radius: 1px;
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--purple-dim), var(--purple));
  border-radius: 1px;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 0 8px rgba(180,78,255,0.6);
}

.skill-bar-fill.visible { transform: scaleX(1); }

/* ============================================================
   PROJETOS
============================================================ */
#projetos { border-top: 1px solid var(--border); }

#projetos h2 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 3rem;
  color: var(--text);
}

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

.project-card {
  --mx: 50%;
  --my: 50%;
  --tx: 0;
  --ty: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  transform: perspective(900px) rotateX(var(--ty)) rotateY(var(--tx)) translateZ(0);
  transform-style: preserve-3d;
  transition: transform 0.4s cubic-bezier(.2,.7,.2,1), border-color 0.3s, box-shadow 0.3s;
  will-change: transform;
}

/* spotlight que segue o mouse */
.project-card .spotlight {
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s;
  background: radial-gradient(
    400px circle at var(--mx) var(--my),
    rgba(180,78,255,0.22),
    rgba(0,245,255,0.08) 30%,
    transparent 65%
  );
  z-index: 3;
  mix-blend-mode: screen;
}

.project-card:hover .spotlight { opacity: 1; }

/* scan line varrendo a imagem no hover */
.project-thumb .hover-scan {
  position: absolute;
  left: 0; right: 0;
  height: 60px;
  top: -60px;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(0,245,255,0.25) 45%,
    rgba(0,245,255,0.5) 50%,
    rgba(0,245,255,0.25) 55%,
    transparent
  );
  z-index: 3;
  pointer-events: none;
  filter: blur(1px);
}

.project-card:hover .project-thumb .hover-scan {
  animation: hoverScan 1.4s cubic-bezier(.4,0,.2,1);
}

@keyframes hoverScan {
  0%   { top: -60px; opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
  pointer-events: none;
  z-index: 1;
}

.project-card:hover {
  border-color: rgba(180,78,255,0.4);
}

.project-card:hover::before {
  border-color: rgba(180,78,255,0.15);
  box-shadow: 0 0 30px rgba(180,78,255,0.1), inset 0 0 30px rgba(180,78,255,0.03);
}

/* ============================================================
   THUMBNAIL DOS PROJETOS
   → Com imagem:  coloque <img class="project-img" src="img/projeto1.jpg" alt="...">
   → Sem imagem:  coloque <span class="project-thumb-emoji">🌐</span>
   → Os dois estilos são tratados automaticamente abaixo
============================================================ */
.project-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

/* grade decorativa sobre o thumb */
.project-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg, transparent, transparent 3px,
    rgba(180,78,255,0.02) 3px, rgba(180,78,255,0.02) 4px
  );
  z-index: 2;
  pointer-events: none;
}

/* imagem real do projeto */
.project-img {
  width: 100%;
  height: 100%;
  object-position: center;
  inset: 0;
  z-index: 1;
  transition: transform 0.4s ease;
}

.project-card:hover .project-img {
  transform: scale(1.04);  /* zoom suave ao passar o mouse */
}

/* emoji fallback (quando não tem imagem) */
.project-thumb-emoji {
  font-size: 3rem;
  filter: saturate(0) brightness(0.5);
  transition: filter 0.4s;
  position: relative;
  z-index: 1;
}

.project-card:hover .project-thumb-emoji {
  filter: saturate(1) brightness(1) drop-shadow(0 0 12px var(--purple));
}

.project-body { padding: 1.25rem; }

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 10px;
}

.tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  padding: 2px 9px;
  border-radius: 2px;
  border: 1px solid var(--border2);
  color: var(--purple);
  background: rgba(180,78,255,0.06);
  text-shadow: 0 0 6px rgba(180,78,255,0.4);
}

.project-title {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  color: var(--text);
}

.project-desc {
  font-size: 14px;
  color: white;
  font-weight: 300;
  line-height: 1.65;
  margin-bottom: 1.1rem;
}

.project-links { display: flex; gap: 8px; }

.project-link {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border2);
  color: var(--muted);
  transition: all 0.2s;
}

.project-link:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  text-shadow: 0 0 8px rgba(0,245,255,0.6);
}

.project-link.primary {
  background: rgba(180,78,255,0.12);
  border-color: var(--purple);
  color: var(--purple);
  text-shadow: 0 0 8px rgba(180,78,255,0.5);
}

.project-link.primary:hover {
  background: rgba(180,78,255,0.22);
  box-shadow: 0 0 14px rgba(180,78,255,0.2);
}

/* ============================================================
   CARD DESTAQUE (LUMEN)
============================================================ */
.project-card.featured {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface2) 100%);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* borda neon gradiente animada */
.project-card.featured::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(
    135deg,
    var(--purple) 0%,
    var(--cyan) 25%,
    var(--pink) 50%,
    var(--purple) 75%,
    var(--cyan) 100%
  );
  background-size: 300% 300%;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  animation: borderFlow 6s linear infinite;
  z-index: -1;
  pointer-events: none;
}

@keyframes borderFlow {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.project-card.featured:hover {
  box-shadow: 0 0 40px rgba(180,78,255,0.25), 0 0 80px rgba(0,245,255,0.08);
}

/* badge "DESTAQUE" */
.featured-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 5;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  padding: 5px 12px;
  border-radius: 2px;
  color: var(--bg);
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  box-shadow: 0 0 18px rgba(180,78,255,0.6), 0 0 8px rgba(0,245,255,0.5);
  animation: badgePulse 2.5s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 18px rgba(180,78,255,0.6), 0 0 8px rgba(0,245,255,0.5); }
  50%      { box-shadow: 0 0 28px rgba(180,78,255,0.9), 0 0 16px rgba(0,245,255,0.7); }
}

/* layout interno: imagem + conteúdo */
.featured-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: stretch;
}

.featured-thumb {
  aspect-ratio: auto;
  height: 100%;
  min-height: 340px;
  border-bottom: none;
  border-right: 1px solid var(--border);
}

.featured-body {
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  text-shadow: 0 0 8px rgba(0,245,255,0.5);
}

.featured-title {
  font-size: 26px !important;
  letter-spacing: 0.06em;
  color: white;
  text-shadow: 0 0 24px rgba(180,78,255,0.5);
  margin-bottom: 0.9rem !important;
}

.project-card.featured .project-desc {
  font-size: 15px;
  margin-bottom: 1.25rem;
}

.project-card.featured .project-tags {
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .featured-inner { grid-template-columns: 1fr; }
  .featured-thumb { min-height: 220px; border-right: none; border-bottom: 1px solid var(--border); }
  .featured-body { padding: 1.5rem 1.25rem; }
  .featured-title { font-size: 22px !important; }
}

/* número decorativo */
.project-num {
  position: absolute;
  top: 12px; right: 14px;
  font-family: var(--font-head);
  font-size: 11px;
  color: var(--border2);
  letter-spacing: 0.1em;
  z-index: 2;
}

/* ============================================================
   CONTATO
============================================================ */
#contato {
  border-top: 1px solid var(--border);
  text-align: center;
}

.contato-inner {
  max-width: 620px;
  margin: 0 auto;
}

#contato h2 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1.1;
  margin-bottom: 1rem;
}

#contato h2 span {
  color: var(--purple);
  text-shadow: 0 0 30px rgba(180,78,255,0.6);
}

#contato p {
  font-size: 15px;
  font-weight: 300;
  color: white;
  margin-bottom: 2.5rem;
}

.contact-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 180px;
  justify-content: center;
}

.contact-card:hover {
  border-color: var(--purple);
  color: var(--purple);
  text-shadow: 0 0 10px rgba(180,78,255,0.6);
  box-shadow: 0 0 20px rgba(180,78,255,0.12);
  transform: translateY(-2px);
}

.contact-icon { width: 18px; height: 18px; flex-shrink: 0; }

/* ============================================================
   FOOTER
============================================================ */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.1em;
  position: relative;
  z-index: 10;
}

footer strong { color: var(--purple); }

/* ============================================================
   ANIMAÇÕES DE ENTRADA
============================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   BOTÃO HAMBÚRGUER (mobile)
============================================================ */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  padding: 0 8px;
  background: transparent;
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.nav-toggle:hover {
  border-color: var(--purple);
  box-shadow: 0 0 12px rgba(180,78,255,0.25);
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--purple);
  border-radius: 1px;
  box-shadow: 0 0 6px rgba(180,78,255,0.6);
  transition: transform 0.3s, opacity 0.2s;
  transform-origin: center;
}

/* animação para "X" quando aberto */
.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); }

/* ============================================================
   RESPONSIVO
============================================================ */
@media (max-width: 768px) {
  .hero-grid, #sobre .sobre-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero-right { display: none; }
  nav { padding: 1rem; }
  section { padding: 4rem 0; }

  /* esconde CTA do navbar no mobile pra dar espaço */
  .nav-cta { display: none; }

  /* mostra o hambúrguer */
  .nav-toggle { display: flex; }

  /* menu mobile: dropdown sob o navbar */
  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(8,8,16,0.98);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--border2);
    border-bottom: 1px solid var(--border2);
    padding: 1rem 0;
    transform: translateY(-150%);
    transition: transform 0.35s cubic-bezier(.4,0,.2,1);
    box-shadow: 0 8px 30px rgba(0,0,0,0.5), 0 0 30px rgba(180,78,255,0.08);
  }

  .nav-links.open { transform: translateY(0); }

  .nav-links li { width: 100%; }

  .nav-links a {
    display: block;
    padding: 0.9rem 2rem;
    font-size: 13px;
    border-left: 2px solid transparent;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
  }

  .nav-links a:hover {
    border-left-color: var(--purple);
    background: rgba(180,78,255,0.05);
  }

  .nav-links a::after { display: none; }
}

/* ============================================================
   TRAINER CARD BANNER
============================================================ */
.nav-trainer-link {
  color: var(--purple);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border: 1px solid var(--purple-dim);
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
}
.nav-trainer-link:hover {
  background: var(--purple-dim);
  color: #fff;
}

.trainer-card-banner {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #1a1428 0%, #241a38 60%, #13132a 100%);
  border: 2px solid #7a4fd6 !important;
  box-shadow: 0 0 24px rgba(122,79,214,0.3);
}

.trainer-banner-inner {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
}

.trainer-banner-left {
  flex: 1;
  min-width: 260px;
  padding: 1.5rem;
}

.trainer-banner-right {
  flex: 0 0 auto;
  padding: 1.5rem;
}

.trainer-preview-card {
  background: #241a38;
  border: 3px solid #7a4fd6;
  border-radius: 12px;
  width: 280px;
  overflow: hidden;
  font-family: 'Press Start 2P', 'Share Tech Mono', monospace;
  box-shadow: 0 0 16px rgba(122,79,214,0.4);
}

.trainer-preview-header {
  background: #2e2347;
  border-bottom: 2px solid #7a4fd6;
  padding: 10px 14px;
  color: #e29bf0;
  font-size: 0.5rem;
  text-align: center;
  letter-spacing: 0.1em;
}

.trainer-preview-tabs {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 2px solid #7a4fd6;
  background: #2e2347;
}

.trainer-preview-tabs span {
  flex: 1 0 auto;
  padding: 7px 4px;
  font-size: 0.38rem;
  color: #c8a8e0;
  text-align: center;
  border-right: 1px solid #1a1428;
}

.trainer-preview-tabs span:first-child {
  background: #7a4fd6;
  color: #fff;
}

.trainer-preview-body {
  padding: 14px;
}

.trainer-preview-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  gap: 8px;
}

.trainer-preview-row span:first-child {
  color: #e29bf0;
  font-size: 0.42rem;
}

.trainer-preview-row span:last-child {
  background: #3a2c5a;
  border: 1px solid #6b4fb0;
  border-radius: 4px;
  padding: 4px 8px;
  color: #ede4f7;
  font-size: 0.4rem;
}

@media (max-width: 700px) {
  .trainer-preview-card { width: 100%; }
  .trainer-banner-right { width: 100%; }
}
