/* ==================================================
   ANDRÉ MERCEY — CV WEBSITE
   ================================================== */


/* ---------- GENERAL ---------- */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    font-family: Helvetica, Arial, sans-serif;

    background-color: #f4f6f4;
    color: #202420;

    line-height: 1.6;
}


/* ---------- HEADER ---------- */

header {
    background-color: #ffffff;

    border-bottom: 1px solid #dce3de;

    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1100px;
    margin: auto;

    padding: 18px 30px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}

.name {
    color: #1f5c45;

    font-size: 21px;
    font-weight: bold;

    text-decoration: none;
}


/* ---------- NAVIGATION ---------- */

nav {
    display: flex;
    gap: 30px;

    margin-left: auto;
}

nav a {
    color: #343a36;

    text-decoration: none;

    font-size: 15px;
    font-weight: 500;
}

nav a:hover {
    color: #1f5c45;
}


/* ---------- LANGUAGE BUTTON ---------- */

#language-button {
    border: 1px solid #1f5c45;

    background-color: transparent;
    color: #1f5c45;

    padding: 7px 13px;

    border-radius: 0px;

    font-family: Helvetica, Arial, sans-serif;
    font-weight: bold;

    cursor: pointer;
}

#language-button:hover {
    background-color: #1f5c45;
    color: white;
}


/* ---------- MAIN CONTENT ---------- */

main {
    max-width: 1300px;

    margin: 45px auto;

    padding: 0 30px;
}


/* ---------- CONTENT CARDS ---------- */

section {
    background-color: #ffffff;

    border: 1px solid #dfe6e1;

    border-radius: 0px;

    padding: 45px;

    margin-bottom: 30px;
}


/* ---------- HERO ---------- */

.hero {
    background-color: #edf4f0;

    padding-top: 50px;
    padding-bottom: 50px;
}

.hero h1 {
    margin: 5px 0;

    font-size: 54px;

    line-height: 1.1;

    color: #183f31;
}

.hero h2 {
    margin-top: 12px;
    margin-bottom: 20px;

    font-size: 27px;

    font-weight: normal;

    color: #3f8064;
}

.hero > p:not(.subtitle) {
    max-width: 1100px;

    font-size: 18px;

    color: #4b554f;
}

.subtitle {
    margin-bottom: 15px;

    color: #1f5c45;

    font-size: 13px;
    font-weight: bold;

    letter-spacing: 1.5px;
}


/* ---------- SECTION TITLES ---------- */

section > h2 {
    margin-top: 0;
    margin-bottom: 30px;

    color: #1f5c45;

    font-size: 30px;
}


/* ---------- BUTTONS ---------- */

.hero-buttons {
    margin-top: 35px;

    display: flex;
    gap: 15px;
}

.button {
    display: inline-block;

    background-color: #1f5c45;
    color: white;

    padding: 12px 20px;

    border-radius: 0px;

    text-decoration: none;

    font-weight: bold;

    transition: 0.2s;
}

.button:hover {
    background-color: #174735;
}

.button.secondary {
    background-color: transparent;

    border: 0px solid #1f5c45;

    color: #1f5c45;
}

.button.secondary:hover {
    background-color: #1f5c45;
    color: white;
}


/* ---------- EXPERIENCE ---------- */

.experience {
    padding: 25px 0;

    border-bottom: 1px solid #e1e6e3;
}

.experience:last-child {
    border-bottom: none;
}

.experience-title {
    display: flex;

    justify-content: space-between;
    align-items: flex-start;

    gap: 30px;
}

.experience h3 {
    margin: 0;

    color: #183f31;

    font-size: 22px;
}

.experience h4 {
    margin: 4px 0;

    color: #4b554f;

    font-size: 17px;
    font-weight: normal;
}

.experience-title > p {
    margin: 0;

    color: #68716c;

    white-space: nowrap;

    font-size: 14px;
}


/* ---------- RESULTS ---------- */

.results {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 15px;

    margin-top: 25px;
}

.results div {
    background-color: #edf4f0;

    border-radius: 7px;

    padding: 20px;

    text-align: center;
}

.results strong {
    display: block;

    color: #1f5c45;

    font-size: 29px;
}

.results span {
    display: block;

    margin-top: 3px;

    color: #56605a;

    font-size: 14px;
}


/* ---------- SKILLS ---------- */

.skills {
    display: flex;

    flex-wrap: wrap;

    gap: 10px;
}

.skills span {
    background-color: #edf4f0;

    color: #245640;

    border: 1px solid #d7e5dc;

    border-radius: 5px;

    padding: 8px 13px;

    font-size: 14px;
}


/* ---------- CONTACT ---------- */

#contact {
    background-color: #edf4f0;
}

#contact p {
    max-width: 650px;

    margin-bottom: 25px;
}


/* ---------- FOOTER ---------- */

footer {
    max-width: 1100px;

    margin: auto;

    padding: 15px 30px 40px;

    color: #727b75;

    font-size: 13px;

    text-align: center;
}


/* ==================================================
   MOBILE
   ================================================== */

@media (max-width: 750px) {

    .header-container {
        padding: 15px 20px;
    }

    nav {
        display: none;
    }

    main {
        margin-top: 20px;

        padding: 0 15px;
    }

    section {
        padding: 28px 22px;

        margin-bottom: 15px;
    }

    .hero {
        padding-top: 45px;
        padding-bottom: 45px;
    }

    .hero h1 {
        font-size: 40px;
    }

    .hero h2 {
        font-size: 22px;
    }

    .experience-title {
        display: block;
    }

    .experience-title > p {
        margin-top: 7px;
    }

    .results {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;

        align-items: flex-start;
    }

}