/* ═══════════════════════════════════════════════════
   PORTFÓLIO — JM & VC
   Arquivo: style.css
   ═══════════════════════════════════════════════════ */


/* ───────────────────────────────────────────────────
   1. RESET & BASE
   Zera margens/paddings padrão do navegador
─────────────────────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


/* ───────────────────────────────────────────────────
   2. VARIÁVEIS DE DESIGN (tokens)
   Centralize aqui todas as cores, fontes e espaçamentos.
   Para mudar o tom roxo do site, altere apenas --purple.
─────────────────────────────────────────────────── */
:root {
  /* Fundos em camadas (do mais claro ao levemente lilás) */
  --bg:          #ffffff;   /* fundo principal (branco) */
  --bg2:         #f8f4ff;   /* seções alternadas (lilás bem suave) */
  --bg3:         #f0e7fc;   /* cards e elementos internos (lilás um pouco mais forte) */

  /* Roxo — cor de destaque */
  --purple:       #7c3aed;
  --purple-light: #9333ea;
  --purple-glow:  rgba(124, 58, 237, 0.16);
  --purple-soft:  rgba(124, 58, 237, 0.08);

  /* Texto */
  --white:  #ffffff;   /* texto sobre fundos roxos (botões, badges) */
  --text:   #1f1235;   /* texto principal (roxo bem escuro, quase preto) */
  --muted:  #6b5c85;   /* texto secundário/cinza-arroxeado */

  /* Bordas */
  --border: rgba(124, 58, 237, 0.18);

  /* Tipografia */
  --font-display: 'Syne', sans-serif;       /* títulos */
  --font-body:    'Space Grotesk', sans-serif; /* corpo */
}


/* ───────────────────────────────────────────────────
   3. ESTILOS GLOBAIS
─────────────────────────────────────────────────── */
html {
  scroll-behavior: smooth; /* rolagem suave ao clicar em links âncora */
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: hidden; /* evita scroll horizontal indesejado */
}

/* Estado de foco visível para navegação via teclado (acessibilidade) */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--purple-light);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Link "Pular para o conteúdo" — fica oculto até receber foco (Tab) */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 200;
  background: var(--purple);
  color: var(--white);
  padding: 0.7rem 1.2rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.25s ease;
}

.skip-link:focus {
  top: 1rem;
}

/* Respeita a preferência de menos animação do sistema operacional */
@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;
  }
}


/* ───────────────────────────────────────────────────
   4. NAVEGAÇÃO
─────────────────────────────────────────────────── */
nav {
  position: fixed;         /* fica fixo no topo durante o scroll */
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 4rem;
  background: rgba(255, 255, 255, 0.85); /* semi-transparente */
  backdrop-filter: blur(14px);        /* efeito vidro fosco */
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}

/* .accent é usado em vários lugares para colorir com roxo */
.accent {
  color: var(--purple-light);
}

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

.nav-links a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--purple);
}

/* Botão "Contato" no menu */
.nav-cta {
  background: var(--purple);
  color: var(--white) !important;
  padding: 0.55rem 1.4rem;
  border-radius: 100px;
  transition: background 0.3s !important;
}

.nav-cta:hover {
  background: var(--purple-light) !important;
}

/* Botão hamburguer (visível só em mobile, ver seção 12) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--purple);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Transforma as três linhas em "X" quando o menu está aberto */
.nav-toggle.ativo span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.ativo span:nth-child(2) { opacity: 0; }
.nav-toggle.ativo span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ───────────────────────────────────────────────────
   5. SEÇÃO HERO
─────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8rem 4rem 5rem;
  position: relative;
  overflow: hidden;
  text-align: center;
}

/* Brilho central roxo (decorativo) */
.hero-glow {
  position: absolute;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.18) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* Grade de linhas no fundo */
.hero-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(124, 58, 237, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 58, 237, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* Etiqueta pequena acima do título */
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--purple-light);
  border: 1px solid var(--border);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  margin-bottom: 2rem;
  position: relative;
  background: var(--purple-soft);
}

/* Bolinha antes do texto da etiqueta */
.hero-tag::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--purple-light);
  display: inline-block;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 6.5rem); /* responsivo: mínimo 3rem, max 6.5rem */
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  position: relative;
}

