/* =========================================================
   VA Portfólio — Estilo principal
   Fonte: Poppins | Azul #3533CD | Preto #000000
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

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

:root {
  --azul: #3533CD;
  --azul-escuro: #1f1d8a;
  --azul-deep: #0b0a54;
  --preto: #000000;
  --branco: #ffffff;
  --cinza: #f5f5fa;
  --cinza-texto: #4b4b5b;
  --max: 1200px;
  --radius: 16px;
  --grad-bk-blue: linear-gradient(180deg, #000 0%, #0b0a54 45%, #3533CD 100%);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  color: var(--preto);
  background: #fff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .bold, strong, b { font-weight: 700; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

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

/* ==========================================================
   BLOBS DECORATIVOS — DESATIVADOS
   (mantido o CSS caso queira reativar depois)
   ========================================================== */
.blob { display: none !important; }

/* ==========================================================
   BOTÕES
   ========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0,0,0,.18); }

.btn-black { background: #000; color: #fff; }
.btn-white { background: #fff; color: #000; }
.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}
.btn-outline:hover { background: #fff; color: #000; }

.arrow { display: inline-block; transform: translateY(-1px); }

/* ==========================================================
   HERO (degradê preto → azul)
   ========================================================== */
.hero {
  background: var(--grad-bk-blue);
  color: #fff;
  position: relative;
  overflow: hidden;
  padding-bottom: 80px;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  position: relative;
  z-index: 3;
}

.logo { display: flex; align-items: center; }
.logo img { height: 72px; width: auto; }
.logo-default {
  width: 80px; height: 80px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 32px; color: #fff;
  letter-spacing: 2px;
}

.nav-links {
  display: flex;
  gap: 48px;
  list-style: none;
  align-items: center;
}
.nav-links a {
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  transition: opacity .2s;
}
.nav-links a:hover { opacity: .8; }
.nav-links a.active { font-weight: 700; }

.menu-toggle {
  display: none;
  background: transparent;
  color: #fff;
  font-size: 28px;
  padding: 4px 10px;
  cursor: pointer;
}

.hero-content {
  text-align: center;
  padding: 80px 0 40px;
  position: relative;
  z-index: 2;
}
.hero-title {
  font-size: clamp(40px, 6vw, 84px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.5px;
  margin-bottom: 32px;
}
.hero-subtitle {
  max-width: 760px;
  margin: 0 auto 36px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
  opacity: .95;
}

/* ==========================================================
   TÍTULO DE SEÇÃO
   ========================================================== */
.section-title {
  color: var(--azul);
  text-align: center;
  font-size: clamp(38px, 4.5vw, 64px);
  font-weight: 800;
  margin-bottom: 48px;
  letter-spacing: -0.5px;
}

/* ==========================================================
   PROJETOS — CARROSSEL TECH
   ========================================================== */
.projetos {
  padding: 100px 0;
  background: #fff;
  position: relative;
}

.carousel {
  position: relative;
  max-width: 100%;
  display: grid;
  grid-template-columns: 60px 1fr 60px;
  grid-template-areas: "prev track next" ". dots .";
  gap: 20px;
  align-items: center;
}

.carousel-btn {
  grid-area: prev;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--azul);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s, transform .2s, box-shadow .2s;
  box-shadow: 0 6px 18px rgba(53,51,205,.25);
  z-index: 3;
}
.carousel-btn.next { grid-area: next; }
.carousel-btn svg { width: 22px; height: 22px; }
.carousel-btn:hover { background: var(--azul-escuro); transform: scale(1.08); }
.carousel-btn:disabled { opacity: .35; cursor: not-allowed; transform: none; }

.carousel-viewport {
  grid-area: track;
  overflow: hidden;
  border-radius: 24px;
  position: relative;
}

.carousel-track {
  display: flex;
  align-items: stretch;
  transition: transform .55s cubic-bezier(.65,.05,.36,1);
  will-change: transform;
}

.slide {
  flex: 0 0 100%;
  padding: 4px;
  display: flex;
}

