/* ============================================
    ULTRA-MODERN DIVINE GLOW SPLASH
   ============================================ */

:root {
    --splash-bg: #000402;
    --splash-gold: #c5a059;
    --splash-gold-extra: #f1dec1;
    --splash-white: #ffffff;
}

#splash-screen {
    position: fixed;
    inset: 0;
    background-color: var(--splash-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    overflow: hidden;
}

/* Base Ambient Light - Static and subtle for performance */
.splash-rays {
    position: absolute;
    width: 130vmax;
    height: 130vmax;
    background: radial-gradient(circle, rgba(197, 160, 89, 0.03) 0%, transparent 50%);
    z-index: 0;
}

.splash-particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: white;
    border-radius: 50%;
    opacity: 0.1;
    filter: blur(1px);
    animation: ascension 10s infinite linear;
}

@keyframes ascension {
    0% {
        transform: translateY(110vh) scale(0.5);
        opacity: 0;
    }

    20% {
        opacity: 0.2;
    }

    80% {
        opacity: 0.2;
    }

    100% {
        transform: translateY(-10vh) scale(0.8);
        opacity: 0;
    }
}

.splash-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

/* "Divine Spark" - Higher-end glow refinement */
.splash-logo-aura {
    position: absolute;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(197, 160, 89, 0.12) 0%, transparent 65%);
    border-radius: 50%;
    z-index: -1;
    mix-blend-mode: screen;
    animation: divinePulse 4s infinite ease-in-out;
}

@keyframes divinePulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.4;
    }

    50% {
        transform: scale(1.15);
        opacity: 0.7;
    }
}

/* Logo Focus entrance */
.splash-logo-wrapper {
    position: relative;
    margin-bottom: 40px;
    opacity: 0;
    filter: contrast(1.2) brightness(1.1);
    animation: revealLogo 2.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.splash-logo {
    width: clamp(160px, 25vw, 210px);
    height: auto;
    filter: drop-shadow(0 0 40px rgba(197, 160, 89, 0.08));
}

@keyframes revealLogo {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(10px);
        filter: blur(15px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: blur(0);
    }
}

/* Premium Typography System */
.splash-text-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
}

.splash-welcome {
    font-family: 'Playfair Display', serif;
    color: var(--splash-gold-extra);
    font-size: clamp(1rem, 3.5vw, 1.4rem);
    font-weight: 300;
    font-style: italic;
    margin: 0;
    letter-spacing: 0.2em;
    opacity: 0;
    animation: textSlideUp 1.2s ease-out 1s forwards;
}

.splash-church-name {
    font-family: 'Inter', sans-serif;
    color: var(--splash-white);
    font-size: clamp(2rem, 8vw, 3.5rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    margin: 4px 0;
    line-height: 1;
    opacity: 0;
    background: linear-gradient(90deg, #fff, var(--splash-gold-extra), #fff);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation:
        textSlideUp 1.2s ease-out 1.2s forwards,
        shimmer 5s linear infinite 2s;
}

.splash-location {
    font-family: 'Inter', sans-serif;
    color: var(--splash-gold);
    font-size: clamp(0.65rem, 2.5vw, 0.9rem);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.8em;
    /* Exclusive Ultra-Wide look */
    margin: 10px 0 0 0;
    opacity: 0;
    animation: textSlideUp 1s ease-out 1.5s forwards;
}

@keyframes textSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    to {
        background-position: 200% center;
    }
}

/* Minimalist Progress Line */
.splash-loader {
    margin-top: 50px;
    width: 200px;
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.splash-loader-progress {
    width: 0;
    height: 100%;
    background: var(--splash-gold);
    box-shadow: 0 0 12px var(--splash-gold);
    animation: fillLoader 5s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

@keyframes fillLoader {
    to {
        width: 100%;
    }
}

/* Modern Exit Reveal */
#splash-screen.hidden {
    opacity: 0;
    transform: scale(1.05);
    filter: blur(30px);
    pointer-events: none;
    transition: all 1.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.splash-active {
    overflow: hidden;
}