/* PROJECTS PAGE */
.projects {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

.card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: rgb(var(--surface));
    border: 1px solid rgb(var(--border) / 0.08);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.card img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
    transition: filter 0.2s;
}

.card:hover img {
    filter: brightness(1.1);
}

.card a {
    text-decoration: none;
}

.project-info {
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.project-info a {
    color: rgb(var(--text-primary));
    font-size: 0.9rem;
}

.project-info .title-year {
    font-weight: 600;
    font-size: 0.95rem;
}

/* RESPONSIVE */
@media screen and (max-width: 768px) {
    .projects {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}
