.our-projects{
    margin-top: 10px;
    background-color: #ffffff;
    background-image: url(../images/project-img/bg-projects-2.svg);
    background-size: contain;
    background-position: bottom right;
    background-repeat: no-repeat;
    padding-bottom: 50px;
}

.p-content{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.p-content p{
    max-width: 1000px;
    margin-bottom: 30px;
    color: #000000;
    font-size: 20px;
    font-weight: 500;
}

.p-projects{
    padding-top: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.p-image{
    margin: 10px;
    width: 400px; 
    height: 300px; 
    color: white; 
    text-align: center;
    background-image: url(../images/projects/addProject/project1.png); /* Or any color of your choice */
    background-size: cover;
    background-position: center;
    transition: 0.5s;
    position: relative;
}

.p-image:nth-child(2){
    background-image: url(../images/projects/addProject/project2.png);
}
.p-image:nth-child(3){
    background-image: url(../images/projects/addProject/project3.png);
}

.p-image p {
    color: #fff;
    position: absolute;
    bottom: 0;
    left: 1px;
    line-height: 50px;
    font-weight: 600;
    font-size: 16px;
    width: 100%;
    background-color: #11111185;
    margin: 0;
}

.p-image:hover{
    scale: 1.2;
    z-index: 22;
    cursor: pointer;
}

.p-image:hover .p-image p{
    background-color: none;
}

.p-gallery{
    margin-top: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.p-img-container{
    width: 80%;
    margin: 60px auto 50px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(370px, 1fr));
    grid-gap: 30px;
}

.p-img-container img{
    width: 100%;
    cursor: pointer;
    transition: 0.4s;
}

.p-img-container img:hover{
    transform: scale(1.2);
    border-radius: 15px;
    box-shadow: 0 32px 75px rgba(68,77,136, 0.2);
}


@media screen and (max-width: 900px) {
    .p-projects{
        flex-direction: column;
        padding: 0 20px;
    }
    .p-img-container{
        grid-template-columns: repeat(auto-fit, minmax(300px, 2fr));
        grid-gap: 20px;
        margin: 40px auto 30px;
    }
    
}

@media screen and (max-width: 850px) {
    .p-content p{
        font-size: 16px;
    }
    .p-img-container{
        grid-template-columns: repeat(auto-fit, minmax(200px, 2fr));
        grid-gap: 30px;
        margin: 20px auto 20px;
    }
    
}
@media screen and (max-width: 600px) {
    
    .p-content p{
        font-size: 12px;
    }

    .p-image{
        width: 100%;
    }
    
}