/* orcamento-animations.css */

.gradient-text-pagina-orcamento span {
    background: linear-gradient(135deg, var(--primary), #7977fe, #a259ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 200% auto;
    animation: gradientFlow 8s linear infinite;
}

.orcamento-subtitle {
    position: relative;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 30%, 
        rgba(84, 82, 254, 0.15) 0%, 
        rgba(84, 82, 254, 0.05) 40%, 
        rgba(18, 18, 18, 0) 70%);
    opacity: 0.8;
    transition: all 1s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Animações específicas por caractere */
.char-animate-pagina-orcamento {
    opacity: 0;
    display: inline-block;
    transform: translateY(20px) scale(0.8);
    transition: opacity 0.5s cubic-bezier(0.215, 0.61, 0.355, 1),
                transform 0.5s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.char-animate-pagina-orcamento.animate {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Animações de palavras */
.word-animate {
    opacity: 0;
    display: inline-block;
    transform: translateY(20px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* Banner de desconto */
.discount-banner {
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.discount-banner .banner-icon {
    animation: pulseGlow 2s ease-in-out infinite alternate;
}

.discount-banner .banner-timer {
    position: relative;
}

.discount-banner .banner-timer i {
    animation: blink 1.5s ease-in-out infinite;
}

/* Animações para os cartões de tipo de projeto */
.project-type-card {
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-type-card .project-icon {
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
                color 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-type-card:hover {
    box-shadow: 0 15px 30px rgba(84, 82, 254, 0.15);
}

.project-type-card:hover .project-icon {
    transform: scale(1.1) translateY(-3px);
    color: #5452FE;
}

.project-type-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(84, 82, 254, 0.1), rgba(162, 89, 255, 0.1));
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: -1;
}

.project-type-card:hover::before {
    opacity: 1;
}

/* Animações para navegação entre etapas */
.step-number {
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1),
                background-color 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.step-btn:hover .step-number:not(.active .step-number) {
    transform: scale(1.1);
    box-shadow: 0 0 8px rgba(84, 82, 254, 0.5);
}

.step-content {
    transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.step-content.active {
    animation: fadeInUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.detail-label {
    transition: color 0.3s ease;
}

/* Animações para mockup */
.mockup-feature, .mockup-element {
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.mockup-device {
    transform-style: preserve-3d;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Animações gerais */
@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(84, 82, 254, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 15px rgba(84, 82, 254, 0.5);
        transform: scale(1.05);
    }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes floatParticle {
    0%, 100% {
        transform: translate(var(--move-x), var(--move-y));
    }
    50% {
        transform: translate(calc(var(--move-x) * -1), calc(var(--move-y) * -1));
    }
}

/* Suporte a preferências de redução de movimento */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .char-animate-pagina-orcamento, .word-animate, .project-type-card, .step-content, 
    .detail-input, .mockup-feature, .mockup-element, .mockup-device {
        transition: none !important;
        animation: none !important;
        transform: none !important;
    }
}