.services {
    margin: 2rem 0;
    position: relative;
    z-index: 5;
}

.services > header {
    font-size: 2rem;
    margin: 2rem 0;
}

.services .cards-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.services .card {
    border: .1rem solid var(--main-color);
    padding: 2rem;
    text-align: justify;
    text-justify: auto;
    box-shadow: 5px 5px 1px 1px var(--main-color);
    background-color: var(--white-color);
    /* animation-name: show; */
    animation-duration: 2s;
    animation-fill-mode: forwards;
    /* animation-iteration-count: infinite; */
    transform: translateX(1000%);
}

.services .card:hover {
    box-shadow: 5px 5px 1px 1px var(--hover-color);
    border-color: var(--hover-color);
    transform: scale(1.02);
}

@keyframes show-services {
    0% {
        transform: translateX(-1000%);
    }

    90% {
        transform: translateX(5%);
    }

    100% {
        transform: translateY(0);
    }
}

.services .card:nth-child(2) {
    animation-delay: .5s;
}

.services .card:nth-child(3) {
    animation-delay: .75s;
}

.services .card:nth-child(4) {
    animation-delay: 1s;
}

.services .card:nth-child(5) {
    animation-delay: 1.25s;
}

.services .card:nth-child(6) {
    animation-delay: 1.5s;
}

.services .image {
    background-image: linear-gradient(130deg, var(--second-color), var(--main-color));
    width: 5rem;
    height: 5rem;
    padding: 1rem;
    font-size: 3rem;
    color: var(--light-color);
}

.services .card:hover .image {
    background-image: linear-gradient(130deg, var(--main-color), var(--second-color));
}

.services .card header {
    margin: 1rem 0 .5rem;
}

.services .card:hover header {
    color: var(--hover-color);
    transition: unset;
}

.services .image i {
    line-height: 0;
}

@media (max-width: 1000px) {
    .services .cards-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .services .cards-container .card {
        height: auto;
    }
}

@media (max-width: 768px) {
    .services .cards-container {
        grid-template-columns: repeat(1, 1fr);
        padding: 1rem 1.5rem;
    }

    .services .cards-container .card {
        text-align: right;
        height: auto;
    }

    .services .cards-container .card p {
        text-align: justify;
        text-justify: auto;
    }
}