/* Logo styling */
#centurion-logo {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.logo-icon-container {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Make sure the SVG is visible even when the content is hidden */
.logo svg {
    overflow: visible;
}

/* Initial state of paths for animation */
svg path {
    transition: all 3s ease-out;
}

/* Animation triggers on hover */
#centurion-logo svg #first-red-c {
    animation: none;
    transition: all 0.3s ease;
}

#centurion-logo svg #top-blue {
    animation: none;
    transition: all 0.3s ease;
}

#centurion-logo svg #last-red-c {
    animation: none;
    transition: all 0.3s ease;
}

#centurion-logo svg #center-blue {
    animation: none;
    transition: all 0.3s ease;
}

#centurion-logo:hover svg #first-red-c {
    animation: fadeInMoveRight 1s ease-out forwards;
    animation-delay: 0s;
}

#centurion-logo:hover svg #top-blue {
    animation: fadeInMoveLeft 1s ease-out forwards;
    animation-delay: 0s;
}

#centurion-logo:hover svg #last-red-c {
    animation: fadeInMoveTop 1s ease-out forwards;
    animation-delay: 0s;
}

#centurion-logo:hover svg #center-blue {
    transform-origin: center;
    animation: fadeInZoom 1s ease-out forwards;
    animation-delay: 0s;
}

/* Auto-play the animation when the page loads */
svg #first-red-c {
    animation: fadeInMoveRight 1s ease-out forwards;
    animation-delay: 0.5s;
}

svg #top-blue {
    animation: fadeInMoveLeft 1s ease-out forwards;
    animation-delay: 0.7s;
}

svg #last-red-c {
    animation: fadeInMoveTop 1s ease-out forwards;
    animation-delay: 0.9s;
}

svg #center-blue {
    transform-origin: center;
    animation: fadeInZoom 1s ease-out forwards;
    animation-delay: 1.1s;
}

/* Animation keyframes */
@keyframes fadeInMoveRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0px);
    }
}

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

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

@keyframes fadeInZoom {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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