/* ==============================================
   PROJECTS.CSS — Featured (1 big) + 3 small cards
   ============================================== */

.projects.section { padding-top: 100px; }

/* Featured card: full width */
.project-featured {
    border: var(--border);
    box-shadow: var(--shadow-xl);
    background-color: var(--bg);
    display: grid;
    grid-template-columns: 1fr 400px;
    min-height: 360px;
    margin-bottom: 24px;
    transition: transform 0.22s, box-shadow 0.22s;
    overflow: hidden;
}

.project-featured:hover {
    transform: translate(-4px, -4px);
    box-shadow: 16px 16px 0px var(--ink);
}

.project-featured .project-inner {
    padding: 40px 44px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-right: var(--border);
}

.project-featured .project-screenshot {
    aspect-ratio: auto;
    max-height: none;
    height: 100%;
    min-height: 300px;
    border-bottom: none;
}

/* Small cards grid: 3 cols */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Card shell (small) */
.project-card {
    border: var(--border);
    box-shadow: var(--shadow-md);
    background-color: var(--bg);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.project-card:hover {
    transform: translate(-3px, -3px);
    box-shadow: 9px 9px 0px var(--ink);
}

/* Color bars */
.project-accent-bar { height: 6px; width: 100%; border-bottom: 3px solid var(--ink); flex-shrink: 0; }
.project-card--red  .project-accent-bar,
.project-featured.project-card--red  .project-accent-bar { background-color: var(--red); }
.project-card--blue .project-accent-bar,
.project-featured.project-card--blue .project-accent-bar { background-color: var(--blue); }
.project-card--yellow .project-accent-bar,
.project-featured.project-card--yellow .project-accent-bar { background-color: var(--yellow); }

/* Screenshot */
.project-screenshot {
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 180px;
    border-bottom: 3px solid var(--ink);
    overflow: hidden;
    background-color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.project-card:hover .project-img,
.project-featured:hover .project-img { transform: scale(1.04); }

/* Inner content */
.project-inner {
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.project-num {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -1px;
    opacity: 0.3;
}

.project-featured .project-num { font-size: 2.4rem; opacity: 0.25; }

.project-year {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 8px;
    border: 2px solid var(--ink);
    background: var(--bg);
    text-transform: uppercase;
}

.project-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.project-featured .project-title { font-size: 2rem; margin-bottom: 14px; }

.project-desc {
    margin-bottom: 18px;
    flex-grow: 1;
    font-size: 0.88rem;
    line-height: 1.65;
    opacity: 0.78;
}

.project-featured .project-desc { font-size: 0.98rem; }

.project-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 18px;
}

.project-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .project-featured { grid-template-columns: 1fr; }
    .project-featured .project-screenshot { min-height: 200px; height: 220px; border-bottom: 3px solid var(--ink); }
    .project-featured .project-inner { border-right: none; }
}

@media (max-width: 680px) {
    .projects-grid { grid-template-columns: 1fr; }
}
