﻿.service-heading {
    font-size: 3rem;
    font-variation-settings: "wdth" 125;
    line-height: .9;
    margin: 0;
}

    .service-heading span {
        opacity: .6;
    }

.sub-desc {
    padding-left: 1rem;
    border-left: 1px solid var(--accent);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    grid-column-gap: 1rem;
    grid-row-gap: 1rem;
    height: 450px;
    margin: 2rem 0;
}

    .service-grid .service-item {
        padding: 2rem;
        background-color: var(--white);
        border-radius: 15px;
    }

    .service-grid .service-item.dark {
        background-color: var(--black);
        color: var(--white);
    }

.service-item h3 {
    font-size: 2rem;
    font-variation-settings: "wdth" 125;
}

.div1 {
    grid-area: 1 / 1 / 3 / 2;
}

.div2 {
    grid-area: 1 / 2 / 2 / 3;
}

.div3 {
    grid-area: 2 / 2 / 3 / 3;
}

.div4 {
    grid-area: 1 / 3 / 3 / 4;
}

.all-services {
    position: relative;
    height: calc(100% - 40px);
}

    .all-services a {
        position: absolute;
        padding: 5px 10px;
        border: 1px solid var(--black);
        border-radius: 30px;
        font-size: 1rem;
        color: var(--black);
        text-decoration: none;
        transition: background-color .3s ease-in-out;
    }

        .all-services a:hover {
            background-color: var(--black);
            color: var(--white);
        }

    .all-services a:nth-child(1) {
        bottom: 0;
    }

    .all-services a:nth-child(2) {
        right: 0;
        transform: rotate(15deg);
        bottom: 2rem;
    }

    .all-services a:nth-child(3) {
        bottom: 152px;
        transform: rotate(-10deg);
    } 

    .all-services a:nth-child(4) {
        bottom: 93px;
        transform: rotate(5deg);
    }

        .all-services a:nth-child(5) {
            bottom: 137px;
            right: 10px;
            transform: rotate(15deg);
        }


    .all-services .accent-1 {
        bottom: 35px;
        position: absolute;
        width: 65px;
    }

.service-item .logo-wrapper {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    height: calc(100% - 6rem);
    gap: .5rem;
}

    .service-item .logo-wrapper .logo-item {
        overflow: hidden;
        display: flex;
        justify-content: center;
    }

    .service-item .logo-wrapper .logo-item img {
        width: 50px;
    }

.years h3 {
    font-size: 3.5rem;
}

.years p {
    font-size: 1.5rem;
}

.project-link {
    position: relative;
    overflow: hidden;
    color: var(--black);
    text-decoration: none;
    font-size: 3rem;
    font-variation-settings: "wdth" 125;
    line-height: .9;
    transition: background-color .8s ease-in-out;
}

    .project-link:hover {
        background-color: var(--black);
        color: var(--white);
    }

.project-link img {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    transform: translateY(150px);
    width: 100px;
}

.lang h2 {
    font-size: 2rem;
    font-variation-settings: "wdth" 125;
    line-height: .9;
    margin: .5rem 0 1.5rem 1rem;
}


@media(max-width:1400px) {
    .all-services a:nth-child(2) {
        bottom: 3.25rem;
        transform: rotate(20deg);
    }
    .all-services a:nth-child(4) {
        bottom: 120px;
    }
    .all-services a:nth-child(5) {
        bottom: 190px;
        right:0;
    }
    .all-services a:nth-child(3) {
        bottom: 225px;
        transform: rotate(-35deg);
    }
}

@media(max-width:1150px){
    .div1,.div2,.div3,.div4 {
        grid-area: unset;
    }
    .service-grid {
        grid-template-columns: repeat(2,1fr);
        height: unset;
    }
    .all-services {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
    }
    .all-services a {
        position: unset;
        transform: unset !important;
    }
}

@media(max-width:992px){
    .service-grid {
        grid-template-columns: repeat(1,1fr);
        height: unset;
    }
    .all-services .accent-1 {
        top: -40px;
        right: 0;
    }
}