@font-face {
    font-family: "Rajdhani";
    src: url("../optimized_media/Rajdhani-Regular.ttf");
}

@font-face {
    font-family: "Bruno Ace";
    src: url("../optimized_media/BrunoAceSC-Regular.ttf");
}

html {
    scroll-behavior: smooth;
    background: black;
}

body {
    width: 100%;
    margin: 0px;
    padding: 0px;
    font-family: 'Rajdhani', sans-serif;
    background: black;
    min-width: 248px;
}

header {
    top: 0px;
    height: 100vh;
}

#home,
#work,
#about,
#contact,
#projects {
    margin: 0px;
    padding: 0px;
    width: 100%;
}

#home {
    position: relative;
    width: 100%;
    margin-top: 20%;
    pointer-events: none;
}

#work {
    height: auto;
    min-height: 100vh;
    overflow: auto;
}

#canvas_home {
    padding: 0;
    left: 0;
    right: 0;
    top: 10vh;
    margin-left: auto;
    margin-right: auto;
    position: absolute;
    z-index: 0;
    height: 80vh;
}

.navbar {
    height: 40px;
    display: flex;
    flex-direction: row;
    align-items: center;
    position: static;
    justify-content: space-between;
    z-index: 100;
    background-color: transparent;
}

.nav-branding {
    font-size: 24px;
    text-decoration: none;
    color: #ffffff;
    transition: color 0.3s;
    padding-left: 10px;
}

.nav-menu {
    position: absolute;
    right: 0;
    left: 0;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    list-style: none;
    padding: 0px;
}

.nav-item {
    font-size: 48px;
    margin: 0 20px;
}

.nav-link {
    font-size: 24px;
    text-decoration: none;
    color: #ffffff;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #666;
}

.centered_title {
    font-size: 3em;
    text-align: center;
    color: white;
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE10+/Edge */
    user-select: none; /* Standard */
}

.centered_content {
    text-align: center;
    color: white;
}

.hamburger {
    top: 20px;
    cursor: pointer;
    padding-right: 10px;
    opacity: 0%;
    z-index: 2;
}

.hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.bar {
    display: flex;
    width: 35px;
    height: 3px;
    margin-bottom: 5px;
    background-color: #ffffff;
    transition: transform 0.3s ease;
}

.burger-nav {
    position: fixed;
    flex-direction: column;
    top: 0;
    right: 0;
    height: auto;
    list-style: none;
    width: 100vw;
    background-color:rgba(0, 0, 0, 0.95);

    font-size: 48px;
    line-height: 24px;
    margin: 0;
    opacity: 0;

    text-align: center;
    transition: opacity 0.3s ease;
    transform: translate(100%, 0%);
    transition: transform 0.3s ease;

    display: flex;
    pointer-events: none;
}

.burger-nav .nav-link {
    font-size: 48px;
}

.burger-nav.active {
    display: flex;
    flex-direction: column;
    z-index: 1;
    opacity: 1;
    transform: translate(0, 0);
    pointer-events: auto;
}

.burger-nav-item {
    margin: 1em;
}

.home_wrapper {
    height: 100px;
    font-size: 52px;
}

