/* Jay Splash Screen Styles */
:root {
    --splash-bg-color: #0a0a0c;
    --heart-color: #8E2DE2; /* Deep violet/purple */
    --jay-text-color: #ffffff;
    --splash-z-index: 999999;
}

#jay-splash-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(10, 10, 12, 0.85); /* Semi-transparent dark background */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: var(--splash-z-index);
    transition: opacity 1.2s ease-out, visibility 1.2s;
    overflow: hidden;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px); /* Add a nice blur effect behind it */
}

#jay-splash-wrapper.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.splash-content {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

/* Side-by-side layout for J-logo and 'ayLex' text */
.splash-logo-flex {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0; /* No gap because the J is part of the word */
}

.heart-container {
    position: absolute;
    top: 50%;
    left: 60%; /* Shifted to the right to frame the text rather than the bird */
    transform: translate(-50%, -50%);
    width: 250px;
    height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: -1;
}

.heart-icon {
    font-size: 130px; /* Slightly smaller for a more refined look */
    color: var(--heart-color);
    animation: heart-beat 2s infinite cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: drop-shadow(0 0 50px rgba(142, 45, 226, 0.6)); /* Violet glow */
    opacity: 0.5; /* Reduced opacity to prevent blending with the bird's pink colors */
}

.jay-splash-logo {
    width: 140px;
    height: auto;
    opacity: 0;
    transform: translateX(-20px); /* Slide in from left slightly */
    animation: content-reveal 1.2s forwards 0.3s;
    filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.6));
    z-index: 2;
}

.jay-text {
    font-family: 'Inter', sans-serif;
    font-size: 2.8rem; /* Slightly larger for better readability */
    font-weight: 700;
    letter-spacing: 0.1rem;
    color: var(--jay-text-color);
    opacity: 0;
    transform: translateX(20px); /* Slide in from right slightly */
    animation: content-reveal 1.2s forwards 0.5s;
    margin-left: -35px; /* Pull it towards the 'J' to connect seamlessly */
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
}

@keyframes content-reveal {
    to {
        opacity: 1;
        transform: translate(0);
    }
}

@keyframes heart-beat {
    0% {
        transform: scale(1);
    }
    15% {
        transform: scale(1.15);
    }
    30% {
        transform: scale(1);
    }
    45% {
        transform: scale(1.08);
    }
    60% {
        transform: scale(1);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes text-reveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Glassmorphism background effect */
.splash-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 37, 138, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    animation: pulse-glow 2s infinite alternate;
}

@keyframes pulse-glow {
    from { transform: scale(0.8); opacity: 0.5; }
    to { transform: scale(1.2); opacity: 0.8; }
}
