/* 🎮 PSMP 2026 - Visual Effects CSS 🎮 */

/* === BACKGROUND COM FORMAS GEOMÉTRICAS ANIMADAS === */
body {
  position: relative;
  overflow-x: hidden;
  background: linear-gradient(135deg, #0f0a1e 0%, #1a0f2e 50%, #0f0a1e 100%);
}

/* Formas geométricas flutuantes */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(
      135deg,
      transparent 0%,
      transparent 49%,
      rgba(147, 51, 234, 0.03) 50%,
      rgba(147, 51, 234, 0.03) 51%,
      transparent 52%,
      transparent 100%
    ),
    linear-gradient(
      45deg,
      transparent 0%,
      transparent 49%,
      rgba(168, 85, 247, 0.03) 50%,
      rgba(168, 85, 247, 0.03) 51%,
      transparent 52%,
      transparent 100%
    );
  background-size: 40px 40px;
  animation: moveGrid 60s linear infinite;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

/* Círculos decorativos flutuantes */
body::after {
  content: '';
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-image: radial-gradient(
      circle at 10% 20%,
      rgba(147, 51, 234, 0.15) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 90% 80%,
      rgba(168, 85, 247, 0.15) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 50% 50%,
      rgba(192, 132, 252, 0.1) 0%,
      transparent 50%
    );
  animation: float 20s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes moveGrid {
  0% {
    transform: translateY(0) translateX(0);
  }
  100% {
    transform: translateY(40px) translateX(40px);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) scale(1);
  }
  50% {
    transform: translateY(-30px) scale(1.1);
  }
}

/* === HEXÁGONOS DECORATIVOS === */
@keyframes hexFloat {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* === ANIMAÇÕES DE TEXTO MAIS SUTIS === */
.glow-text {
  text-shadow: 0 0 20px rgba(147, 51, 234, 0.3),
    0 0 40px rgba(147, 51, 234, 0.2);
  animation: subtleGlow 4s ease-in-out infinite;
}

@keyframes subtleGlow {
  0%,
  100% {
    text-shadow: 0 0 20px rgba(147, 51, 234, 0.3),
      0 0 40px rgba(147, 51, 234, 0.2);
  }
  50% {
    text-shadow: 0 0 30px rgba(147, 51, 234, 0.5),
      0 0 50px rgba(147, 51, 234, 0.3);
  }
}

/* === CARDS COM EFEITOS LEGAIS === */
.glass-card {
  position: relative;
  background: linear-gradient(
    135deg,
    rgba(30, 27, 39, 0.85) 0%,
    rgba(20, 18, 28, 0.9) 100%
  );
  border: 1px solid rgba(147, 51, 234, 0.2);
  border-radius: 1rem;
  backdrop-filter: blur(10px);
  overflow: hidden;
  transition: all 0.3s ease;
}

/* Efeito de barra de luz passando */
.glass-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(147, 51, 234, 0.1) 50%,
    transparent 70%
  );
  transform: translateX(-100%) translateY(-100%) rotate(45deg);
  transition: transform 0.6s;
}

.glass-card:hover::before {
  transform: translateX(100%) translateY(100%) rotate(45deg);
}

.glass-card:hover {
  transform: translateY(-5px);
  border-color: rgba(147, 51, 234, 0.4);
  box-shadow: 0 10px 40px rgba(147, 51, 234, 0.2);
}

/* Form card sem hover effects */
.form-card::before {
  display: none;
}

.form-card:hover {
  transform: none;
  border-color: rgba(147, 51, 234, 0.2);
  box-shadow: none;
}

/* === COUNTDOWN COM VISUAL MAIS CLEAN === */
.countdown-digit {
  position: relative;
  background: linear-gradient(
    135deg,
    rgba(30, 27, 39, 0.9) 0%,
    rgba(20, 18, 28, 0.95) 100%
  );
  border: 2px solid rgba(147, 51, 234, 0.3);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  overflow: hidden;
}

/* Partículas flutuantes dentro do countdown */
.countdown-digit::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(
      circle,
      rgba(147, 51, 234, 0.3) 1px,
      transparent 1px
    ),
    radial-gradient(circle, rgba(168, 85, 247, 0.2) 1px, transparent 1px);
  background-size: 20px 20px, 30px 30px;
  background-position: 0 0, 10px 10px;
  animation: floatParticles 10s linear infinite;
  opacity: 0.3;
}

@keyframes floatParticles {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-20px);
  }
}

.countdown-digit:hover {
  transform: scale(1.05);
  border-color: rgba(147, 51, 234, 0.6);
  box-shadow: 0 0 30px rgba(147, 51, 234, 0.3);
}

/* === BOXES COM GLOW REDUZIDO === */
.glow-box {
  box-shadow: 0 0 20px rgba(147, 51, 234, 0.2);
  transition: all 0.3s ease;
}

