:root {
    --accent-color: #0057bb;
    --accent-color-dark: #0050ac;
    --accent-color-hover: #bcd8ff;

    --background-color: #f5f5f5;

    --default-font: "Open Sans", sans-serif;

    --header-menu-text-color: #ffffff;
    --header-menu-font: "Open Sans", sans-serif;

    --portfolio-title-color: #5c5c5c;
    --portfolio-button-text: #ffffff;
    --portfolio-divider-color: #d6d6d6;
}

* {
    padding: 0;
    margin: 0;
}

html,
body {
    width: 100vw;
    min-height: 100vh;

    background-color: var(--background-color);
    overflow-x: hidden;

    font-family: var(--default-font);

    scroll-behavior: smooth;
}

header {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 80px;
    z-index: 2;
    background-color: var(--accent-color);

    display: grid;
    grid-template-columns: 50% 50%;

    border-bottom: 1px solid var(--accent-color-dark);
}

.header-text {
    text-align: center;
    height: 100%;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    color: var(--header-menu-text-color);
}

.header-text h2 {
    font-size: 20px;
    color: #eeeeee;
    position: absolute;
}

.header-menu {
    display: grid;
    align-items: center;
    justify-content: center;

    grid-template-columns: repeat(3, 100px);

    height: 100%;
}

.header-menu a {
    display: inline-block;
    position: relative;

    text-decoration: none;

    color: var(--header-menu-text-color);
    font-family: var(--header-menu-font);

    text-align: center;
    font-size: 20px;

    padding: 10px;
}

.header-menu a:after {
    background: none repeat scroll 0 0 transparent;

    content: "";

    bottom: 0;
    left: 50%;
    height: 1px;
    position: absolute;

    background: #ffffff;
    transition: width 0.3s ease 0s, left 0.3s ease 0s, opacity 0.3s ease 0s;
    width: 0;
    opacity: 0;
}

.header-menu a:hover:after {
    width: 100%;
    left: 0;
    opacity: 1;
}

main {
    width: 100vw;
    min-height: 100vh;
}

.title-section {
    position: relative;

    height: 60vh;
    width: 100%;

    background-color: var(--accent-color);
    color: var(--header-menu-text-color);

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: center;
    align-items: center;

    text-align: center;
}

.title-section h1 {
    z-index: 1;
    font-size: 45px;
    padding: 10px;
}

.title-section p {
    z-index: 1;

    width: 400px;
    font-size: 15px;
}

.title-section a {
    text-decoration: underline;
    color: var(--header-menu-text-color);
}

.language-list {
    z-index: 1;

    width: 300px;
    height: 20px;

    display: -webkit-box; /* OLD - iOS 6-, Safari 3.1-6, BB7 */
    display: -ms-flexbox; /* TWEENER - IE 10 */
    display: -webkit-flex; /* NEW - Safari 6.1+. iOS 7.1+, BB10 */
    display: flex; /* NEW, Spec - Firefox, Chrome, Opera */
    flex-direction: row;
    justify-content: space-between;

    padding: 20px;
}

.language-list svg path {
    fill: #ffffff;
}

.title-wave {
    bottom: -1px;

    position: absolute;
    z-index: 0;
    width: 100%;
}

.title-wave svg {
    display: block;
    height: 100%;
    fill: var(--accent-color-dark);
    animation: wave 10s infinite linear;
}

.links-section {
    height: 40vh;
    width: 100vw;
    background-color: var(--accent-color-dark);

    display: flex;
    justify-items: center;
    justify-content: center;
    align-items: center;
}

.card-container {
    width: 100%;
    min-width: 650px;

    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    column-gap: 10px;
}

.card {
    /* transition: box-shadow 1s; */
}

.card-content {
    width: 100%;
    height: 80%;

    fill: white;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    /* Spacing */
    padding: 20px;
}

.card-content svg {
    display: block;
    width: 120px;
}

.card:hover {
    cursor: pointer;
}

.card-content svg:hover {
    fill: var(--accent-color-hover);

    transition: 0.5s ease-out all;
}

