.reveal-card-wrapper {
    position: relative;
    overflow: hidden;
    display: flex;
    background-size: cover;
    background-position: center;
    border-radius: 0px;
}

/* --- INITIAL STATE --- */
.reveal-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* Starts hidden at the bottom */
    transform: translateY(100%); 
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-card-content {
    position: relative;
    z-index: 2;
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100%;
    /* Starts invisible */
    opacity: 0; 
    /* The delay is now handled dynamically in the HTML */
    transition: opacity 0.5s ease;
}

/* --- ANIMATED STATE (triggered by JavaScript) --- */
.reveal-card-wrapper.in-view .reveal-card-overlay {
    /* Moves into view */
    transform: translateY(0);
}

.reveal-card-wrapper.in-view .reveal-card-content {
    /* Fades in */
    opacity: 1;
}


/* --- General Content Styling --- */
.reveal-card-icon {
    margin-bottom: 20px;
}
.reveal-card-icon img {
    max-width: 100%;
    height: auto;
}
.reveal-card-title {
    margin: 0 0 10px 0;
}
.reveal-card-description {
    margin: 0;
}