/* ==================== SPLASH.CSS - FIXED & OPTIMIZED ==================== */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #0f2e25;
    font-family: 'Segoe UI', sans-serif;
}

/* ==================== SPLASH CONTAINER ==================== */
.splash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #1B4537;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease;
}

/* Animation when finishing splash */
.splash.slide-up {
    animation: slideUpFade 0.9s ease forwards;
}

@keyframes slideUpFade {
    0%   { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(-100%); opacity: 0; }
}

/* ==================== LOGO CONTAINER ==================== */
.logo {
    position: relative;
    width: 160px;
    height: 160px;
}

/* ==================== PIECES ==================== */
.piece {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.piece.show {
    opacity: 1;
}

/* Final Logo */
.final-logo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.8s ease;
}

/* Optional: Center adjustment if needed */
.logo img {
    max-width: 100%;
    max-height: 100%;
}