/* ==========================================
   CRISTECH - PORTFÓLIO ESPAÇO GAIA
   NOTEBOOK + CELULAR COM ANIMAÇÃO
========================================== */

.pf-project.pf-featured > .pf-preview.pf-preview-gaia.gaia-showcase {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
  min-width: 0;
  min-height: 390px;
  padding: 40px 22px 26px;
  overflow: hidden;
  isolation: isolate;

  background:
    radial-gradient(
      circle at 78% 22%,
      rgba(255, 100, 192, 0.21),
      transparent 42%
    ),
    radial-gradient(
      circle at 20% 85%,
      rgba(161, 78, 225, 0.2),
      transparent 48%
    ),
    linear-gradient(145deg, #211327 0%, #110d1b 100%);
}

/* ==========================================
   EFEITO DE LUZ ROSA
========================================== */

.gaia-showcase::before {
  content: "";
  position: absolute;
  inset: 12%;
  z-index: -1;
  border-radius: 50%;
  background: rgba(235, 79, 164, 0.13);
  filter: blur(58px);
}

/* ==========================================
   ÁREA DOS DISPOSITIVOS
========================================== */

.gaia-showcase .gaia-devices {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  width: min(100%, 560px);
  min-width: 0;
  padding: 14px 5px 18px;
}

/* ==========================================
   NOTEBOOK
========================================== */

.gaia-showcase .gaia-notebook {
  position: relative;
  flex: 0 0 80%;
  width: 80%;
  min-width: 0;

  filter: drop-shadow(0 22px 24px rgba(0, 0, 0, 0.5));

  animation: gaia-flutuar 7s ease-in-out infinite;
}

.gaia-showcase .gaia-notebook-frame {
  position: relative;
  background: #171923;
  border: 2px solid #656779;
  border-bottom-width: 5px;
  border-radius: 11px 11px 4px 4px;
  padding: 11px 8px 8px;
}

/* Webcam */

.gaia-showcase .gaia-webcam {
  position: absolute;
  top: 4px;
  left: calc(50% - 2px);
  width: 4px;
  height: 4px;
  background: #69717d;
  border-radius: 50%;
}

/* Base do notebook */

.gaia-showcase .gaia-notebook-base {
  width: 110%;
  height: 12px;
  margin-left: -5%;

  background: linear-gradient(#dde0e6 0%, #9699a5 48%, #535461 100%);

  border-radius: 3px 3px 50% 50%;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}

/* ==========================================
   CELULAR
========================================== */

.gaia-showcase .gaia-phone {
  position: relative;
  z-index: 2;
  flex: 0 0 27%;
  width: 27%;
  min-width: 0;
  margin-left: -5%;
  margin-bottom: -5px;

  filter: drop-shadow(0 18px 16px rgba(0, 0, 0, 0.58));

  animation: gaia-flutuar 7.5s ease-in-out -2s infinite;
}

.gaia-showcase .gaia-phone-frame {
  position: relative;
  padding: 7px;
  border: 3px solid #52515f;
  border-radius: 24px;
  background: #0c0c13;
}

.gaia-showcase .gaia-phone-notch {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 7px;
  transform: translateX(-50%);
  width: 36%;
  height: 9px;

  background: #0c0c13;
  border-radius: 0 0 9px 9px;
}

/* ==========================================
   TELAS DOS DISPOSITIVOS
========================================== */

.gaia-showcase .gaia-screen {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  background: #ffffff;
}

/* Tela notebook */

.gaia-showcase .gaia-screen-desktop {
  aspect-ratio: 16 / 10;
  border-radius: 3px;
}

/* Tela celular */

.gaia-showcase .gaia-screen-mobile {
  aspect-ratio: 9 / 19.5;
  border-radius: 16px;
}

/* ==========================================
   IMAGENS DAS CAPTURAS
========================================== */

.gaia-showcase .gaia-screen > .gaia-shot {
  position: absolute;
  display: block;
  top: 0;
  left: 0;
  width: 100%;
  max-width: none;
  height: auto;

  object-fit: initial;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  will-change: transform;
}

/* ==========================================
   ROLAGEM AUTOMÁTICA
========================================== */

/* Notebook */

.gaia-showcase .gaia-screen-desktop > .gaia-shot.gaia-tem-rolagem {
  animation: gaia-rolagem 35s ease-in-out infinite;
}

/* Celular */

.gaia-showcase .gaia-screen-mobile > .gaia-shot.gaia-tem-rolagem {
  animation: gaia-rolagem 35s ease-in-out infinite;
}

/* Rolagem das capturas */

@keyframes gaia-rolagem {
  0%,
  8% {
    transform: translate3d(0, 0, 0);
  }

  52%,
  65% {
    transform: translate3d(0, calc(0px - var(--gaia-distancia, 0px)), 0);
  }

  94%,
  100% {
    transform: translate3d(0, 0, 0);
  }
}

/* ==========================================
   FLUTUAÇÃO DOS DISPOSITIVOS
========================================== */

@keyframes gaia-flutuar {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

/* ==========================================
   TEXTO DA PRÉVIA
========================================== */

.gaia-showcase .gaia-showcase-caption {
  display: block;
  color: #f5d7eb;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: center;
}

/* Pausar ao passar o mouse */

.gaia-showcase:hover .gaia-shot,
.gaia-showcase:focus-within .gaia-shot {
  animation-play-state: paused;
}

/* ==========================================
   RESPONSIVO - TABLET
========================================== */

@media (max-width: 900px) {
  .pf-project.pf-featured > .pf-preview.pf-preview-gaia.gaia-showcase {
    min-height: 300px;
    padding: 26px 14px 18px;
  }

  .gaia-showcase .gaia-devices {
    width: min(100%, 490px);
  }
}

/* ==========================================
   RESPONSIVO - CELULAR
========================================== */

@media (max-width: 480px) {
  .pf-project.pf-featured > .pf-preview.pf-preview-gaia.gaia-showcase {
    min-height: 260px;
    padding: 24px 10px 16px;
  }

  .gaia-showcase .gaia-phone-frame {
    padding: 4px;
    border-width: 2px;
    border-radius: 18px;
  }

  .gaia-showcase .gaia-screen-mobile {
    border-radius: 12px;
  }

  .gaia-showcase .gaia-notebook-frame {
    padding: 8px 5px 5px;
  }

  .gaia-showcase .gaia-notebook-base {
    height: 9px;
  }
}

/* ==========================================
   ACESSIBILIDADE
========================================== */

@media (prefers-reduced-motion: reduce) {
  .gaia-showcase .gaia-notebook,
  .gaia-showcase .gaia-phone,
  .gaia-showcase .gaia-screen > .gaia-shot.gaia-tem-rolagem {
    animation: none;
  }
}
