/* ========== ANIMAÇÕES AVANÇADAS DE UX ========== */

/* Smooth Page Load Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

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

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

/* Hero Section Animations */
.hero__data {
    animation: slideInLeft 0.8s ease-out;
}

.hero__image {
    animation: slideInRight 0.8s ease-out;
}

.hero__title {
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.hero__description {
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

.hero__features {
    animation: fadeInUp 0.6s ease-out 0.6s both;
}

.hero__buttons {
    animation: fadeInUp 0.6s ease-out 0.8s both;
}

/* Card Animations */
.solution__card,
.plan__card,
.step {
    animation: fadeInUp 0.6s ease-out both;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.solution__card:nth-child(1) { animation-delay: 0.1s; }
.solution__card:nth-child(2) { animation-delay: 0.2s; }
.solution__card:nth-child(3) { animation-delay: 0.3s; }
.solution__card:nth-child(4) { animation-delay: 0.4s; }
.solution__card:nth-child(5) { animation-delay: 0.5s; }
.solution__card:nth-child(6) { animation-delay: 0.6s; }

.solution__card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(139, 61, 255, 0.2);
}

.plan__card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(139, 61, 255, 0.2);
}

/* Button Hover Effects */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.3s ease;
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(139, 61, 255, 0.3);
}

.btn--primary:hover {
    background: linear-gradient(135deg, #7a32e0 0%, #e02880 100%);
}

/* Input Focus Effects */
input[type="text"],
input[type="email"],
textarea,
.search-input {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus,
.search-input:focus {
    border-color: var(--first-color);
    box-shadow: 0 0 0 3px rgba(139, 61, 255, 0.1);
    transform: translateY(-2px);
}

/* CTA Section Animations */
.cta-mid__title {
    animation: fadeInUp 0.6s ease-out;
}

.cta-mid__desc {
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.cta-mid__actions {
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

/* Section Titles Animation */
.section__title {
    animation: fadeInUp 0.6s ease-out;
}

.section__subtitle {
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

/* Blog Post Cards */
.blog-post-card {
    animation: fadeInUp 0.6s ease-out both;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.blog-post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1);
}

/* Floating Elements */
.whatsapp-float {
    animation: float 3s ease-in-out infinite;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    animation: none;
    transform: scale(1.1);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading State */
.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Breadcrumb Animations */
.breadcrumbs__item {
    animation: fadeInUp 0.4s ease-out both;
}

.breadcrumbs__item:nth-child(1) { animation-delay: 0.1s; }
.breadcrumbs__item:nth-child(2) { animation-delay: 0.2s; }
.breadcrumbs__item:nth-child(3) { animation-delay: 0.3s; }

/* Tab Animations */
.tab__content {
    animation: fadeInUp 0.4s ease-out;
}

.tab__button {
    transition: all 0.3s ease;
}

.tab__button:hover {
    transform: translateY(-2px);
    color: var(--first-color);
}

.tab__button.active {
    animation: scaleIn 0.3s ease-out;
}

/* Filter Button Animations */
.filter-btn {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.filter-btn:hover {
    transform: translateY(-3px);
}

.filter-btn.active {
    animation: scaleIn 0.3s ease-out;
}

/* Mobile Menu Animation */
.nav__menu.show-menu {
    animation: slideInLeft 0.3s ease-out;
}

/* Footer Links Hover */
.footer__link,
.footer__contact-link {
    position: relative;
    transition: color 0.3s ease;
}

.footer__link::after,
.footer__contact-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--first-color);
    transition: width 0.3s ease;
}

.footer__link:hover::after,
.footer__contact-link:hover::after {
    width: 100%;
}

/* Responsive Animations */
@media (max-width: 768px) {
    .hero__data,
    .hero__image {
        animation: fadeInUp 0.6s ease-out;
    }

    .solution__card,
    .plan__card {
        animation: fadeInUp 0.5s ease-out both;
    }

    .btn {
        transition: all 0.2s ease;
    }

    .btn:hover {
        transform: translateY(-2px);
    }
}

/* Accessibility: Reduce Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
