.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media(min-width:768px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr)
    }
}

@media(min-width:1024px) {
    .projects-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem
    }
}

.project-card {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    display: block;
    text-decoration: none;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s;
}

.project-card:hover img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--background), rgba(26, 32, 53, .2), transparent);
    opacity: .8;
    transition: opacity .3s;
}

.project-card:hover .project-overlay {
    opacity: .9;
}

.project-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
}

.project-name {
    font-weight: 600;
    color: var(--foreground);
    font-size: .875rem;
    margin-bottom: .25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media(min-width:1024px) {
    .project-name {
        font-size: 1rem
    }
}

.project-location {
    display: flex;
    align-items: center;
    gap: .25rem;
    font-size: .75rem;
    color: var(--muted-foreground);
}

/* Placeholder khi chưa có ảnh */
.project-img-placeholder {
    width: 100%;
    height: 100%;
    background: var(--card);
}