/* Animações personalizadas */
@keyframes spin-slow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes spin-reverse {
    from {
        transform: rotate(360deg);
    }
    to {
        transform: rotate(0deg);
    }
}

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

/* Animação fluida para palavras */
.word-transition {
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes highlight {
    0% {
        background-size: 0% 100%;
    }
    100% {
        background-size: 100% 100%;
    }
}

/* Classes de animação */
.animate-spin-slow {
    animation: spin-slow 8s linear infinite;
}

.animate-spin-reverse {
    animation: spin-reverse 6s linear infinite;
}

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

/* Gradiente de fundo */
.bg-gradient-yellow {
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 1) 0%,
        rgba(254, 252, 232, 0.3) 20%,
        rgba(254, 240, 138, 0.4) 60%,
        rgba(254, 240, 138, 0.6) 100%
    );
}

/* Marca-texto amarelo animado */
.highlight-text {
    background: linear-gradient(90deg, 
        rgba(254, 240, 138, 0.3) 0%,
        rgba(254, 240, 138, 0.5) 30%,
        rgba(254, 240, 138, 0.7) 70%,
        rgba(254, 240, 138, 0.9) 100%
    );
    background-size: 0% 100%;
    background-repeat: no-repeat;
    background-position: left center;
    animation: highlight 3s ease-in-out forwards;
    animation-delay: 1s;
    padding: 2px 4px;
    border-radius: 4px;
}

/* Palavras animadas */
.animated-words {
    position: relative;
    overflow: hidden;
    height: 1.2em;
}

.word {
    position: absolute;
    width: 100%;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.5s ease-in-out;
}

.word.active {
    opacity: 1;
    transform: translateY(0);
}

.word.exit {
    opacity: 0;
    transform: translateY(-100%);
}

/* Efeitos hover personalizados */
.hover-scale:hover {
    transform: scale(1.05);
}

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(147, 51, 234, 0.3);
}

/* Responsividade para vídeos */
.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Estilo para vídeos quadrados */
.video-square {
    width: 120px;
    height: 120px;
    border-radius: 16px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.video-square:hover {
    transform: scale(1.05);
}

/* Melhorias no FAQ */
.faq-toggle svg {
    transition: transform 0.2s ease;
}

.faq-toggle.active svg {
    transform: rotate(180deg);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-content.show {
    max-height: 500px;
}

/* Efeitos de gradiente */
.gradient-text {
    background: linear-gradient(135deg, #9333ea, #f97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Sombras personalizadas */
.shadow-purple {
    box-shadow: 0 10px 25px rgba(147, 51, 234, 0.15);
}

.shadow-orange {
    box-shadow: 0 10px 25px rgba(249, 115, 22, 0.15);
}

/* Botões com efeitos especiais */
.btn-primary {
    background: linear-gradient(135deg, #9333ea, #7c3aed);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(147, 51, 234, 0.3);
}

/* Animação de loading para vídeos */
.video-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Melhorias na tipografia */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Estilo para elementos flutuantes */
.floating {
    animation: floating 3s ease-in-out infinite;
}

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

/* Melhorias no layout mobile */
@media (max-width: 768px) {
    .mobile-stack {
        flex-direction: column;
    }
    
    .mobile-center {
        text-align: center;
    }
    
    .mobile-full {
        width: 100%;
    }
}

/* Efeitos de transição suaves */
.smooth-transition {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Estilo para elementos destacados */
.highlight-box {
    background: linear-gradient(135deg, rgba(254, 240, 138, 0.1), rgba(147, 51, 234, 0.1));
    border: 1px solid rgba(147, 51, 234, 0.2);
    border-radius: 12px;
    padding: 1rem;
}

/* Animação de entrada para elementos */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Delays para animações escalonadas */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
