body {
    color: black;
    font-size: 38rem;
    background-color: black;
    margin: 0;
    height: 100vh;
    width: 100vw;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

body.nav-hovered {
    background-color: rgb(60, 60, 60);
}

div.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    z-index: 9999;
    transition: opacity 1.3s;
    display: flex;
    justify-content: center;
    align-items: center;
}

div.loading.hidden {
    opacity: 0;
    pointer-events: none;
}

div.loading img {
    position: absolute;
    width: 100%;
    height: 100%;
}

.logo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    mix-blend-mode: overlay;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.logo.hidden {
    opacity: 0;
    pointer-events: none;
}

.logo img {
    width: 100%;
}

#myVideo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.5s ease;
}

#myVideo.nav-hovered {
    opacity: 0.2;
}

.mobile {
    display: none;
}

.header {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20vw;
    height: auto;
    display: none;
    justify-content: center;
    align-items: start;
    mix-blend-mode: overlay;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.header img {
    width: 100%;
}

.header.visible {
    display: flex;
    opacity: 1;
}

.nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    width: 100%;
    height: auto;
    display: none;
    justify-content: space-between;

    align-items: center;
    opacity: 0;
    mix-blend-mode: overlay;
    z-index: 1;
    padding: 0;
    margin: 0;
    transition: opacity 0.5s ease;
    cursor: url("../cursor/pointer.svg"), pointer;
}

.nav.visible {
    display: flex;
    opacity: 1;
}

.nav svg {
    width: 100%;
    height: auto;
    cursor: url("../cursor/pointer.svg"), pointer;
}

.nav a img {
    width: 100%;
    cursor: url("../cursor/pointer.svg"), pointer;
}

/* Header and nav hover styles */
.nav:hover a,
.header:hover ~ .nav {
    opacity: 0.2;
    cursor: url("../cursor/pointer.svg"), pointer;
}

.nav a:hover {
    opacity: 0.8 !important;
    cursor: url("../cursor/pointer.svg"), pointer;
}

.header:hover {
    opacity: 0.8;
}

/* Add these for individual link hover effects */
.nav a {
    opacity: 1;
    transition: all 0.3s ease;
}

.nav:hover a {
    opacity: 0.2;
}

.nav-link {
    position: absolute;
    top: 18px;
    left: 18px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    z-index: 1000;
    mix-blend-mode: difference;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: black;
    font-family: sans-serif;
    transition: transform 0.3s ease;
    cursor: url("../cursor/pointer.svg"), pointer;
    }

    .nav-link:hover {
    transform: scale(1.2);
    }

@media screen and (max-width: 768px) {
    .header {
        width: 100vw;
        top: auto;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .header img {
        width: 30%;
    }

    .mobile {
        display: flex;
        align-items: end;
        justify-content: center;  
    }


    #myVideo video {
        display: none;
    }

    .nav {
        width: 100vw;
        top: 50%;
        transform:translateY(-50%);
        left: 0;
        /* padding: 0 18px 0 18px; */
        height: auto;
        display: flex;
        align-items: center;
        justify-content: space-between;
        cursor: url("../cursor/pointer.svg"), pointer;
    }

    .nav svg {
        width: 100%;
        height: 100%;
        max-width: 100vw;
    }
}