/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; font-family: 'Poppins', sans-serif; }
.hide { display:none; }

#subtitle { font-size:.98rem; }
.hand { cursor: pointer; }

/* modal stuff for slash only */
.modal-overlay {
    position: fixed; /* Positioning and size */
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(128,128,128,0.2); /* color */
    z-index: 999;
}

.modal-box {
    width:340px;
    max-height: 500px;
    background-color: #ffffff;
    border: 2px silver solid;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2), 0 3px 10px 0 rgba(0, 0, 0, 0.19);
    border-radius: 0.35rem;
    position: fixed; /* positioning in center of page */
    top: 50vh;
    left: 50vw;
    transform: translate(-50%,-50%);
}
.modal-head { background-color: #eee; padding: 3px 10px; border-bottom: 1px silver solid; margin-bottom: 5px; font-size: .8em }
.modal-body { max-height: 470px; overflow: auto; padding-top: 5px;}
.modal-title { font-size: 16px; padding: 0px 10px; padding-bottom: 10px;}
.modal-message { font-size: .85em; padding: 0px 10px; line-height: 1.3em}
.modal-button { padding: 10px 10px; }

/* HERO */
.hero {
    position: relative;
    min-height: 100dvh; /* better behavior on mobile with dynamic toolbars */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 20px;
    overflow: hidden;

    /* Initial fade-in of the whole hero */
    opacity: 0;
    animation: heroFadeIn 1.2s ease forwards;

    /* Visual fallback while images load */
    background: linear-gradient(180deg, #111, #222);
}

/* Background layers live in this stack */
.bg-stack {
    position: absolute;
    inset: 0;
    z-index: 0;
}

/* Each background layer (we create/remove these as we go) */
.bg-layer {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
}
.bg-layer.show {
    opacity: 1;
    transition: opacity 1.5s ease;
}

/* Readability overlay */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1;
}

/* Content */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 640px;
    width: 100%;
    animation: fadeIn 1.5s ease-in-out;
}
.hero h1 {
    font-size: clamp(2rem, 4vw + 1rem, 3.25rem);
    font-weight: 600;
    margin-bottom: 10px;
    animation: slideDown 1.2s ease;
}
.hero p {
    font-size: clamp(1rem, 1vw + 0.75rem, 1.25rem);
    margin-bottom: 24px;
    opacity: 0.9;
    animation: fadeIn 2s ease-in-out;
}

/* Buttons */
.hero-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    animation: fadeInUp 1.8s ease;
    margin-top:20px;
}

.hero-btn {
    width: 115px;
}

/* Copyright Bar: subtle until hovered */
.copyright {
    position: fixed;
    bottom: 0; left: 0;
    width: 100%;
    background: rgba(0,0,0,0.6);
    color: #fff;
    text-align: center;
    padding: 8px 0;
    font-size: 0.8rem;
    z-index: 1000;
    transition: background 0.3s ease, opacity 0.3s ease;
    opacity: 0.7;
    backdrop-filter: saturate(120%) blur(2px);
    -webkit-backdrop-filter: saturate(120%) blur(2px);
}
.copyright:hover { background: rgba(0,0,0,0.9); opacity: 1; }

/* Keyframes */
@keyframes heroFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideDown { from { transform: translateY(-30px); opacity:0; } to { transform: translateY(0); opacity:1; } }
@keyframes fadeInUp { from { transform: translateY(20px); opacity:0; } to { transform: translateY(0); opacity:1; } }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .bg-layer,
    .bg-layer.show {
        transition: none;
    }
}

