@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,200;0,300;0,400;0,500;0,600;0,900;1,900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,200;0,500;0,600;0,900;1,900&display=swap");

@font-face {
    font-family: "Impact";
    src: url("./fonts/impact.ttf");
}

* {
    margin: 0;
    padding: 0;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

*:focus,
*:active,
*:hover {
    outline: none;
}

::-moz-selection {
    /* Code for Firefox */
    color: var(--primary);
    background: var(--black);
}

::selection {
    color: var(--primary);
    background: var(--black);
}

body,
html {
    scroll-behavior: smooth;
    /* width: 100vw; */
    /* overflow-x: hidden; */
}

body {
    --white: #f8f7f6;
    --primary: #dcae7d;
    --primary-light: hsl(31, 58%, 72%);
    --black: #000000;
    --dark: #1a1b1c;
    --light: hsl(180, 1%, 64%);
    --lighter: #4e5256;
}

body::-webkit-scrollbar {
    width: 0.2rem;
}

body::-webkit-scrollbar-track {
    background-color: var(--dark);
    box-shadow: inset 0 0 2px var(--dark);
}

body::-webkit-scrollbar-thumb {
    background-color: var(--black);
}

body::-webkit-scrollbar-thumb:hover {
    background-color: var(--primary);
}

body::scrollbar {
    width: 0.2rem;
}

body::scrollbar-track {
    background-color: var(--dark);
    box-shadow: inset 0 0 2px var(--dark);
}

body::scrollbar-thumb {
    background-color: var(--black);
}

body::scrollbar-thumb:hover {
    background-color: var(--primary);
}

.container {
    position: relative;
    width: 100%;
}

.section {
    position: relative;
    padding: 2rem;
    min-height: 100vh;
}

a {
    text-decoration: none;
}

.underline {
    text-decoration: underline;
}

button:active,
a:active {
    outline: none;
}

.btn-primary {
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.2);
    padding: 0.7rem 1.6rem;
    border: none;
    border-radius: 2px;
    width: fit-content;
    width: -moz-fit-content;
    transition: all 320ms ease;
    /* letter-spacing: .5px; */
}

.btn-primary:hover,
.btn-primary:focus {
    /* animation: cta-hover 1500ms ease infinite; */
    cursor: pointer;
    transform: translateY(-4%);
    box-shadow: 0px 8px 24px rgba(0, 0, 0, 0.2);
}

.btn-title {
    font-size: 1.1rem;
    transform: translateY(0);
    transition: all 320ms ease;
}

.btn-primary:hover .btn-title {
    /* transform: translateY(-8%); */
}

.btn-primary:active {
    box-shadow: none;
    transform: translateY(0);
}

