/* Cloud5 Studios - Custom Styles */

/* Configuração de cores personalizadas */
:root {
  /* Cloud5 Gaming Theme - Preto (30%), Roxo (20%), Vermelho (10%) */
  --background: #000000;
  --foreground: #ffffff;
  --card: #0a0a0a;
  --card-foreground: #ffffff;
  --popover: #1a1a1a;
  --popover-foreground: #ffffff;
  --primary: #8b5cf6; /* Roxo */
  --primary-foreground: #ffffff;
  --secondary: #1f1f1f; /* Preto secundário */
  --secondary-foreground: #ffffff;
  --muted: #262626;
  --muted-foreground: #a3a3a3;
  --accent: #dc2626; /* Vermelho */
  --accent-foreground: #ffffff;
  --destructive: #dc2626; /* Vermelho para destrutivo */
  --border: #8b5cf6; /* Roxo para bordas */
  --input: #1f1f1f;
  --ring: #8b5cf6; /* Roxo para focus ring */
}

/* Configuração de fontes */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  background-color: var(--background);
  color: var(--foreground);
}

/* Animações personalizadas para gaming */
@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
  }
  50% {
    box-shadow: 0 0 30px rgba(220, 38, 38, 0.4), 0 0 40px rgba(139, 92, 246, 0.3);
  }
}

@keyframes pulse-glow {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

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

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes particle-float {
  0%, 100% {
    transform: translateY(0px) translateX(0px);
    opacity: 0.3;
  }
  25% {
    transform: translateY(-30px) translateX(15px);
    opacity: 0.8;
  }
  75% {
    transform: translateY(-15px) translateX(-15px);
    opacity: 0.6;
  }
}

/* Classes de animação */
.glow-effect {
  animation: glow 3s ease-in-out infinite;
}

.pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fade-in-left {
  animation: fadeInLeft 0.8s ease-out forwards;
}

.animate-fade-in-right {
  animation: fadeInRight 0.8s ease-out forwards;
}

.animation-delay-200 {
  animation-delay: 0.2s;
}

.animation-delay-300 {
  animation-delay: 0.3s;
}

.animation-delay-600 {
  animation-delay: 0.6s;
}

.animation-delay-900 {
  animation-delay: 0.9s;
}

/* Efeitos de hover personalizados */
.glow-card {
  transition: all 0.3s ease;
}

.glow-card:hover {
  transform: scale(1.02);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}

.hover-glow:hover {
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
  transition: box-shadow 0.3s ease;
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #8b5cf6, #dc2626);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, #a855f7, #ef4444);
}

/* Background patterns para gaming */
.gaming-pattern {
  background-image: 
    radial-gradient(circle at 25% 25%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(220, 38, 38, 0.1) 0%, transparent 50%);
}

/* Partículas flutuantes */
.floating-particle {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(45deg, rgba(139, 92, 246, 0.2), rgba(220, 38, 38, 0.2));
  animation: particle-float 10s ease-in-out infinite;
  pointer-events: none;
}

/* Efeito de digitação */
#cursor {
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0%, 50% {
    opacity: 1;
  }
  51%, 100% {
    opacity: 0;
  }
}

/* Scroll reveal */
.scroll-reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease-out;
}

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

/* Responsividade adicional */
@media (max-width: 768px) {
  .text-6xl {
    font-size: 3rem;
  }
  
  .md\:text-8xl {
    font-size: 4rem;
  }
  
  .text-4xl {
    font-size: 2.5rem;
  }
  
  .md\:text-5xl {
    font-size: 3rem;
  }
}

/* Otimizações de performance */
* {
  box-sizing: border-box;
}

.backdrop-blur-sm {
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Transições suaves para todos os elementos interativos */
a, button, .glow-card {
  transition: all 0.3s ease;
}

/* Estados de foco para acessibilidade */
a:focus, button:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Melhorias de contraste */
.bg-gradient-to-r {
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Animação do mouse follower */
#mouse-follower {
  transform: translate(-50%, -50%);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}