:root {
    --primary-color: #424242;
    --secondary-color: #F3752D;
    --light-grey-color: #f4f4f4;

    --page-max-width: 1200px;
    --page-padding-inline: 36px;
    --page-padding-block: 16px;

    --header-height: 70px;
    --header-logo-height: 50px;
    --header-bg-color: var(--light-grey-color);

    --text-color: #464646;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    appearance: none;
    list-style-type: none;
    line-height: 1.3;
}

a {
    all: unset;
}

html, body {
    color: var(--text-color);
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    height: 100%;
    width: 100%;
    font-family: 'Roboto', sans-serif;
}

img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

h2 {
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1.2;
}

h3 {
    font-size: 1.45rem;
    font-weight: 500;
    line-height: 1.2;
}   

.page {
    min-height: 100dvh;
    height: fit-content;
    width: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.header {
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 10;
    width: 100%;
    padding: var(--page-padding-block) var(--page-padding-inline);
    background-color: var(--header-bg-color);
}

.header-inner {
    width: 100%;
    height: 100%;
    max-width: var(--page-max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    position: relative;
    column-gap: 1rem;
}

.header-logo {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.header-logo-title {
    font-size: 1.3rem;
    margin-left: 1rem;
    white-space: nowrap;
}

.header-navbar {
    overflow-x: auto;
}

.header-navbar-checkbox-wrap, .header-navbar-checkbox {
    display: none;
}

.navbar {
    display: flex;
    flex-direction: row;
    gap: 8px;
}

.navbar-link {
    display: inline-block;
    height: 100%;
    padding: 8px 16px;
    text-align: center;
    align-content: center;
    cursor: pointer;
    color: var(--text-color);
    font-size: 16px;
    text-transform: uppercase;
    position: relative;
    line-height: 1.2;
}

.navbar-link::after {
    content: '';
    display: block;
    height: 1.5px;
    width: 0;
    position: absolute;
    bottom: 0;
    left: 0;
    transition: all .2s ease;
    background-color: var(--secondary-color);
}

.navbar-link:not(.is-active):hover::after {
    width: 100%;
}

.navbar-link:not(.is-active):hover {
    /* background-color: var(--secondary-color); */
    /* color: white; */
    color: var(--secondary-color);
}

.navbar-link.is-active {
    color: var(--secondary-color);
    font-weight: 500;
}


/* .portfolio-header::before {
    content: '';
    position: absolute;
    inset: 0;
    display: block;
    background-color: rgb(158 158 158 / 5%);
} */

.main {
    flex: 1;
    padding: 36px var(--page-padding-inline);
    width: 100%;
}

.main-inner {
    width: 100%;
    max-width: var(--page-max-width);
    margin: 0 auto;
}

.mdl-layout__header-row {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    flex-shrink: 0;
    align-self: stretch;
    align-items: center;
    height: 64px;
}

.portfolio-logo {
    margin: 0;
    background: none;
    height: var(--header-logo-height);
    width: auto;
}

.card {
    max-width: 1000px;
    margin: 0 auto;
    padding: 24px 32px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow: hidden;
    position: relative;
    background: white;
    border-radius: 12px;
    box-shadow: 0px 2px 7px 0px rgba(0 0 0 / .15);
}

img.certificate {
    max-height: calc(100dvh - var(--header-height));
}

.footer {
    width: 100%;
    padding: var(--page-padding-block) var(--page-padding-inline);
    background-image: url(images/footer-background.png);
    background-size: cover;
}

.footer-inner {
    margin: 0 auto;
    width: 100%;
    max-width: var(--page-max-width);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    color: #F4F4F4;
}

.footer-logo {
    font-size: 1.25rem;
    font-weight: 300;
}

ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

ul.disc > li {
    --disc-size: 0.5rem;

    position: relative;
    padding-left: calc(var(--disc-size) + 10px);
}

ul.disc > li::before {
    content: '';
    display: inline-block;
    width: var(--disc-size);
    height: var(--disc-size);
    border-radius: 50%;
    background-color: var(--secondary-color);
    position: absolute;
    top: 6px;
    left: 0;
}

.footer-link {
    font-weight: 300;
    cursor: pointer;
    transition: all .2s ease;
}

.footer-link:hover {
    color: var(--secondary-color);
}

.footer-link-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}

.footer-link .icon {
    display: inline-block;
    height: 1em;
    width: 1em;
}

@media (width < 800px)
{
    :root {
        --page-padding-inline: 1.5rem;
        --header-logo-height: 36px;
    }

    ul {
        row-gap: 1rem;
    }
    .footer {
        padding-bottom: 2rem;
    }

    .footer-inner {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .header-navbar-checkbox-wrap {
        --size: 2.4rem;
        display: block;
        height: var(--size);
        width: var(--size);

        background-image: url(images/menu.svg);
        background-repeat: no-repeat;
        background-size: var(--size);
        cursor: pointer;
        position: relative;
    }

    .header-navbar-checkbox-wrap:has(.header-navbar-checkbox:checked) {
        background-image: url(images/close.svg);
    }

    .header-navbar-checkbox {
        display: block;
        /* height: var(--size);
        width: var(--size); */
        position: absolute;
        inset: 0;
        cursor: pointer;
    }

    .header-navbar {
        position: fixed;
        background-color: var(--header-bg-color);
        inset: 0;
        margin-top: var(--header-height);
        z-index: 100;
        overflow-x: hidden;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        justify-content: safe center;
        box-shadow: inset 0px 1px 5px 0px rgba(0 0 0 / .1);
    }

    .header-navbar .navbar {
        flex-direction: column;
        padding: 1rem;
        width: fit-content;
        margin: 0 auto;
        height: fit-content;
    }

    .navbar-link {
        padding-block: 1rem;
    }

    .page:has(.header-navbar-checkbox:not(:checked)) .header-navbar  {
        display: none;
    }

    html:has(.page .header-navbar-checkbox:checked) {
        overflow: hidden;
    }
}