.project {
    gap: 2rem;
    width: fit-content;
    background-color: #f2f2f2;
    cursor: pointer;
}

.project-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5px;
    background-color: #d1d1d1;
}

@media (max-width: 768px) {
    .project-list {
        grid-template-columns: 1fr;
    }
}

.project-image {
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    margin-bottom: 2rem;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block; 
}

.project-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 2em 0 0 0;
    height: 1.17em;
}

/* Tech Badges */
.tech-badges {
    display: flex;
    gap: 0.5rem;
}

/* Base badge */
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 2rem;
    height: 2rem;

    border-radius: 0.5rem;
}

/* Icon */
.badge i {
    font-size: 1.4rem;
    color: white;
    line-height: 1;
}

/* Technology backgrounds */
.badge.html   { background: #E44D26; }
.badge.css    { background: #1572B6; }
.badge.js     { background: #c2ac0a; }
.badge.python { background: #3776AB; }
.badge.java   { background: #B07219; }