/* splash.css */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #FAFAF7; /* Cream background */
    z-index: 99999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.8s ease;
    overflow: hidden;
}

#splash-screen.hidden {
    transform: translateY(-100%);
    opacity: 0;
}

#splash-screen.hidden-instant {
    display: none;
}

.splash-logo-container {
    position: relative;
    opacity: 0;
    transform: scale(0.95);
    animation: fadeInScale 1s ease 0.2s forwards;
}

.splash-logo {
    width: 180px;
    height: auto;
    display: block;
}

.splash-tagline {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.25rem;
    color: #122E24; /* Dark Forest Green */
    margin-top: 1.5rem;
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp 0.8s ease 0.6s forwards;
}

/* Steam Wisps */
.steam-container {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 60px;
    z-index: -1;
}

.steam {
    position: absolute;
    bottom: 0;
    background-color: #B46B42; /* Warm Copper/Terracotta */
    border-radius: 50%;
    opacity: 0;
    filter: blur(8px);
}

.steam:nth-child(1) {
    width: 15px;
    height: 35px;
    left: 20%;
    animation: riseSteam 2s infinite ease-in 0.4s;
}

.steam:nth-child(2) {
    width: 20px;
    height: 45px;
    left: 45%;
    animation: riseSteam 2.5s infinite ease-in 0.6s;
}

.steam:nth-child(3) {
    width: 12px;
    height: 30px;
    left: 70%;
    animation: riseSteam 1.8s infinite ease-in 0.8s;
}

/* Floating Leaves / Particles */
.splash-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: #122E24;
    opacity: 0.15;
    border-radius: 50% 0 50% 0; /* Leaf shape */
    animation: floatLeaf 4s infinite linear;
}

.particle:nth-child(1) { top: 20%; left: 15%; animation-duration: 5s; animation-delay: 0s; }
.particle:nth-child(2) { top: 60%; left: 25%; animation-duration: 6s; animation-delay: 1s; }
.particle:nth-child(3) { top: 30%; left: 80%; animation-duration: 4.5s; animation-delay: 2s; }
.particle:nth-child(4) { top: 75%; left: 70%; animation-duration: 5.5s; animation-delay: 0.5s; }
.particle:nth-child(5) { top: 40%; left: 50%; animation-duration: 7s; animation-delay: 1.5s; }

/* Animations */
@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes riseSteam {
    0% {
        transform: translateY(0) scaleX(1);
        opacity: 0;
    }
    15% {
        opacity: 0.4;
    }
    50% {
        transform: translateY(-20px) scaleX(1.2);
    }
    100% {
        transform: translateY(-40px) scaleX(1.5);
        opacity: 0;
    }
}

@keyframes floatLeaf {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.15;
    }
    90% {
        opacity: 0.15;
    }
    100% {
        transform: translateY(-50px) rotate(180deg);
        opacity: 0;
    }
}
