@font-face {
    font-family: "NB International";
    src: url(fonts/NB-international.woff2) format("woff2"), url(fonts/NB-international.woff) format("woff");
}

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    font-family: "NB International", Helvetica Neue, HelveticaNeue, Helvetica, Arial, sans-serif;
    font-weight: normal;
    font-variant-ligatures: none;
    list-style: none;
    text-decoration: none;
}

html {
    background: var(--color-background);
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    min-width: 100vw;
    color: var(--color-element);
    background: var(--color-background);
}

:root {
    --color-background: rgb(0, 0, 0);
    --color-grey-20: rgba(80, 80, 80, 0.2);
    --color-element: rgb(255, 255, 255);
    --color-element-64: rgba(255, 255, 255, 0.64);
    --color-element-40: rgba(255, 255, 255, 0.4);
    --color-element-20: rgba(255, 255, 255, 0.2);
    --color-element-16: rgba(255, 255, 255, 0.16);
    --color-element-08: rgba(255, 255, 255, 0.08);
}

::selection {
    background: var(--color-element-40);
}


/* ---Fonts--- */

h1, h4, a {
    font-size: 0.75rem;
    line-height: 1rem;
}

h2 {
    font-size: 0.875rem;
    line-height: 0.875rem;
}

h3 {
    font-size: 1.5rem;
    line-height: 1.75rem;
    letter-spacing: 0.48px;
}

p {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

footer p {
    font-size: 0.625rem;
    line-height: 0.625rem;
}

h1, h2, h4, p, a {
    letter-spacing: 0.24px;
}

h1, h3, h4, footer p, a {
    text-transform: uppercase;
}


/* ---Links--- */

a {
    color: var(--color-element);
}


/* ------------Main------------ */


main {
    display: grid;
    grid-template-rows: auto 1fr;
    min-height: 700px;
    max-height: calc(100vh - 48px);
    max-width: calc(100vw - 48px);
    border: 1px dotted var(--color-element-40);
    z-index: 1;
}


/* ------------Header------------ */

header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 48px;
}

header img {
    height: 40px;
}


/* ------------Tab-Group------------ */

.tab-group {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 562px;
    overflow-y: hidden;
}

.tab {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    width: calc(100vw - 50px);
    padding: 16px;
    border-top: 1px dotted var(--color-element-40);
}

.tab-label {
    display: flex;
    justify-content: space-between;
}

.tab-button {
    position: absolute;
    top: 0;
    left: 0;
    height: 48px;
    width: 100%;
    cursor: pointer;
    z-index: 1;
}

.plus {
    fill: var(--color-element);
}

.tab-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 399px;
    height: calc(100vh - 349px);
    overflow-y: scroll;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.tab-content::-webkit-scrollbar {
    display: none;
}


/* ------------Projects------------ */

.tab-content:has(#carousel) {
    overflow-y: visible;
}

#carousel {
    display: flex;
    gap: 4px;
    width: calc(100% + 16px);
    padding-right: 16px;
    overflow-x: scroll;
    overflow-y: hidden;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

#carousel::-webkit-scrollbar {
    display: none;
}

.project {
    position: relative;
    min-height: 399px;
    height: calc(100vh - 349px);
    cursor: default;
}

.project-name {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 8px 10px;
    border: 1px solid var(--color-element-08);
    border-radius: 2px;
    background: var(--color-grey-20);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.project img {
    display: block;
    height: 100%;
    width: auto;
    border-radius: 2px;
    object-fit: cover;
    aspect-ratio: 2 / 3;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}


/* ------------Services------------ */

#services {
    display: flex;
    flex-direction: column;
    gap: 32px;
    height: 75%;
    padding-top: 32px;
    border-top: 1px dotted var(--color-element-40);
    margin-top: auto;
}

#services div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

#services h4 {
    color: var(--color-element-64);
}


/* ------------About------------ */

.button-group {
    display: grid;
    gap: 2px;
    margin: auto 0 16px;
}

.button-group div {
    display: flex;
    gap: 2px;
}

.button {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    height: 48px;
    border-radius: none;
    background: var(--color-element-40);
    background-image: url(images/misc/pattern.svg);
    background-position: 0 0,0 0;
    background-size: auto,auto;
    cursor: pointer;
}

footer {
    display: flex;
    justify-content: space-between;
    color: var(--color-element-40);
}


@media screen and (min-width: 1040px) {

    /* ------------Main------------ */

    main {
        grid-template-columns: 1fr 2fr;
        grid-template-rows: 1fr;
        height: calc(100vh - 200px);
        min-width: 1000px;
        width: calc(100vw - 200px);
    }


    /* ------------Header------------ */

    header {
        border-right: 1px dotted var(--color-element-40);
    }


    /* ------------Tab-Group------------ */

    .tab-group {
        min-height: 698px;
    }

    .tab {
        min-width: 664.336px;
        width: calc((100vw - 200px) * (2 / 3));
    }

    .tab:first-child {
        border-top: none;
    }

    .tab-content, .project {
        min-height: 536px;
        height: calc(100vh - 364px);
    }


    /* ------------Services------------ */

    #services {
        flex-direction: row;
        gap: 80px;
    }

}