.logo-animator {
    position: relative;
    width: 100%;
    max-width: 792px;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 20px;
    /*background: #f0f0f0;*/
    margin: 20px auto;
}
.logo {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 12px;
    text-align: center;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
/*.logo3 {*/
/*    top: 20px;*/
/*    left: 20px;*/
/*}*/

.logo3 {
    top: -100px;  /* Start above the container */
    left: 83%;    /* Roughly where it will end up horizontally */
    /*right: auto;*/
}



.logo1 {
    top: -100px; /* Start well above the container */
    left: 50%;
    margin-left: -50px; /* Center it horizontally from the start */
}
.image {
    top: 50%;
    left: 20px;
    transform: translateY(-50%) scale(0.5);
}
.logo2 {
    bottom: 20px;
    right: -80px;
}
/* Animation states */
.logo3.animate {
    opacity: 1;
    transform: scale(1);
    /* JavaScript will handle the final positioning */
    animation: none;
}
/*.logo3.animate {*/
/*    opacity: 1;*/
/*    transform: scale(1);*/
/*    left: calc(90% - 100px);*/
/*    animation: none;*/
/*}*/
.logo1.animate {
    opacity: 1;
    transform: scale(1);
    top: 40px;  /* Slides down into the container */
}
.image.animate {
    opacity: 1;
    transform: translateY(-50%) scale(1);
    left: 50%;
    margin-left: -40px;
}
.logo2.animate {
    opacity: 1;
    transform: scale(1);
    right: auto;
    left: 50%;
    margin-left: -40px;
}
@keyframes swing {
    0% { transform: scale(1) rotate(-2deg); }
    100% { transform: scale(1) rotate(2deg); }
}
.logo-text {
    line-height: 1.2;
}
/* Mobile responsive */
@media (max-width: 480px) {
    .logo {
        width: 60px;
        height: 60px;
        font-size: 10px;
    }
    .logo1,
    .image.animate,
    .logo2.animate {
        margin-left: -30px;
    }
    .logo-animator {
        border-radius: 15px;
    }
}