/* ==========================================================================
   RITA FERREIRA MARKETING — PARALLAX & ANIMAÇÕES 3D
   ========================================================================== */

/* Camadas de Parallax */
.parallax-container {
  position: relative;
  overflow: hidden;
}

.parallax-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  will-change: transform;
}

/* Partículas e Esferas Flutuantes Decorativas */
.parallax-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.6;
  pointer-events: none;
  will-change: transform;
}

.orb-1 {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(244, 132, 95, 0.28) 0%, transparent 70%);
  top: 10%;
  left: -5%;
  animation: orb-float 18s ease-in-out infinite alternate;
}

.orb-2 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(157, 101, 255, 0.22) 0%, transparent 70%);
  top: 45%;
  right: -8%;
  animation: orb-float 22s ease-in-out infinite alternate-reverse;
}

.orb-3 {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(255, 200, 118, 0.2) 0%, transparent 70%);
  bottom: 5%;
  left: 15%;
  animation: orb-float 16s ease-in-out infinite alternate;
}

@keyframes orb-float {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(30px, -40px) scale(1.12);
  }
  100% {
    transform: translate(-25px, 35px) scale(0.95);
  }
}

/* Animações Flutuantes dos Cards do Hero */
.floating-element-1 {
  animation: float-gentle 6s ease-in-out infinite;
}

.floating-element-2 {
  animation: float-gentle 7s ease-in-out infinite 1.5s;
}

.floating-element-3 {
  animation: float-gentle 6.5s ease-in-out infinite 0.75s;
}

@keyframes float-gentle {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-12px) rotate(0.8deg);
  }
}

/* Efeito Tilt 3D em Cards (ativado por Javascript e CSS) */
.tilt-card {
  transform-style: preserve-3d;
  transform: perspective(1000px);
  will-change: transform;
  transition: transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.tilt-inner {
  transform: translateZ(28px);
}

/* Revelação Suave ao Rolar (Scroll Reveal) */
.reveal-fade-up {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-fade-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-fade-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-fade-scale {
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.revealed {
  opacity: 1 !important;
  transform: translate(0, 0) scale(1) !important;
}

/* Stagger Delays para Animações em 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; }
.delay-5 { transition-delay: 0.5s; }

/* Efeito de Vidro e Brilho de Borda Dinâmico */
.glow-border {
  position: relative;
}

.glow-border::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(244, 132, 95, 0.4), transparent 40%, rgba(157, 101, 255, 0.4));
  z-index: -1;
  opacity: 0.4;
  transition: opacity 0.3s ease;
}

.glow-border:hover::after {
  opacity: 1;
}

/* Barra de Progresso no Topo */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--gradient-primary);
  width: 0%;
  z-index: 9999;
  transition: width 0.1s linear;
}

/* Grid Parallax Interativo do Background */
.parallax-bg-mesh {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(244, 132, 95, 0.04) 0%, transparent 45%);
  transition: background-image 0.15s ease-out;
}

/* ==========================================================================
   PARALLAX DE FUNDO COM IMAGEM DE MARKETING DIGITAL
   ========================================================================== */
.parallax-marketing-section {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
}

.parallax-marketing-bg {
  position: absolute;
  top: -20%;
  left: 0;
  width: 100%;
  height: 140%;
  background-image: url('../img/bg-marketing-dark.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  will-change: transform;
  z-index: 1;
}

.parallax-marketing-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, 
    rgba(9, 11, 16, 0.94) 0%, 
    rgba(9, 11, 16, 0.78) 50%, 
    rgba(9, 11, 16, 0.94) 100%),
    radial-gradient(ellipse at 50% 50%, rgba(244, 132, 95, 0.15), transparent 75%);
  z-index: 2;
  pointer-events: none;
}

.parallax-marketing-content {
  position: relative;
  z-index: 3;
}

/* Imagem de Fundo Parallax Sutil no Hero */
.hero-bg-marketing {
  position: absolute;
  top: -15%;
  right: -10%;
  width: 65%;
  height: 130%;
  background-image: url('../img/bg-marketing.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.12;
  mask-image: radial-gradient(ellipse at 60% 50%, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 60% 50%, black 20%, transparent 75%);
  z-index: 0;
  pointer-events: none;
  will-change: transform;
}

