.projects-container {
    padding: 20px;
}

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

.project-card:hover {
    transform: translateY(-4px);
}

.project-image {
    width: 300px;
    height: 180px;
}

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

.project-content {
    flex: 1;
    padding: 20px;
    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: 14px;
    color: #666;
    margin-bottom: 6px;
}

.project-description {
    font-size: 16px;
    line-height: 1.5;
}

.project-link {
    display: inline-block;
    padding: 8px 20px;
    background: var(--header-background);
    color: var(--font-color);
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.2s;
    align-self: flex-start;
}

.project-link:hover {
    background: var(--nav-header-background);
}

.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;
}

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

.minor-projects .project-image:hover {
    transform: scale(1.05);
}

@media (max-width: 700px) {
    .project-card {
        flex-direction: column;
    }

    .project-image {
        margin: 0 auto;
    }

    .project-content {
        padding: 15px;
    }

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

