/* =========================================
   ELEVAMIND - ANIMAÇÕES E EFEITOS VISUAIS
   ========================================= */

/* =========================================
   1. HERO - EFEITO PARALLAX E PARTÍCULAS
   ========================================= */

.hero-section {
    position: relative;
    overflow: hidden;
}

/* Gradiente animado no fundo */
.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.1) 0%, transparent 50%);
    animation: pulseGlow 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pulseGlow {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(10%, 10%) scale(1.1);
        opacity: 0.8;
    }
}

/* Partículas flutuantes */
.hero-section .container {
    position: relative;
}

.hero-section .container::before,
.hero-section .container::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.hero-section .container::before {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.hero-section .container::after {
    width: 200px;
    height: 200px;
    bottom: -50px;
    left: -50px;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-30px) rotate(5deg);
    }
}

/* =========================================
   2. TEXTO GRADIENTE ANIMADO
   ========================================= */

.text-gradient {
    background: linear-gradient(
        90deg,
        var(--primary-light) 0%,
        var(--primary) 25%,
        var(--primary-lighter) 50%,
        var(--primary) 75%,
        var(--primary-light) 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
}

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

/* =========================================
   3. BOTÕES COM EFEITOS
   ========================================= */

/* Efeito ripple nos botões */
.btn-primary,
.btn-premium,
.btn-success {
    position: relative;
    overflow: hidden;
}

.btn-primary::after,
.btn-premium::after,
.btn-success::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-primary:active::after,
.btn-premium:active::after,
.btn-success:active::after {
    width: 300px;
    height: 300px;
}

/* Efeito glow no hover */
.btn-primary:hover {
    box-shadow: 
        0 8px 32px rgba(13, 148, 136, 0.5),
        0 0 40px rgba(34, 197, 94, 0.3);
}

.btn-premium:hover {
    box-shadow: 
        0 8px 32px rgba(139, 92, 246, 0.5),
        0 0 40px rgba(167, 139, 250, 0.3);
}

/* =========================================
   4. CARDS - HOVER SUTIL
   ========================================= */

.card.hover-effect {
    transition: border-color 0.3s ease;
}

/* =========================================
   5. ÍCONES ANIMADOS
   ========================================= */

.icon-gradient-primary,
.icon-gradient-premium {
    transition: all 0.4s ease;
}

.card:hover .icon-gradient-primary,
.card:hover .icon-gradient-premium {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 30px rgba(34, 197, 94, 0.4);
}

.card-premium:hover .icon-gradient-premium {
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
}

/* Ícones de check animados */
.fa-check-circle {
    transition: transform 0.3s ease;
}

li:hover .fa-check-circle {
    transform: scale(1.2);
}

/* =========================================
   6. BADGE POPULAR PULSANTE
   ========================================= */

.badge-popular {
    animation: pulseBadge 2s ease-in-out infinite;
}

@keyframes pulseBadge {
    0%, 100% {
        transform: translateX(-50%) scale(1);
        box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4);
    }
    50% {
        transform: translateX(-50%) scale(1.05);
        box-shadow: 0 6px 25px rgba(251, 191, 36, 0.6);
    }
}

/* =========================================
   7. STATUS BADGES (BETA/EM BREVE)
   ========================================= */

.card-status-badge {
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.card-status-badge.bg-success {
    animation: pulseSuccess 2s ease-in-out infinite;
}

@keyframes pulseSuccess {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
    }
}

/* =========================================
   8. PROGRESS BARS ANIMADAS
   ========================================= */

.progress-bar {
    animation: progressFill 1.5s ease-out;
    position: relative;
    overflow: hidden;
}

@keyframes progressFill {
    from {
        width: 0 !important;
    }
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 100%
    );
    animation: progressShine 2s ease-in-out infinite;
}

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

/* =========================================
   9. FOTO DO SOBRE
   ========================================= */

.sobre-foto-img {
    animation: floatPhoto 4s ease-in-out infinite;
}

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

