* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: white;
    color: black;
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden; 
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1vw 5vw; 
    z-index: 10;
    background-color: transparent;
}

.logo a {
    text-decoration: none;
    font-family: "fit-extended", sans-serif;
    font-style: normal;
    -webkit-text-stroke: 2px black;
    color: #fff;
    font-size: 2.5vw;
    position: relative;
    transition: color 0.3s ease;
    text-shadow: 0vw 0vh 1vw rgba(0,0,0,0.25);
}

.logo a:before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -webkit-text-stroke: 2px rgb(255, 255, 255);
    color: #000;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.logo a:hover {
    color: transparent;
}

.logo a:hover::before {
    opacity: 1;
}

nav ul {
    display: flex;
    list-style-type: none;
    gap: 2vw;
    margin-bottom: 0.1rem; 
}

nav ul li a {
    text-decoration: none;
    font-family: "fit-wide", sans-serif;
    font-style: normal;
    -webkit-text-stroke: 2px black;
    color: #fff;
    font-size: 2.5vw;
    position: relative;
    transition: color 0.3s ease;
    text-shadow: 0vw 0vh 1vw rgba(0,0,0,0.25);
}

nav ul li a::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -webkit-text-stroke: 2px rgb(255, 255, 255);
    color: #000;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

nav ul li a:hover {
    color: transparent;
}

nav ul li a:hover::before {
    opacity: 1;
}

header nav a {
    color: black;
}

header nav.white-text a {
    color: white;
    transition: color 1s ease;
}

header nav a:hover {
    color: transparent;
}

header nav a:hover::before {
    opacity: 1;
    transition: opacity 0.3s ease;
}

header.white-text nav a,
header.white-text .logo a,
header.white-text .burger-menu {
    color: white;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
    transition: color 1s ease; 
    transition: text-shadow 1s ease; 
}

header.white-text nav a::before {
    -webkit-text-stroke: 1px white; 
}

header.white-text .logo a:hover {
    color: white;
    transition: width 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

.burger-menu {
    display: none;
    cursor: pointer;
    z-index: 20;
    font-size: 3em;
    font-weight: 800;
    color: black;
    transition: transform 0.3s ease, color 0.3s ease;
    position: relative;
    align-self: center;
    margin-right: 0;
    margin-bottom: 0.5rem;
}

.burger-menu span {
    display: none;
}
.nav-active {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: black;
    z-index: 10;
    padding: 20px;
    transition: background-color 0.3s ease;
}

.nav-active ul {
    flex-direction: column;
    gap: 20px;
    width: 100%;
    padding: 0;
    margin: 0;
    list-style-type: none;
    text-align: center;
}

.nav-active ul li a {
    color: white;
    font-size: 3rem;
}

.nav-active ul li a::before {
    -webkit-text-stroke: 1px white;
}

.nav-active .logo a {
    color: white;
}

.nav-active .burger-menu {
    color: white;
}

.burger-rotate {
    transform: rotate(45deg);
    color: white;
}

.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
    overflow: hidden;
    position: relative; 
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10; 
}

.hero-content h1 {
    font-size: 25vw;
    color: rgb(255, 255, 255);
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    font-family: "fit", sans-serif;
    font-style: normal;
    font-weight: 500;
    text-align: center;
}

.image-container {
    position: absolute;
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%);
    width: 50vw;
    height: 50vh;
    transform-style: preserve-3d;
    perspective: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5;
}

.rotating-image {
    width: 25vw;
    height: 30vh;
    background-size: cover;
    background-position: center;
    position: absolute;
}

.project {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    text-align: center;
    cursor: pointer; 
    background-color: black; 
}

.project h2 {
    z-index: 3; 
    color: white;
    opacity: 90%;
    -webkit-text-stroke: 0px rgb(0, 0, 0);
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    font-family: "fit", sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 25vw; 
    margin: 0;
    padding: 0rem;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform: translateY(0);
}

.project-description {
    z-index: 3;
    color: white;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
    font-family: "owners", sans-serif;
    font-weight: 600;
    font-style: normal;
    width: 60%;
    font-size: 1vw;
    margin-top: 1rem;
    opacity: 0;
    transform: translateY(20px); 
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.project-description a {
    color: #fff;
    text-decoration: underline;
}

.project-description a:hover {
    opacity: 0.8;
}

.project.active h2 {
    transform: translateY(-50px); 
}

.project.active .project-description {
    opacity: 1;
    transform: translateY(0); 
}

.project-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; 
    z-index: 1; 
    pointer-events: none; 
}

.project-image {
    position: absolute;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 1;
    object-fit: cover;
}

.project::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0); 
    z-index: 2;
    transition: background-color 0.3s ease; 
}

.project.active::before {
    background-color: rgba(0, 0, 0, 0.7); 
}

/* Media Queries */

@media (max-width: 480px) {
    nav {
        display: none;
    }

    .burger-menu {
        display: block;
    }

    .logo a {
        font-size: 2rem;
    }

    .project h2 {
        font-size: 25vw; 
    }

    .project-description {
        font-size: 4vw;
    }

    .hero-content h1 {
        font-size: 25vw;
    }
}

@media (min-width: 481px) {
    nav {
        display: none;
    }

    .burger-menu {
        display: block;
    }

    .logo a {
        font-size: 2rem;
    }

    .project h2 {
        font-size: 25vw; 
    }

    .project-description {
        font-size: 4vw;
    }

    .hero-content h1 {
        font-size: 25vw;
    }
}

@media (min-width: 641px) {
    nav {
        display: none;
    }

    .burger-menu {
        display: block;
    }

    .logo a {
        font-size: 2rem;
    }

    .project h2 {
        font-size: 25vw; 
    }

    .project-description {
        font-size: 4vw;
    }

    .hero-content h1 {
        font-size: 25vw;
    }
}

@media (min-width: 768px) {
    nav {
        display: none;
    }

    .burger-menu {
        display: block;
    }

    .logo a {
        font-size: 2rem;
    }

    .project h2 {
        font-size: 25vw; 
    }

    .project-description {
        font-size: 3vw;
    }

    .hero-content h1 {
        font-size: 25vw;
    }
}

@media (min-width: 1024px) {
    nav {
        display: flex;
    }

    .burger-menu {
        display: none;
    }

    nav ul li a {
        font-size: 2rem;
    }

    .logo a {
        font-size: 2rem;
    }

    .project h2 {
        font-size: 20vw; 
    }

    .project-description {
        font-size: 3vw;
    }

    .hero-content h1 {
        font-size: 20vw;
    }    
}

@media (min-width: 1280px) {
    nav {
        display: flex;
    }

    .burger-menu {
        display: none;
    }

    nav ul li a {
        font-size: 2rem;
    }

    .logo a {
        font-size: 2rem;
    }

    .project h2 {
        font-size: 20vw; 
    }

    .project-description {
        font-size: 2vw;
    }

    .hero-content h1 {
        font-size: 20vw;
    } 
}

@media (min-width: 1536px) {
    nav {
        display: flex;
    }

    .burger-menu {
        display: none;
    }

    nav ul li a {
        font-size: 2.5rem;
    }

    .logo a {
        font-size: 2.5rem;
    }

    .project h2 {
        font-size: 20vw; 
    }

    .project-description {
        font-size: 1.5vw;
    }

    .hero-content h1 {
        font-size: 20vw;
    } 
}