:root {
    --primary-color: #a2e2d4;
    --secondary-color: #56A996;
    --tertiary-color: #A95669;
    --alternative-color: #ffffff;
    --paper: #fcf1e4;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    color: var(--primary-color);
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
	line-height: 1.65;
  }

  p {
      margin-top: 0;
      text-align: justify;
  }

header {
    padding: 15px 0px;
    background-color: var(--tertiary-color);
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-position: 80%;
    z-index: 9999;
}

header h1 {
font-weight: bold;
font-size: 36px;
color: var(--primary-color);
text-shadow: 0 0 3px rgba(0,0,0,0.5);
}

header a {
text-decoration: none;
color: var(--alternative-color);
}

header nav {
    margin: 10px 0px 0px 0px;
}

header nav ul {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
align-items: right;
list-style: none;
}

header nav ul li a {
padding: 10px 15px;
font-weight: bold;
font-size: 2vw;
}

header nav ul li a:hover {
color: var(--primary-color);
border-radius: 5px;
}

.hero {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    background: var(--primary-color);
}

.about-section {
    color: var(--tertiary-color);
    flex: 0 1 25%;
}

.portrait img {
    max-width: 50vw;
    margin: 0;
    background-color: var(--primary-color);
    flex: 1;
}

.body-elements {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    background-color: var(--primary-color)
}

.languages-tools {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    color: var(--tertiary-color);
    font-weight: bold;
    padding: 20px;
    width: 25%;
    flex: 0 1;
    max-height: 35%;
    background: var(--paper);
}

.languages-tools h4 {
    font-size: 30px;
    font-style: italic;
    margin: 20px 0;
}
 
.languages-tools ul {
    list-style: none;
    padding: 5px;
}

.languages-tools li::before {
    content: "\1F449";
    display: inline-block;
    margin-right: 0.2rem;
}

.projects-section {
    display: flex;
    flex-wrap: wrap;
    flex: 1;
    justify-content: space-around;
    border-top: 7px solid var(--tertiary-color);
}

.projects-section article {
    margin: 20px;
    color: var(--tertiary-color);
}

.projects-section > article:not(:first-child) {
    width: 44%;
}

.projects-section a {
    display: flex;
}

.projects-section a img {
    max-width: 100%;
    height: fit-content;
    box-shadow: -3px 2px 15px gray;
}

.projects-section a img:hover {
    opacity: 50%;
}

footer {
    padding: 10px 20px;
    background: var(--tertiary-color);
    display: flex;
    justify-content: space-between;
}

.badges a {
    text-decoration: none;
    color: var(--alternative-color)
}

.contact-info a {
    color: var(--alternative-color);
    text-decoration: none;
}

.contact-info a:hover {
    color: var(--secondary-color);
}

/* MEDIA QUERY FOR SMALLER DESKTOP SCREENS AND SMALLER */
@media screen and (max-width: 980px) {

    body {
        background-color: var(--primary-color);
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    header {
        min-width: 100%;
    }

    header nav ul li a{
        font-size: 0.6rem;
        padding: 0.4rem;
    }

    p {
        margin: 0 2rem 1rem 2rem;
        text-align: justify;
        font-size: 0.7rem;
    }

    .hero {
        display: flex;
        flex-direction: column;
        max-width: 80%;
        padding: none;
    }

    .hero h2 {
        text-align: center;
    }

    .portrait {
        flex: 1;
        max-width: 70%;
        width: none;
    }

    .portrait img {
        max-width: 100%;
    }

    .about-section {
        flex: 1;
    }

    .body-elements {
        display: flex;
        flex-direction: column;
        align-items: center;
        background: var(--primary-color);
        justify-content: space-between;
        width: 100%;
    }

    .languages-tools {
        display: flex;
        flex-direction: row;
        justify-content: space-evenly;
        min-width: 100%;
    }

    .languages {
        padding: 0 20px;
    }

    .tools {
        padding: 0 20px;
    }

    .projects-section {
        background: var(--alternative-color);
    }

    footer {
        display: flex;
        justify-content: space-around;
        min-width: 100%;
    }

  }
  
  /* MEDIA QUERY FOR TABLETS AND SMALLER */
  @media screen and (max-width: 767px) {
    .projects-section > article:not(:first-child) {
        width: 100%;
    }

  }