.sobre-foto-img:hover {
    animation-play-state: paused;
    transform: scale(1.05) !important;
}

/* =========================================
   10. TIMELINE ANIMADA
   ========================================= */

.timeline-marker {
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-marker {
    transform: scale(1.5);
    background: var(--primary);
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.5);
}

.timeline-content {
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-content {
    transform: translateX(10px);
}

/* =========================================
   11. CARDS DE CONTATO
   ========================================= */

#contato .card {
    transition: all 0.4s ease;
}

#contato .card:hover {
    transform: translateY(-10px);
}

#contato .card:hover .rounded-circle {
    transform: scale(1.1) rotate(10deg);
}

.icon-email,
.icon-whatsapp,
.icon-linkedin {
    transition: all 0.4s ease;
}

/* =========================================
   12. NAVBAR COM BLUR ANIMADO
   ========================================= */

.navbar {
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(15, 23, 42, 0.98) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* =========================================
   13. LOADING SKELETON
   ========================================= */

.skeleton {
    background: linear-gradient(
        90deg,
        var(--dark-secondary) 25%,
        var(--dark-tertiary) 50%,
        var(--dark-secondary) 75%
    );
    background-size: 200% 100%;
    animation: skeleton 1.5s ease-in-out infinite;
}

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

/* =========================================
   14. SCROLL INDICATOR
   ========================================= */

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-20px);
    }
    60% {
        transform: translateX(-50%) translateY(-10px);
    }
}

/* =========================================
   15. TYPING EFFECT (para textos)
   ========================================= */

.typing-effect {
    overflow: hidden;
    border-right: 3px solid var(--primary);
    white-space: nowrap;
    animation: 
        typing 3s steps(40, end),
        blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink-caret {
    from, to {
        border-color: transparent;
    }
    50% {
        border-color: var(--primary);
    }
}

/* =========================================
   16. MICROINTERAÇÕES
   ========================================= */

/* Links com underline animado */
a:not(.btn):not(.nav-link):not(.navbar-brand) {
    position: relative;
}

a:not(.btn):not(.nav-link):not(.navbar-brand)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

a:not(.btn):not(.nav-link):not(.navbar-brand):hover::after {
    width: 100%;
}

/* Form inputs com foco animado */
.form-control:focus,
.form-select:focus {
    animation: focusPulse 0.3s ease;
}

@keyframes focusPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
    }
    100% {
        box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.15);
    }
}

/* =========================================
   17. RESPONSIVIDADE DAS ANIMAÇÕES
   ========================================= */

/* =========================================
   18. TEMPLATES CARDS
   ========================================= */

.template-card {
    transition: all 0.3s ease;
    background: var(--dark-secondary);
    border-radius: 16px;
}

.template-card:hover {
    transform: translateY(-5px);
}

.template-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.template-premium {
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.template-premium:hover {
    border-color: rgba(251, 191, 36, 0.5);
    box-shadow: 0 10px 40px rgba(251, 191, 36, 0.15);
}

.template-destaque {
    border: 2px solid var(--info-custom);
    background: linear-gradient(135deg, var(--dark-secondary) 0%, rgba(6, 182, 212, 0.1) 100%);
}

.template-destaque:hover {
    box-shadow: 0 15px 50px rgba(6, 182, 212, 0.25);
}

.badge-destaque-template {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--info-custom), #0891b2);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.4);
}

#formTemplatesGratis .form-control {
    background: var(--dark);
    border: 1px solid var(--dark-tertiary);
    color: white;
}

#formTemplatesGratis .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

#formTemplatesGratis .form-control::placeholder {
    color: var(--text-muted);
}

/* =========================================
   19. RESPONSIVIDADE DAS ANIMAÇÕES
   ========================================= */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (max-width: 768px) {
    .hero-section .container::before,
    .hero-section .container::after {
        display: none;
    }
    
    @keyframes floatPhoto {
        0%, 100% {
            transform: translateY(0);
        }
        50% {
            transform: translateY(-5px);
        }
    }
}
