@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --white: white;
    --almost-white: #f3f3f3;
    --border-gray: #eee;
    --white-65: rgba(255, 255, 255, 0.65);
    --medium-gray: #ababab;
    --almost-black-65: rgba(34, 34, 34, 0.65);
    --almost-black: #222;
    --main-red: #F97146;

    --main-purple: #7763EF;
    --main-transition-ease: cubic-bezier(0.22, 1, 0.36, 1);
}




* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


body {
    display: flex;
    flex-direction: column;

}

.spacer {
    flex-grow: 1;
}

.logo .black {
    fill: var(--almost-black);
}

.logo .color {
    fill: var(--main-purple);
}

img,
svg {
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: auto;
}

#avatar {
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: auto;
}

h1 {
    font-size: 60px;
}

h2 {
    font-weight: 400;
    font-size: 24px;
    line-height: 1.1;
    margin-bottom: 24px;
}

body {
    font-family: 'Inter', Helvetica, Arial, sans-serif;
    background: var(--almost-white);
    color: var(--almost-black);

    font-size: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;


}

.content > p {
    line-height: 1.5;
    padding: 40px;
}

.content {
    width: 926px;
    max-width: 100%;
    padding: 80px;
    margin-left: auto;
    margin-right: auto;
}

.photo_and_greetings {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.photo_and_greetings img {
    width: 140px;
    border-radius: 99px;
    margin-right: 30px;
}

#projects_gallery > a .logo {
    width: 290px;
    height: auto;
    margin-right: 30px;
}

#projects_gallery > * {

    display: flex;
    align-items: center;
    background: var(--white);
    padding: 40px;
    margin-top: 40px;
    align-items: stretch;
    text-decoration: none;
    color: inherit;

}

#projects_gallery > * h3 {
    margin-bottom: 12px;
}

#projects_gallery > * p {
    margin-bottom: 12px;
}

#projects_gallery .description {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#projects_gallery .button {
    width: 100%;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border: 1px solid var(--almost-black);
    text-decoration: none;
    color: var(--almost-black);
    margin-top: 10px;
}

#projects_gallery .button:hover {
    cursor: pointer;
    background: var(--almost-black);
    color: var(--white);
}

#avatar {
    width: 114px;
    height: 114px;
    border-radius: 999px;

    margin-right: 30px;
    position: relative;
    overflow: hidden;


}

.photo {
    width: 570px;
    height: 114px;
    position: absolute;
    left: 0;
    top: 0;
    background-image: url(src/sam_bakker.png);
    background-position: 0 0;
    background-size: 570px 114px;
    transform: translateX(-456px);
}

#avatar:hover .photo {
    transform: translateX(0);
}

#avatar .photo {
    transition: transform .15s steps(4);
}

#avatar:hover {
    animation: .2s avatar_animation steps(4) forwards;

}

@keyframes avatar_animation {
    from {
        background-position: 114px 0;

    }

    to {
        background-position: 570px 0;
    }
}

#top_bar {
    top: 0;

    position: relative;
}

#top_bar a {
    font-size: 14px;
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 12px;
    color: var(--almost-black);
}

#top_bar a svg {
    fill: var(--almost-black);
}

#top_bar a:hover {
    color: var(--main-purple);
}

#top_bar a:hover svg {
    fill: var(--main-purple);
}

#top_bar .content {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

#top_bar a svg {
    margin-right: 8px;
}

a {
    color: var(--main-purple);
}

a:hover {
    color: var(--main-purple);
    text-decoration: none;
}

/* ------------ */

footer {
    font-size: 15px;
}


footer .logo {}

footer .col:first-child {
    color: #7d848e
}

footer .col h3 {
    margin-bottom: 20px
}

footer .col a {
    display: block;
    margin-bottom: 16px;
    color: #6D6D6D;
    text-decoration: none
}

footer .col a:hover {
    color: var(--almost-black);
    text-decoration: underline
}

footer .col a:last-child {
    margin-bottom: 0
}

footer .content__ {

    width: 80vw;
    padding-top: 80px;
    padding-bottom: 80px;
    margin-left: auto;
    margin-right: auto;
    background: var(--almost-white);
}

footer .content {
    width: 1200px;
    max-width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

}

footer .col {
    width: calc(25% - 22.5px)
}


.main-content {
    width: 850px;
    max-width: 100%;
    background: var(--white);
    border-radius: 8px;
}

.company-name {
    color: var(--medium-gray);
}

footer .products a {
    display: flex;
    align-items: center;
}

footer .products a svg {
    fill: rgba(255, 255, 255, 0.6);
    margin-right: 6px;
}

footer .products svg .darker {
    fill: rgba(255, 255, 255, 0.3);
}

footer .content__ {
    border-radius: 8px 8px 0 0;
}

.main-content {
    padding: 0;
    padding-top: 80px;
}

