.projects-container {
    padding: 20px;
}

.project-card {
    display: flex;
    margin-bottom: 20px;
    transition: transform 0.2s;
    gap: 20px;
    position: relative;
}

.project-image {
    max-width: 300px;
    aspect-ratio: 1.667;
}

.project-image img {
    border-radius: 8px;
    box-shadow: 1px 1px 4px #000;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-image img:hover {
    box-shadow: 2px 2px 6px #000;
}

.project-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-title {
    font-size: 24px;
    margin: 0 0 5px 0;
    color: var(--font-color);
    a {
        font-size: unset;
    }
}

.project-date {
    font-size: small;
    color: var(--font-secondary);
    margin-bottom: 6px;
}

.project-description {
    line-height: 1.5;
}

.github-link img {
    height: 20px;
}

.github-link img:hover {
    border-radius: 100%;
    background: var(--nav-highlight-link-background);
}

.minor-projects {
    margin: 20px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;

    .project-image {
        width: 200px;
        height: 120px;
        transition: transform 0.2s;
    }
}


@media (max-width: 700px) {
    .project-card {
        flex-direction: column;
        margin: 0 auto;
        max-width: 400px;
        margin-bottom: 10px;
    }

    .project-image {
        max-width: 400px;
    }

    .minor-projects .project-image {
        margin: 0;
        width: calc(50% - 10px);
        max-width: 180px;
        height: 100px;
    }
}
