.works {
    padding: 130px 0 83px;
    overflow: hidden;
}

.works::after {
    content: '';
    width: 1066px;
    height: 1066px;
    border-radius: 1066px;
    opacity: 0.3;
    background: radial-gradient(50% 50% at 50% 50%, #6D05F2 0%, rgba(109, 5, 242, 0.00) 100%);
    position: absolute;
    left: -32%;
    top: 9%;
    z-index: -1;
}

.works .container {
    flex-wrap: wrap;
}

.works-title {
    color: #FFF;
    font-family: 'Montserrat';
    font-size: 64px;
    font-weight: 700;
    width: 100%;
    margin-bottom: 70px;
    position: relative;
    margin-left: 55px;
}

.works-title::after {
    content: '';
    border-radius: 10px;
    background: #0044F3;
    width: 60px;
    height: 60px;
    transform: rotate(45deg);
    bottom: 30px;
    left: -44px;
    position: absolute;
    z-index: -1;
}

.works-nav {
    width: 100%;
    margin-bottom: 93px;
    position: relative;
}

.works-nav::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: -177px;
    right: 0;
    width: 150%;
    height: 1px;
    background: #332E51;
    z-index: -1;
}

.works-nav ul {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.works-nav li {
    display: block;
    width: 12%;
}

.works-nav li a {
    color: #E3E3E3;
    text-align: center;
    font-family: 'Montserrat';
    font-size: 24px;
    width: 100%;
    font-weight: 500;
    position: relative;
    transition: color .25s ease;
}

.works-nav li a::after {
    border-radius: 22px;
    background: #0044F3;
    width: 170px;
    height: 5px;
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -18px;
    margin: 0 auto;
    opacity: 0;
    transition: opacity .25s ease;
}

.works-nav li a:hover,
.works-nav li a.active {
    color: #fff;
}

.works-nav li a:hover::after,
.works-nav li a.active::after {
    opacity: 1;
}

.works-project-box {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-column-gap: 36px;
    grid-row-gap: 25px;
}

.works-project {
    position: relative;
    border-radius: 15px;
    width: 100%;
    height: 700px;
}

.works-project::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    border-radius: 15px;
    background: #000000c7;
    opacity: 0;
    transition: opacity .25s ease;
    z-index: 1;

}

.works-project:hover::after,
.works-project:hover .works-project-info {
    opacity: 1;
}

.works-project>img {
    border-radius: 15px;
    object-fit: cover;
    object-position: left;
}

.works-project .works-project-info {
    position: absolute;
    width: fit-content;
    height: fit-content;
    z-index: 2;
    margin: auto;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    opacity: 0;
    transition: opacity .25s ease;
}

.works-project-title {
    color: #FFF;
    margin-bottom: 15px;
    text-align: center;
    font-family: 'Montserrat';
    font-size: 36px;
    font-weight: 700;
}

.works-project-info>a {
    border-radius: 60px;
    background: #FFF;
    width: fit-content;
    margin: 0 auto;
    padding: 14px 50px;
    justify-content: center;
    align-items: center;
    color: #000;
    transition: background .25s ease;
    font-family: 'Montserrat';
    font-size: 18px;

    font-weight: 500;

}

.works-project-info>a:hover {
    background: #EEE;
}

#works-project-add {
    color: #100F17;

    font-family: 'Montserrat';
    font-size: 24px;
    transition: background .25s ease;
    font-weight: 500;

    margin: 66px auto 0;
    width: fit-content;
    border-radius: 60px;
    background: #FFF;
    padding: 30px 70px;
}

#works-project-add:hover {
    background: #EEE;
}

.works-pagination {
    width: fit-content;
    margin: 50px auto 0;
}

.page-numbers {
    display: flex;
    gap: 10px;
}

.page-numbers li {
    display: block;
}

a.page-numbers {
    font-size: 18px;
    background: #fff;
    color: #000;
    padding: 3px;
    border-radius: 100%;
    width: 25px;
    height: 25px;
    text-align: center;
    font-family: 'Montserrat';
    display: block;
}

span.page-numbers.current {
    display: block;
    font-size: 18px;
    padding: 3px;
    border-radius: 100%;
    width: 25px;
    height: 25px;
    text-align: center;
    font-family: 'Montserrat';
    background: #0580F2;
    color: #fff;
}

@media screen and (max-width: 1680px) {
    .works-nav li {
        width: 20%;
    }
}


@media screen and (max-width: 1500px) {
    #works-project-add {
        padding: 20px 50px;
        font-size: 22px;
    }
}


@media screen and (max-width: 1200px) {

    /* Works */
    .works-nav ul {
        overflow-x: scroll;
        overflow-y: hidden;
        padding-bottom: 19px;
    }

    .works-nav ul::-webkit-scrollbar {
        width: 0;
    }

    .works-nav::after {
        bottom: 27px;
    }

    .works-nav li {
        width: 200px;
        min-width: 200px;
    }
}

@media screen and (max-width: 1100px) {
    .works-project {
        height: auto;
    }
}


@media screen and (max-width: 800px) {


    .works-title {
        font-size: 45px;
        margin-left: 31px;
    }


    .works-title::after {
        bottom: 15px;
        left: -16px;
        width: 45px;
        height: 45px
    }
    .works-nav li a:hover::after, .works-nav li a.active::after{
        width: 100%;
    }
}

@media screen and (max-width: 700px) {
    .works {
        padding: 123px 0 83px;
    }

    .works-project-title {
        font-size: 30px;
    }
}


@media screen and (max-width: 550px) {
    .works-title {
        font-size: 36px;
        margin-bottom: 25px;
    }

    .works-title::after {
        border-radius: 5px;
        width: 39px;
        height: 39px;
        bottom: 8px;
        left: -22px;
    }

    .works-nav::after {
        bottom: 18px;
    }

    .works-nav li button::after {
        width: 100%;
        box-sizing: border-box;
    }

    .works-nav li {
        width: fit-content;
        min-width: 0;
        white-space: nowrap;
        margin-right: 20px;
        display: inline-table;
        box-sizing: border-box;
        -webkit-appearance: none;
        height: 31px;
        padding: 0;
    }

    .works-nav li button {
        height: 100%;
    }

    .works {
        padding: 60px 0 58px;
    }

    .works-nav {
        margin-bottom: 50px;
        margin-top: 30px;
        box-sizing: border-box;
    }

    .works-nav ul {
        overflow-y: hidden;
        padding: 0;
        height: 65px;
        box-sizing: border-box;
        align-items: baseline;
    }

    .works-nav::after {
        left: -100px;
        box-sizing: border-box;
    }

    .works-project-title {
        font-size: 20px;
        padding: 10px;
    }

    .works-project-info>a {
        padding: 10px 30px;
        font-size: 14px;
    }

    .works-project-box {
        grid-column-gap: 15px;
        grid-row-gap: 11px;
    }

    .works-project-box {
        grid-template-columns: repeat(1, 1fr);
    }

    .works-title {
        margin-bottom: 30px;
    }

    .works::after {
        height: 519px;
    }

    #works-project-add {
        font-size: 18px;
        padding: 14px 69px;
        margin: 50px auto 0;
    }

}