
/* Loading Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Animate elements on scroll */
.animate-on-scroll {
    opacity: 0;
    animation: fadeIn 0.6s ease-out forwards;
}

.slide-up-on-scroll {
    opacity: 0;
    animation: slideUp 0.6s ease-out forwards;
}

/* Improved Touch Targets */
@media (max-width: 640px) {
    /* Navigation links */
    .nav-link {
        padding: 0.75rem 1rem;
        margin: 0.25rem 0;
    }

    /* Buttons */
    .btn {
        min-height: 44px;
        padding: 0.75rem 1.5rem;
    }

    /* Form inputs */
    input, select, textarea {
        min-height: 44px;
        padding: 0.75rem;
    }

    /* Card links */
    .card-link {
        padding: 1rem;
        margin: 0.5rem 0;
    }
}

/* Loading Skeleton */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Smooth Transitions */
.smooth-transition {
    transition: all 0.3s ease-in-out;
}

/* Hover Effects */
.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* Interactive Elements */
.interactive {
    cursor: pointer;
    transition: all 0.3s ease;
}

.interactive:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.interactive:active {
    transform: translateY(0);
}

/* Loading Spinner */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Lazy Loading Images */
.lazy-image {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.lazy-image.loaded {
    opacity: 1;
}

/* Navigation Background */
.nav-background {
    background: #0f0f0f;  /* Dark color matching the image */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
} 

/* Footer Community Links */
.footer-community-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    padding: 0.75rem;
    border-radius: 1rem;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.footer-community-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #e2e8f0;
    text-decoration: none;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: all 0.25s ease;
}

.footer-community-link i {
    font-size: 0.9rem;
}

.footer-community-link--whatsapp {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.35);
}

.footer-community-link--support {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
}

.footer-community-link--demo {
    background: rgba(147, 51, 234, 0.15);
    border-color: rgba(147, 51, 234, 0.35);
}

.footer-community-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.25);
}

/* Landing Mini Popup */
.landing-community-popup-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1100;
}

.landing-community-popup-backdrop.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.landing-community-popup {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    width: min(280px, calc(100% - 2rem));
    right: auto;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.25rem;
    padding: 1rem;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.45);
    color: #f8fafc;
    z-index: 1200;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.35s ease, transform 0.35s ease;
    pointer-events: none;
}

.landing-community-popup.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.landing-community-popup.is-hidden {
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
}

.landing-community-popup__heading {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.landing-community-popup__icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.15);
    color: #22c55e;
    font-size: 1.2rem;
}

.landing-community-popup__icon--whatsapp {
    background: rgba(34, 197, 94, 0.15);
    color: #34d399;
}

.landing-community-popup__eyebrow {
    text-transform: uppercase;
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    margin: 0;
    color: #c7d2fe;
}

.landing-community-popup__title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    color: #fff;
    line-height: 1.3;
}

.landing-community-popup__copy {
    font-size: 0.85rem;
    margin: 0.55rem 0 0.85rem;
    color: #e2e8f0;
    line-height: 1.4;
}

.landing-community-popup__actions {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.landing-community-popup__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    text-decoration: none;
    padding: 0.55rem 0.75rem;
    border-radius: 0.85rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: #0f172a;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.landing-community-popup__btn--primary {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.35);
}

.landing-community-popup__btn--demo {
    background: rgba(255, 255, 255, 0.08);
    color: #e0e7ff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: demoPulse 1.6s ease-in-out infinite;
}

.landing-community-popup__btn:hover {
    transform: translateY(-1px);
}

.landing-community-popup__support {
    margin-top: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.6rem;
    border-radius: 0.85rem;
    text-decoration: none;
    border: 1px dashed rgba(255, 255, 255, 0.35);
    background: rgba(248, 250, 252, 0.07);
    color: #f8fafc;
}

.landing-community-popup__support-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #0f172a;
    font-size: 1rem;
}

.landing-community-popup__support-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #c7d2fe;
}

.landing-community-popup__support-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
}

@keyframes demoPulse {
    0% { box-shadow: 0 0 0 0 rgba(147, 197, 253, 0.45); }
    70% { box-shadow: 0 0 0 10px rgba(147, 197, 253, 0); }
    100% { box-shadow: 0 0 0 0 rgba(147, 197, 253, 0); }
}

@media (max-width: 640px) {
    .landing-community-popup {
        left: 1rem;
        right: 1rem;
        bottom: auto;
        top: 50%;
        transform: translateY(-50%);
        width: auto;
    }

    .footer-community-links {
        justify-content: flex-start;
    }
}

/* Testimonials Marquee Rescue */
.testimonials-track-wrapper {
    overflow: hidden;
}

.testimonials-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 1.5rem;
    width: max-content;
    animation: testimonialsScroll 40s linear infinite;
}

.testimonials-track:hover {
    animation-play-state: paused;
}

.testimonial-card {
    flex: 0 0 340px;
    background: #fff;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(15, 23, 42, 0.15);
    border-color: rgba(124, 58, 237, 0.4);
}

@keyframes testimonialsScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .testimonial-card {
        flex: 0 0 280px;
    }

    .testimonials-track {
        animation-duration: 32s;
    }
}