@keyframes cta-hover {
    0% {
        background: linear-gradient(90deg, var(--primary) 99.99%, var(--white) 100%);
    }

    100% {
        background: linear-gradient(90deg, var(--primary) 0%, var(--white) 100%);
    }
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

.text-caps {
    text-transform: uppercase;
}

.text-medium {
    font-weight: 600;
}

.text-black {
    font-weight: 900;
}

.text-light {
    font-weight: 200;
}

.text-italic {
    font-style: italic;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    cursor: default;
}

.cursor-pointer {
    cursor: pointer;
}

.p-0 {
    padding: 00rem;
}

.p-p5 {
    padding: 0.5rem;
}

.p-1 {
    padding: 1rem;
}

.p-2 {
    padding: 2rem;
}

.p-3 {
    padding: 3rem;
}

.p-4 {
    padding: 4rem;
}

.pt-p5 {
    padding-top: 0.5rem;
}

.pt-1 {
    padding-top: 1rem;
}

.pt-2 {
    padding-top: 2rem;
}

.pt-3 {
    padding-top: 3rem;
}

.pt-4 {
    padding-top: 4rem;
}

.pb-p5 {
    padding-bottom: 0.5rem;
}

.pb-1 {
    padding-bottom: 1rem;
}

.pb-2 {
    padding-bottom: 2rem;
}

.pb-3 {
    padding-bottom: 3rem;
}

.pb-4 {
    padding-bottom: 4rem;
}

.m-p5 {
    margin: 0.5rem;
}

.m-1 {
    margin: 1rem;
}

.m-2 {
    margin: 2rem;
}

.m-3 {
    margin: 3rem;
}

.m-4 {
    margin: 4rem;
}

.mt-p5 {
    margin-top: 0.5rem;
}

.mt-1 {
    margin-top: 1rem;
}

.mt-2 {
    margin-top: 2rem;
}

.mt-3 {
    margin-top: 3rem;
}

.mt-4 {
    margin-top: 4rem;
}

.mt-8 {
    margin-top: 8rem;
}

.mt--8 {
    margin-top: -8rem;
}

.mb-p5 {
    margin-bottom: 0.5rem;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mb-3 {
    margin-bottom: 3rem;
}

.mb-4 {
    margin-bottom: 4rem;
}

.white {
    color: var(--white);
}

.primary {
    color: var(--primary);
}

.black {
    color: var(--black);
}

.dark {
    color: var(--dark);
}

.light {
    color: var(--light);
}

.lighter {
    color: var(--lighter);
}

.bg-white {
    background-color: var(--white);
}

.bg-primary {
    background-color: var(--primary);
}

.bg-primarylight {
    background-color: var(--primary-light);
}

.bg-black {
    background-color: var(--black);
}

.bg-dark {
    background-color: var(--dark);
}

.wide {
    width: 100%;
}

.flex {
    display: flex;
}

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

.flex.flex-wrap {
    flex-wrap: wrap;
}

.justify-center {
    justify-content: center;
}

.justify-evenly {
    justify-content: space-evenly;
}

.justify-around {
    justify-content: space-around;
}

.justify-between {
    justify-content: space-between;
}

.align-center {
    align-items: center;
}

.preloader-bg {
    position: fixed;
    z-index: 9;
    top: 0;
    width: 100vw;
    height: 100vh;
}

.preloader {
    height: 4px;
    animation: loader 2400ms ease infinite;
}

.preloader-bg.hidden {
    animation: fade-out-preloader 300ms ease forwards;
}

.modal-bg {
    position: fixed;
    width: 100vw;
    height: 0vh;
    overflow: hidden;
    z-index: 9;
    top: 0;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 320ms ease-out;
}

.modal {
    position: relative;
    width: fit-content;
    width: -moz-fit-content;
    z-index: 9;
    top: 50%;
    left: 50%;
    opacity: 0;
    transform: translate(-50%, -60%);
    border-radius: 8px;
}

.modal-bg.active {
    height: 100vh;
    opacity: 1;
}

.modal-bg.active .modal {
    transition: all 800ms ease-out;
    opacity: 1;
    transform: translate(-50%, -50%);
}

@keyframes loader {
    0% {
        width: 4px;
    }

    50% {
        width: 8vmax;
    }

    100% {
        width: 4px;
    }
}

@keyframes fade-out-preloader {
    0% {
        opacity: 1;
        z-index: 9;
    }

    99% {
        opacity: 0;
        z-index: 9;
    }

    100% {
        opacity: 0;
        z-index: -1;
    }
}

.bg-el,
.fg-el {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.bg-el {
    font-size: 16vmax;
    line-height: 16vmax;
}

.bg-title,
.fg-title {
    position: relative;
    width: fit-content;
    width: -moz-fit-content;
    user-select: none;
    font-family: "Impact", sans-serif;
    font-weight: 300;
}

.bg-title {
    opacity: 0.04;
    position: absolute;
}

.bg-title:first-child {
    top: 10vh;
    right: 0;
}

.bg-title:last-child {
    bottom: 10vh;
    left: 0;
}

.fg-el {
    background: var(--dark);
    font-size: 10vw;
    line-height: 18vw;
}

.fg-title {
    margin: 0 auto;
    /* transition: all 40ms ease-out; */
}

.fg-title:first-child {
    color: var(--primary);
}

.fg-title:first-child {
    left: var(--lscroll);
}

.fg-title:last-child {
    right: var(--lscroll);
}

.active .bg-title:first-child {
    animation-delay: 200ms;
    animation: fade-right 1200ms ease-out forwards;
}

.active .bg-title:last-child {
    animation-delay: 200ms;
    animation: fade-left 1200ms ease-out forwards;
}

.active .fg-el {
    animation: fade-out 800ms ease forwards;
}

.hello .fg-el {
    animation-delay: 200ms;
}

.hello .bg-title {
    animation-delay: 400ms;
}

.hello .fg-title {
    transition: left 800ms ease-in, right 800ms ease-in;
    left: 0;
}

.hello.active .fg-title:first-child {
    left: 64vw;
}

.hello.active .fg-title:last-child {
    left: -64vw;
}

@keyframes fade-right {
    0% {
        right: -2vmax;
    }

    100% {
        right: 0;
    }
}

@keyframes fade-left {
    0% {
        left: -2vmax;
    }

    100% {
        left: 0;
    }
}

@keyframes fade-out {
    0% {
        opacity: 1;
        z-index: 0;
    }

    99% {
        opacity: 0;
        z-index: 0;
    }

    100% {
        opacity: 0;
        z-index: -9;
    }
}

.navbar {
    position: fixed;
    top: 0;
    z-index: 8;
    width: 100%;
    height: 60px;
    padding: 0 6vw;
}

.logo {
    text-decoration: none;
    font-size: 20px;
}

.title {
    max-width: 80vw;
    line-height: 100%;
    font-size: 1.7rem;
    /* font-family: "Montserrat", sans-serif; */
    color: var(--white);
    font-weight: 900;
    text-align: center;
    text-transform: uppercase;
}

.title-hover {
    display: flex;
    justify-content: center;
}

.title-hover-letter {
    display: table-cell;
    transition: transform 80ms ease, color 640ms ease-out;
    transform: translateY(0%);
    color: var(--white);
}

.title-hover-letter:hover {
    color: var(--primary-light);
    transform: translateY(-8%);
    /* animation: title-hover 80ms ease-out both; */
}

@keyframes title-hover {
    to {
        transform: translateY(-8%);
    }

    /* 0%{
        transform: translateY(0);
    }
    50%{
        transform: translateY(-4%);
    }
    100%{
        transform: translateY(0);
    } */
}

.title-hover .title-hover-space {
    padding: 0 0.16em;
}

.subtitle {
    max-width: 84vw;
    line-height: 160%;
    color: var(--light);
    /* opacity: 0.6; */
    letter-spacing: 1px;
}

.link {
    text-decoration: none;
    /* width: fit-content; width: -moz-fit-content;; */
}

.link .link-title {
    width: fit-content;
    width: -moz-fit-content;
    margin: 2vmin 0;
}

.link .link-title::after {
    content: "";
    display: block;
    height: 4px;
    width: 0%;
    margin: auto;
    transition: all 640ms ease;
    background-color: var(--primary);
}

.link .link-title:hover {
    cursor: pointer;
}

.link .title:hover::after {
    width: 100%;
}

.link .link-img {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 9;
    max-width: 84vw;
    transform: translate(-50%, -56%);
    opacity: 0;
    max-height: 0;
    transition-delay: 4000ms;
    transition: transform 350ms ease-out, opacity 350ms ease-out;
}

.link:hover .link-img {
    opacity: 1;
    max-height: 100vh;
    transform: translate(-50%, -50%);
}

.copyright-notice {
    position: absolute;
    bottom: 2vh;
    right: 4vw;
    opacity: 0.5;
    font-size: 1rem;
}

#extraSection {
    max-height: 0;
    overflow: hidden;
    transition: max-height 800ms ease;
}

#extraSection.active {
    max-height: 60px;
}

#imgSection {
    transition-delay: 200ms;
    transition: all 800ms ease;
}

.project-img {
    max-width: 1100px;
    box-shadow: 0 16px 24px rgba(0, 0, 0, 0.16);
}

#datePicker button {
    box-shadow: none;
    padding: .5em .8em;
}

#datePicker button.active {
    background-color: var(--black);
}

#datePicker button.active h2 {
    color: var(--white);
}

@media screen and (min-width: 600px) {
    .title {
        font-size: 2.8rem;
        max-width: 560px;
    }

    .subtitle {
        max-width: 560px;
    }

    .fg-el {
        font-size: 16vmax;
        line-height: 22vmax;
    }

    .link .link-title {
        width: fit-content;
        width: -moz-fit-content;
    }

    .title-hover {
        width: fit-content;
        width: -moz-fit-content;
    }
}

@media screen and (min-width: 960px) {
    .title {
        font-size: 3.3rem;
        width: 84vw;
        max-width: 1100px;
    }

    .hello .title {
        max-width: 900px;
    }

    .subtitle {
        font-size: 1rem;
    }

    .link .link-title {
        width: fit-content;
        width: -moz-fit-content;
    }

    .title-hover {
        width: fit-content;
        width: -moz-fit-content;
    }
}