/* Intro Animation CSS */
#intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #101010; /* Or match theme background */
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    transition: opacity 0.8s ease-out, visibility 0.8s;
}

.intro-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.intro-letter {
    position: absolute;
    font-size: 5rem; /* Adjust size as needed */
    font-weight: bold;
    color: #f9f9f9; /* Or theme primary color */
    opacity: 0;
    transition: all 1.5s cubic-bezier(0.19, 1, 0.22, 1);
    /* Initial state set by JS (random positions) */
}

/* Class to apply when letters fly to center */
.intro-letter.assemble {
    opacity: 1;
    /* transform and top/left will be reset by JS or CSS to center */
}

/* Animation to move the whole container up */
.intro-container.move-up {
    transform: translateY(-100vh);
    transition: transform 1s ease-in-out;
}

/* Helper to hide scrollbar on body during intro */
body.intro-active {
    overflow: hidden;
}

/* Mobile-friendly adjustments */
@media (max-width: 768px) {
    .intro-letter {
        font-size: 3rem; /* Smaller font size for mobile */
    }
}

@media (max-width: 480px) {
    .intro-letter {
        font-size: 2.5rem; /* Even smaller font size for very small screens */
    }
}
