:root {
    --background-color: #1A1F21;
    --main-color: #E5FFFD;
    --accent-color: #9EFFF6;

    --animation-behavior-fast-to-slow: cubic-bezier(.07, .86, .48, .99);
    --animation-behavior-slow-to-fast: cubic-bezier(1, 0, .76, .88);

    cursor: url(/images/svgs/cursor.png), auto;
}

@font-face {
    font-family: onetwohours;
    src: url(../fonts/OnetwohoursRegular.ttf);
}

@font-face {
    font-family: montserrat;
    src: url(../fonts/Montserrat/Montserrat-VariableFont_wght.ttf);
}

@font-face {
    font-family: noto-black;
    src: url("../fonts/Noto Sans/NotoSans-Black.ttf");
}

@font-face {
    font-family: noto-extra-bold;
    src: url("../fonts/Noto Sans/NotoSans-ExtraBold.ttf");
}

@font-face {
    font-family: DM;
    src: url("../fonts/DM\ sans/static/DMSans_18pt-Black.ttf");
}

@font-face {
    font-family: sora-bold;
    src: url("../fonts/Sora/static/Sora-Bold.ttf");
}

@font-face {
    font-family: sora-light;
    src: url("../fonts/Sora/static/Sora-Light.ttf");
}

@font-face {
    font-family: sora-extra-bold;
    src: url("../fonts/Sora/static/Sora-ExtraBold.ttf");
}

@font-face {
    font-family: syne;
    src: url("../fonts/Syne/static/Syne-Bold.ttf");
}

* {
    margin: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--background-color);
    color: white;
}

p {
    font-family: sora-light;
}

h1 {
    font-family: sora-bold;
    font-size: 64px;
    color: var(--main-color);
    transition: color .8s var(--animation-behavior-fast-to-slow);
    margin-bottom: .5em;
}

h2 {
    font-family: sora-bold;
    font-size: 32px;
    color: var(--main-color);
}

a {
    all: unset;
    font-family: sora-light;
    font-size: 20px;
    color: var(--main-color);
    position: relative;
    cursor: pointer;
    height: fit-content;
    transition: color .8s var(--animation-behavior-fast-to-slow);
}

a:hover {
    color: var(--accent-color);

    h1 {
        color: var(--accent-color);
    }
}

a:hover::before {
    transform: scaleX(1);
    background-color: var(--accent-color);
    transform-origin: left;
}

a::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 100%;
    background-color: var(--main-color);
    transform-origin: right;
    transform: scaleX(0);
    transition: transform .8s var(--animation-behavior-fast-to-slow), background-color .8s var(--animation-behavior-fast-to-slow);
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    padding: 100px 0;
}

panel {
    position: fixed;
    inset: 0 0 0 0;
    background-color: var(--background-color);
    z-index: 10;
    opacity: 1;
    transition: opacity .6s ease-in-out;
}

#home,
#photo,
#about,
#contact,
#collabs,
#video {}

.video-section {
    cursor: pointer;
    position: fixed;
    inset: 0 0 0 0;
    z-index: 5;

    figure {
        height: 100%;
        width: 100%;
    }
    
    video{
        height: 100%;
        width: 100%;
        object-fit: cover;
    }
}

[data-section-state="closed"] {
    display: none;
}

[data-section-state="open"] {
    display: block;
}

#contact[data-section-state="open"],
#about[data-section-state="open"] {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.highlighted {
    color: var(--accent-color);
}

.home-section {
    position: fixed;
    inset: 0 0 0 0;
    overflow: auto;
}

.slogan {
    font-style: italic;
    text-align: center;
    color: var(--accent-color);
}

.home-heading,
.video-heading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
}

.collab-heading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60px;
}

.collab-preview {
    position: absolute;
    inset: 0 0 0 0;
    background-image: url(../images/svgs/preview-corner-gradient-unlicensed.svg);


    img {
        height: 100%;
    }

    z-index: -1;
}

.collab-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.collab-preview::after {
    content: "";
    background-image: url(../images/svgs/preview-corner-gradient-unlicensed.svg);
    position: absolute;
    inset: 0 0 0 0;
    z-index: 2;
}