.jump-arrow-box {
    background-size: cover;
    right: 49.6%;
    display: block;
    position: absolute;
    margin-top: 40vh;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.jump-arrow {
    border: solid white;
    border-width: 0 3px 3px 0;
    padding: 6px;
    transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
    text-decoration: none;
    transform-origin: center;
    z-index: 2;
}


.jump-arrow-box:hover {
    transform: scale(1.25, 1.25)
}

.work_list_wrapper {
    box-sizing: border-box;
    overflow: auto;
}

.back-arrow {
    margin-left: 2.5%;
    margin-top: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    display: none;
    position: absolute;
    padding: 6px;
    transform: rotate(135deg);
    -webkit-transform: rotate(135deg);
    z-index: 100;
}

.back-arrow.active {
    display: inline-block
}


.work_grid_list {
    width: 100%;
    margin: 0px;
    padding: 0px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    grid-gap: 0px;
    margin: 0 auto;
    min-height: 100vh;
    max-height: 100vh;
}

.work_grid_list.active {
    position: relative;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    max-height: none;
}

.work_list_overlay {
    font-family: "Bruno Ace", cursive;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.work_list_item:hover .work_list_overlay {
    opacity: 0.8;
}

.work_list_item.active .work_list_overlay {
    display: none;
}

.work_list_overlay_text {
    color: aliceblue;
}

.work_list_item {
    width: 100%;
    margin: 0px;
    padding: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    max-height: 100vh;
}

.work_list_item.active {
    z-index: 1;
    max-height: none;
    background-color: black;
    box-sizing: border-box;
}

.work_grid_list.active .work_list_item {
    display: none;
}

.work_grid_list.active .work_list_item.active {
    display: flex;
}

.work_list_item img,
video {
    width: 100%;
    margin: 0px;
    padding: 0px;
    height: 100%;
    object-fit: cover;
}

.work_list_item.active > img {
    display: none;
}

.work_list_item.active > video {
    display: none;
}

.work_item_expanded {
    position: absolute;
    opacity: 0;
    margin: 10px;
    width: 100%;
    transition: opacity 1s ease, transform 2s ease-in;

    display: flex;

    pointer-events: none;
}

.work_item_expanded.active {
    z-index: 100;
    position: relative;
    opacity: 1;
    pointer-events: auto;
}

.item_expanded {
    margin: 20px;
    color: antiquewhite;
    object-fit: cover;
}

.work_list_item_text {
    font-size: 1.5em;
}

.work_list_item_caption {
    font-size: 6em;
    overflow-wrap: break-word;
}

.work_item_expanded.an_expanded > .item_expanded:nth-child(1) {
    width: 30%;
}

.work_item_expanded.an_expanded > .item_expanded:nth-child(2) {
    width: 30%;
}

.work_item_expanded.an_expanded > .item_expanded:nth-child(3) {
    width: 20%;
}

.work_item_expanded.an_expanded > .item_expanded:nth-child(4) {
    width: 20%;
}

.work_item_expanded.an_expanded > .item_expanded:nth-child(5) {
    width: 20%;
}

.work_item_expanded.pr_expanded > .item_expanded:nth-child(1) {
    width: 20%;
}

.work_item_expanded.pr_expanded > .item_expanded:nth-child(2) {
    width: 20%;
}

.work_item_expanded.pr_expanded > .item_expanded:nth-child(3) {
    width: 30%;
}

.work_item_expanded.pr_expanded > .item_expanded:nth-child(4) {
    width: 20%;
}

.work_item_expanded.ui_expanded > .item_expanded:nth-child(1) {
    width: 20%;
}

.work_item_expanded.ui_expanded > .item_expanded:nth-child(2) {
    width: 60%;
}

.work_item_expanded.ui_expanded > .item_expanded:nth-child(2) video {
    object-fit: scale-down;
}

.work_item_expanded.ui_expanded > .item_expanded:nth-child(3) {
    width: 20%;
    justify-content: center;
}

.work_item_expanded.ui_expanded .item_expanded_column video {
    object-fit: scale-down;
    max-height: 250px;
}

.work_item_expanded.ar_expanded > .item_expanded:nth-child(1) {
    width: 20%;
}

.work_item_expanded.ar_expanded > .item_expanded:nth-child(2) {
    width: 30%;
}

.work_item_expanded.ar_expanded > .item_expanded:nth-child(2) video {
    object-fit: scale-down;
    max-height: 80vh;
}

.work_item_expanded.ar_expanded > .item_expanded:nth-child(3) {
    width: 35%;
}
.work_item_expanded.ar_expanded > .item_expanded:nth-child(3) img {
    object-fit: scale-down;
}

.work_item_expanded video {
    object-fit: cover;
    height: 100%;
}

.work_item_expanded img {
    height: 100%;
    object-fit: cover;
}

.item_expanded_column {
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    min-height: 100%;
    margin: 10px;
    justify-content: center;
    overflow: hidden;
}

.work_list_item {
    position: relative;
}
.ui-hover-video {
    display: none; /* Hide video by default */
    width: 100%; /* Adjust size as necessary */
    height: auto; /* Adjust size as necessary */
    /* Add any other styling you need here */
}

.ui-hover-video.active {
    display: block; /* Show video when active */
}

.about_section_wrap {
    margin-top: 4%;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    max-height: 80vh;
    min-height: 60vh;
}

.text_column {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
}

.text_column p {
    font-size: 28px;
    margin-right: 20px;
    margin-left: 20px;
    padding: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.image_column {
    margin: 20px;
    padding: 0px;
    position: relative;
    overflow: hidden;
    bottom: 0;
}

.image_portrait {
    width: 100%;
    margin: 0px;
    padding: 0px;
    height: 100%;
    object-fit: cover;
}

.image_portrait_mobile {
    width: 100%;
    margin: 0px;
    padding: 0px;
    height: 100%;
    object-fit: cover;
    display: none;
}

.section_header {
    text-align: center;
    font-size: 48px;
    color: white;
    padding-bottom: 0px;
    margin-bottom: 0px;
}

.action_button {
    box-sizing: content-box;
    width: 242px;
    font-size: 40px;
    display: flex;
    text-align: center;
    background: white;
    text-decoration: none;
    padding: 0px;
    margin: 0 auto;
    justify-content: center;
    font-weight: bold;
    color: black;
}

.action_button a {
    box-sizing: content-box;
}

.action_button:hover {
    background-color: mediumpurple;
    opacity: 1;
}

.contact_section_wrap {
    margin-top: 4%;
    display: flex;
    flex-direction: column;
}

.contact_section_wrap p {
    font-size: 24px;
}

@media (max-width: 1200px) {
    .nav-menu {
        display: none;
    }

    .jump-arrow-box {
        display: none;
    }

    .hamburger {
        opacity: 100%;
        transition: opacity 1s ease;
    }
    .title_text {
        margin-top: 30vh;
        background-color:rgba(0, 0, 0, 0.2);
        -webkit-user-select: none; /* Safari */
        -moz-user-select: none; /* Firefox */
        -ms-user-select: none; /* IE10+/Edge */
        user-select: none; /* Standard */
        pointer-events: none;
    }

    #canvas_home {
        position: absolute;
        top: 6vh;
        left: 50%;
        transform: translateX(-50%);

        height: 90vh;
        width: auto;  /* Let width adjust automatically */

        aspect-ratio: 9 / 16;

        padding: 0;
        margin: 0;
        z-index: 0;
        max-width: 100vw;
    }

    .work_grid_list {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 1fr);
        height: 100%;
        min-height: 100vh;
    }

    .work_item_expanded {
        flex-direction: column;
        height: 100%;
        justify-content: space-evenly;
    }
    
    .work_list_item_text {
        font-size: 1.5em;
        text-align: center;
    }

    .work_list_item_caption {
        font-size: 3em;
        text-align: center;
    }

    .image_portrait {
        display: none;
    }

    .image_portrait_mobile {
        display: block;
    }

    .about_section_wrap {
        flex-direction: column;
        max-height: fit-content;
    }

    .contact_section_wrap {
        margin: 0px;
    }

    .item_expanded {
        width: auto !important;
        object-fit: cover;
        margin-top: 10px;
        margin-bottom: 10px;
    }

}