@font-face {
    font-family: "Roc Grotesk";
    src: url("roc_grotesk_bold.otf");
    font-weight: 900;
    font-style: bold;
}
@font-face {
    font-family: "Roc Grotesk";
    src: url("roc_grotesk_regular.otf");
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: "Roc Grotesk";
    src: url("roc_grotesk_wide_regular.otf");
    font-weight: normal;
    font-style: normal;
    font-stretch: expanded;
}

* {
    box-sizing: border-box;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background-color: #fff;
}
::-webkit-scrollbar-thumb {
    background-color: #afafaf;
    cursor: pointer;
    border-radius: 50px;
}

h1, h2, h3,
button,
body {
    font-family: "Roc Grotesk";
    margin: 0px;
    overflow: hidden;
}

section,
header {
    padding: 75px;
    width: 100vw;
    height: 100vh;
}

button {
    border: none;
}

.card {
    width: 100%;
    height: 100%;
    border-radius: 25px;
    position: relative;
    padding: 25px;
    transition: .3s;
    overflow: hidden;
}

.card::before {
    content:"";
    position: absolute;
    right: 25px;
    top: 25px;
    width: 15px;
    height: 15px;
    border-top: 2px solid rgb(0, 0, 0, .3);
    border-right: 2px solid rgb(0, 0, 0, .3);
    border-radius: 0px 3px 0px 0px;
}

.card:not(.introduction):hover {
    transform: scale(1.05);
    cursor: pointer;
}

.column-flex,
.row-flex {
    display: flex;
    gap: 35px;
}

.column-flex {
    flex-direction: column;
}

.top-section {
    transition: .3s;
}

.overview .top-section h1 {
    font-size: calc(25vh - 75px);
}

.unload .top-section {
    transform: translateY(-130%);
    opacity: 0;
}

.middle-section .project:last-child,
.bottom-section .project:first-child {
    flex: 60%;
}

.introduction.card {
    background-color: #8ad2ec;
    display: flex;
    flex-direction: column;
}
.introduction.card h2 {
    font-weight: normal;
    font-size: 4vw;
}

.introduction.card .bottom {
    margin-top: auto;
}

.unload .introduction.card {
    transform: translateX(-120%);
    opacity: 0;
}

.tech.card {
    background-image: url("../images/languages.png");
    background-size: cover;
    background-color: #e6e6e6;
}

.unload .tech {
    opacity: 0;
}

.project.card {
    display: flex;
    flex-direction: column;
}

.unload .project {
    transform: translateX(130%);
    opacity: 0;
}

.project.card .project-type {
    flex: 1;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-stretch: expanded;
}

.project.card .project-type h2 {
    font-size: 5vh;
}

.project-type:first-child {
    background-color: #c2ebb6;
    margin: -25px -25px 0px -25px;
}
.project-type:last-child {
    background-color: #cfa3e1;
    margin: 0px -25px -25px -25px;
}

.unload .about,
.unload .work {
    transform: translateY(130%);
    opacity: 0;
}

.about {
    background-color: #e9f16e;
}

.work {
    background-color: #fdc891;
}

section {
    position: fixed;
    bottom: -101%;
    left: 0;
    opacity: 0;
    pointer-events: none;
    transition: .3s;
    overflow-y: auto;
}
section.active {
    bottom: 0;
    opacity: 1;
    pointer-events: all;
}

.project-selector,
.back-btn {
    position: fixed;
    top: 20px;
    background: #e6e6e6;
    border-radius: 50px;
    z-index: 100;
    transition: .3s;
}

.back-btn {
    left: 20px;
}
.back-btn:hover {
    background: #afafaf;
}

.project-selector {
    left: 50%;
    transform: translateX(-50%);
    border: 2px solid #e6e6e6;
    gap: 0px;
    align-items: center;
}

.project .chip,
#projects a,
a.back-btn {
    padding: 5px 20px;
    cursor: pointer;
    text-align: center;
}

.project-selector a {
    text-decoration: none;
    color: #000;
    width: 165px;
}

.project-selector::before {
    content: "";
    position: absolute;
    background: #fff;
    height: 100%;
    width: 165px;
    border-radius: 50px;
    transition: .3s;
    z-index: -1;
}

.project-selector.commissions::before {
    left: 0;
}
.project-selector.personal::before {
    left: calc(100% - 165px);
}

.divider {
    background: #e6e6e6;
    width: 100%;
    height: 2px;
    margin: 10vh 0;
    border-radius: 100px;
    position: relative;
}
.divider a {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
}

.project img,
.project {
    height: 100%;
    aspect-ratio: 16/9;
    max-width: 100%;
}

.project {
    margin: 0px auto 50px auto;
    border-radius: 50px;
    overflow: hidden;
    position: relative;
}

.project img {
    object-fit: cover;
}

.project .content {
    position: absolute;
    left: 0;
    bottom: 0;
    margin: 25px;
    width: calc(100% - 50px);
    display: flex;
    gap: 10px;
}

.project .content .btn {
    flex: 1;
}

.project .chip {
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px) brightness(0.85);
    color: #fff;
    font-size: 16px;
    transition: .3s;
}
.project:not(.white) .chip:hover {
    backdrop-filter: blur(15px) brightness(1.20);
}
.project.white .chip:hover {
    backdrop-filter: blur(15px) brightness(0.70);
}

.about-timeline,
.event .middle,
.event {
    display: flex;
    align-items: center;
}

.about-timeline {
    flex-wrap: nowrap;
    overflow-x: scroll;
    scroll-behavior: smooth;
}

.timeline,
.event {
    flex: 0 0 auto;
}

.event {
    flex-direction: column;
    width: 20vw;
    text-align: center;
    height: 72px;
}

.event.first .middle,
.event.last .middle {
    width: calc(50% + 8px);
}

.event.first .middle {
    align-self: end;
}
.event.last .middle {
    align-self: flex-start;
}

.event .middle {
    margin: 5px 0;
    justify-content: center;
    width: 100%;
    gap: 4px;
}

.event .indicator {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #8ad2ec;
    z-index: 1;
}

.event .timeline {
    flex: 1;
}

.timeline {
    background: #8ad2ec;
    height: 5px;
    width: 100%;
    max-width: 10vw;
}

.event p {
    margin: 0;
    display: flex;
    gap: 10px;
    font-size: 15px;
}
.event p img {
    height: 40px;
    border-radius: 5px;
}
.event i {
    margin-top: 10px;
    display: block;
    font-size: 15px;
}

#work .event p  {
    text-align: left;
}

@media (min-width: 1280px) {
    .introduction.card {
        flex: 35%;
    }

    .overview {
        flex: 65%;
    }

    .overview .top-section,
    .overview .bottom-section {
        flex: 25%;
    }

    .overview .middle-section {
        flex: 50%;
    }
}