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

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

/* Hide scrollbar for IE, Edge and Firefox */
* {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

@font-face {
    font-family: 'CustomFont';
    src: url('../fonts/bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'CustomFont';
    src: url('../fonts/regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'CustomFont';
    src: url('../fonts/medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}


html, body {
    width: 100%;
    font-size: 16px;
    height: 100%;
    color: #FFFFFF;
}



.navbar{
    padding: 20px;
    width: 100%;
    position: fixed;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    mix-blend-mode: difference;
    color: white;
    z-index: 6000;
}

.fullscreen {
    padding: 10px;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: space-between;
    background-color: #FFFFFF;
}

.top {
    height: 80%;
    width: 100%;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 10px;
}

.bottom {
    height: 150px;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 10px;
    margin-top: auto;
}

.bottom img {
    width: 100%;
    height: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 300ms ease;
    cursor: pointer;
}

.bottom img:first-child {
    filter: grayscale(0%);
}

.bottom img:hover {
    filter: grayscale(0%);
}

.left-top {
    grid-column: span 5;
    padding-right: 10px;
    height: 100%;
    display: flex;
    box-sizing: border-box;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start; 
}

.right-top {
    grid-column: span 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
}

.hero-image-wr
{
    width: 100%;
    min-width: 400px;
    position: relative;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}



.info-wr
{
    margin-top: 20px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center; 
}

.text-link {
    color: #000000;
    text-transform: uppercase;
    font-size: 1rem;
}

/* Base text styles */
.text {
    font-family: 'CustomFont', sans-serif;
    text-transform: uppercase;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    text-rendering: optimizeLegibility; /* Improve text rendering */
    -webkit-font-smoothing: antialiased; /* For WebKit browsers */
    -moz-osx-font-smoothing: grayscale; /* For Firefox on macOS */
}

/* Text variants */
.text--large {
    font-weight: bold;
    font-size: 6vw;
    line-height: 1;
    color: #000000;
    overflow: hidden;
    position: relative;
}

.text--xlarge {
    font-size: 7vw;
}

.text--medium {
    font-weight: 500;
    font-size: 1rem;
    color: rgba(0,0,0,0.5);
}

.text--small {
    font-weight: 400;
    font-size: 1rem;
    color: #000000;
    text-decoration: none;
}

/* Special text styles */
.text--inverted {
    color: #FFFFFF;
    text-decoration: none;
    mix-blend-mode: difference;
}

.image-left-info-wr
{
    height: auto;
    min-height: 50%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.image-description-wr
{
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: end;
    width: 100%;
    height: 100%;
}

.c0 {
    position: absolute;
    display: block;
    z-index: 1;
    color: #8C654F;
}

.c1 {
    position: absolute;
    display: block;
    z-index: -2001;
    color: #536A76;
}

.c2 {
    position: absolute;
    display: block;
    z-index: -2001;
    color: #7B7162;
}

.c3 {
    position: absolute;
    display: block;
    z-index: -2001;
    color: #9C8168;
}

.c4 {
    position: absolute;
    display: block;
    z-index: -2001;
    color: #655C57;

}

.c5 {
    position: absolute;
    display: block;
    z-index: -2001;
    color: #6A6850;
}

.c6 {
    position: absolute;
    display: block;
    z-index: -2001;
    color: #535E76;
}

.c7 {
    position: absolute;
    display: block;
    z-index: -2001;
    color: #76545F;
}

.hero-img0 {
    position: absolute;
    aspect-ratio: 16/9;
    width: 100%;
    height: 100%;
    z-index: 1;
    object-fit: cover;
}

.hero-img1 {
    position: absolute;
    aspect-ratio: 16/9;
    width: 100%;
    height: 100%;
    z-index: -2000;
    object-fit: cover;
}

.hero-img2 {
    position: absolute;
    aspect-ratio: 16/9;
    width: 100%;
    height: 100%;
    z-index: -2000;
    object-fit: cover;
}

.hero-img3 {
    position: absolute;
    aspect-ratio: 16/9;
    width: 100%;
    height: 100%;
    z-index: -2000;
    object-fit: cover;
}

.hero-img4 {
    position: absolute;
    aspect-ratio: 16/9;
    width: 110%;
    height: 100%;
    z-index: -2000;
    object-fit: cover;
}

.hero-img5 {
    position: absolute;
    aspect-ratio: 16/9;
    width: 100%;
    height: 100%;
    z-index: -2000;
    object-fit: cover;
}

.hero-img6 {
    position: absolute;
    aspect-ratio: 16/9;
    width: 100%;
    height: 100%;
    z-index: -2000;
    object-fit: cover;
}

.hero-img7 {
    position: absolute;
    aspect-ratio: 16/9;
    width: 100%;
    height: 100%;
    z-index: -2000;
    object-fit: cover;
}

.split-line {
    overflow: hidden;
    position: relative;
    display: block;
    width: 100%;
}

.mask {
    overflow: hidden;
    display: block;
    position: relative;
}

.image-title-wr
{
    
    position: relative;
    width: 80%;
    height: 20px;
    overflow: hidden;
}

.l0 {
    position: absolute;
    display: block;
    z-index: 1;
}

.l1 {
    position: absolute;
    display: block;
    z-index: -2001;
}

.l2 {
    position: absolute;
    display: block;
    z-index: -2001;
}

.l3 {
    position: absolute;
    display: block;
    z-index: -2001;
}

.l4 {
    position: absolute;
    display: block;
    z-index: -2001;
}

.l5 {
    position: absolute;
    display: block;
    z-index: -2001;
}

.l6 {
    position: absolute;
    display: block;
    z-index: -2001;
}

.l7 {
    position: absolute;
    display: block;
    z-index: -2001;
}

.h3
{
    font-family: 'CustomFont', sans-serif;
    color: rgba(0,0,0,0.5);
    user-select: none; 
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    font-weight: 500;
    font-size: 1.2rem;
    text-transform: uppercase;
}

.nav-text
{
    text-decoration: none;
    user-select: none; 
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
}


canvas {
    position: fixed;
    z-index: 500;
    width: 100%;
    height: 100%;
    pointer-events: none;
  }

  img {
    -webkit-user-drag: none;
    user-select: none;
    -webkit-user-drag: none; /* Safari and Chrome */
    -moz-user-drag: none; /* Firefox */
    -ms-user-drag: none; /* Internet Explorer/Edge */
}

.mobile-switch
{
    display: none;
}


.project-grid-wr {
    opacity: 0;
    background-color: white;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto auto;
    gap: 200px 10px;
    padding: 10px;
    padding-bottom: 200px;
    grid-template-areas: 
        "details details item1"
        "empty3 item2 item3"
        "item4 empty4 empty5"
        "empty6 item5 empty8";
}

.project-description-wr {
    grid-area: details;
    font-family: 'CustomFont', sans-serif;
    color: rgba(0,0,0,0.7);
    font-size: 2rem;
    line-height: 1.2;
    width: 80%;
    text-rendering: optimizeLegibility; /* Improve text rendering */
    -webkit-font-smoothing: antialiased; /* For WebKit browsers */
    -moz-osx-font-smoothing: grayscale; /* For Firefox on macOS */
}

/* Assigning grid areas properly */
.grid-img-wr:nth-child(2) { grid-area: item1; }
.grid-img-wr:nth-child(3) { grid-area: item2; }
.grid-img-wr:nth-child(4) { grid-area: item3; }
.grid-img-wr:nth-child(5) { grid-area: item4; }
.grid-img-wr:nth-child(6) { grid-area: item5; }

.project-info-text-wr
{
    display: grid;
    grid-template-columns: repeat(5, 1fr);
}

.fixed-text
{
    font-size: 0.7rem;
    color:#000000;
    margin-top: auto;
    display: flex;
    flex-direction: row;
    color: rgba(0,0,0,0.5);
}

.project-info-title-wr
{
    width: 80%;
    position: relative;
}

.project-wr{
    opacity: 0;
    width: 100%;
    background-color: #FFFFFF;
    padding: 10px;
    padding-top: 200px;
    padding-bottom: 200px;
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.footer-wr
{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
    padding: 10px;
    padding-bottom: 50px;
}

.line-wr
{
    width: 100%;
    height: 1px;
    background-color: #000000;
    opacity: 0.1;
}



@media screen and (max-width: 1024px) {
    .fullscreen {
        padding: 10px;
        height: 110dvh;
    }

    
    .project-info-title-wr
    {
        width: 100%;
    }

    .navbar
    {
        padding: 15px;
    }

    .top {
        height: 100%;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .left-top {
        grid-column: unset;
        height: 35%;
        width: 100%;
    }

    .right-top {
        grid-column: unset;
        height: 65%;
        width: 100%;
    }

    .bottom {
        display: none;
    }

    .text--large {
        font-size: 12vw;
    }
    
    .text--medium {
        font-size: 0.9rem;
    }

    .text--small{
        font-size: 0.9rem;
    }

    .hero-image-wr {
        min-width: unset;
    }

    .info-wr {
        display: none;
    }

    .footer-wr
    {
        gap: 20px;
        padding: 10px;
        padding-bottom: 20px;
    }

    .project-grid-wr {
        width: 100%;
        display: flex;
        flex-direction: column;
        background-color: white;
        gap: 50px;
        padding: 10px;
        padding-bottom: 50px;
    }

    .project-description-wr {
        display: block;
        font-size: 1.2rem;
        width: 100%;
    }

    .project-wr
    {
        background-color: white;
        padding-bottom: 100px;
    }

    .fixed-text
    {
        display: none;
    }

    .display
    {
        display: block;
        font-size: 0.7rem;
    }

    .grid-img-wr:nth-child(1),
    .grid-img-wr:nth-child(2),
    .grid-img-wr:nth-child(3),
    .grid-img-wr:nth-child(4),
    .grid-img-wr:nth-child(5) {
        grid-area: unset;
    }

    .project-info-text-wr
    {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .image-left-info-wr
    {
        height: 100%;
    }
    


    .mobile-switch
    {
        display: flex;
        width: 100%;
        padding: 5px;
        flex-direction: row;
        align-items: center;
        justify-content: end;
    }
}

.loading
{
    background-color: #000000;
    position: fixed;
    font-family: 'CustomFont', sans-serif;
    font-weight: 400;
    z-index: 10000;
    display: flex;
    font-size: 2vw;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    gap: 10px;
    width: 100vw;
    height: 100vh;
}

.loader
{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

.loading-text-span
{
    font-size: 0.7rem;
    color: #FFFFFF;
}

.loading-text
{
    width: 100%;
    display: flex;
    font-weight: 500;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #FFFFFF;
}


.image-description-wr
{
    opacity: 0;
}

.hero-image-wr
{
    opacity: 0;
}

.image-title-wr
{
    opacity: 0;
}

.bottom
{
    opacity: 0;
}





.grid-img-wr img {
    width: 100%;
    height: 100%; 
    aspect-ratio: 3/4;
    object-fit: cover;
}








.grid-img-wr
{
    width: 100%;
    height: 100%;
}

.color-invert
{
    color: white;
}

#explore
{
    cursor: pointer;;
}


#scroll-top
{
    cursor: pointer;
}
