/* Loaded only by art10c.html — must not affect other pages */

body {
    background-color: #f8f9fa;
}

/* Scope generic element selectors so they don't bleed into the nav */
#portfolio-content {
    text-align: center;
    padding-top: 2rem;
}

#portfolio-content h1,
#portfolio-content h2,
#portfolio-content h3,
#portfolio-content p,
#portfolio-content span {
    color: #95bb72;
}

/* Portfolio-specific classes — no naming conflicts with jiayi-website nav */

#myname {
    font-family: "damson", sans-serif;
    font-weight: 900;
    font-style: normal;
    color: #95bb72;
    font-size: 198px;
    margin-top: 3rem;
    margin-bottom: 0.25rem;
}

.about {
    max-width: 600px;
    margin: 1rem auto 3rem;
    text-align: left;
}

#portfolio-content .about p {
    font-family: 'Space Mono', monospace;
    font-size: 15px;
    color: #95bb72;
    line-height: 1.7;
    margin-bottom: 1.2rem;
    white-space: normal;
}

#portfolio-content .about a {
    color: #95bb72;
}

.section {
    font-family: "damson", sans-serif;
    font-weight: 900;
    font-style: normal;
    color: #95bb72;
    font-size: 64px;
}

.project-num {
    font-family: "damson", sans-serif;
    font-weight: 900;
    font-style: normal;
    color: #95bb72;
    font-size: 44px;
    margin-bottom: 0;
}

.project-num + .project {
    margin-top: 1rem;
}

.project {
    margin: 2rem auto;
    max-width: 600px;
}

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

.project-video {
    width: 100%;
    display: block;
}

.project-title {
    font-family: "damson", sans-serif;
    font-weight: 900;
    font-style: normal;
    color: #95bb72;
    font-size: 32px;
    margin-top: 1rem;
}

.project-desc {
    font-family: 'Space Mono', monospace;
    font-size: 16px;
    color: #95bb72;
    margin-top: 0.5rem;
    white-space: normal;
}

.course-note {
    max-width: 62ch;
    margin: 2rem auto 3rem;
    text-align: left;
}

@media (max-width: 600px) {
    .course-note {
        max-width: 90%;
        margin: 1.2rem auto 3rem;
    }
}

.model-wrapper {
    position: relative;
}

.project-model-viewer {
    width: 100%;
    height: 420px;
    background-color: #111111;
    --poster-color: #111111;
    border: 1px solid #95bb72;
    display: block;
}

.model-expand-btn {
    position: absolute;
    bottom: 0.6rem;
    right: 0.6rem;
    background: #111111;
    border: 1px solid #95bb72;
    color: #95bb72;
    font-size: 1.1rem;
    padding: 0.3rem 0.5rem;
    cursor: pointer;
    line-height: 1;
}

.model-expand-btn:hover {
    background: #95bb72;
    color: #111111;
}

/* Fixed overlay — renders outside #portfolio-content, no prefix needed */
.model-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.model-overlay.active {
    display: flex;
}

.model-overlay model-viewer {
    width: 90vw;
    height: 90vh;
    background-color: #111111;
    --poster-color: #111111;
}

.model-overlay-close {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    background: #111111;
    border: 1px solid #95bb72;
    color: #95bb72;
    font-size: 1.4rem;
    padding: 0.25rem 0.75rem;
    cursor: pointer;
    line-height: 1;
}

.model-overlay-close:hover {
    background: #95bb72;
    color: #111111;
}