/* Segunda linha do título com gradiente roxo */
.hero-title .line2 {
  display: block;
  background: linear-gradient(135deg, var(--purple-light), #c084fc, #e879f9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 520px;
  line-height: 1.8;
  margin: 0 auto 3rem;
  position: relative;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

/* Botão primário (preenchido) */
.btn-primary {
  background: var(--purple);
  color: var(--white);
  padding: 0.9rem 2rem;
  border-radius: 100px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s, transform 0.2s;
  letter-spacing: 0.02em;
}

.btn-primary:hover {
  background: var(--purple-light);
  transform: translateY(-2px); /* leve elevação no hover */
}

/* Botão secundário (contorno) */
.btn-ghost {
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 0.9rem 2rem;
  border-radius: 100px;
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.3s, color 0.3s, transform 0.2s;
}

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


/* ───────────────────────────────────────────────────
   6. COMPONENTE REUTILIZÁVEL: SECTION-LABEL
   Linha roxa + texto em caixa alta — usado em várias seções
─────────────────────────────────────────────────── */
.section-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

.section-label::before {
  content: '';
  display: block;
  width: 32px; height: 2px;
  background: var(--purple);
  border-radius: 2px;
}

.section-label span {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--purple-light);
}


/* ───────────────────────────────────────────────────
   7. SEÇÃO SÓCIOS
─────────────────────────────────────────────────── */
.socios {
  padding: 6rem 4rem;
  background: var(--bg2);
  position: relative;
}

/* Linha de gradiente no topo da seção */
.socios::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--purple), transparent);
}

.socios-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* dois cards lado a lado */
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

/* Card individual do sócio */
.socio-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}

.socio-card:hover {
  border-color: var(--purple);
  transform: translateY(-4px);
}

/* Barra roxa que aparece no topo do card no hover */
.socio-card::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--purple), var(--purple-light));
  opacity: 0;
  transition: opacity 0.3s;
}

.socio-card:hover::after {
  opacity: 1;
}

/* Brilho decorativo atrás do avatar */
.socio-glow {
  position: absolute; top: -40px; left: 50%;
  transform: translateX(-50%);
  width: 160px; height: 160px;
  border-radius: 50%;
  background: var(--purple-glow);
  pointer-events: none;
  filter: blur(30px);
}

/* Círculo do avatar */
.socio-avatar {
  width: 120px; height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bg), var(--bg3));
  border: 3px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s;
}

.socio-card:hover .socio-avatar {
  border-color: var(--purple-light);
}

/* Iniciais dentro do avatar (quando não há foto) */
.socio-initials {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--purple-light), #e879f9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Foto real (quando adicionada via <img class="socio-img">) */
.socio-img {
  width: 100%; height: 100%;
  object-fit: cover;
  position: absolute; inset: 0;
  border-radius: 50%;
}

.socio-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
  letter-spacing: -0.02em;
}

/* Badge de função/cargo */
.socio-role {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--purple-light);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  background: var(--purple-soft);
  padding: 0.3rem 0.9rem;
  border-radius: 100px;
  border: 1px solid var(--border);
  display: inline-block;
}

.socio-bio {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1.8rem;
}

/* Habilidades do sócio */
.socio-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.8rem;
}

.skill-tag {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--purple-light);
  background: var(--purple-soft);
  border: 1px solid var(--border);
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
}

/* Links de redes sociais */
.socio-links {
  display: flex;
  gap: 0.8rem;
}

.socio-link {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}

.socio-link:hover {
  border-color: var(--purple);
  color: var(--purple-light);
  background: var(--purple-soft);
}


/* ───────────────────────────────────────────────────
   8. SEÇÃO PROJETOS
─────────────────────────────────────────────────── */
.projetos {
  padding: 6rem 4rem;
  position: relative;
}

.projetos::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--purple), transparent);
}

.projetos-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
}

.projetos-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.projetos-title .accent {
  background: linear-gradient(135deg, var(--purple-light), #e879f9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Botões de filtro */
.filter-tabs {
  display: flex;
  gap: 0.5rem;
}

.filter-btn {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--border);
  padding: 0.45rem 1rem;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.25s;
}

/* Estado ativo (selecionado) e hover */
.filter-btn.active,
.filter-btn:hover {
  background: var(--purple);
  color: var(--white);
  border-color: var(--purple);
}

/* Grade de projetos: 3 colunas */
.projetos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* Card de projeto */
.projeto-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
  cursor: pointer;
}

.projeto-card:hover {
  border-color: var(--purple);
  transform: translateY(-4px);
}

/* Estado oculto (usado pelo filtro JS) */
.projeto-card.oculto {
  display: none;
}

