* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
}

.containerr1 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

.image-card {
    position: relative;
    width: 30%;
    overflow: hidden;
    opacity: 0;
    transform: translateY(100px); /* Start with an offset */
}

.image-card img {
    width: 100%;
    display: block;
    height: auto;
    transition: transform 0.5s ease;
}

.text {
    text-align: center;
    position: absolute;
    bottom: -100px;
    left: 50px;
    color: #8f8585;
    font-size: 25px;
    font-family: Core Sans C 85 Heavy;
    font-weight: 1000;
    opacity: 0;
    transition: all 0.5s ease;
}

.image-card.in-view {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.image-card.in-view .text {
    animation: slideUp 1s 0.5s forwards;
}

@keyframes slideUp {
    to {
        bottom: 20px;
        opacity: 1;
    }
}

.image-card:hover img {
    transform: scale(1.05);
}

@media screen and (max-width: 768px) {
    .image-card {
        width: 45%;
    }
}

@media screen and (max-width: 480px) {
    .image-card {
        width: 100%;
    }

    .text {
        text-align: center;
        position: absolute;
        bottom: -100px;
        left: 35px;
        font-size: 26px;
    }
}