* {
    box-sizing: border-box;
}

:root {
    --primary-color: rgba(208 130 111);
    --secondary-color: rgb(59 67 88);
    --neutral-color: rgb(223 224 224);
    font-size: 20px;
}

@font-face {
    font-family: "Montserrat";
    src: url("fonts/Montserrat-VariableFont_wght.ttf");
}

@font-face {
    font-family: "Nunito";
    src: url("fonts/Nunito-VariableFont_wght.ttf");
}

html {
    height: 100%;
}

body {
    min-height: 100%;
    font-family: 'Nunito', sans-serif;
    line-height: 1.25rem;
    padding: 0 10px;
    color: var(--secondary-color);
}

h1,
h2,
h3,
h4 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-color);
    text-transform: uppercase;
    font-weight: bold;
}


h1 {
    font-size: 1.2rem;
    display: flex;
    flex-direction: column;
}

h1 span {
    font-family: 'Nunito', sans-serif;
    font-weight: 300;
    font-size: 1rem;
}

h2 {
    margin-bottom: 0.5rem;
}

h3 {
    color: var(--secondary-color);
    font-size: 0.8rem;
}

h3 span {
    text-transform: none;
}

h4 {
    color: var(--secondary-color);
    margin-bottom: .25rem;
}

.left-triangle {
    position: absolute;
    height: 150px;
    width: 50%;
    top: 0;
    left: 0;
    background-image: linear-gradient(to right bottom, var(--secondary-color) 0%, var(--secondary-color) 49.8%, transparent 50%);
}

.right-triangle {
    position: absolute;
    top: 0;
    right: 0;
    height: 175px;
    width: 90%;
    background-image: linear-gradient(to left bottom, var(--primary-color) 0%, var(--primary-color) 49.8%, transparent 50%);
}

aside {
    grid-area: 1 / 1 / 4 / 2;
    height: 100%;
    border-top: 3px solid var(--neutral-color);
    color: var(--secondary-color)
}

header {
    grid-area: 1 / 2 / 2 / 3;
    margin-top: 165px;
    padding: 1rem;
}

main {
    grid-area: 2 / 2 / 3 / 3;
}

section {
    padding: 1rem;
}

section:not(:last-child) {
    border-bottom: 3px solid var(--neutral-color);
}

article:not(:last-child) {
    margin-bottom: 1rem;
}

ul {
    list-style-type: square;
    padding-inline-start: 25px;
    margin-top: .25rem;
}

img {
    position: absolute;
    top: 40px;
    left: 10px;
    border-radius: 50%;
    width: 125px;
    height: 125px;
    object-fit: cover;
}

footer {
    background-color: var(--primary-color);
    text-align: center;
    margin-left: -10px;
    margin-right: -10px;
    font-weight: bold;
    font-size: 0.8rem;
    padding: 15px;
}

a,
a:visited,
a:hover {
    color: var(--secondary-color);
    font-weight: bold;
}

.employer {
    margin-bottom: .25rem;
}

@media screen and (min-width: 480px) {
    body {
        display: grid;
        grid-template-columns: 40% 1fr;
        grid-template-rows: repeat(2, auto);
        grid-column-gap: 10px;
        grid-row-gap: 0;
        padding: 0;
        padding-right: 10px;
    }

    img {
        left: calc((40% - 125px)/2)
    }

    aside {
        padding-top: 200px;
        background-color: var(--neutral-color);
        font-size: 0.9rem;
    }

    aside section {
        padding: .5rem 1rem;
    }

    aside article:not(:last-child) {
        margin-bottom: .5rem;
    }
}

@media screen and (min-width: 770px) {
    body {
        grid-template-columns: 30% 1fr;
    }

    img {
        top: 20px;
        width: 175px;
        height: 175px;
        left: calc((30% - 175px)/2)
    }
}

@media screen and (min-width: 1024px) {
    body {
        grid-template-columns: 20% 1fr;
    }

    img {
        left: calc((20% - 175px)/2)
    }
}

@media screen and (min-width: 1200px) {
    main {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, auto);
        grid-column-gap: 10px;
        grid-row-gap: 10px;
        padding-top: 50px;
    }

    section:not(:last-child) {
        border-bottom: none;
    }

    #about {
        grid-area: 1 / 1 / 2 / 3;
    }

    #professional-experiences {
        grid-area: 2 / 1 / 4 / 2;
        border-right: 3px solid var(--neutral-color);

    }

    #trainings {
        grid-area: 2 / 2 / 3 / 3;
    }

    #certifications {
        grid-area: 3 / 2 / 4 / 3;
    }
}

@media print {

    .left-triangle,
    .right-triangle {
        display: none;
    }
}