@import url(./variables.css);

.projects{
    --swiper-theme-color:var(--color-quinary);
    --swiper-navigation-size: 4rem;
    margin-top: -3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 90vh;
    background: transparent;
   
}


.projects-container{
    position: relative;
    max-width: 100%;
    
    border-radius: 20px;
    /* -webkit-box-reflect: below 0.5px linear-gradient(transparent 75%, var(--bg-primary-opacity)); */
}

.swiper-slide{
    background-position: center;
    background-size: cover;
    width: 60vw !important;
    height: 72vh !important;
    min-height: 350px;
    margin: 0 20px;
    border-radius: 20px;
    background: transparent;
}


.swiper-slide-shadow-left,
.swiper-slide-shadow-right{
    background-image: none !important;
}


.projects-container .projects-card{
    
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 320px;
    
    background: var(--bg-secondary-opacity);
    border-radius: 20px;
    padding: 1rem 1rem;
    text-align: center;
    overflow: hidden;
}

.projects-container .projects-card .projects-layer{
    position: absolute;
    top: calc(72vh - 2px);
    border-radius: 20px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(var(--bg-primary-opacity), var(--bg-secondary-opacity));
    z-index: 1;
    transition: 0.5s
}

.projects-container .projects-card:hover .projects-layer{
    height: 100%;
    border-radius: 20px;
    top: 0;
}


.projects-content{
    /* min-height: 300px; */
    position: relative;
    z-index: 2;
}

.projects-container .projects-card .projects-content p {
    padding: 0 2rem;
    font-size: 18px;
    line-height: 18px;
    
    text-align: center;
    color: var(--text-primary);
}

.projects-container .projects-card .projects-content p strong{
    margin: 0 auto;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--text-secondary);
}


.projects-container .projects-card .projects-content h2 span{
    color: var(--text-primary);
    font-size: 14px;
    transition:0.5s ;
}
.projects-container .projects-card .projects-content h2{
    color: var(--text-secondary);
}
.projects-container .projects-card:hover .projects-content h2 span{
    color: var(--text-primary);
}


.projects-content .projects-img{
   display: inline-block;
   width: 90%;
   
   text-align: center;
   overflow: hidden;
}

.projects-img img{
    
    max-width: 100%;
    max-height: 50vh;
    padding-top: 20px;
    
    object-fit: cover;
    
}

.details-github{
    position: absolute;
    width: 90%;
    
    max-width: 100%;
    max-height: 50vh;
    height: 90%;
    width: 90%;
    
    z-index: 3;
   
    
    transform: scaleY(0);
    transition: transform .5s;
    
    display: flex;
    align-items: center;
    justify-content: center;
}

.details-github svg{
    width: 40%;
    height: 40%;
    fill: var(--color-quaternary);
    
}

.projects-card:hover .details-github{
    transform: scaleY(1);
    transition: .5s;
}



@media screen  and (max-width:1000px){
    .swiper-slide{
        max-height: 52vh;
    }

}

@media only screen and (max-width:600px){
    .projects-container .projects-card .projects-content p{
        font-size: 1rem;
        margin-top: .5rem;
        text-align: justify;
        padding: 0 .5rem;
    }
    .projects-container .projects-card .projects-content h2{
        font-size: 1.2rem;
    }

    
    
} 

@media screen and (min-width:660px) and (max-width: 1000px){
    .swiper-slide{
        max-height: 50vh;
    }
}