/* cartão moldura com degradê */
.slide-inner {
  position: relative;
  background: linear-gradient(135deg, #0a0933 0%, #1c1aa0 50%, #3533CD 100%);
  border-radius: 22px;
  overflow: hidden;
  padding: 32px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  align-items: center;
  color: #fff;
  width: 100%;
  min-height: 380px;
  box-shadow: 0 20px 60px rgba(53,51,205,.18);
}

/* grade de linhas "tech" como decoração */
.slide-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  opacity: .6;
}
/* Brilho circular decorativo */
.slide-inner::after {
  content: "";
  position: absolute;
  top: -20%; right: -10%;
  width: 320px; height: 320px;
  background: radial-gradient(circle at center, rgba(90,88,240,.5), transparent 70%);
  pointer-events: none;
}

.slide-number {
  display: none;
}

.slide-media {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16/10;
  background: #0a0933;
  z-index: 2;
  border: 1px solid rgba(255,255,255,.08);
}
.slide-media img { width: 100%; height: 100%; object-fit: cover; }
.slide-media .ph {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #111, var(--azul-escuro));
  color: #fff; font-weight: 700; font-size: 14px;
}

.slide-body {
  position: relative;
  z-index: 2;
}
.slide-body h3 {
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.25;
  margin-bottom: 16px;
}
.slide-body p {
  font-size: 15px;
  line-height: 1.6;
  opacity: .95;
  margin-bottom: 22px;
  font-weight: 400;
}
.slide-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  border: 1.5px solid rgba(255,255,255,.35);
  backdrop-filter: blur(6px);
  transition: background .2s, border-color .2s, transform .2s;
}
.slide-link:hover {
  background: #fff;
  color: var(--azul);
  border-color: #fff;
  transform: translateY(-2px);
}
.slide-link svg { width: 16px; height: 16px; }

.carousel-dots {
  grid-area: dots;
  justify-self: center;
  display: flex;
  gap: 10px;
  margin-top: 24px;
}
.dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #d8d8e8;
  transition: width .3s, background .3s;
  cursor: pointer;
}
.dot.active {
  width: 32px;
  background: var(--azul);
  border-radius: 999px;
}

/* ==========================================================
   SERVIÇOS — DEGRADÊ PRETO → AZUL
   ========================================================== */
.servicos {
  background: var(--grad-bk-blue);
  color: #fff;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.servicos-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
  position: relative;
  z-index: 1;
}
.servicos-header h2 {
  color: #fff;
  font-size: clamp(38px, 4.5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.5px;
}
.servicos-header .tag {
  font-size: 15px;
  font-weight: 500;
  opacity: .95;
}

.servicos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 1fr;
  gap: 24px;
  position: relative;
  z-index: 1;
  align-items: stretch;
}

.servico-card {
  background: #fff;
  color: var(--preto);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  gap: 20px;
  align-items: center;
  transition: transform .2s, box-shadow .2s;
  height: 100%;
}
.servico-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(0,0,0,.25);
}
.servico-icone {
  flex-shrink: 0;
  width: 90px; height: 90px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
}
.servico-icone img { width: 100%; height: auto; object-fit: contain; }
.servico-icone .ph {
  width: 100%; height: 100%;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff64a8, #3533CD);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 12px;
}
.servico-card h3 {
  color: var(--azul);
  font-size: 20px;
  margin-bottom: 8px;
}
.servico-card p {
  font-size: 14px;
  color: var(--cinza-texto);
  font-weight: 400;
}

.servicos-cta {
  text-align: center;
  margin-top: 48px;
  position: relative;
  z-index: 1;
}

/* ==========================================================
   SOBRE
   ========================================================== */
.sobre {
  padding: 100px 0;
  background: #fff;
  position: relative;
  overflow: hidden;
}
.sobre-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.sobre-img { border-radius: 20px; overflow: hidden; }
.sobre-img img { width: 100%; height: auto; }
.sobre-img .placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #ff64a8 0%, #7a37e0 50%, #3533CD 100%);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 18px;
  border-radius: 20px;
}
.sobre h2 {
  color: var(--azul);
  font-size: clamp(38px, 4.5vw, 64px);
  font-weight: 800;
  margin-bottom: 24px;
  letter-spacing: -0.5px;
}
.sobre p {
  margin-bottom: 16px;
  color: var(--cinza-texto);
  font-size: 15px;
}
.sobre ul { padding-left: 22px; margin-top: 6px; }
.sobre li {
  margin-bottom: 10px;
  color: var(--cinza-texto);
  font-size: 15px;
  line-height: 1.55;
}
.sobre li strong { color: var(--azul); font-weight: 700; }

