:root {
    --orange: #f5b92eb9;
}

* {
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
    background-color: white;
    margin: 0 auto;
}

h1 {
    font-family: serif, Georgia;
    color: #2B2B2B;
}

p {
    font-family: sans-serif, Arial;
    color: #2B2B2B;
}

body {
    max-width: 1100px;
    min-width: 375px;
    padding: 2rem;

}

button {
    border-radius: 10px;
    width: 100px;
    height: 28px;
    border: none;
    margin-right: 0.5rem;
}

button:hover {
    text-decoration: underline;
}

/* HEADER */

header {
    /* position: relative; */
    z-index: 1;

}

nav {
    display: flex;
    justify-content: space-between;
    /* margin-top: 2rem; */

}

nav span {
   
    z-index: 2;
    flex-basis: 40%;
    margin-inline: 1rem;
}

ul {
    list-style: none;
    word-spacing: 1rem;
    text-decoration: none;
    background-color: transparent;
    text-align: right;
    z-index: 2; 
    margin-inline: 0.5rem;
    flex-basis: 40%;
    padding-inline: 0;
}

nav a {
    text-decoration: none;
    color: black;
    background-color: transparent;
    vertical-align: bottom;
    z-index: 2;

}

nav a:hover {
    text-decoration: underline;
}

header li {
    display: inline-block;
    background-color: transparent;
    vertical-align: bottom;
    

}

header img {
    width: 100%;
    height: 500px;
    position: absolute;
    left: 17rem;
    z-index: 1;
    object-fit: contain;
    
}

header div {
    display: flex;
    justify-content: space-between;
}

.header_section1 {
    flex-basis: 45%;
    z-index: 2;

}

.header_section2 {
    flex-basis: 50%;
    height: 500px;
    margin-top: -20px;
    z-index: 1;
}

header h4 {
    padding-top: 5rem;
    color: var(--orange);
    margin-bottom: 1rem;
}

.header_section1 h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.header_section1 p {
    width: 80%;
    text-align: left;
    margin-left: 0;
    margin-bottom: 1rem;
}

.button_project {

background-color: var(--orange);
}

.button_linkedin,
.button_view_project {
    border: 1px solid black;
}

/* MAIN SECTION OF PROJECTS */
.projects {
    text-align: center;
}

hr {
    background-color: var(--orange);
    width: 60px;
    height: 3px;
    border-radius: 5px;
    border: none;
    margin-bottom: 1rem;
}

.project_card1 {
    display: flex;
    /* flex-wrap: wrap; */
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    margin-bottom: 2rem;
    vertical-align: bottom;
    align-items: center;
    background-color: white;
    height: 400px;
    margin-top: 3rem;
    overflow: hidden;

}

.project_card1_part1 {
    flex-basis: 50%;
    background-color: white;
    border-radius: 10px;

}

.project_card1 figure {
    flex-basis: 50%;
    object-fit: contain;
    height: 100%;
    margin: 0;
    
}

.project_card1 figure img {
    height: 100%;
    width: 100%;
    /* border-radius: 10px; */
}

.project_card1_part1 p,
.project_card1_part1 h2 {
    width: 80%;
    background-color: white;
    margin-bottom: 1rem;
}

/* second row */

.project_card2 {
    display: flex;
    /* flex-wrap: wrap; */
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    margin-bottom: 2rem;
    vertical-align: bottom;
    align-items: center;
    background-color: white;
    height: 400px;
    margin-top: 3rem;
    overflow: hidden;

}

.project_card2_part2 {
    flex-basis: 50%;
    background-color: white;
    border-radius: 10px;

}

.project_card2 figure {
    flex-basis: 50%;
    height: 100%;
    margin: 0;

}

.project_card2 figure img {
    height: 100%;
    width: 100%;
    /* border-radius: 10px; */
}

.project_card2_part2 p,
.project_card2_part2 h2 {
    width: 80%;
    background-color: white;
    margin-bottom: 1rem;
}

/* 3rd row */

.project_card3 {
    display: flex;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    margin-bottom: 2rem;
    vertical-align: bottom;
    align-items: center;
    background-color: white;
    height: 400px;
    margin-top: 3rem;
    overflow: hidden;
}

.project_card3_part1 {
    flex-basis: 50%;
    background-color: white;
    border-radius: 10px;

}

.project_card3 figure {
    flex-basis: 50%;
    height: 100%;
    margin: 0;

}

.project_card3 figure img {
    height: 100%;
    width: 100%;
    /* border-radius: 10px; */
}

.project_card3_part1 p,
.project_card3_part1 h2 {
    width: 80%;
    background-color: white;
    margin-bottom: 1rem;
}

/* CONTACTS SECTIONS */
.contact {
    text-align: center;
    align-items: center;
    padding-top: 2rem;
    margin-bottom: 2rem;
}

.contact_form {
    text-align: left;
    width: 40%;
}

.contact input,
textarea {
    display: block;
}

.contact input {
    width: 100%;
    border: 0.5px solid grey;
    height: 30px;
    margin-bottom: 1rem;
    margin-top: 1rem;
    border-radius: 5px;
}

.contact_form textarea {
    width: 100%;
    height: 200px;
    margin-bottom: 1rem;
    margin-top: 1rem;
    border-radius: 5px;
}

.contact_form button {
    float: right;
    background-color: var(--orange);
    margin-bottom: 2rem;
}

/* FOOTER */

footer {
    padding-top: 2rem;
}
.footer {
    
   text-align: center;
    width: 50%;
    padding: 0 auto;
    margin-top: 2rem;

}

footer img {
    width: 40px;
    /* margin-inline: 0.5rem; */

    display: inline;
}

.footer_2 {
    background-image: url(img/Vector.png);
    height: 300px;
    width: 100%;
    margin-top: -130px;
    background-repeat: no-repeat;
}

/* MEDIA */

@media (min-width: 375px) and (max-width: 640px) {
       nav {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
       }
        header li {
        display: block;
        margin-top: 1rem;
}   
    nav span {
        width: 100%;
        text-align: left;
    }
    nav ul {
        width: 100%;
        text-align: left;
        padding: 0;
        margin-inline: 1rem;
    }
    header div {
        flex-direction: column-reverse;
        display: block;
    }
    .header p {
        margin: 0 auto;
        margin-bottom: 1rem;
    }
    .header_section1 {
        width: 100%;
        height: auto;
        text-align: left;
        margin: 0;
    }
    .header_section1 p {
        text-align: left;
        margin: 0;
        margin-bottom: 1rem;
    }
    .header_section2 {
        margin: 0;
    }    
    .header img {
    width: 90%;
    height: 500px;
    left: 1rem;
    z-index: 1;
    object-fit: cover;
    margin-top: 1rem;
    margin-bottom: 1rem;
    }
    .projects {
        margin-top: 2rem;
    }
    .project_card1, .project_card3, .project_card2 {
        flex-direction: column;
        height: 600px;
        margin: 2rem 0;
    }
      
    .project_card1_part1, .project_card2_part2, 
    .project_card3_part1 {
       align-content: center;
       padding: 1rem;
       height: 50%;
       
    }
    .project_card1_part2, .project_card2_part1, 
    .project_card3_part2 {
       align-content: center;
       padding: 1rem;
       height: 50%;
       
    }
    .projects figure {
        height: 300px;
        width: 100%;
    }
     .projects img {
        object-fit: cover;
     }
}