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

html, body {
    width: 100%;
    height: 100%; /* Important for centering */
    
    /* --- BACKGROUND SETUP --- */
    background-image: url('background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; 
    background-color: #1a1a1a;
    
    font-family: 'Cinzel', serif;
}

/* --- Layout Container --- */
.splash-container {
    display: flex;
    flex-direction: column;
    justify-content: center; /* Vertical Center */
    align-items: center;     /* Horizontal Center */
    
    /* --- THE ANDROID FIX --- */
    /* 'dvh' calculates height ignoring the mobile URL bar */
    min-height: 100vh; 
    min-height: 100dvh; 
    
    width: 100%;
    padding: 2rem; 
    
    /* Dark overlay fade */
    background-color: rgba(0, 0, 0, 0.4);
}

/* --- Image Styling --- */
img {
    display: block;
    width: auto; 
    height: auto;
    object-fit: contain;
    
    opacity: 0;
    animation: fadeUp 1s ease-out forwards;
}

.logo-img {
    width: 100%;
    max-width: 500px; 
    /* Limits height to avoid pushing content off screen */
    max-height: 25vh; 
    
    margin-bottom: 2vh;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.8));
}

.content-img {
    width: 100%;
    max-width: 800px;
    /* Limits height so slogan stays visible */
    max-height: 45vh; 
    
    margin-bottom: 3vh;
    animation-delay: 0.3s;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.8));
}

/* --- Text Styling (Thicker Outline) --- */
.slogan-text {
    color: #e0c097; /* Gold Color */
    
    /* Responsive sizing */
    font-size: clamp(1rem, 3vw, 1.8rem); 
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-align: center;
    font-weight: 900; /* Extra bold */
    
    /* --- THICKER BLACK OUTLINE --- */
    /* Stacking shadows to create a 2px hard border */
    text-shadow: 
        -2px -2px 0 #000,  
         2px -2px 0 #000,
        -2px  2px 0 #000,
         2px  2px 0 #000,
         -2px  0px 0 #000,
         2px  0px 0 #000,
         0px -2px 0 #000,
         0px  2px 0 #000,
         /* Soft drop shadow behind the border for depth */
         0px  4px 8px rgba(0,0,0,1);
    
    opacity: 0;
    animation: fadeUp 1s ease-out forwards 0.6s;
}

/* --- Animations --- */
@keyframes fadeUp {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* --- Mobile Specific Tweaks --- */
@media (max-width: 768px) {
    .splash-container {
        /* Reduce padding on mobile to give images more room */
        padding: 1rem;
    }

    .logo-img {
        max-height: 18vh; 
        max-width: 85%;
        margin-bottom: 2vh;
    }
    
    .content-img {
        max-height: 40vh;
        max-width: 95%;
        margin-bottom: 2vh;
    }
    
    .slogan-text {
        letter-spacing: 0.1em;
    }
}

/* --- Landscape Mobile Fix --- */
@media (max-height: 500px) {
    .logo-img {
        display: none; /* Hide top logo on really short screens so slogan is visible */
    }
    .content-img {
        max-height: 70vh;
    }
}
