/* ============================================================
   Depth Carousel — estilos (porte do componente React Bits)
   Só entra em ação no celular; no desktop a grade original é mantida.
   ============================================================ */

.depth-carousel {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: var(--dc-perspective, 1400px);
  perspective-origin: 50% 50%;
  touch-action: pan-y;          /* deixa a página rolar na vertical */
  outline: none;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
}
.depth-carousel:active { cursor: grabbing; }
.depth-carousel:focus-visible {
  outline: 2px solid rgba(255, 255, 255, .5);
  outline-offset: 4px;
  border-radius: 12px;
}

.depth-carousel__stage {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}

.depth-carousel__card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform-origin: center center;
  overflow: hidden;
  background: #0b0d12;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.65), 0 8px 20px -10px rgba(0,0,0,.5);
  will-change: transform, opacity, filter;
  cursor: pointer;
  transform: translate(-50%, -50%);
}

/* o card original do portfólio vai aqui dentro e preenche a face */
.depth-carousel__content {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
}
.depth-carousel__content > * {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  border-radius: inherit !important;
}
/* o card ocupa exatamente a altura do próprio conteúdo (definida no
   mount), então a prévia mantém a proporção original do site */
.depth-carousel__content > * { justify-content: flex-start !important; }
/* as imagens dos mockups preenchem o card sem distorcer */
.depth-carousel__content img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  -webkit-user-drag: none;
}

.depth-carousel__tint {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  mix-blend-mode: multiply;
}

.depth-carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3000;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(18,20,26,.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.depth-carousel__arrow:hover {
  background: rgba(28,31,40,.85);
  border-color: rgba(255,255,255,.4);
}
.depth-carousel__arrow:active { transform: translateY(-50%) scale(.94); }
.depth-carousel__arrow--prev { left: 8px; }
.depth-carousel__arrow--next { right: 8px; }

.depth-carousel__dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3000;
  display: flex;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(14,16,22,.4);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.depth-carousel__dot {
  width: 7px; height: 7px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(255,255,255,.32);
  cursor: pointer;
  transition: width .25s ease, background .25s ease;
}
/* item atual destacado na cor da marca */
.depth-carousel__dot.is-active {
  width: 20px;
  background: #8fe93c;
}

/* dica de interação abaixo do carrossel */
.dc-hint {
  margin-top: 10px;
  text-align: center;
  font-size: 12.5px;
  color: #7A7A85;
}

@media (prefers-reduced-motion: reduce) {
  .depth-carousel__card { will-change: auto; }
  .depth-carousel__arrow,
  .depth-carousel__dot { transition: none; }
}

/* ============================================================
   Página de portfólio em telas menores que o desenho (1080px)
   O layout foi feito com largura fixa; abaixo disso ele vira fluido em
   vez de estourar a tela. O carrossel entra só até 820px (celular).
   ============================================================ */
@media (max-width: 1079px) {
  [style*="min-width:1080px"],
  [style*="min-width: 1080px"] {
    min-width: 0 !important;
    padding: 28px 20px 60px !important;
  }
  header { display: block !important; margin-bottom: 34px !important; }
  header > div { flex: none !important; }
  h1 { font-size: clamp(28px, 7vw, 44px) !important; line-height: 1.08 !important; }
  h2 { font-size: clamp(22px, 5vw, 30px) !important; }
  header p { max-width: none !important; }
  header > div:last-child { margin-top: 26px !important; padding: 20px 18px !important; }
  footer { display: block !important; font-size: 12.5px !important; }
  footer span { display: block; margin-top: 8px; }
  /* as grades de 2 colunas viram uma só */
  [style*="grid-template-columns:repeat(2,1fr)"],
  [style*="grid-template-columns: repeat(2, 1fr)"] { grid-template-columns: 1fr !important; }
}

/* ============================================================
   Seção de portfólio da home
   O carrossel do celular recebe TODOS os projetos; no desktop a grade
   segue mostrando só os 4 primeiros, para a home continuar sendo uma
   chamada e não uma cópia da página /portfolio/.
   ============================================================ */
@media (min-width: 821px) {
  .lp-grid > .lp-card:nth-child(n+5) { display: none; }
}

/* cards cuja prévia é a captura da página */
.lp-shot--img {
  position: relative;
  display: block;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  padding: 0;
}
.lp-shot--img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
/* dentro do carrossel a imagem acompanha a altura do card */
.depth-carousel__content .lp-shot--img { aspect-ratio: auto; flex: 1 1 auto; min-height: 0; }
