.work{
    width: 100%;
    height: fit-content;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: all;

    overflow: hidden;
    border-radius: 0.6vw;
}

.work_inner{
    width: 90%;
    height: fit-content;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    pointer-events: all;

    border-radius: 0.6vw;
    margin: 10vh 0;
}

.work_inner > .header{
    width: 100%;
    height: fit-content;
    display: flex;
    justify-content: center;
    align-items: center;
}

.work_inner > .header > h1{
    font-size: 2.2vw;
    color: white;
    margin: 0;
    padding: 0.5vw 0;
    font-weight: 500;
    font-family: var(--inter);
}

.work_inner > .header > .filters{
    width: fit-content;
    height: fit-content;

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2px;

    margin-left: auto;
    background-color: black;
    border: 1px solid #383838;
    border-radius: 0.5vw;
    padding: 2px;
}

.work_inner > .header > .filters > .filter{
    font-size: 1vw;
    color: rgb(255, 255, 255);
    padding: 0.7vw 1vw;
    font-weight: 400;
    font-family: var(--inter);
    cursor: pointer;
    user-select: none;

    border-radius: calc(0.5vw - 2px);
    background-color: rgb(0, 0, 0);
}

.work_inner > .header > .filters > .filter:hover{
    background-color: #292929;
}

.work_inner > .header > .filters > .filter_active{
    background-color: #ffffff;
    color: black;
}

.work_inner > .header > .filters > .filter_active:hover{
    background-color: #ffffff;
}

.work_inner > .product_window{
    margin-top: 2vh;
    position: relative;
    width: 100%;
    height: fit-content;
    border-radius: 0.5vw;

    display: flex;
    justify-content: center;
    align-items: center;
}

