#frontPage {
    margin: 0;
    padding: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    background: #0f1222;
    font-family: system-ui, sans-serif;
    color: #f6f7fb;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    flex-direction: column;
}

/* Canvas backgrounds */
#bgCanvas, #fallCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2; /* behind everything */
}

/* Front container */
#frontPage .front-container {
    text-align: center;
    color: #f6f7fb;
    width: 80%;
    max-width: 800px;
    z-index: 2; /* above canvases */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem; /* space between text, description, button */
}

/* Welcome text animation */
#frontPage .welcome-text h1 {
    margin: 0.5rem 0;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}

#frontPage .welcome-text h1:nth-child(1) { animation-delay: 0.5s; }
#frontPage .welcome-text h1:nth-child(2) { animation-delay: 1.0s; }
#frontPage .welcome-text h1:nth-child(3) { animation-delay: 1.5s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Interactive hover effect */
.interactive {
    display: inline-block;
    transition: transform 0.2s ease, color 0.3s ease;
}

.interactive:hover {
    transform: scale(1.2) rotate(-2deg);
    color: #4CAF50;
}

/* Description fade-in */
#description {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
    font-size: 1.1rem;
    line-height: 1.5;
}

/* Show description after text loads */
#frontPage.showDescription #description {
    opacity: 1;
    transform: translateY(0);
}

/* Explore button */
#exploreBtn {
    margin-top: 1rem;
    padding: 0.7rem 1.5rem;
    font-size: 18px;
    border: none;
    border-radius: 8px;
    background: #4CAF50;
    color: white;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Show button after description */
#frontPage.showDescription #exploreBtn {
    opacity: 1;
    transform: translateY(0);
}