/* Thumbnail do projeto */
.projeto-thumb {
  aspect-ratio: 16 / 10;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.projeto-thumb-bg {
  position: absolute; inset: 0;
  transition: transform 0.5s ease;
}

/* Zoom no fundo ao hover */
.projeto-card:hover .projeto-thumb-bg {
  transform: scale(1.05);
}

/* Variações de cor dos thumbnails */
.thumb-purple  { background: linear-gradient(135deg, #1a0a3d 0%, #2d1060 50%, #4c1d95 100%); }
.thumb-violet  { background: linear-gradient(135deg, #0f0a2e 0%, #1e1060 50%, #312e81 100%); }
.thumb-fuchsia { background: linear-gradient(135deg, #2d0a3d 0%, #5b1060 50%, #7e22ce 100%); }

.thumb-icon {
  font-size: 3.5rem;
  position: relative; z-index: 1;
  opacity: 0.5;
}

/* Badge "Destaque" / "Novo" */
.thumb-badge {
  position: absolute;
  top: 1rem; right: 1rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(124, 58, 237, 0.5);
  color: var(--purple-light);
  border: 1px solid rgba(168, 85, 247, 0.3);
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  backdrop-filter: blur(4px);
  z-index: 2;
}

/* Corpo do card */
.projeto-body {
  padding: 1.5rem;
}

.projeto-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
}

.projeto-categoria {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--purple-light);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.projeto-ano {
  font-size: 0.7rem;
  color: var(--muted);
}

.projeto-nome {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}

.projeto-desc {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 1.2rem;
}

/* Tags de tecnologia */
.projeto-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.projeto-tag {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--muted);
  background: var(--bg3);
  border: 1px solid var(--border);
  padding: 0.25rem 0.65rem;
  border-radius: 100px;
}


/* ───────────────────────────────────────────────────
   9. SEÇÃO CTA (chamada para ação / contato)
─────────────────────────────────────────────────── */
.cta {
  padding: 6rem 4rem;
  text-align: center;
  position: relative;
  background: var(--bg2);
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--purple), transparent);
}

.cta-glow {
  position: absolute;
  width: 600px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.12) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1.2rem;
  position: relative;
}

.cta-title .accent {
  background: linear-gradient(135deg, var(--purple-light), #e879f9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-sub {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 2.5rem;
  position: relative;
}

.cta-email {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--purple-light);
  text-decoration: none;
  border-bottom: 2px solid var(--border);
  padding-bottom: 2px;
  transition: border-color 0.3s, color 0.3s;
  position: relative;
}

.cta-email:hover {
  border-color: var(--purple-light);
  color: var(--text);
}


/* ───────────────────────────────────────────────────
   10. FOOTER
─────────────────────────────────────────────────── */
footer {
  padding: 2rem 4rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-left {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
}

.footer-left .accent {
  color: var(--purple-light);
}

.footer-right {
  font-size: 0.78rem;
  color: var(--muted);
}


/* ───────────────────────────────────────────────────
   11. ANIMAÇÕES
─────────────────────────────────────────────────── */

/* Animação de entrada (subindo do baixo com fade) */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Aplica a animação em cada filho direto do hero */
.hero > * {
  animation: fadeUp 0.7s ease forwards;
  opacity: 0; /* começa invisível */
}

/* Cada elemento entra com um pequeno atraso para criar efeito cascata */
.hero > *:nth-child(1) { animation-delay: 0.05s; }
.hero > *:nth-child(2) { animation-delay: 0.05s; }
.hero > *:nth-child(3) { animation-delay: 0.15s; }
.hero > *:nth-child(4) { animation-delay: 0.25s; }
.hero > *:nth-child(5) { animation-delay: 0.35s; }
.hero > *:nth-child(6) { animation-delay: 0.45s; }


/* ───────────────────────────────────────────────────
   12. RESPONSIVO — Mobile (até 900px)
─────────────────────────────────────────────────── */
@media (max-width: 900px) {

  /* Reduz padding da nav */
  nav {
    padding: 1rem 1.5rem;
  }

  /* Mostra o botão hamburguer */
  .nav-toggle {
    display: flex;
  }

  /* Menu vira um painel suspenso, fechado por padrão */
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: center;
    gap: 0;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 24px rgba(124, 58, 237, 0.08);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }

  /* Classe adicionada via JS ao clicar no hamburguer */
  .nav-links.aberto {
    max-height: 300px;
  }

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

  .nav-links a {
    display: block;
    padding: 1.1rem 1.5rem;
  }

  .nav-cta {
    display: inline-block;
    margin: 0.5rem 0 1.2rem;
  }

  /* Hero com padding menor */
  .hero {
    padding: 7rem 1.5rem 4rem;
  }

  /* Sócios: uma coluna em mobile */
  .socios {
    padding: 4rem 1.5rem;
  }

  .socios-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
  }

  /* Projetos: uma coluna, header empilhado */
  .projetos {
    padding: 4rem 1.5rem;
  }

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

  .projetos-grid {
    grid-template-columns: 1fr;
  }

  /* CTA e footer mais compactos */
  .cta {
    padding: 4rem 1.5rem;
  }

  footer {
    padding: 1.5rem;
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}
