@import "colorScheme.css";

#projects{
    height: 100vh;
    width: 100%;
    background-color: var(--projects-bg);
}

/* first div */
.projects-title{
    height: 10vh;
    text-align: center;
    color: var(--title-text-color);
    line-height: 10vh;
}

/* second div */
.projects-content{
    height: 90vh;
    display: flex;
    flex-basis: 100%;
    justify-content: center;
    flex-wrap: wrap;

    /* padding: 25px; */
    padding: 5vh 2vw;
}

/* inner first div of content */
.projects-content-box{
    margin: 1rem;
    width: 90%;
    height: 100%;
    background: var(--background-primary);

    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-items: center;
    padding: 10px;
    border: 2px solid var(--border-secondary-color);
    border-radius: 10px;
    
}

.project-item{
    height: 90%;
    width: 30%;
    flex-basis: 30%;
    background: var(--secondary-color);
    border: 2px solid var(--border-secondary-color);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.project-item img{
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 10px;
    transition: transform 0.5s;
    overflow: hidden;
}

.project-item:hover img{
    transform: scale(1.2);
}

.project-details{
    width: 100%;
    height: 0;
    background: var(--gradient-secondary);
    border-radius: 10px;
    position: absolute;
    left: 0;
    bottom: 0;
    overflow: hidden;
    display: flex;
    text-align: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 20px;
    text-align: center;
    transition: height 0.5s;
}

.project-item:hover .project-details{
    height: 100%;
}

