@import "../base.css";

@keyframes count-animation {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.services {
    width: 100%;
    padding-top: 5%;
}

.services.hide {
    display: none;
}

.services .items {
    width: 100%;
    height: 45vw;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 2vw;
}

.services .items .item {
    width: 100%;
    height: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;
}

.services .items .item img {
    width: 75%;
    height: 75%;

    box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 50px;
    border-radius: 5px;
}

.services .items .item h2 {
    margin-top: 5%;

    font-weight: 400;
    font-size: 1.5vw;

    color: var(--main);
}
.services .items .item p {
    font-size: 0.9vw;
    width: 80%;
    color: var(--main);
    width: 25vw;
    text-align: center;
}

.services .points,
.services .counter {
    width: 100%;
    height: 45vw;

    margin-top: 10%;

    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    text-align: center;
}

.services .points h2 {
    font-size: 3vw;
    font-weight: 600;
    color: var(--main);
    margin-top: 30px;
}

.services .points p {
    font-size: 2vw;
    width: 100%;
    text-align: cent er;
    padding: 0px 20px;
}

.services .counter {
    margin: 5% 0% 10% 0%;
    height: 10vw;
    justify-content: start;
}

.services .counter h2 {
    font-size: 5vw;
    font-weight: 600;
    color: var(--main);

    animation: count-animation 2s ease-out;
}

.services .grid {
    width: 100%;
    display: flex;
    flex-direction: column;
    margin-top: 10vw;
    height: 70vw;
}

.services .grid h1 {
    text-align: center;
    margin-bottom: 10%;
    width: 100%;
    background-color: var(--main);
    color: var(--bg);
    font-size: 4vw;
}

.services .grid .items {
    padding: 0 5%;
    width: 100%;
    display: grid;
    grid-template-columns: 30% 30% 29%;
    grid-template-rows: 65% 55%;
}

.services .grid .items .item-1 {
    background: url("../../images/services/items/service-item-1.webp");
    background-size: cover;
    height: 27vw;
    width: 105%;
}

.services .grid .items .item-2 {
    background: url("../../images/services/items/service-item-2.webp");
    background-size: cover;
    width: 105%;
    margin-left: 2vw;
    position: relative;
    height: 30vw;
    top: 2vw;
}

.services .grid .items .item-3 {
    background: url("../../images/services/items/service-item-3.webp");
    background-size: cover;
    width: 100%;
    height: 32vw;
    margin-left: 5vw;
}

.services .grid .items .item-4 {
    background: url("../../images/services/items/service-item-4.webp");
    background-size: cover;
    width: 100%;
    position: relative;
    height: 35vw;
    margin-top: 17%;
    bottom: 5.5vw;
}

.services .grid .items .item-5 {
    background: url("../../images/services/items/service-item-5.webp");
    background-size: cover;
    margin-top: 15%;
    width: 215%;
    height: 30vw;
    margin-left: 2vw;
}

.services .grid-2 {
    margin-top: 20% !important;
}

.services .grid-2 .items .item-1 {
    background: url("../../images/services/items/service-item-6.webp");
}
.services .grid-2 .items .item-2 {
    background: url("../../images/services/items/service-item-7.webp");
}
.services .grid-2 .items .item-3 {
    background: url("../../images/services/items/service-item-8.webp");
}
.services .grid-2 .items .item-4 {
    background: url("../../images/services/items/service-item-9.webp");
}
.services .grid-2 .items .item-5 {
    background: url("../../images/services/items/service-item-10.webp");
}

.services .grid .items .item-1,
.services .grid .items .item-2,
.services .grid .items .item-3,
.services .grid .items .item-4,
.services .grid .items .item-5 {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

@media screen and (max-width: 900px) {
    .services .items {
        height: 570vw;
        width: 100%;
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        grid-template-rows: repeat(3, 1fr);
        gap: 1vw;
    }
    .services .points {
        margin-top: 20%;
    }

    .services .items .item {
        margin-bottom: 10%;
        padding-bottom: 10%;
    }

    .services .items .item img {
        width: 75%;
        height: 75%;

        box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 50px;
        border-radius: 5px;
    }

    .services .items .item h2 {
        margin-top: 5%;

        font-weight: 600;
        font-size: 4vw;

        color: var(--main);
    }
    .services .items .item p {
        font-size: 3.5vw;
        width: 80%;
        color: var(--main);
        width: 350px;
        text-align: center;
    }

    .services .points {
        margin-top: 50%;
        height: 70vw;
    }

    .services .points h2 {
        font-size: 5vw;
        font-weight: 600;
        color: var(--main);
        margin-top: 30px;
    }
    .services .points p {
        font-size: 3.5vw;
        margin: 10% 0%;
    }

    .services .grid {
        height: 60vw;
        gap: 1vw;
    }
    .services .grid-2 {
        margin-top: 35% !important;
    }

    .services .grid .items {
        padding: 0 5%;
        width: 100%;
        display: grid;
        grid-template-columns: 30% 31% 30%;
        grid-template-rows: 42% 55%;
    }
}
