/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

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

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

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

@keyframes rotateIcon {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulseEffect {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

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

/* Page Header */
.page-header {
    animation: fadeIn 1s ease-out;
}

.page-header h1 {
    animation: fadeInUp 0.8s ease-out;
}

.page-header p {
    animation: fadeInUp 0.8s ease-out 0.2s;
    opacity: 0;
    animation-fill-mode: forwards;
}

/* Hotspot Section */
.hotspot-section {
    overflow: hidden;
}

.hotspot-image img {
    animation: slideInRight 1s ease-out;
    transition: all 0.3s ease;
}

.hotspot-image img:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.hotspot-content {
    animation: slideInLeft 1s ease-out;
}

.hotspot-content h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--fenix-red);
    transition: width 0.3s ease;
}

.hotspot-content:hover h2::after {
    width: 100px;
}

/* Benefits Section */
.benefits-section .section-header {
    animation: fadeInUp 0.8s ease-out;
}

.benefit-card {
    opacity: 0;
    animation: scaleIn 0.5s ease-out forwards;
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.benefit-card:nth-child(1) { animation-delay: 0.1s; }
.benefit-card:nth-child(2) { animation-delay: 0.2s; }
.benefit-card:nth-child(3) { animation-delay: 0.3s; }
.benefit-card:nth-child(4) { animation-delay: 0.4s; }

.benefit-icon {
    transition: all 0.3s ease;
}

.benefit-card:hover .benefit-icon {
    animation: rotateIcon 1s ease-in-out;
    color: var(--fenix-red);
}

/* How It Works Section */
.how-it-works .section-header {
    animation: fadeInUp 0.8s ease-out;
}

.step-card {
    opacity: 0;
    animation: slideInRight 0.5s ease-out forwards;
    transition: all 0.3s ease;
}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.step-card:nth-child(1) { animation-delay: 0.2s; }
.step-card:nth-child(2) { animation-delay: 0.4s; }
.step-card:nth-child(3) { animation-delay: 0.6s; }
.step-card:nth-child(4) { animation-delay: 0.8s; }

/* Business Cases */
.business-cases .section-header {
    animation: fadeInUp 0.8s ease-out;
}

.case-card {
    opacity: 0;
    animation: scaleIn 0.5s ease-out forwards;
    transition: all 0.3s ease;
}

.case-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

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

/* Pricing Section */
.pricing-section .section-header {
    animation: fadeInUp 0.8s ease-out;
}

.price-card {
    opacity: 0;
    animation: scaleIn 0.5s ease-out forwards;
    transition: all 0.3s ease;
}

.price-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

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

.price-card .card-header {
    position: relative;
    overflow: hidden;
}

.price-card:hover .card-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        to right,
        transparent 0%,
        rgba(255,255,255,0.3) 50%,
        transparent 100%
    );
    animation: shimmerEffect 1.5s infinite;
}

/* Calculator Section */
.calculator-container {
    animation: slideInLeft 1s ease-out;
    transition: all 0.3s ease;
}

.calculator-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.calculator-result {
    animation: slideInRight 1s ease-out;
    transition: all 0.3s ease;
}

.calculator-result:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.result-item {
    opacity: 0;
    animation: fadeInUp 0.5s ease-out forwards;
}

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

/* Testimonials Section */
.testimonials .section-header {
    animation: fadeInUp 0.8s ease-out;
}

.testimonial-card {
    opacity: 0;
    animation: scaleIn 0.5s ease-out forwards;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

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

/* FAQ Section */
.faq-section .section-header {
    animation: fadeInUp 0.8s ease-out;
}

.accordion-item {
    opacity: 0;
    animation: fadeInUp 0.5s ease-out forwards;
    transition: all 0.3s ease;
}

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

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

.accordion-button::after {
    transition: all 0.3s ease;
}

.accordion-button:not(.collapsed)::after {
    transform: rotate(180deg);
}

/* CTA Section */
.cta-section {
    animation: fadeIn 1s ease-out;
}

.cta-content {
    animation: fadeInUp 0.8s ease-out;
}

.cta-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.cta-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(221, 38, 41, 0.3);
}

.cta-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        to right,
        transparent 0%,
        rgba(255,255,255,0.3) 50%,
        transparent 100%
    );
    animation: shimmerEffect 2s infinite;
}

/* Form Elements */
.form-control {
    transition: all 0.3s ease;
}

.form-control:focus {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Responsive Animations */
@media (max-width: 768px) {
    .benefit-card,
    .step-card,
    .case-card,
    .price-card,
    .testimonial-card {
        animation-delay: 0.1s !important;
    }
    
    .accordion-item {
        animation-delay: 0.1s !important;
    }
}
