/* =========================
   Start-UP • portfolio.css
   ========================= */

/* HERO Portfólio — reaproveita a estética da home (imagem bem suave) */
/* Como o CSS está em /css, use ../img/ no caminho */
.hero-portfolio{
  min-height: 56vh;
  position: relative;
  background-image:
    radial-gradient(1200px 600px at 15% 20%, rgba(251,0,0,.10), transparent 60%),
    radial-gradient(1000px 600px at 85% 80%, rgba(251,0,0,.06), transparent 60%),
    linear-gradient(180deg, rgba(0,0,0,.86), rgba(0,0,0,.96)),
    url('../img/img_nobreak.jpg');              /* troque se quiser outra */
  background-size: auto, auto, auto, cover;
  background-position: center, center, center, center;
  background-repeat: no-repeat;
  background-attachment: scroll, scroll, scroll, fixed;
}
@media (max-width:1024px){
  .hero-portfolio{ background-attachment: scroll, scroll, scroll, scroll; }
}
.hero-portfolio .subtitle{
  color:#dcdcdc; margin-top:8px; font-size:clamp(16px,2.1vw,20px);
}

/* Overlay de grade sutil (toque futurista) */
.grid-overlay{
  position:absolute; inset:0; pointer-events:none; z-index:0;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.02) 0 1px, transparent 1px 80px),
    repeating-linear-gradient(0deg,  rgba(255,255,255,.02) 0 1px, transparent 1px 80px);
  mask-image: linear-gradient(180deg, transparent, rgba(0,0,0,.7) 20%, rgba(0,0,0,.9));
}

/* Marquee de logos (movimento contínuo) */
.marquee-zone{ padding:26px 0; overflow:hidden; border-top:1px solid rgba(255,255,255,.06); border-bottom:1px solid rgba(255,255,255,.06); }
.marquee{ position:relative; width:100%; overflow:hidden; }
.marquee .track{
  display:flex; align-items:center; gap:44px;
  animation: scrollX 28s linear infinite;
  will-change: transform;
}
.marquee img{
  height:44px; width:auto; opacity:.75; filter:grayscale(100%); transition:.2s;
}
.marquee img:hover{ opacity:1; filter:none; transform:scale(1.05); }
@keyframes scrollX{
  from{ transform:translateX(0); }
  to{   transform:translateX(-50%); } /* metade porque duplicamos os logos */
}

/* Grade de clientes (cartões com neon/glass) */
.clients-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap:22px;
  margin-top:28px;
}
.client-card{
  aspect-ratio: 1 / 1;                  /* quadrado perfeito */
  display:flex; align-items:center; justify-content:center;
  background: rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.12);
  border-radius:18px;
  position:relative;
  overflow:hidden;
  transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  box-shadow: inset 0 0 0 1px rgba(255,0,0,0); /* start sem glow */
  backdrop-filter: blur(4px);
}
.client-card::after{
  content:"";
  position:absolute; inset:-1px;
  border-radius:18px;
  background: radial-gradient(60% 50% at 50% 110%, rgba(251,0,0,.18), transparent 60%);
  opacity:0; transition:.25s;
}
.client-card img{
  max-width:74%; max-height:70%;
  filter:grayscale(100%) contrast(.9) brightness(.9);
  opacity:.9; transition:.25s;
}
.client-card:hover{
  transform:translateY(-6px) scale(1.02);
  box-shadow:0 10px 30px rgba(251,0,0,.10), inset 0 0 0 1px rgba(251,0,0,.35);
  border-color: rgba(251,0,0,.35);
}
.client-card:hover::after{ opacity:1; }
.client-card:hover img{ filter:none; opacity:1; }

/* Animação de entrada (reveal ao rolar) */
.reveal{ opacity:0; transform:translateY(18px); transition:opacity .6s ease, transform .6s ease; }
.reveal.in-view{ opacity:1; transform:none; }

/* Ajustes gerais desta página */
.section-gap{ padding:72px 0; }
.text-center{ text-align:center; }
