.mz-404-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    min-height: 60vh;
    position: relative;
    z-index: 1;
}

.mz-404-animation {
    width: 100%;
    max-width: 500px;
    margin-bottom: 30px;
    /* Ensure SVG coordinates are consistent */
    direction: ltr; 
}

.mz-404-animation svg {
    width: 100%;
    height: auto;
    display: block;
    overflow: visible; /* Allow floating particles to be seen if they go slightly out */
}

.mz-404-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--mz-primary);
    margin-bottom: 15px;
    line-height: 1.2;
}

.mz-404-desc {
    font-size: 1.1rem;
    color: var(--mz-text-muted);
    max-width: 400px;
    margin-bottom: 40px;
    line-height: 1.6;
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes spin {
    0% { transform: rotate(0deg); transform-origin: 400px 220px; }
    100% { transform: rotate(360deg); transform-origin: 400px 220px; }
}

@keyframes float-particle {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(10px, -10px); }
    50% { transform: translate(0, -20px); }
    75% { transform: translate(-10px, -10px); }
}

.mz-float-1 { animation: float 4s ease-in-out infinite; }
.mz-float-2 { animation: float 5s ease-in-out infinite 0.5s; }
.mz-float-3 { animation: float 4.5s ease-in-out infinite 1s; }

.mz-404-zero circle:first-child {
    animation: spin 10s linear infinite;
}

.mz-float-particle.p1 { animation: float-particle 6s ease-in-out infinite; }
.mz-float-particle.p2 { animation: float-particle 8s ease-in-out infinite 1s; }
.mz-float-particle.p3 { animation: float-particle 7s ease-in-out infinite 2s; }
