/* Portfolio content shares the arcade palette and frame treatment. */
.projects-section {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    padding: var(--space-xl) 32px;
    scroll-margin-top: 24px;
}
.projects-section h2 {
    font-size: 24px;
    margin: 0 0 36px;
    color: var(--accent-color);
    text-shadow: 4px 4px 0 #000;
}
.project-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-md);
}
.project-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 28px;
    background: var(--surface-color);
    border: 2px solid #fff;
    box-shadow: 6px 6px 0 #000;
    color: var(--text-color);
    text-decoration: none;
    min-width: 0;
    transition: transform 120ms ease-out, box-shadow 120ms ease-out, background 120ms ease-out;
}
a.project-card:hover {
    transform: translate(2px, 2px);
    box-shadow: 3px 3px 0 #000;
    background: #142758;
}
.project-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
}
.project-icon {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    image-rendering: pixelated;
    border: 2px solid #000;
    box-shadow: 3px 3px 0 #000;
}
.project-info h3 {
    margin: 0 0 16px;
    font-size: 13px;
    line-height: 1.8;
    color: var(--accent-color);
    text-wrap: balance;
}
.project-info p {
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    margin: 0 0 24px;
    color: var(--muted-color);
    overflow-wrap: normal;
}
.project-stat {
    display: inline-block;
    margin-top: auto;
    padding: 8px 10px;
    font-size: 11px;
    line-height: 1.8;
    color: #8ff0aa;
    background: #0c1534;
    border: 2px solid #8ff0aa;
    box-shadow: 2px 2px 0 #000;
}
#work { border-top: 2px solid #8098d2; }
.section-intro {
    font: 18px/1.7 system-ui, sans-serif;
    color: var(--muted-color);
    margin: -16px 0 36px;
}
.work-tag { order: 1; margin: 0 0 24px; font: 11px/1.8 system-ui, sans-serif; letter-spacing: 1px; color: var(--accent-color); }
.work-card h3 { order: 0; }
.work-card p { order: 2; }
.work-links { order: 3; display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; }
.work-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 12px;
    font-size: 11px;
    color: #fff;
    text-decoration: none;
    background: #0c1534;
    border: 2px solid #fff;
    box-shadow: 2px 2px 0 #000;
    transition: transform 120ms ease-out, background 120ms ease-out;
}
.work-links a:hover { transform: translate(2px, 2px); box-shadow: none; background: var(--accent-color); color: #111; }
.work-more { margin-top: 40px; display: flex; }
.work-more .pixel-btn { font-size: 11px; }
@media (max-width: 760px) {
    .project-grid { grid-template-columns: minmax(0, 1fr); }
    .projects-section { padding: 56px 24px; }
}
@media (max-width: 480px) {
    .projects-section h2 { font-size: 20px; margin-bottom: 28px; }
    .project-card { padding: 24px; flex-direction: column; }
    .project-info h3 { font-size: 12px; }
}
