:root {
    --bg-color-light: #FFF;
    --bg-color-medium: #EEE;
    --bg-color-dark: #222;
    --bg-color-darkest: #000;
    --theme-color-light: #6c8075;
    --theme-color-medium: #2c3f42;
    --theme-color-dark: #29393c;
    --theme-color-darkest: #162020;

    --text-color-light-soft: #fff6ef;
    --text-color-dark-soft: #2a453c;

    --dark-text-color: #444;

    --breakpoint-small: 768px;
    --breakpoint-big: 1024px;

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

body {
    background: var(--bg-color-light);
    color: var(--dark-text-color);
    margin: 0;
}

h1 {
    font-size: 4em;
    margin: 0;
}

h2 {
    font-size: 2em;
    margin-top: 0;
}

main {
    margin: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.info-box {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;

    @media (min-width: 768px) {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 32px;
    }
}

.info-box__info {
    display: grid;
    gap: 8px;
    text-align: center;
    background: var(--theme-color-light);
    padding: 16px;
    border-radius: 8px;

    span {
        &:first-child {
            font-size: 0.9em;
        }

        &:last-child {
            font-size: 1.2em;
            font-weight: 600;
        }
    }
}

.section {
    width: 100%;
    padding: 32px 0;
}

.section--dark {
    color: var(--text-color-light-soft);
    background: var(--theme-color-medium);
}

.section__container {
    max-width: var(--breakpoint-big);
    margin: auto;
    padding: 0 8px;

    @media (min-width: 1024px) {
        padding: 0;
    }
}

/* region Header */
.header {
    max-width: var(--breakpoint-big);
    margin: auto;
    padding: 128px 8px;
    position: relative;
}

.header__greeting {
    font-weight: 600;
    color: var(--theme-color-light);
}

.header__desc {
    max-width: 768px;
}

.header__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.header__button {
    color: var(--text-color-light-soft);
    background: var(--bg-color-dark);
    border-radius: 8px;
    border: none;
    padding: 16px 24px;
    font-size: 1em;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header__image-frame {
    width: 256px;
    height: 256px;
    max-width: 100%;
    overflow: clip;
    background: var(--bg-color-medium);
    box-shadow: 48px 24px var(--theme-color-light);
    margin: auto auto 64px;

    @media (min-width: 1024px) {
        display: none;
    }
}

.header__image {
    max-width: 256px;
}

.header__image--desktop {
    display: none;

    @media (min-width: 1024px) {
        display: block;
        position: absolute;
        bottom: 0;
        right: 0;
        z-index: -1;
    }
}
/* endregion */

/* region Footer */
footer {
    background: var(--bg-color-darkest);
}

.footer__nav {
    display: flex;
    gap: 16px;
}

.footer__link {
    color: var(--text-color-light-soft);
    text-decoration: none;

    &:hover {
        text-decoration: underline;
    }
}
/* endregion */

/* region Catalogue */
.catalogue {
    display: grid;
    gap: 8px;

    @media (min-width: 768px) {
        grid-template-columns: repeat(2, 1fr);
    }
}

.catalogue__card {
    background: var(--bg-color-medium);
    border-radius: 8px;
    padding: 8px 8px 16px;
    text-align: center;
}

.catalogue__card-title {
    color: var(--text-color-dark-soft);
    font-size: 1.2em;
    font-weight: 600;
}
/* endregion */

/* region Experience */
.experiences {
    display: grid;
    gap: 64px;
}

.experience {
    display: grid;
    grid-template-columns: 1fr;

    @media (min-width: 1024px) {
        grid-template-columns: auto 1fr;
        gap: 32px;
    }
}

.experience__time-range {
    margin: 0;

    @media (min-width: 1024px) {
        margin: 16px 0;
    }
}

.experience__content {
    padding-left: 32px;

    @media (min-width: 1024px) {
        padding-left: 0;
    }
}

.experience__title {
    color: var(--text-color-light-soft);
    font-weight: 600;
}
/* endregion */

/* region Projects */
.projects {
    display: grid;
    gap: 8px;

    @media (min-width: 768px) {
        grid-template-columns: repeat(2, 1fr);
    }
}

.projects__desc {
    margin: 32px 0;
}

.project {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
    background: var(--theme-color-dark);
    padding: 16px;
    border-radius: 8px;
}

.project__title {
    color: var(--text-color-light-soft);
    font-weight: 600;
    margin: 0;
    font-size: 1.2em;
}

.project__desc {
    margin: 0;
    flex-grow: 1;
}

.project__link {
    color: var(--text-color-light-soft);
    background: var(--theme-color-darkest);
    border-radius: 8px;
    border: none;
    padding: 16px 24px;
    font-size: 1em;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
}
/* endregion */

/* region Tech-stack */
.tech-stack {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.9rem;

    li {
        font-weight: 600;
        color: var(--text-color-light-soft);
        background: var(--theme-color-light);
        border-radius: 12px;
        padding: 8px;
        min-width: 24px;
        justify-content: center;
        display: flex;
    }
}
/* endregion */

