.projects-section {
    padding: 40px 20px;
    text-align: center;
}

.section-title {
    font-size: 3rem;
    color: #ffffff;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 50%;
    margin: 0 auto;
}

.project-card {
    background-color: #5f5f5f;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    text-align: left;
}

.project-card img,
.project-card picture {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
    filter: grayscale(100%);
    transition: filter 0.3s ease-in-out;
}

.project-card:hover img,
.project-card:hover picture,
.project-card:hover picture img {
    filter: grayscale(0%);
}

.project-card h3 {
    font-size: 1.2rem;
    color: #ebebeb;
    margin: 15px;
}

.project-card p {
    font-size: 1rem;
    color: #eef3f3;
    margin: 0 15px 15px;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(238, 238, 238, 0.2);
}

.project-card a {
    color: inherit;
    text-decoration: none;
}

@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .project-card img,
    .project-card picture,
    .project-card picture img {
        height: 180px;
    }
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
        max-width: 90%;
        gap: 24px;
    }

    .project-card img,
    .project-card picture,
    .project-card picture img {
        height: 180px;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .project-card h3 {
        margin: 8px 15px 0;
    }
}

@media (max-width: 480px) {
    .projects-section {
        padding: 20px 10px;
    }

    .project-card img,
    .project-card picture,
    .project-card picture img {
        height: 120px;
    }

    .project-card h3 {
        font-size: 1rem;
        margin: 6px 15px 0;
    }

    .project-card p {
        font-size: 0.8rem;
    }
}