.project-section{
    width: 100%;
    height: auto;
    /* background-color: black; */
}

.project-section h1{
    text-align: center;
    margin: 2rem 1rem;
    padding: 1rem;
    color: var(--color-black);
}

.project-section h1 span{
    color: var(--color-red);
}

.projects-list{
    display: flex;
    flex-direction: column;
    text-align: center;
}

.project-video{
    padding: 1rem;
    background: var(--bg-black);
    text-align: center;
    position: relative;

}

.project-video iframe{
    width: 500px;
    max-width: 100%;
    height: 250px;
    padding: 0.5rem 2rem 0.5rem 1rem;
    border-radius:3px;
}



/* .project-video video{

} */

.project-description{
    background: var(--color-pink);
    color: var(--color-white);
    position: relative;
}


.project-description::after{
    content: '';
    width: 40px;
    height: 50%;
    background: var(--bg-black);
    position: absolute;
    top: 50%;
    left: 0;
    transform: skew(0deg);
    z-index: 50;
}

.project-description::before{
    content: '';
    width:40px;
    height: 100%;
    background: var(--bg-black);
    position: absolute;
    top: 0;
    left: 0;
    transform: skew(10deg);
    z-index: 50;
}

.project-description .slide-in > * {
    margin: 1rem;
    padding: 1rem;
}

.project-description .slide-in p{
    position: relative;
    z-index: 100;
    padding: 0 4rem;
}


.p3{
    padding: 3rem 0;
}



/* Projecc 2  */


/* Second Profile Description */
.pd2{
    background: none;
    color: var(--bg-black);
    position: relative;
}

.pd2 h2{
    color: var(--bg-black);
}

/* Second Profile Video */
.pv2{
    background: none;
}

.project-description.pd2::before{
    all: unset;
}

.project-description.pd2::after{
    all:unset;
}


/* Other Projects */

.other-projects{
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(200px ,1fr));
    gap: 1rem;
    margin: 2rem 1rem;
    color: var(--color-white);
}

.other-project{
    background: var(--color-red);
    position: relative;
    /* display: subgrid; */
    text-align: center;
    padding: 0.5rem;
    margin: 0.5rem;
    cursor: pointer;
}

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

.basis-part iframe{
    max-width: 100%;
    height: 50%;
}

.basis-part img{
    max-width: 100%;
    height: 200px;

    
}

.basis-h3{
    display: block;
    margin: 2rem;
}



.hover-part{
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-direction: column;
    width: 100%;
    height: 100%;
    background: var(--color-brown);
    transform: scale(0,0);
    transform-origin:left;
    transition: transform 0.3s ease-in;
}


.other-project .basis-h3:hover .hover-part{
    transform-origin:left;
    transform: scale(1,1); 
}

.hover-part.hoverActive{
    transform-origin:left;
    transform: scale(1,1);   
}



.hover-part h3{
    margin: 1rem;
    padding: 1rem;
    line-height: 1;
}

.hover-part button{
    display: block;
}


/*  for faders */

.from-left{
    transform:translate(-50%)
}

.from-right{
    transform:translate(50%)
}

.from-left,
.from-right{
    opacity: 0;
    transition:opacity 250ms ease-in,transform 400ms ease-in;
}

.from-left.appear,
.from-right.appear{
    opacity: 1;
    transform: translateX(0);
}



@media screen and (min-width:690px){
    .projects-list{
        display: flex;
        flex-direction: row;
        text-align: center;
    }
    
    .project-video{
        width: 50%;
        padding: 1rem;
        background: var(--bg-black);
        text-align: center;
        position: relative;
    
    }

    .project-video iframe{
        width: 500px;
        max-width: 100%;
        height: 250px;
        padding: 0.5rem 2rem 0.5rem 1rem;
        border-radius:3px;
    }
    
    
    
    /* .project-video video{
    
    } */
    
    .project-description{
        width: 50%;
        background: var(--color-pink);
        color: var(--color-white);
        position: relative;
    }
    
    
    .project-description::after{
        content: '';
        width: 40px;
        height: 50%;
        background: var(--bg-black);
        position: absolute;
        top: 50%;
        left: 0;
        transform: skew(0deg);
        z-index: 50;
    }
    
    .project-description::before{
        content: '';
        width:40px;
        height: 100%;
        background: var(--bg-black);
        position: absolute;
        top: 0;
        left: 0;
        transform: skew(10deg);
        z-index: 50;
    }

    
    
    .p3{
        padding: 6rem 0;
    }
    
    
    
    /* Projecc 2  */
    
    
    /* Second Profile Description */
    .pd2{
        background: none;
        color: var(--bg-black);
    }
    
    .pd2 h2{
        color: var(--bg-black);
    }
    
    /* Second Profile Video */
    .pv2{
        background: none;
    }

    
    
    /* Other Projects */
    
    .other-projects h2{
        color: black;
    }


    .other-projects{
        display: grid;
        grid-template-columns: repeat(auto-fit,minmax(250px ,300px));
        gap: 1rem;
      
        margin: 3rem 6rem;
    }

    .project-description.pd2::before{
        transform: skew(-45deg);
        background: var(--color-pink);
    }


}