/* ==========================================================================
   PARALLAX SCROLLING & MICRO-INTERAÇÕES (APPLE STYLE)
   Leve, Fluido, 60fps Constante, Respeito a prefers-reduced-motion
   ========================================================================== */

/* Camadas de Fundo Parallax */
.parallax-bg-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}

.parallax-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  pointer-events: none;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 113, 227, 0.15) 0%, rgba(251, 251, 253, 0) 70%);
  top: -100px;
  right: -100px;
}

.orb-2 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(94, 92, 230, 0.12) 0%, rgba(251, 251, 253, 0) 70%);
  top: 40%;
  left: -120px;
}

.orb-3 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(52, 199, 89, 0.08) 0%, rgba(251, 251, 253, 0) 70%);
  bottom: 5%;
  right: -150px;
}

/* Revelação Suave ao Scroll (Seguro com Fallback Progressivo) */
.reveal-on-scroll {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

/* Quando o JavaScript ativa a observação de scroll, oculta apenas os elementos abaixo do viewport */
.has-reveal .reveal-on-scroll:not(.is-revealed) {
  opacity: 0;
  transform: translateY(22px);
}

.has-reveal .reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Variações de atraso para efeito cascata */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* Parallax suave em elementos flutuantes */
[data-parallax-speed] {
  will-change: transform;
  transition: transform 0.1s ease-out;
}

/* Efeito de Card Flutuante Interativo */
.floating-card {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-card:hover {
  transform: translateY(-6px) scale(1.01);
}

/* Indicador de Rolagem Sutil no Hero */
.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  color: var(--text-tertiary);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.8;
  animation: bounceSoft 2.4s infinite ease-in-out;
}

.scroll-indicator-mouse {
  width: 22px;
  height: 34px;
  border: 2px solid var(--text-tertiary);
  border-radius: 12px;
  position: relative;
}

.scroll-indicator-wheel {
  width: 3px;
  height: 6px;
  background: var(--text-tertiary);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 1.8s infinite;
}

@keyframes scrollWheel {
  0% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, 14px); }
}

@keyframes bounceSoft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* Desativação de movimento para acessibilidade */
@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  
  [data-parallax-speed] {
    transform: none !important;
  }
  
  .scroll-indicator {
    animation: none;
  }
}