.card-content svg:not(:hover) {
    fill: var(--header-menu-text-color);
    transition: 0.5s ease-out all;
}

.portfolio-section {
    position: relative;
    width: 100%;
}

.portfolio-title {
    padding: 20px;
    text-align: center;

    color: var(--portfolio-title-color);
    font-size: 13px;
    letter-spacing: 2px;
}

.portfolio-items {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.portfolio-item {
    width: 60%;
    height: 400px;

    display: flex;

    align-content: center;
    justify-content: center;

    box-sizing: border-box;
}

.portfolio-item:not(:last-child) {
    border-bottom: 1px solid var(--portfolio-divider-color);
}

.portfolio-item-image {
    flex-basis: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.portfolio-item-image img {
    width: 80%;
    max-width: 410px;
    min-width: 335px;
}

.portfolio-item-content {
    flex-basis: 100%;
    text-align: center;

    display: grid;
    grid-template-rows: 30% 30% 40%;

    justify-items: center;
    align-items: center;
}

.portfolio-item-title {
    font-size: 25px;
}

.portfolio-item-description {
    width: 50%;
}

.portfolio-button {
    padding: 15px;
    background-color: var(--accent-color);
    border-radius: 100px;

    color: var(--portfolio-button-text);
    text-decoration: none;
    cursor: pointer;

    transition: 0.5s ease-out;
}

.portfolio-button:hover {
    padding-left: 40px;
    padding-right: 40px;
}

.contact-section {
    position: relative;

    min-height: 60vh;
    width: 100vw;

    background-color: var(--accent-color);

    display: flex;
    flex-direction: column;
}

.contact-wave {
    position: absolute;
    top: 0;

    width: 100%;
    z-index: 0;
}

.contact-wave svg {
    display: block;
    fill: var(--accent-color-dark);
}

.contact-title {
    z-index: 1;

    padding: 20px;
    text-align: center;

    color: var(--header-menu-text-color);
    font-size: 13px;
    letter-spacing: 2px;

    flex: 0 1 auto;
}

.contact-form-container {
    z-index: 1;

    flex: 1 1 auto;

    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-form-container form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    align-content: center;
}

.contact-form-container form * {
    margin: 10px;
    font-family: var(--default-font);
}

.contact-form-container input[type="text"] {
    padding: 10px;
    width: 400px;
    border-radius: 500px;

    border: none;
}

.contact-form-container textarea {
    padding: 10px;
    width: 400px;
    height: 200px;

    border-radius: 20px;
    resize: none;
}

.contact-form-container input[type="submit"] {
    padding: 10px;
    width: 200px;

    border-radius: 500px;
    border: none;

    cursor: pointer;
}

.contact-form-container input[type="submit"]:hover {
    background-color: #dfdfdf;
}

.contact-form-container *:focus {
    outline: none;
}

@keyframes item-scroll {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* width */
::-webkit-scrollbar {
    width: 5px;
}

/* Track */
::-webkit-scrollbar-track {
    background: var(--accent-color);
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: var(--background-color);
}

@media (prefers-reduced-motion: no-preference) {
    .portfolio-item-animate {
        animation-name: item-scroll;
        animation-duration: 1s;
        animation-iteration-count: 1;
    }
}

@media screen and (max-width: 1000px) {
    .portfolio-item {
        width: 100%;
    }
}

@media screen and (max-width: 700px) {
    .portfolio-item {
        flex-direction: column;
        height: 600px;
    }

    .portfolio-button {
        margin: 10px;
    }

    .links-section {
        height: calc(40vh - 81px);
    }

    .card-container {
        width: 100%;
        min-width: 0px !important;

        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        column-gap: 0px;

        height: 100%;
    }

    .card {
        width: 100px;
        height: 80%;

        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .card svg {
        width: 50px;
    }

    .header-text h2 {
        display: none;
    }

    header {
        position: relative;
        grid-template-columns: 0% 100%;
    }

    .title-section p {
        width: 95%;
    }

    .contact-form-container * {
        min-width: none;
        width: 90% !important;
    }
}
