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

.cloud-svg {
    position: absolute;
    opacity: 0.25;
    animation: float-cloud 15s ease-in-out infinite;
}

.cloud-svg-1 {
    top: 10%;
    left: -5%;
    width: 300px;
    height: 200px;
    animation-delay: 0s;
}

.cloud-svg-2 {
    top: 60%;
    left: -8%;
    width: 400px;
    height: 250px;
    animation-delay: 3s;
}

.cloud-svg-3 {
    top: 5%;
    right: -5%;
    width: 350px;
    height: 220px;
    animation-delay: 1.5s;
}

.cloud-svg-4 {
    top: 55%;
    right: -8%;
    width: 380px;
    height: 240px;
    animation-delay: 4.5s;
}


.timeline-item {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.timeline-item.active {
    opacity: 1;
    transform: scale(1);
}

.timeline-bubble {
    transition: all 0.4s ease;
}

.timeline-item.active .timeline-bubble {
    transform: scale(1.15);
}

/* Mobile timeline bubble styling */
@media (max-width: 768px) {
    .timeline-bubble-mobile {
        display: flex;
        width: 4rem;
        height: 4rem;
        border-radius: 9999px;
        align-items: center;
        justify-content: center;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
        margin: 0 auto 1rem auto;
        border: 3px solid white;
    }

    /* Override all cloud sizes on mobile (including inline styles) */
    .cloud-svg {
        width: 120px !important;
        height: 80px !important;
    }

    .cloud-svg-1 {
        top: 8%;
        left: -10%;
        width: 120px;
        height: 80px;
    }

    .cloud-svg-2 {
        top: 65%;
        left: -15%;
        width: 150px;
        height: 95px;
    }

    .cloud-svg-3 {
        top: 5%;
        right: -10%;
        width: 130px;
        height: 85px;
    }

    .cloud-svg-4 {
        top: 60%;
        right: -15%;
        width: 140px;
        height: 90px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    /* Override all cloud sizes on tablet (including inline styles) */
    .cloud-svg {
        width: 200px !important;
        height: 130px !important;
    }

    .cloud-svg-1 {
        top: 10%;
        left: -8%;
        width: 200px;
        height: 130px;
    }

    .cloud-svg-2 {
        top: 60%;
        left: -10%;
        width: 260px;
        height: 165px;
    }

    .cloud-svg-3 {
        top: 5%;
        right: -8%;
        width: 230px;
        height: 145px;
    }

    .cloud-svg-4 {
        top: 55%;
        right: -10%;
        width: 250px;
        height: 160px;
    }
}
