/* --- PAGE SPECIFIC LAYOUT --- */
body {
    display: flex;
    justify-content: center;
    padding: 4rem 2rem;
}

.container {
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* --- NAVIGATION --- */
.nav-bar {
    width: 100%;
    padding-bottom: 1rem;
    font-weight: 100;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

.back-link:hover {
    transform: translateX(-3px);
}

/* --- SECTIONS --- */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 3rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #444;
}

.sec-title {
    font-size: 1.3rem;
    font-weight: 300;
    letter-spacing: 0.25em;
    text-transform: uppercase;
}

.sec-hanzi {
    color: #aaa;
    font-size: 1.4rem;
}

/* --- PROJECT ITEM --- */
.project-item {
    margin-bottom: 4rem;
    position: relative;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    border-left: 1px solid #444;
    background-color: #1e1e1e;
}

/* The Number (e.g., 01.) */
.p-number {
    position: absolute;
    left: -1.5rem;
    top: 0;
    padding-bottom: 1rem;
    padding-right: 0.5rem;
    color: #666;
    font-size: 0.75rem;
    font-weight: 300;
    letter-spacing: 0.1em;
}

.p-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    height: 2.2rem;
    overflow: hidden;
}

.p-title {
    font-size: 1.8rem;
    font-weight: 300;
    letter-spacing: 0.1em;
}

.p-logo-inline {
    width: 8rem;
    opacity: 0.9;
    transition: opacity 0.2s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.p-logo-inline:hover {
    opacity: 1;
}

.p-divider {
    color: #555;
    font-size: 0.9rem;
    letter-spacing: 0.5rem;
    margin-bottom: 1.5rem;
    opacity: 0.6;
    user-select: none;
    overflow: hidden;
    white-space: nowrap;
}

.p-desc {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #ccc;
    margin-bottom: 1.5rem;
    max-width: 600px;
    font-weight: 300;
}

.p-tech {
    font-size: 0.8rem;
    color: #888;
    margin-top: 1rem;
    display: block;
    letter-spacing: 0.05em;
    font-weight: 300;
}

.p-logo {
    max-width: 200px;
    margin: 2rem 0;
    opacity: 0.9;
    transition: opacity 0.2s ease, transform 0.2s ease;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.p-logo:hover {
    opacity: 1;
    transform: translateY(-2px);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
}

.project-link {
    color: inherit;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.project-link:hover {
    color: #fff;
}

.p-screenshot {
    width: 100%;
    max-width: 600px;
    margin: 2rem 0;
    border: 1px solid #444;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.p-screenshot:hover {
    border-color: #666;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    transform: translateY(-2px);
}

/* --- CSS WIREFRAMES --- */
.wireframe-box {
    border: 1px solid #444;
    padding: 1rem;
    margin: 2rem 0;
    background-color: #222;
    font-size: 0.75rem;
    color: #888;
    max-width: 100%;
    border-radius: 8px;
    transition: border-color 0.2s;
}

.wireframe-box:hover {
    border-color: #666;
}

/* Graph Visual */
.graph-ui {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.g-header {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dashed #444;
    padding-bottom: 5px;
}

.g-bars {
    display: flex;
    align-items: flex-end;
    height: 60px;
    gap: 6px;
    padding-top: 10px;
}

.bar {
    width: 10px;
    background: #333;
}

.b-fill {
    background: #666;
}

/* Synth Visual */
.synth-ui {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.knob-group {
    display: flex;
    gap: 10px;
}

.knob {
    width: 18px;
    height: 18px;
    border: 1px solid #666;
    border-radius: 50%;
    position: relative;
}

.knob::after {
    content: '';
    position: absolute;
    top: 0;
    left: 8px;
    width: 1px;
    height: 8px;
    background: #666;
}

.piano {
    display: flex;
    border: 1px solid #444;
}

.key {
    width: 12px;
    height: 30px;
    border-right: 1px solid #444;
}

.key:last-child {
    border: none;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 2rem 1.5rem;
    }

    .container {
        gap: 2rem;
    }

    .project-item {
        padding-left: 1rem;
        padding-right: 1rem;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .p-title {
        font-size: 1.4rem;
    }

    .p-number {
        top: 0;
    }

    .hide-mobile {
        display: none;
    }
}
