.projects-page {
    min-height: 100svh;
    min-width: 100vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    user-select: none;
    background-color: var(--main-background);
    overflow: hidden;
}

.body {
    user-select: text;
}

.project-category-switcher {
    display: flex;
    flex-direction: row;
    font-size: 0.9em;
    font-weight: bold;
    border-radius: 1em;
}

.project-category {
    min-width:8dvw;
    border-radius: 0.5em;
    padding: 0.5em;
    margin: 0 1em;
    text-align: center;
    color: var(--heading-text-color);
    background-color: var(--overlay-background);
    filter: brightness(50%);
    user-select: none;
}

.project-category:hover {
    box-shadow: 0 0 1.5em hsl(0, 0%, 10%);
    filter: brightness(100%);
}

.selected {
    box-shadow: 0 0 1.5em hsl(0, 0%, 10%);
    filter: brightness(100%);
}
:root[data-theme="light"] .project-category:hover {
    box-shadow: 0 0 0.5em hsl(0, 0%, 50%);
    filter: brightness(100%);
}

:root[data-theme="light"] .selected {
    box-shadow: 0 0 0.5em hsl(0, 0%, 50%);
    filter: brightness(100%);
}

.slider-wrapper {
    display: flex;
    flex-direction: row;
    width: 80vw;
    flex: 1;
    align-items: center;
    justify-content: center;
    margin-bottom: -1em;
}

.mobileBtns {
    flex-direction: row;
    display: none;
}

.project-page-metacontainer {
    display: none;
    overflow-x: hidden;
    flex-direction: row;
    scroll-snap-type: x mandatory;
    padding: 1.5em;
    flex: 1;
    min-height: 100%;
}

.active {
    display: flex;
    min-height: 72vh;
}

.project-page-container {
    background-color: var(--overlay-background);
    border-radius: 1em;
    padding: 20px;
    margin: 0 1.5em;
    flex: 1 0 100%;
    box-shadow: 0 0 1.5em hsl(0, 0%, 10%);
    z-index: 1;
    scroll-snap-align: center;
    transition: scroll 0.5s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100%;
}

button {
    display: none;
}

.arrow {
    user-select: none;
    width: clamp(35px, 5vw, 75px);
    height: clamp(35px, 5vw, 75px);
    border-radius: 1em;
    background-color: var(--overlay-background);
    box-shadow: 0 0 1.5em hsl(0, 0%, 10%);
    display: flex;
    justify-content: center;
    align-items: center;
    margin: auto 1em;
}

.disable {
    background-color: var(--main-background); 
    box-shadow: 0 0 0em hsl(0, 0%, 10%);
    color: var(--main-background);
}

:root[data-theme="light"] .arrow {
    box-shadow: 0 0 1em hsl(0, 0%, 50%);
}

:root[data-theme="light"] .disable {
    box-shadow: 0 0 0em hsl(0, 0%, 50%);
}

:root[data-theme="light"] .project-page-container {
    box-shadow: 0 0 1em hsl(0, 0%, 50%);
}

.project-title{
    font-size: 1.4em;
    font-weight: bold;
    border-radius: 0.5em;
    margin: 20px;
    flex-grow: 0;
    color: var(--heading-text-color);
}

.project-text {
    font-size: smaller;
    color: var(--heading-text-color);
    margin: 20px;
}

.highlight {
    color: var(--subtext-color);
}

.image {
    width: 70%;
    height: auto;
}

/* Add these mobile-responsive styles to your projects CSS */

/* Mobile Styles */
@media screen and (max-width: 768px) {
    .active {
        max-width: 90vw;
    }
    .projects-page {
        min-width: 100vw;
        padding: 10px;
        max-height: none;
    }
    
    .project-category-switcher {
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: center;
        gap: 0.5em;
        margin: 1em 0;
        width: 95%;
    }

    .mobileBtns {
        display: flex;
    }
    
    .desktopBtn {
        display: none;
    }

    .project-category {
        min-width: 18vw;
        width: auto;
        font-size: 1em;
        padding: 0.2em 0.4em;
        margin: 0.2em;
    }
    
    .slider-wrapper {
        width: 95%;
        flex-direction: column;
        gap: 1em;
        max-height: none;
        margin: 1em 0;
    }
    
    .project-page-metacontainer {
        padding: 1em;
    }

    .active {
        min-height: 60vh;
    }
    
    .project-page-container {
        margin: 0 1.5em;
        padding: 15px;
        border-radius: 1em;
        min-height: auto;
    }
    
    .arrow {
        width: 50px;
        height: 50px;
        margin: 0.5em;
        order: 1;
    }
    
    .project-title {
        font-size: 1.2em;
        margin: 15px 10px;
        text-align: center;
    }
    
    .project-text {
        font-size: 0.9em;
        margin: 15px 10px;
        line-height: 1.4;
    }
    
    .image {
        width: 90%;
        max-width: 300px;
    }
}

/* Small Mobile Styles */
@media screen and (max-width: 480px) {
    .projects-page {
        padding: 5px;
    }
    
    .project-category-switcher {
        align-items: center;
        width: 100%;
    }
    
    .slider-wrapper {
        width: 98%;
        gap: 0.5em;
    }
    
    .project-page-metacontainer {
        padding: 0.5em;
    }
    
    .project-page-container {
        padding: 12px;
        border-radius: 1em;
    }
    
    .arrow {
        width: 40px;
        height: 40px;
        margin: 0.3em;
    }
    
    .project-title {
        font-size: 1.1em;
        margin: 12px 8px;
    }
    
    .project-text {
        font-size: 0.85em;
        margin: 12px 8px;
        line-height: 1.3;
    }
    
    .image {
        width: 95%;
        max-width: 250px;
    }
}

/* Very Small Mobile Styles */
@media screen and (max-width: 360px) {
    
    .slider-wrapper {
        width: 100%;
    }
    
    .project-page-container {
        padding: 10px;
        border-radius: 1em;
    }
    
    .arrow {
        width: 35px;
        height: 35px;
    }
    
    .project-title {
        font-size: 1em;
        margin: 10px 6px;
    }
    
    .project-text {
        font-size: 0.8em;
        margin: 10px 6px;
    }
    
    .image {
        width: 100%;
        max-width: 200px;
    }
}

/* Touch-friendly improvements for mobile */
@media screen and (max-width: 768px) {
    .project-category {
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    
    .arrow {
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    
    /* Improve touch targets */
    .project-category {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .arrow {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Better scroll behavior on mobile */
    .project-page-metacontainer {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }
}