/* Shake animation for CTA buttons */
.shake-animation:hover {
    animation: shake 0.82s cubic-bezier(.36,.07,.19,.97) both;
    transform: translate3d(0, 0, 0);
}

@keyframes shake {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
    40%, 60% { transform: translate3d(4px, 0, 0); }
}

/* Particles background */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: transparent;
    pointer-events: none;
}

/* Form focus effects */
.form-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.3);
}

/* Smooth transitions */
.transition-all {
    transition: all 0.3s ease-in-out;
}

/* City autocomplete dropdown */
.city-suggestions {
    position: absolute;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    z-index: 50;
    margin-top: 4px;
}

.city-suggestion-item {
    padding: 0.5rem 1rem;
    cursor: pointer;
}

.city-suggestion-item:hover {
    background-color: #f3f4f6;
}

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

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

.notification-enter {
    animation: slideIn 0.5s forwards;
}

.notification-exit {
    animation: slideOut 0.5s forwards;
}

/* Feature cards hover effect */
.feature-card {
    transition: transform 0.3s ease;
}

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

/* Timeline animation */
.timeline-step {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.timeline-step.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Price cards hover effect */
.price-card {
    transition: all 0.3s ease;
}

.price-card:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Floating CTA button animation */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.floating-cta {
    animation: pulse 2s infinite;
}

/* Testimonial cards */
.testimonial-card {
    transition: transform 0.3s ease;
}

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

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

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

/* Alert styles */
.form-alert {
    transition: all 0.3s ease;
    z-index: 1000;
}

/* Ensure form container can show overflow for alerts */
.form-container {
    overflow: visible !important;
}

/* Adjust form position for alerts */
.form-relative {
    position: relative !important;
}

/* Service cards effects */
.service-card {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
}

.service-card img {
    transition: transform 0.5s ease;
}

.service-card:hover img {
    transform: scale(1.1);
}

.service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(91, 33, 182, 0.9), rgba(91, 33, 182, 0.4));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover::after {
    opacity: 1;
}

/* Carousel styles */
.carousel-container {
    position: relative;
    width: 100%;
    height: 300px; /* Altura fixa para melhor proporção */
    overflow: hidden;
    border-radius: 0.75rem 0.75rem 0 0;
}

.carousel-slides {
    display: flex;
    width: 300%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    width: 33.333%;
    height: 100%;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(91, 33, 182, 0.75), rgba(91, 33, 182, 0.2));
    opacity: 0.9;
}

@keyframes carousel {
    0%, 28% {
        transform: translateX(0);
    }
    33%, 61% {
        transform: translateX(-33.333%);
    }
    66%, 94% {
        transform: translateX(-66.666%);
    }
    100% {
        transform: translateX(0);
    }
}

.carousel-slides {
    animation: carousel 18s infinite;
}

.carousel-container:hover .carousel-slides {
    animation-play-state: paused;
}

/* Event type cards styles */
.event-type-card {
    position: relative;
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.event-type-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.event-type-carousel {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.event-type-slides {
    position: relative;
    display: flex;
    width: 300%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
    animation: eventTypeCarousel 15s infinite;
}

.event-type-slide {
    width: 33.333%;
    height: 100%;
    position: relative;
}

.event-type-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes eventTypeCarousel {
    0%, 28% {
        transform: translateX(0);
    }
    33%, 61% {
        transform: translateX(-33.333%);
    }
    66%, 94% {
        transform: translateX(-66.666%);
    }
    100% {
        transform: translateX(0);
    }
}

.event-type-carousel:hover .event-type-slides {
    animation-play-state: paused;
}

.event-type-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(91, 33, 182, 0.3), rgba(91, 33, 182, 0.8));
    z-index: 2;
}

.event-type-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    width: 100%;
    padding: 1rem;
    font-size: 1.75rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    z-index: 3;
}

.event-type-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.event-type-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.event-type-card:hover .event-type-image img {
    transform: scale(1.1);
}

.event-type-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(91, 33, 182, 0.3), rgba(91, 33, 182, 0.8));
}

.event-type-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    width: 100%;
    padding: 1rem;
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.event-type-content {
    background: white;
    padding: 1.5rem;
}

.event-type-list {
    color: #4B5563;
    font-size: 0.95rem;
}

.event-type-list li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.event-type-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #8B5CF6;
}

/* Alert styles */
.global-alert {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    min-width: 300px;
    max-width: 400px;
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: translateX(0);
    transition: all 0.3s ease;
    pointer-events: auto;
}

.global-alert.enter {
    animation: slideIn 0.3s ease forwards;
}

.global-alert.exit {
    animation: slideOut 0.3s ease forwards;
}

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

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

/* Ajuste responsivo do logo */
@media (max-width: 768px) {
    #topLogo {
        position: relative;
        top: 0;
        left: 0;
        width: 100%;
        display: flex;
        justify-content: center;
        margin-bottom: 2rem;
    }

    #topLogo a {
        padding: 0.5rem 1rem;
    }

    .hero-content {
        padding-top: 1rem;
    }
}