.glow-box-strong {
  box-shadow: 0 0 30px rgba(147, 51, 234, 0.3),
    0 0 60px rgba(147, 51, 234, 0.15);
  animation: subtlePulse 3s ease-in-out infinite;
}

@keyframes subtlePulse {
  0%,
  100% {
    box-shadow: 0 0 30px rgba(147, 51, 234, 0.3),
      0 0 60px rgba(147, 51, 234, 0.15);
  }
  50% {
    box-shadow: 0 0 40px rgba(147, 51, 234, 0.4),
      0 0 70px rgba(147, 51, 234, 0.2);
  }
}

/* === FORMS COM ESTILO === */
input[type='text'],
input[type='email'],
textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(30, 27, 39, 0.6);
  border: 2px solid rgba(147, 51, 234, 0.2);
  border-radius: 0.75rem;
  color: #e5e7eb;
  font-size: 1rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

input[type='text']:focus,
input[type='email']:focus,
textarea:focus {
  outline: none;
  border-color: rgb(147, 51, 234);
  background: rgba(30, 27, 39, 0.8);
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(147, 51, 234, 0.2);
}

input[type='text']:hover,
input[type='email']:hover,
textarea:hover {
  border-color: rgba(147, 51, 234, 0.4);
}

input[type='text']::placeholder,
input[type='email']::placeholder,
textarea::placeholder {
  color: #9ca3af;
}

textarea {
  resize: vertical;
  min-height: 100px;
}

/* === BOTÕES COM EFEITOS VISUAIS === */
a[class*='bg-gradient'],
button[class*='bg-gradient'] {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

/* Efeito de onda ao passar o mouse */
a[class*='bg-gradient']::after,
button[class*='bg-gradient']::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.5s, height 0.5s;
}

a[class*='bg-gradient']:hover::after,
button[class*='bg-gradient']:hover::after {
  width: 300px;
  height: 300px;
}

a[class*='bg-gradient']:hover,
button[class*='bg-gradient']:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 30px rgba(147, 51, 234, 0.3);
}

/* === ÍCONES ANIMADOS === */
i[data-lucide] {
  transition: all 0.3s ease;
  filter: drop-shadow(0 0 5px rgba(147, 51, 234, 0.3));
}

.glass-card:hover i[data-lucide] {
  transform: scale(1.1) rotate(5deg);
  filter: drop-shadow(0 0 10px rgba(147, 51, 234, 0.5));
}

/* === LOGO FLUTUANTE === */
.animate-float {
  animation: gentleFloat 6s ease-in-out infinite;
}

@keyframes gentleFloat {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
  }
}

/* === SCROLL SUAVE === */
html {
  scroll-behavior: smooth;
}

/* === SCROLLBAR ESTILIZADA === */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #0f0a1e;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(
    180deg,
    rgba(147, 51, 234, 0.6) 0%,
    rgba(168, 85, 247, 0.4) 100%
  );
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
    180deg,
    rgba(147, 51, 234, 0.8) 0%,
    rgba(168, 85, 247, 0.6) 100%
  );
}

/* === SEÇÕES === */
section {
  position: relative;
  z-index: 1;
}

/* === FAQ HOVER === */
.faq-question {
  transition: all 0.3s ease;
}

.faq-question:hover {
  color: rgb(168, 85, 247);
  transform: translateX(5px);
}

/* === BADGES COM PULSE === */
.glass-card > .absolute {
  animation: gentlePulse 2s ease-in-out infinite;
}

@keyframes gentlePulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* === LINKS COM HOVER === */
a[class*='border'] {
  transition: all 0.3s ease;
}

a[class*='border']:hover {
  border-color: rgb(147, 51, 234);
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(147, 51, 234, 0.2);
}

/* === FORMAS DECORATIVAS NO HERO === */
.hero-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
  pointer-events: none;
}

.hero-shape-1 {
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(147, 51, 234, 0.4) 0%,
    transparent 70%
  );
  top: 10%;
  left: -150px;
  animation: float 15s ease-in-out infinite;
}

.hero-shape-2 {
  width: 200px;
  height: 200px;
  background: radial-gradient(
    circle,
    rgba(168, 85, 247, 0.3) 0%,
    transparent 70%
  );
  bottom: 10%;
  right: -100px;
  animation: float 20s ease-in-out infinite reverse;
}

/* === EFEITO DE SCAN LINE === */
@keyframes scanline {
  0% {
    top: -50%;
  }
  100% {
    top: 150%;
  }
}

/* === RESPONSIVIDADE === */
@media (max-width: 768px) {
  body::before {
    background-size: 20px 20px;
  }

  .hero-shape {
    display: none;
  }
}

/* === ANIMAÇÕES DE ENTRADA === */
.fade-in {
  animation: fadeInUp 0.6s ease-out;
}

.slide-in-left {
  animation: slideIn 0.6s ease-out;
}

.slide-in-right {
  animation: slideInRight 0.6s ease-out;
}

.scale-in {
  animation: scaleIn 0.6s ease-out;
}