.product_window > .products{
    width: 100%;
    height: 100%;

    display: flex;
    justify-content: start;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.products > .product{
    position: relative;
    width: calc(50% - 7px);
    height: calc(40vh - 7px);

    background-color: #212121;
    border-radius: 0.5vw;
    border: 1px solid #2f2f2f;
    background-image: linear-gradient(rgba(30, 30, 30, 0.92) 0%, rgba(30, 30, 30, 0.92) 100%) ,url(../Images/productBackground.jpg);
    background-size: 300%;
    background-position: 70% 70%;
}

.products > .product > .product_inner{
    width: calc(100% - 6px);
    height: calc(100% - 6px);

    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;

    margin: 3px;
}

.product_inner > .img{
    height: 100%;
    aspect-ratio: 155/277;
    border-radius: calc(0.5vw - 3px);
    background-image: url(../Images/products/product1.png);
    background-size: cover;
    background-position: center;
}

.product_inner > .content{
    flex: 1;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: column;

    margin-left: 1.4vw;
}

.product_inner > .content > .upper{
    width: 100%;
    height: fit-content;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product_inner > .content > .upper > .filters{
    width: fit-content;
    height: fit-content;

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
}

.product_inner > .content > .upper > .filters > .filter{
    font-size: 0.7vw;
    color: rgb(255, 255, 255);
    padding: 0.2vw 0.7vw;
    font-weight: 300;
    font-family: var(--inter);
    border-radius: 100px;
    border: 1px solid white;
}

.product_inner > .content > .upper > .filters > .filter_toprated{
    border-color: #FFF2D9;
    color: #FFF2D9;
}

.product_inner > .content > .upper > .filters > .filter_3d{
    border-color: #D9F5FF;
    color: #D9F5FF;
}

.product_inner > .content > .upper > .link{
    width: 2vw;
    aspect-ratio: 1/1;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: calc(0.5vw - 3px);
    cursor: pointer;
    user-select: none;
    display: flex;
    justify-content: center;
    align-items: center;
    
}

.product_inner > .content > .upper > .link > .icon{
    width: 1vw;
    aspect-ratio: 1/1;
    background-color: rgba(255, 255, 255, 0.4);
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    transform: translate(5%, -5%);
}

.product_inner > .content > .middle{
    width: 100%;
    height: fit-content;

    display: flex;
    justify-content: center;
    align-items: start;
    flex-direction: column;
}

.product_inner > .content > .middle > h1{
    font-size: 1.6vw;
    width: 70%;
    color: white;
    margin: 0;
    padding: 0;
    font-weight: 500;
    font-family: var(--inter);
}

.product_inner > .content > .middle > p{
    font-size: 0.9vw;
    width: 90%;
    color: #ffffff7f;
    margin: 0;
    padding: 0;
    font-weight: 300;
    font-family: var(--inter);
    margin-top: 0.8vw;
}

.product_inner > .content > .middle > button{
    margin-top: 1.2vw;
    padding: 0.6vw 1.2vw;
    font-size: 0.8vw;
    color: white;
    background-color: #00000000;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    font-family: var(--inter);
    font-weight: 500;
    border: 1px solid white;
    transition: all 0.1s ease;
}

.product_inner > .content > .middle > button:hover{
    background-color: white;
    color: black;
    border: 1px solid white;
}


.product_inner > .content > .lower{
    width: 100%;
    height: fit-content;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product_inner > .content > .lower > .metrics{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.2vw;
    margin-left: auto;
}

.product_inner > .content > .lower > .metrics > .metric{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.2vw;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 0.8vw;
    border-radius: calc(0.5vw - 3px);

}

.product_inner > .content > .lower > .metrics > .metric > .icon{
    width: 0.9vw;
    aspect-ratio: 1/1;
    background-color: rgb(208, 208, 208);
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
}

.product_inner > .content > .lower > .metrics > .metric > .text{
    font-size: 0.8vw;
    color: rgb(210, 210, 210);
    margin: 0;
    padding: 0;
    font-weight: 400;
    font-family: var(--inter);
}

@media (max-width: 1366px) {
    /* Add styles for screens up to 1366px */

}

@media (max-width: 940px) {
    /* Add styles for screens up to 900px */   
    
    

    .product_inner > .content > .middle > button{
        margin-top: 2vw;
        padding: 1vw 2vw;
        font-size: 1.2vw;
    }

    .work_inner > .header > h1{
        font-size: 3vw;
        padding: 0.5vw 0;
    }

    .work_inner > .header > .filters{
        gap: 2px;

        border-radius: 0.8vw;
        padding: 2px;
    }

    .work_inner > .header > .filters > .filter{
        font-size: 1.8vw;
        padding: 1vw 1.4vw;
        border-radius: calc(0.8vw - 2px);
    }

    .products > .product{
        width: calc(100%);
        height: calc(25vh - 7px);
        border-radius: 0.8vw;

    }
    .product_inner > .img{
        aspect-ratio: 155/277;
        border-radius: calc(0.8vw - 3px);
    }



    .product_inner > .content{
        margin-left: 2vw;
    }

    .product_inner > .content > .upper > .filters > .filter{
        font-size: 1.1vw;
        padding: 0.4vw 1.2vw;
    }
    
    .product_inner > .content > .upper > .link{
        width: 4vw;
        border-radius: calc(0.8vw - 3px);
        
    }

    .product_inner > .content > .upper > .link > .icon{
        width: 2vw;
        transform: translate(5%, -5%);
    }

    .product_inner > .content > .middle > h1{
        font-size: 2.4vw;

    }

    .product_inner > .content > .middle > p{
        width: 70%;
        font-size: 1.6vw;
    }

    .product_inner > .content > .lower > .metrics > .metric{
        gap: 0.35vw;
        padding: 1.4vw;
        border-radius: calc(0.8vw - 3px);

    }

    .product_inner > .content > .lower > .metrics > .metric > .icon{
        width: 1.6vw;

    }

    .product_inner > .content > .lower > .metrics > .metric > .text{
        font-size: 1.4vw;
    }
}

@media (max-width: 480px) {
    /* Add styles for screens up to 480px */

    .product_inner > .content > .middle > button{
        margin-top: 3vw;
        padding: 1.2vw 2.4vw;
        font-size: 1.8vw;
    }

    .work_inner > .header > h1{
        font-size: 5vw;
        padding: 0.5vw 0;
    }

    .work_inner > .header > .filters{
        gap: 2px;

        border-radius: 1.2vw;
        padding: 2px;
        margin-top: 4vw;
    }

    .work_inner > .header{
        align-items: start;
        flex-direction: column;
    }

    .work_inner > .header > .filters > .filter{
        font-size: 2.5vw;
        padding: 1.6vw 2vw;
        border-radius: calc(1.2vw - 2px);
    }

    .product_window > .products{
        gap: 5px;
    }


    .work_inner > .product_window{
        margin-top: 5px;
    }

    .products > .product{
        width: calc(100%);
        height: calc(30vh - 5px);
        border-radius: 0.8vw;

    }
    .product_inner > .img{
        aspect-ratio: 155/277;
        border-radius: calc(0.8vw - 3px);
    }

    .product_inner > .content{
        margin-left: 2.5vw;
    }

    .product_inner > .content > .upper > .filters > .filter{
        font-size: 1.8vw;
        padding: 0.6vw 1.8vw;
    }
    
    .product_inner > .content > .upper > .link{
        width: 6vw;
        border-radius: calc(1.2vw - 3px);
        
    }

    .product_inner > .content > .upper > .link > .icon{
        width: 3vw;
        transform: translate(5%, -5%);
    }

    .product_inner > .content > .middle > h1{
        font-size: 4vw;

    }

    .product_inner > .content > .middle > p{
        width: 90%;
        font-size: 2.4vw;
    }

    .product_inner > .content > .lower > .metrics > .metric{
        gap: 0.7vw;
        padding: 2vw;
        border-radius: calc(1.2vw - 3px);

    }

    .product_inner > .content > .lower > .metrics > .metric > .icon{
        width: 2.2vw;

    }

    .product_inner > .content > .lower > .metrics > .metric > .text{
        font-size: 2vw;
    }

}