.collab-arrow{
    /* display: grid;
    grid-template-columns: 1fr 1fr; */
    width: 50%;
    justify-self: end;

    .arrow{
        display: flex;
        justify-content: center;
        cursor: pointer;
        transition: scale .6s ease;

        img{
            width: 30px;
        }

    }

    .arrow:hover{
        scale: 1.2;
    }
}

.collab-arrow.top{
    padding-bottom: 90px;
}

.collab-arrow.bottom{
    padding-top: 90px;
}

.collab-logo{
    transition: opacity .6s ease, transform .8s ease;
}

.collab-logo[data-state="active"]{
    opacity: 1;
    transform: translateY(0);
    transition: opacity .6s ease, transform .8s ease;
}

.collab-logo[data-state="unactive"]{
    opacity: 0;
    transform: translateY(-5px);
    transition: none;
}

.collab-text{
    margin: 30px 0 15px 0;
    max-width: 600px;
    min-height: 110px;
}

.collab-text[data-visible="true"]{
    opacity: 1;
    transform: translateY(0);
    /* transition: opacity 0s, transform 0s; */
    transition: opacity .6s ease, transform .8s ease;
}

.collab-text[data-visible="false"]{
    opacity: 0;
    transform: translateY(-5px);
    /* transition: opacity .6s ease, transform .8s ease; */
    transition: opacity 0s, transform 0s;
}

.creadictive-logo,
.times-logo {
    width: fit-content;
    height: 100%;

    img {
        height: 100%;
    }
}

.times-logo {
    margin: 0 30px;
}

.sub-heading {
    color: var(--accent-color);
    font-family: sora-light;
    font-size: 32px;
}

#back-btn,
#title,
#navs {
    position: fixed;
    top: 15px;
    z-index: 11;
}

#navs {
    right: 30px
}

#title {
    left: 50%;
    transform: translateX(-50%);
}

#title-content {
    opacity: 0;
    transition: opacity .6s ease;
}

#back-btn {
    left: 30px;
}

[data-top-element="visible"] {
    transition: opacity .6s ease;
    opacity: 1;
}

[data-top-element="invisible"] {
    transition: opacity .6s ease;
    opacity: 0;
}

.navs {
    display: inline-flex;
    justify-content: flex-end;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .6s ease;
}

.date {
    position: fixed;
    bottom: 15px;
    right: 30px;
    display: inline-flex;
    flex-direction: column;
    align-items:flex-end;
    opacity: 0;
    pointer-events: none;
    transition: opacity .6s ease;
    z-index: 11;
}

nav-seperator {
    height: 24px;
    background-color: var(--main-color);
    width: 2px;
    margin: 0 10px;
}

.about-section {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 30px;
    /* grid-template-columns: 1fr 1fr; */
}

.about-image {
    width: min(600px, 90%);
    aspect-ratio: 1;

    img {
        height: 100%;
        width: 100%;
        object-fit: cover;
    }
}

.about-text {
    /* max-width: 800px; */
    width: min(800px, 90%);
    padding: 0 50px;
}

.stats{
    display: flex;
    flex-wrap: wrap;
    margin-top: 10%;
    justify-content: space-evenly;
}

.stat{
    height: 140px;
}

#photo {
    width: 100%;
}

.photo-slider {
    display: flex;
    height: 80vh;
    gap: 15px;
    padding-left: 20%;
    padding-right: 20%;
    overflow-x: auto;

    img {
        height: 100%;
        width: auto;
    }
}

::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar for Chrome, Safari, and newer Edge */
}

.canva {
    position: absolute;
    top: 0;
    left: 0;
    width: 3500px;
    height: fit-content;
    padding: 15vh 15vw;
    cursor: grab;
    columns: 4 600px;
    column-gap: 100px;
}

.canva:active {
    cursor: grabbing;
}

.thumbnail {
    user-select: none;
    padding: 150px;
    width: 400px;
    height: auto;
    box-sizing: content-box;
    -webkit-user-drag: none;

    img {
        opacity: .33;
        object-fit: cover;
        cursor: pointer;
        transition: opacity .6s ease, scale .8s ease;
    }
}

.thumbnail img:hover {
    scale: 1.05;

}

.language{
    transition: opacity .3s ease;
}

.language[data-selected="true"]{
    opacity: 1;
}


.language[data-selected="false"]{
    opacity: .5;
    cursor: pointer;
}

.language[data-selected="false"]:hover{
    opacity: 1;
}