/* ==========================================================
   CARROSSEL INFINITO DE ETAPAS
   ========================================================== */
.cta-etapas {
  background: var(--azul);
  color: #fff;
  padding: 22px 0;
  overflow: hidden;
  position: relative;
  /* fade lateral suave */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 80px, #000 calc(100% - 80px), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 80px, #000 calc(100% - 80px), transparent 100%);
}

.cta-etapas .track {
  display: flex;
  align-items: center;
  gap: 40px;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.cta-etapas .track:hover { animation-play-state: paused; }

.etapa-item {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
  white-space: nowrap;
}
.etapa-dot {
  display: inline-block;
  width: 10px; height: 10px;
  background: #fff;
  border-radius: 50%;
  flex-shrink: 0;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-33.3333%); }
}

/* ==========================================================
   CTA FINAL
   ========================================================== */
.cta {
  padding: 80px 0;
  background: #fff;
  position: relative;
  overflow: hidden;
}
.cta-box {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
  background: var(--grad-bk-blue);
  color: #fff;
  border-radius: 22px;
  padding: 56px 32px;
  text-align: center;
}
.cta-box h2 {
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 16px;
}
.cta-box p { margin-bottom: 28px; font-size: 15px; opacity: .95; }

/* ==========================================================
   RODAPÉ
   ========================================================== */
footer {
  background: var(--azul-escuro);
  color: #fff;
  padding: 32px 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
}
.footer-logo img { height: 58px; width: auto; }
.footer-logo .logo-default { width: 60px; height: 60px; font-size: 24px; }

.footer-nav {
  display: flex;
  gap: 32px;
  justify-content: center;
  list-style: none;
  flex-wrap: wrap;
}
.footer-nav a { color:#fff; font-size: 15px; font-weight: 500; }
.footer-nav a.bold { font-weight: 700; }

.footer-social {
  display: flex; gap: 12px;
  align-items: center;
}
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 2px solid #fff;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  transition: background .2s, color .2s;
}
.footer-social a:hover { background: #fff; color: var(--azul); }
.footer-social svg { width: 18px; height: 18px; }

/* ==========================================================
   RESPONSIVO
   ========================================================== */
@media (max-width: 900px) {
  /* Menu superior: toggle à esquerda, logo à direita */
  .navbar .logo { order: 2; }
  .navbar .menu-toggle { order: 1; }

  .nav-links {
    position: absolute;
    top: 80px; left: 24px;
    background: var(--azul-deep);
    flex-direction: column;
    padding: 20px 26px;
    border-radius: 16px;
    gap: 20px;
    display: none;
    z-index: 20;
  }
  .nav-links.open { display: flex; }
  .menu-toggle { display: inline-block; }

  .sobre-grid { grid-template-columns: 1fr; gap: 30px; }

  /* Serviços no mobile: ícone ao lado, conjunto centralizado no card */
  .servicos-grid { grid-template-columns: 1fr; }
  .servicos-header { flex-direction: column; align-items: flex-start; gap: 10px; }
  .servico-card {
    justify-content: center;
    align-items: center;
  }

  /* Rodapé mobile: tudo centralizado, "Entre em Contato" em linha separada */
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 22px;
    justify-items: center;
  }
  .footer-logo {
    display: flex;
    justify-content: center;
    width: 100%;
  }
  .footer-nav {
    justify-content: center;
    gap: 22px 28px;
  }
  .footer-nav li:last-child {
    flex-basis: 100%;
    text-align: center;
    margin-top: 4px;
  }
  .footer-social {
    justify-content: center;
    width: 100%;
    margin-top: 4px;
  }

  .cta-etapas .track { gap: 28px; }

  /* Carrossel em mobile */
  .carousel {
    grid-template-columns: 1fr;
    grid-template-areas:
      "track"
      "prev-next"
      "dots";
  }
  .carousel-btn { display: none; }
  .slide-inner {
    grid-template-columns: 1fr;
    padding: 24px;
    min-height: auto;
  }
}
