/* =========================
   GENERAL
   ========================= */

body {
    margin: 0;
    background-color: black;
    color: white;
    font-family: "Avenir Next", Avenir, sans-serif;
}


/* =========================
   NAVIGATION
   ========================= */

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5em 5%;

    position: sticky;
    top: 0;
    z-index: 100;

    background-color: black;
}

.name {
    font-size: 1.4em;
    font-weight: 600;
}

.nav-menu {
    display: flex;
    gap: 2em;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 1em;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.nav-menu a:hover {
    opacity: 1;
}


/* =========================
   HERO
   ========================= */

.hero {
    min-height: 85vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 5%;
}

.hero h1 {
    font-size: clamp(3em, 7vw, 6em);
    line-height: 1;
    margin: 0;
}


/* =========================
   ABOUT
   ========================= */

.about {
    min-height: 100vh;
    padding: 5em 5%;
}

.about h2 {
    font-size: 3em;
    margin: 0 0 1em 0;
}

.about-text {
    max-width: 45em;
    font-size: 1.3em;
    line-height: 1.6;
}

.about-text p {
    margin: 0 0 1em 0;
}


/* =========================
   PROJECTS
   ========================= */

.projects {
    padding: 5em 5%;
}

.projects h2 {
    font-size: 3em;
    margin: 0 0 2em 0;
}
.projects-intro {
    max-width: 30em;
    font-size: 1.3em;
    line-height: 1.5;
    margin: -3em 0 6em 0;
}
.project-number {
    font-size: 0.9em;
    margin: 0 0 1.5em 0;
    opacity: 0.6;
}

/* Individual project */

.project {
    margin-bottom: 8em;
}


/* Project information */

.project-info {
    margin-bottom: 3em;
    max-width: 45em;
}

.project-info h3 {
    font-size: clamp(2.5em, 5vw, 5em);
    line-height: 1;
    margin: 0 0 0.4em 0;
}

.project-role {
    font-size: 0.9em;
    margin: 0 0 2em 0;
}

.project-info p {
    line-height: 1.6;
    margin: 0 0 1em 0;
}


/* =========================
   MAIN PROJECT IMAGES
   ========================= */

/*
   Keep the original image proportions.
   This prevents portrait images like
   Nordenstjerne from being heavily cropped.
*/

.project > img {
    width: 100%;
    height: auto;
    display: block;
}


/* =========================
   PROJECT GALLERIES
   ========================= */

.project-gallery {
    display: flex;
    gap: 1em;
    margin-top: 1em;
}

.project-gallery img {
    width: calc((100% - 2em) / 3);
    height: 30em;
    object-fit: cover;
    display: block;

    transition: transform 0.4s ease;
}

.project-gallery img:hover {
    transform: scale(1.02);
}

.project {
    margin-bottom: 8em;
    padding-bottom: 8em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}


/* =========================
   CONTACT
   ========================= */

.contact {
    min-height: 50vh;
    padding: 5em 5%;
}

.contact h2 {
    font-size: 3em;
    margin: 0;
}


/* =========================
   CONTACT
   ========================= */

.contact {
    min-height: 80vh;
    padding: 5em 5%;

    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-label {
    font-size: 1em;
    margin: 0 0 2em 0;
}

.contact h2 {
    font-size: clamp(3em, 7vw, 7em);
    line-height: 1;
    margin: 0 0 0.6em 0;
}

.contact-email {
    color: white;
    font-size: 1.2em;
    text-decoration: none;
}
.contact-email {
    color: white;
    font-size: 1.2em;
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.contact-email:hover {
    opacity: 1;
}

/* =========================
   MOBILE
   ========================= */

@media (max-width: 48em) {

    /* Navigation */

   .navbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 1em;
    padding: 1.5em 5%;
}

.nav-menu {
    width: 100%;
    justify-content: space-between;
    gap: 0.5em;
    font-size: 0.85em;
}

    /* About */

    .about {
        min-height: auto;
        padding-top: 6em;
        padding-bottom: 6em;
    }

    .about-text {
        font-size: 1.1em;
    }


    /* Projects */

    .project {
        margin-bottom: 6em;
    }


    /* Stack gallery images vertically */

    .project-gallery {
        flex-direction: column;
    }

    .project-gallery img {
        width: 100%;
        height: auto;
    }

}
.project-info h3 {
    font-size: 2.2em;
    line-height: 1.05;
}
.projects {
    padding-left: 5%;
    padding-right: 5%;
}

.project-info {
    margin-bottom: 2em;
}