* {
    font-family: "DM Sans", sans-serif;
}

html, body {
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

.main-container {
    overflow-x: hidden;
}

.side-nav {
    position: fixed;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 1000;
}

.side-nav a {
    text-decoration: none;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 600;
    transition: 0.2s ease;
    z-index: 100;
}

.side-nav a:visited,
.side-nav a:active {
    color: inherit;
}

/* hover */
.side-nav a:hover {
    transform: translateX(4px);
    opacity: 40%;
}


.main-container {
    overflow-x: hidden;
}


.project-banner h1 {
    font-size: 96px;
    margin: 0 0 0.25rem 0;    
    font-weight: normal;  
}

.project-banner h2 {
    margin-top: 0;
    font-size: 16px;
    font-weight: bold;
}

.project-banner {
    display: flex;              
    flex-direction: column;     
    justify-content: center;    
    align-items: center;        
    height: 40vh;               
    text-align: center;
    padding: 0 1rem;            
}

.muse {
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #FFF397 0%, #CDBCBC 100%);
}

#visualizer {
    width: 50%;
}

.muse > .project-banner {
    background: linear-gradient(to left, #947874, #EDC57B);
    color: #FFFF86;
}

.lahd {
    justify-content: center;
    align-items: center;
    background: linear-gradient(270deg, #f1bdbd 0%, #d6c2c2 100%);
}

.lahd > .project-banner {
    background: linear-gradient(to left, #D39898, #D39898);
    color: #F5FF85;
}

.fullybeyond {
    justify-content: center;
    align-items: center;
    background: linear-gradient(270deg, rgb(249, 223, 223) 0%, #98cbe4 100%);
}

.fullybeyond > .project-banner {
    background: linear-gradient(to left, #D39898, #3A80A3);
    color: #DBF8FF;
}

.fullybeyond .project-container .right > h2 {
    color: #e5e5e5;
}

.acm > .project-banner {
    background: linear-gradient(to left, #3A8189, #80DEA7);
    color: #d2ffea;
}

.fullyhacks > .project-banner {
    background: linear-gradient(to left, #DEC080, #51F08E);
    color: #f4fffa;
}

html.dark .muse > .project-banner {
    background: linear-gradient(to right, #1a1a1a, #A37E3A);
    color: #FFFF86;
}

html.dark .lahd > .project-banner {
    background: linear-gradient(to right, #1a1a1a, #863441);
    color: #FFFF86;
}

html.dark .fullybeyond > .project-banner {
    background: linear-gradient(to right, #1a1a1a, #366177);
    color: #FFFF86;
}


html.dark .acm > .project-banner {
    background: linear-gradient(to right, #8E4545, #D598C3);
    color: #FFFF86;
}


.project-container {
    padding-left: 3vw;
    padding-right: 3vw;
    margin: 0 auto;             
    display: flex;
    gap: 0.5rem;                 
    flex-direction: row;           
    justify-content: center;
    backdrop-filter: blur(8px);
    padding: 5rem;
    margin-left: 10rem;
}

.project-container p {
    font-size: 24px;
    line-height: 1.6;
}

.project-container h2 {
    margin-top: 8vh;
}

.project-container .left {
    flex: 1;      
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;                
}

.project-container .right {
    flex: 2;                    
}


.project-container img,
.project-container video
{
    width: 100%;          /* scale to column width */
    max-width: 700px;     /* limit maximum size */
    height: auto;         /* preserve aspect ratio */
    display: block;
    margin-left: 2rem;   
    margin-top: 2rem; 
}


.right button {
    font-size: 24px;
    margin-top: 1rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
    transition: 0.2s ease;
}

.right button:hover {
    color: #c5ad24;
}



/* Dark mode overrides */

:global(html.dark) .muse h1 {
    color: #FFED62;
}


html.dark .muse {
    background: linear-gradient(to right, #1a1a1a, #beab5c);
    color: #FFFF86;
}

html.dark .lahd {
    background: linear-gradient(to right, #1a1a1a, #CC6272);
    color: #FFFF86;
}

html.dark .fullybeyond {
    background: linear-gradient(to right, #1a1a1a, #5FA9CE);
    color: #FFFF86;
}

html.dark .project-container h1 {
    color: #FFED62;
}

html.dark .project-container p {
    color: white;
}

html.dark .side-nav a {
    /* background: rgba(255, 255, 255, 0.1); */
    color: rgb(255, 255, 255);
    /* border: 1px solid rgba(255, 255, 255, 0.2); */
}


html.dark .muse button {
    width: 100%;
    color: rgb(223, 223, 223);
    text-align: center;
}

html.dark .muse button:hover {
    color: rgb(197, 190, 85);
}


.yellow {
    display: inline;
    background: #fdff9a;   /* your yellow */
    font-weight: 700;     
    color: #1f1d10;      
    padding: 5px;     
}

.concept {
    display: inline;
    font-weight: 700;       
    background: #ffc9c9;    
    color: black;       
    padding: 5px;  
}

html.dark .concept {
    display: inline;
    font-weight: 700;       
    background: #f7f095;    
    padding: 5px;          
}

/* RESPONSIVENESS */
@media (max-width: 700px) {
    .side-nav {
        display: none; 
    }

    .muse h1 {
        font-size: 48px;
    }

    .project-container,
    .project-banner {
        padding: 2rem;
        box-sizing: border-box;
        margin-left: 0;
    }

    .project-banner h1 {
        font-size: 48px;
    }

    .project-container h2 {
        font-size: 22px;
    }

    .project-container p {
        font-size: 18px;
        line-height: 1.5;
    }

    /* Images shrink and stack cleanly */
    .image-container {
        gap: 0.5rem;
    }

    .image-container img {
        max-height: 250px;
        width: 100%;
        object-fit: contain;
    }

    .language,
    .library {
        margin-right: 10px;
        white-space: nowrap; /* prevents ugly wrapping */
    }
}

/* -------------------------------------- */
/* tablet
/* -------------------------------------- */

@media (min-width: 700px) and (max-width: 1100px) {
    .muse h1 {
        font-size: 72px;
    }

    .project-container p {
        font-size: 20px;
    }

    .image-container img {
        max-height: 320px;
    }
}

@media (max-width: 900px) {
    .project-container {
        flex-direction: column;
        margin-left: 0;
        padding: 2rem;
    }

    .project-container .left,
    .project-container .right {
        flex: none;
        width: 100%;
    }
}