/* ==========================================================================
   UNITY X - ESTILOS PERSONALIZADOS & EFEITOS NEON
   ========================================================================== */

/* Fontes importadas no HTML: Plus Jakarta Sans */
:root {
  --neon-cyan: #00f2fe;
  --neon-teal: #05dfd7;
  --neon-emerald: #10b981;
  --neon-whatsapp: #25d366;
  --neon-purple: #8b5cf6;
  --bg-deep: #05070c;
}

/* Reset básico e suavização */
html, body {
  background-color: var(--bg-deep);
  color: #f1f5f9;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100vh;
}

/* Seleção de texto com cor neon */
::selection {
  background: rgba(0, 242, 254, 0.35);
  color: #ffffff;
}

/* ==========================================================================
   EFEITOS NEON & GLOWS
   ========================================================================== */

/* Brilho neon no texto */
.text-neon-cyan {
  text-shadow: 
    0 0 10px rgba(0, 242, 254, 0.6),
    0 0 25px rgba(0, 242, 254, 0.35),
    0 0 50px rgba(0, 242, 254, 0.15);
}

.text-neon-gradient {
  background: linear-gradient(135deg, #ffffff 0%, #38bdf8 35%, #00f2fe 70%, #05dfd7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 15px rgba(0, 242, 254, 0.3));
}

/* Brilho neon da logo */
.logo-neon-glow {
  filter: drop-shadow(0 0 18px rgba(0, 242, 254, 0.4))
          drop-shadow(0 0 35px rgba(5, 223, 215, 0.2));
  transition: filter 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-neon-glow:hover {
  filter: drop-shadow(0 0 25px rgba(0, 242, 254, 0.75))
          drop-shadow(0 0 50px rgba(5, 223, 215, 0.45));
  transform: translateY(-2px) scale(1.02);
}

/* Caixa com borda e halo neon */
.neon-glass-card {
  background: radial-gradient(120% 120% at 50% 10%, rgba(15, 23, 42, 0.65) 0%, rgba(5, 7, 12, 0.8) 100%);
  border: 1px solid rgba(0, 242, 254, 0.18);
  box-shadow: 
    0 0 30px rgba(0, 242, 254, 0.08),
    inset 0 1px 1px rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: relative;
}

/* Borda viva pulsante */
.neon-glass-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.5), rgba(139, 92, 246, 0.2), rgba(0, 242, 254, 0.5));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.7;
}

/* ==========================================================================
   BOTÃO WHATSAPP NEON
   ========================================================================== */

.btn-whatsapp-neon {
  position: relative;
  background: linear-gradient(135deg, #10b981 0%, #05dfd7 50%, #00f2fe 100%);
  color: #031310;
  font-weight: 700;
  box-shadow: 
    0 0 20px rgba(16, 185, 129, 0.45),
    0 0 45px rgba(0, 242, 254, 0.3);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  z-index: 1;
}

.btn-whatsapp-neon::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #05dfd7 0%, #10b981 50%, #25d366 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

.btn-whatsapp-neon:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 
    0 0 35px rgba(16, 185, 129, 0.7),
    0 0 70px rgba(0, 242, 254, 0.55);
}

.btn-whatsapp-neon:hover::before {
  opacity: 1;
}

.btn-whatsapp-neon:active {
  transform: translateY(-1px) scale(0.99);
}

/* Efeito de raio de luz (shimmer) correndo no botão */
.btn-shimmer {
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  transform: skewX(-25deg);
  animation: shimmerLoop 3.5s infinite;
  pointer-events: none;
}

@keyframes shimmerLoop {
  0% { left: -100%; }
  30%, 100% { left: 200%; }
}

/* Ondas de radar neon no botão WhatsApp */
.pulse-ring {
  position: absolute;
  inset: -6px;
  border-radius: 9999px;
  border: 2px solid rgba(0, 242, 254, 0.6);
  animation: ringPulse 2.8s cubic-bezier(0.24, 0, 0.38, 1) infinite;
  pointer-events: none;
  z-index: -2;
}

@keyframes ringPulse {
  0% {
    transform: scale(0.96);
    opacity: 0.9;
  }
  60%, 100% {
    transform: scale(1.22);
    opacity: 0;
  }
}

/* ==========================================================================
   BACKGROUND ANIMATIONS (LOOP)
   ========================================================================== */

/* Orbs de luz neon flutuando em loop */
.neon-orb-1 {
  animation: orbFloat1 18s ease-in-out infinite alternate;
}

.neon-orb-2 {
  animation: orbFloat2 24s ease-in-out infinite alternate;
}

.neon-orb-3 {
  animation: orbFloat3 16s ease-in-out infinite alternate;
}

@keyframes orbFloat1 {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(80px, -60px) scale(1.15);
  }
  100% {
    transform: translate(-60px, 40px) scale(0.9);
  }
}

@keyframes orbFloat2 {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-90px, 70px) scale(1.2);
  }
  100% {
    transform: translate(50px, -50px) scale(0.85);
  }
}

@keyframes orbFloat3 {
  0% {
    transform: translate(0, 0) scale(0.9);
  }
  50% {
    transform: translate(60px, 80px) scale(1.1);
  }
  100% {
    transform: translate(-40px, -30px) scale(1);
  }
}

/* Cyber Grid no rodapé com perspectiva */
.cyber-grid {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 45vh;
  background-image: 
    linear-gradient(to right, rgba(0, 242, 254, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 242, 254, 0.08) 1px, transparent 1px);
  background-size: 50px 50px;
  transform: perspective(600px) rotateX(65deg);
  transform-origin: bottom center;
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, transparent 80%);
  -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, transparent 80%);
  pointer-events: none;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 0 50px;
  }
}

/* ==========================================================================
   ANIMAÇÕES DE ENTRADA (STAGGERED FADE-IN)
   ========================================================================== */

.fade-in-entry {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeInUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }
.delay-4 { animation-delay: 0.6s; }
.delay-5 { animation-delay: 0.75s; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Badge de status neon pulsante */
.neon-badge {
  background: rgba(0, 242, 254, 0.07);
  border: 1px solid rgba(0, 242, 254, 0.25);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.12);
  transition: all 0.3s ease;
}

.neon-badge:hover {
  background: rgba(0, 242, 254, 0.12);
  border-color: rgba(0, 242, 254, 0.4);
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.25);
}

/* Ponto pulsante */
.pulse-dot {
  position: relative;
}

.pulse-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 9999px;
  background: #10b981;
  animation: dotPulse 1.8s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  opacity: 0.75;
}

@keyframes dotPulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* Efeito ripple ao clicar no botão */
.ripple-effect {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: rippleAnim 0.6s linear;
  background-color: rgba(255, 255, 255, 0.45);
  pointer-events: none;
}

@keyframes rippleAnim {
  to {
    transform: scale(2.8);
    opacity: 0;
  }
}

/* Acessibilidade: respeita preferências de menos movimento */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
