/* Recent project styles */

.recent-projects{
    width:100%;
    padding:0 5%;
    margin:100px 0;
    height: max-content;
    
}

.section-title{
    text-align:center;
    margin-bottom:60px;
}

.section-title h2{
    font-size:3rem;
    font-weight:700;
    color:#111;
    text-transform:uppercase;
    letter-spacing:2px;
}

.projects-container{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(420px,1fr));
    gap:30px;
}

.project-card{
    position:relative;
    overflow:hidden;
    border-radius:30px;
    height:600px;
    cursor:pointer;
}

.project-card img{
    width:100%;
    height:100%;
    object-fit:cover;
    transition:.5s;
}

.project-card::before{
    content:"";
    position:absolute;
    left:0;
    top:0;
    width:100%;
    height:100%;
    background:linear-gradient(
        to top,
        rgba(20, 17, 17, 0.8),
        rgba(37, 33, 33, 0.25),
        rgba(151, 72, 72, 0.05)
    );
    z-index:1;
}

.project-card:hover img{
    transform:scale(1.08);
}

.project-content{
    position:absolute;
    left:40px;
    bottom:35px;
    z-index:2;
}

.project-content h3{
    display:inline-block;
    background:#000;
    color:#fff;
    padding:12px 18px;
    font-size:1.2rem;
    font-weight:700;
    text-transform:uppercase;
    border-radius:8px;
    margin-bottom:15px;
}

.project-content span{
    display:inline-block;
    background:#000;
    color:#fff;
    padding:10px 16px;
    border-radius:8px;
    font-size:.9rem;
    font-weight:600;
    text-transform:uppercase;
}

/* Responsive */

@media(max-width:900px){

    .projects-container{
        grid-template-columns:1fr;
    }

    .project-card{
        height:500px;
    }

    .section-title h2{
        font-size:2.3rem;
    }
}

@media(max-width:500px){

    .recent-projects{
        padding:0 20px;
    }

    .projects-container{
        grid-template-columns:1fr;
    }

    .project-card{
        height:420px;
    }

    .project-content{
        left:20px;
        bottom:20px;
    }

    .project-content h3{
        font-size:1rem;
    }

    .project-content span{
        font-size:.8rem;
    }
}