/* Reset & Base Styles */
* {
    margin: 0;
    box-sizing: border-box;
}

body {
    background-color: #f4f7f6;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    overflow-x: hidden;
}

/* Splash Container */
.splash-container {
    max-width: 1400px;
    width: 100%;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    opacity: 1;
    transition: opacity 0.8s ease-in-out; /* Smooth fade-out duration */
}

/* Class applied by JS to fade out the splash screen */
.splash-container.fade-out {
    opacity: 0;
    pointer-events: none;
}

/* Hero Wrapper for Absolute Positioning */
.hero-wrapper {
    position: relative;
    width: 100%;
    height: auto;
    display: block;
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Invisible Interactive Buttons */
.overlay-btn {
    position: absolute;
    bottom: 8.8%;
    height: 4.8%;
    cursor: pointer;
    background: transparent;
    border: none;
    outline: none;
}

.btn-start {
    left: 67.6%;
    width: 14.8%;
}

.btn-portal {
    left: 83.2%;
    width: 14.2%;
}

.overlay-btn:hover {
    background-color: rgba(255, 255, 255, 0.12);
    border-radius: 4px;
}

/* Fullscreen Transition Overlay */
.transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #ffffff; /* Fades into a clean white screen */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease-in-out; /* Smooth fade-in duration */
    z-index: 9999;
}

/* Class applied by JS to fade in the logo overlay */
.transition-overlay.fade-in {
    opacity: 1;
    pointer-events: auto;
}

/* Centered Logo Scaling */
.center-logo {
    max-width: 350px; /* Adjust size of the logo on the transition screen */
    width: 80%;
    height: auto;
    animation: gentleScale 2.5s ease-out forwards; /* Gives the logo a subtle premium zoom effect */
}

/* Subtle cinematic zoom effect for the logo while it displays */
@keyframes gentleScale {
    from {
        transform: scale(0.95);
    }
    to {
        transform: scale(1.02);
    }
}