.photo_and_greetings,
.main-text {
    padding-left: 80px;
    padding-right: 80px;
}

.opt-in-container {
    padding: 40px;
}

.name_n_email {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.name_n_email > * {
    width: calc(50% - 8px);
}

.opt-in {

    background: #3E3E3E;
    border-radius: 4px;
    padding: 40px;
}


.opt-in h3 {
    margin-bottom: 24px;
}

/* ------------------------ */

@media(max-width: 850px) {
    .photo_and_greetings {
        padding-left: 24px;
        padding-right: 24px;
    }

    .content {
        padding: 0;
    }

    #projects_gallery > * {
        flex-direction: column;
        padding: 24px;
        margin-top: 24px;
    }

    #projects_gallery > a img {
        margin-bottom: 24px;
        width: 100%;
        margin-right: 0;
    }

    .content > p {
        padding: 24px;
    }


    h1 {
        font-size: 24px;
    }

    #top_bar {
        position: static;
    }

    body {
        display: block;
        font-size: 16px;
    }

    #top_bar {
        padding: 24px;
    }

    #top_bar a {
        padding-left: 0;
        padding-right: 0;
    }

    #top_bar .content {
        justify-content: space-between;
    }

    footer .content__ {
        padding-top: 24px;
        padding-bottom: 24px;
        width: 100%;
        border-radius: 0;
    }

    footer .content {
        flex-direction: column;
        padding: 24px;
    }

    footer .content {

        flex-direction: column
    }

    footer .col {
        width: 100%;
        margin-bottom: 48px;
    }

    footer .col:last-child {

        margin-bottom: 0;
    }

    .main-content {
        background: none !important;
    }

    .photo_and_greetings,
    .main-text {
        padding-left: 24px;
        padding-right: 24px;
    }

    .opt-in-container {
        padding: 24px;
        padding-top: 40px;
    }

    .opt-in {
        padding: 24px;
        margin-top: 24px;
    }

}

@media(max-width: 430px) {
    #projects_gallery > a .logo {
        width: 100%;
        height: auto;
        margin-right: 0;
        margin-bottom: 0;
    }

    #top_bar a span {
        display: none;
    }

    #top_bar .content {
        justify-content: center
    }

    #top_bar a {
        padding: 24px;
    }

    #top_bar a svg {
        margin: 0;
    }

    #top_bar {
        padding-left: 0;
        padding-right: 0;
        padding-top: 0;
    }

    #typed_h1 {
        width: 100%;
    }

    h2 {
        font-size: 18px;
    }

    .name_n_email {
        flex-direction: column;
    }

    .name_n_email > * {
        width: 100%;
        margin-bottom: 16px;
    }

    .name_n_email > *:last-child {

        margin-bottom: 0;
    }
}

@media(max-width: 250px) {
    .photo_and_greetings {
        flex-direction: column;
    }

    #avatar {
        margin-right: 0;
        margin-bottom: 24px;
    }
}

@media (prefers-color-scheme: light) {
    footer .content__ {
        background: var(--white);
    }

    footer .products a svg {
        fill: rgba(0, 0, 0, 0.6);
    }

    footer .products svg .darker {
        fill: rgba(0, 0, 0, 0.3);
    }

    footer .products .crowd_conversion {
        background: rgba(0, 0, 0, 0.6);
        border-radius: 99px;
    }

}

/* ---- */


.button {
    color: var(--white);
    padding: 12px 32px;
    font-size: 13px;
    position: relative;
    border-radius: 99px;
    cursor: pointer;
    display: inline-flex;
    text-decoration: none;
}

.button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: all 0.3s var(--main-transition-ease);
    border-radius: 99px;

}

.button::before {
    background: var(--almost-black);
    z-index: 1;

}

.button:hover::after {
    transform: scale(1);
    opacity: 1;
}

.button span {
    position: relative;
    z-index: 3;
    font-weight: 500;
}



.button:hover::before {
    transform: scale(1.1);
}

.button:active::before {
    background: var(--not-quite-black);
    transform: scale(0.94);
}

#dark {
    background: var(--almost-black);
    width: 100%;
    padding: 100px;
    margin-top: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.button.inverted {
    color: var(--almost-black);
    overflow: visible;
}

.button.inverted::before {
    background: var(--white);
    color: var(--almost-black);
}

/* ---- */


@media (prefers-color-scheme: dark) {
    :root {
        --white: #111;
        --almost-white: #202020;
        --border-gray: #2E2E2E;
        --white-65: rgba(255, 255, 255, 0.65);
        --medium-gray: #ababab;
        --almost-black-65: rgba(34, 34, 34, 0.65);
        --almost-black: white;

        --main-red: #F97146;

        --main-purple: #7763EF;
    }

    body {
        background: var(--white);
    }



    .main-content {
        background: var(--almost-white);
    }

}
