/* Desktop styles */
.main-header {
    display: flex;
    justify-content: space-between;
    padding: 15px 10px;
    background-color: #ffffff;
    width: 12%;
    flex-direction: column;
    height: 100vh;
    position: fixed;
    padding-left: 18px;
     
}

.logo a {
    font-family: "Archivo", sans-serif;
    font-size: 2.3rem;
    font-weight: 700;
    text-decoration: none;
    color: inherit;
}

.main-nav {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.project-nav {
    padding-top: 30vh;
    list-style: none;
   
    align-items: center;
}
.utility-nav {
    
    list-style: none;
    padding: 0;
    margin: 0;
    align-items: center;
    
}

.nav-link {
    display: block;
    font-family: "Archivo", sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    text-decoration: none;
    color: inherit;
    line-height: 1;
    letter-spacing: -0.03em;
    padding: 0px 0;
}

.nav-link:hover,
.nav-link.active {
    color: rgb(230, 126, 81);
}

/* Hide menu toggle by default */
.menu-toggle {
    display: none;
}
.mobile-project-nav {
    display: none;
}

.mobile-project-nav-inner {
    display: none;
}

.pagetext {
display: contain;
max-width: 50vw;
 
}

/* Mobile styles */
@media (max-width: 1000px) {
    .main-header {
        width: 100%;
        height: auto;
        flex-direction: row;
        padding: 10px 20px;
        align-items: center;
        z-index: 1000;
        justify-content: space-between;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    .menu-toggle {
        display: block;
        cursor: pointer;
        padding: 10px;
        z-index: 1000;
    }

    .pagetext {
        display: contain;
        max-width: 100%;
        margin: auto;
        }

    .menu-toggle span {
        display: block;
        width: 25px;
        height: 3px;
        background-color: black;
        margin: 5px 0;
        transition: 0.3s;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .main-nav {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        height: calc(100vh - 60px);
        background: white;
        padding: 20px;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        display: flex;
        flex-direction: column;
        z-index: 999;
    }

    .main-nav.active {
        transform: translateX(0);
    }

    .project-nav {
        margin: 0 0;
        padding-top:10vh;
        padding-bottom:5vh;
    }


    .utility-nav {
        margin: 10px 0;
        padding-top:10vh;
        padding-bottom:20vh;
    }

    .nav-link {
        font-size: 2.2rem;
        padding: 2px 0;
    }

    .mobile-project-nav {
        display: none;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: white;
        padding-bottom: 0px;
        border-top: 1px solid #eee;
        z-index: 1000;
    }

    .mobile-project-nav[style*="display: block"] {
        display: block !important;
    }

    .mobile-project-nav-inner {
        display: flex;
        justify-content: space-between;
        align-items: center;
        max-width: 95%;
        margin: 2vw 1vw;
        gap: 10px;
    }

    .mobile-project-nav a {
        font-family: "Archivo", sans-serif;
        font-size: 1.5rem;
        font-weight: 700;
        text-decoration: none;
        color: inherit;
        padding: 5px 0;
        flex:1;
    }

    .mobile-project-nav a.prev-project {
        text-align: left;
        flex-basis: 40%; /* Force equal width */
    }

    .mobile-project-nav a.next-project {
        text-align: right;
        flex-basis: 60%; /* Force equal width */
        
    }

    .mobile-project-nav a:hover {
        color: rgb(230, 126, 81);
    }

    .content {
        margin-bottom: 60px; /* Height of mobile nav */
        min-height: calc(100vh - 60px); /* Subtract header height */
    }

    /* Add padding to content to prevent overlap with mobile nav */
    #project-content {
        padding-bottom: 70px;
    }
}
