.our-projects{
    margin: 155px 0;
}
.our-projects::-webkit-scrollbar {
    display: none;
}
.our-projects::-webkit-scrollbar-thumb {
    background-color: #777;
}
.mobile-projects{
    display: none;
}
.mobile-projects .swiper-wrapper>*{
    height: 400px;
    width: 250px;
    max-width: 250px;
    color: white;
}
.mobile-projects .all-projects{
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}
.mobile-projects .all-projects path{
    fill: black;
}
.project-grid{
    display: flex;
    gap: 40px;
    margin-left: calc((100% - var(--container-width))/2);
    overflow: auto;
}
.project-grid>*{
    flex-shrink: 0;
    width: 352.5px;
    height: 470px;
    position: relative;
    color: white;
}
.project-item{
    overflow: hidden;
}
.project-item>*{
    transition: .3s;
    z-index: 1;
}
.project-item_title{
    z-index: 2;
    transform: scale(1);
    padding: 1em;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
}
.project-item_title:before{
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    transition: .3s;
    background: var(--purple);
    transform: translate(calc(-100% - 21px), 0);
    z-index: -1;
}
.project-item:hover .project-item_title:before{
    transform: translate(-20px, 0);
}
.project-item_img{
    position: absolute;
    height: 100%;
    width: 100%;
    object-fit: cover;
    top: 0;
    left: 0;
    z-index: -1;
}
.project-item .circle{
    border-radius: 50%;
    aspect-ratio: 1 / 1;
}
.project-item:nth-of-type(1){
    display: flex;
    align-items: center;
    justify-content: center;
}
.project-item:nth-of-type(1) .circle{
    box-shadow: inset 0 0 0 180px var(--purple);
    position: absolute;
    width: 100%;
}
.project-item:nth-of-type(1) .project-item_title{
    z-index: 1;
}
.project-item:nth-of-type(1) .mesh{
    background: url(/images/icons/gray-mesh.png);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
}
.project-item:nth-of-type(1) .black{
    background: var(--black);
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
}
.project-item:nth-of-type(1):hover .mesh{
    transform: translate(0, -100%);
}
.project-item:nth-of-type(1):hover .black{
    transform: translate(0, 100%);
}
.project-item:nth-of-type(1):hover .circle{
    box-shadow: inset 0 0 0 0 var(--purple);
}
.project-item:nth-of-type(2){
    padding: 40px 60px;
    display: flex;
}
.project-item:nth-of-type(2) .project-item_title{
    align-self: flex-end;
}
.project-item:nth-of-type(2) .icon{
    position: absolute;
}
.project-item:nth-of-type(2) .icon:nth-of-type(1){
    width: 500px;
    height: 500px;
    transform: rotate(-56deg) translate(-60%, -230px);
}
.project-item:nth-of-type(2) .purple-triangle-white-mesh{
    position: absolute;
    width: 600px;
    height: 600px;
    transform: rotate(204deg) translate(30%, 180px);
    object-fit: contain;
}
.project-item:nth-of-type(2) .icon:nth-of-type(2) path{
    fill: var(--purple);
}
.project-item:nth-of-type(2) .icon:nth-of-type(3) path{
    fill: url(#white-mesh-pattern)
}
.project-item:nth-of-type(2) .icon:nth-of-type(1) path{
    fill: var(--black);
}
.project-item:nth-of-type(2):hover .icon:nth-of-type(1){
    transform: translate(0, 100%);
}
.project-item:nth-of-type(2):hover .purple-triangle-white-mesh, .project-item:nth-of-type(2):hover .purple-triangle-white-mesh{
    transform: rotate(204deg) translate(0, 100%);
}
.project-item:nth-of-type(3){
    padding: 70px 40px;
    display: grid;
    justify-content: flex-end;
    align-items: center;
}
.project-item:nth-of-type(3) .crystal{
    width: 100%;
    height: auto;
    transform: rotate(-10deg);
    position: absolute;
    z-index: 2;
}
.project-item:nth-of-type(3) .circle{
    width: 200px;
    background: var(--purple);
    display: block;
    position: absolute;
    bottom: 0;
    transform: translate(40px, 50px);
    z-index: 0;
}
.project-item:nth-of-type(3) .project-item_title{
    z-index: 3;
    align-self: flex-start;
}
.project-item:nth-of-type(3) .icon path{
    fill: var(--black);
}
.project-item:nth-of-type(3):hover .circle{
    transform: translate(0, 100%);
}
.project-item:nth-of-type(3):hover .crystal{
    top: 0;
    transform: rotate(0) translate(0, -100%);
}
.swiper-slide.project-item{
    max-width: 250px;
}

.project-grid .all-projects{
    background: var(--purple);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    overflow: hidden;
}
.all-projects_title{
    padding: 1em;
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.all-projects_title:before{
    content: '';
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    transform: translate(-100%, 0);
    transition: .3s;
    background: white;
    z-index: -1;
}
.project-grid .all-projects .icon{
    position: absolute;
    width: 20px;
    height: 20px;
    top: 45px;
    right: 45px;
}
.project-grid .all-projects path{
    fill: white;
}
.project-grid .all-projects:after{
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    height: 175px;
    width: 200px;
    background: var(--white-mesh);
    transition: .3s;
}
.project-grid .all-projects:hover:after{
    transform: translate(0, 100%);
}
.project-grid .all-projects:hover{
    color: var(--black);
}
.project-grid .all-projects:hover .all-projects_title:before{
    transform: translate(0,0);
}
@media (max-width: 1700px){
    
}
@media (max-width: 1200px){
    .project-grid{
        margin-left: 0;
    }
}
@media (max-width: 480px) {
    .our-projects{
        margin: 70px 0;
    }
    .project-grid{
        display: none;
    }
    .mobile-projects{
        display: block;
    }
    .mobile-projects swiper{
        display: block;
    }
}