* {
    margin: 0;
    padding: 0;
}
html{
    scroll-behavior: smooth;
}
body{
    font-family: 'Merriweather Sans', sans-serif;
}
/* *! NAVBAR */

#header{
    z-index:5;
    position: fixed;
}
.sticky {
    
    top: 0;
    width: 100%;
}
.sticky + .contenu {
    padding-top: 102px;
}
body{
    background-color: #0c0c0c;
    color:white;
}
nav{
    display:flex;
    padding-top:10px;
    /* padding-bottom: 5px; */
    background-color:#1f1f1f;
    height:70px;

}
#navbar{
    margin-top: 20px;
}
.logo{
    width:70vw;
    margin-left:20px;
}
/* .logo img{
    background-color:white;
} */
.navbar_content{
    width:30vw;
    list-style: none;
    display:flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-content:center;
}
.link{
    text-decoration: none;
    color:white;
}

h2{
    position:relative;
    width:7%;
    margin-left:auto;
    margin-right:auto;
}


.contact_title:after, .projects_title:after, .about_title:after{
    position:absolute;
    width: 80px;
    height: 2px;
    left: 20px;
    bottom: -3px;
    content:"";
    background-color:red;
}

/* *! HOME */



#home{
    height:100vh;
    padding-top:150px;
}

.home{
    display:flex;
    flex-direction: row;
}
.home_title, .home_image{
    position:relative;
    width:50vw;
    text-align:center;
    margin:auto;
}
.home_title{
    /* font-size:30px; */
    font-size:2rem;
}
#image_profil{
    border-radius:46% 54% 32% 68% / 55% 30% 70% 45%  ;
    width:400px;
    animation: floatImage 4s ease-in-out infinite;
    
    
}

@keyframes morph {
    0% {
        border-radius: 60% 40% 30% 70%/60% 30% 70% 40%;
    }
    50% {
        border-radius: 30% 60% 70% 40%/50% 60% 30% 60%;
    }
    100% {
        border-radius: 60% 40% 30% 70%/60% 30% 70% 40%;
    }
}
@keyframes floatImage{
    0% {
        transform: translateY(30px);
    }
    50%{
        transform: translateY(-30px);
    }
    100%{
        transform: translateY(30px);
    }
}
.contact_button{
    position:relative;
    left: 20%;
    top:-20px;
    width:150px;
    height:50px;
    border-radius:15px;
    color:white;
    background-color:red;
    font-size:1rem;
    transition: all 2s ease;
}
.contact_button:hover{
    transform: scale(1.5);
    cursor:pointer;
}
.social{
    padding-top:150px;
    padding-left: 10vh;
}
.linkedin, .github{
    width:30px;
    margin-left: 5vh
}

/*! ABOUT*/
#about{
    padding-top:100px;
}
.about_title{
    padding-left:20px;
}
.about_content{
    margin-top:100px;
    display:flex;
    flex-wrap: wrap;
}
.about_img{
    position: relative;
    text-align: center;
    width:45%;
    margin-top:auto;
    margin-bottom:auto;
}
.about_content img{
    width:50%;
    object-fit:cover;
    border-radius: 20%;
}
.about_description{
    width:45%;
    text-align: left;
    margin-top: auto;
    margin-bottom:auto;
}
.about_description p{
    width:80%
}

.reveal .about_img{
    position:relative;
    transform:translateX(-150px);
    opacity:0;
    transition: all 2s ease;
}
.reveal.active .about_img{
    transform: translateX(0px);
    opacity:1;
}
.reveal .about_description{
    position:relative;
    transform:translateX(150px);
    opacity:0;
    transition: all 2s ease;
}
.reveal.active .about_description{
    transform: translateX(0px);
    opacity:1;
}
/*! PROJECTS*/

#projects{
    margin-top:200px;
    padding-top:100px;
}
.projects_title{
    text-align: center;
}

.project_content{
    display:flex;
    width:80vw;
    flex-wrap: wrap;
    margin-left: auto;
    margin-right: auto;
    margin-top:100px;
    justify-content:space-around;
}

.project{
    /* background-color:red; */
    /* border:1px solid black; */
    margin: 15px 15px 0 0;
}
.project img{
    width:600px;
    height:400px;
}


/*! CONTACT*/
#contact{
    position:relative;
    width:100%;
    margin-top:100px;
    text-align:center;
}



.contact_content{
    width:100%;
    height:50vh;
    position:relative;
    text-align:center;
    margin-top:50px;
}
input{
    font-family: 'Merriweather Sans', sans-serif;
    font-size:18px;
    font-weight: bold;
}
.name, .mail, .message{
    margin-top:30px;
    
}
.name-input, .mail-input, .message-input{
    padding: 10px 5px;
    width:20%;
    border-radius: 10px;
}
.submit_button{
    position:relative;
    /* left: 20%;
    top:-20px; */
    margin-top:20px;
    width:150px;
    height:50px;
    border-radius:15px;
    color:white;
    background-color:red;
}
.submit_button:hover{
    cursor:pointer;
}


/* *! MEDIA QUERIES */
label
{
    display: none;
}
label, #toggle
{
    display: none;
}
@media all and (max-width: 991px)
{
    header{
        width:100vw;
    }
#navbar{
       margin-left:auto;
       margin-right:auto;
       margin-top:0;
}
 
    nav .navbar_content 
    {
        display: none;
        flex-direction: column;
        background: #1f1f1f;
        height: 220px;
        width:20vw;
    }
 
    nav .navbar_content a {
        width: 50%;
    }
 
    label 
    {
        width: 30px;
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0 auto;
        font-size: 40px;
        color: white;
        cursor: pointer;
    }
    .blob{
        display:flex;
    }
/* *! HOME*/

    .home{
        flex-direction: column;
    }
    .home_title{
        height:500px;
    }
    #image_profil{
        border-radius:46% 54% 32% 68% / 55% 30% 70% 45%  ;
        width:300px;
        animation: morph 8s ease-in-out infinite; 
        margin: 0 auto;
    }
    .contact_button{
        left:40%;
        top:0;
        margin-top:60px;
    }

    .social{
        position:absolute;
        top:50%;
        margin: 0 auto;
    }
    @keyframes morph {
        0% {
            border-radius: 60% 40% 30% 70%/60% 30% 70% 40%;
        }
        50% {
            border-radius: 30% 60% 70% 40%/50% 60% 30% 60%;
        }
        100% {
            border-radius: 60% 40% 30% 70%/60% 30% 70% 40%;
        }
    }
    /* *! ABOUT */

    .about_title{
        padding-left:0;
    }
    .about_title:after {
        left: 0;
    }

    /* *!PROJECTS */

    .project img {
        width: 100%;
        height: 100%;
    }
}