@import "tailwindcss";

/* Root container styling - matches original App.css */
#root {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem;
}

/* Custom animations and effects for CloneSuaVoz */

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

@keyframes fade-scale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.animate-slide-up {
  animation: slide-up 0.6s ease-out;
}

.animate-fade-scale {
  animation: fade-scale 0.5s ease-out;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

.animate-shimmer {
  position: relative;
  overflow: hidden;
}

.animate-shimmer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  animation: shimmer 2s infinite;
}

.animation-delay-200 {
  animation-delay: 200ms;
}

.animation-delay-400 {
  animation-delay: 400ms;
}

.animation-delay-600 {
  animation-delay: 600ms;
}

.animation-delay-800 {
  animation-delay: 800ms;
}

.animation-delay-1000 {
  animation-delay: 1000ms;
}

.animation-delay-2000 {
  animation-delay: 2000ms;
}

.animation-delay-4000 {
  animation-delay: 4000ms;
}

.text-gradient-animated {
  background: linear-gradient(45deg, #8B5CF6, #06B6D4, #10B981, #F59E0B);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient 3s ease infinite;
}

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

.text-glow {
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.bg-animated-gradient {
  background: linear-gradient(45deg, #8B5CF6, #06B6D4, #10B981, #F59E0B);
  background-size: 300% 300%;
  animation: gradient 3s ease infinite;
}

.button-glow {
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.5);
}

.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.scroll-indicator {
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 53%, 80%, 100% {
    transform: translate3d(0,0,0) rotate(90deg);
  }
  40%, 43% {
    transform: translate3d(0, -10px, 0) rotate(90deg);
  }
  70% {
    transform: translate3d(0, -5px, 0) rotate(90deg);
  }
  90% {
    transform: translate3d(0, -2px, 0) rotate(90deg);
  }
}

/* Roadmap styles */
.roadmap-trail {
  --trail-color: #10b981; /* Verde - fácil de customizar */
  --trail-inactive: #d1d5db; /* Cinza */
}

.roadmap-progress {
  height: 45%; /* CLI, Python e Go estão ativos */
  transition: height 0.8s ease-in-out;
}

.roadmap-node.active .w-16 {
  background: linear-gradient(135deg, var(--trail-color), #059669);
  animation: pulse-node 2s infinite;
}

@keyframes pulse-node {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
  }
}
