.projects {
    padding: 60px 20px;
    background-color: #ffffff;
}

.section-heading {
    font-size: 2.5rem;
    text-align: center;
    color: #222;
    margin-bottom: 40px;
    font-family: 'Poppins', sans-serif;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.project-card {
    background-color: #f4f6f8;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.project-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

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

.project-info {
    padding: 20px;
    text-align: center;
    flex: 1;
}

.project-info h3 {
    margin-bottom: 10px;
    font-size: 1.5rem;
    color: #0c4fad;
    font-family: 'Poppins', sans-serif;
}

.project-info p {
    font-size: 1rem;
    color: #444;
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .section-heading {
        font-size: 2.2rem;
    }

    .project-grid {
        gap: 25px;
        padding: 0 1rem;
    }

    .project-info h3 {
        font-size: 1.4rem;
    }

    .project-info p {
        font-size: 0.95rem;
    }
}

@media (max-width: 992px) {
    .section-heading {
        font-size: 2rem;
    }

    .project-grid {
        gap: 20px;
    }

    .project-image {
        height: 200px;
    }

    .project-info h3 {
        font-size: 1.3rem;
    }

    .project-info p {
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    .projects {
        padding: 40px 15px;
    }

    .section-heading {
        font-size: 1.8rem;
    }

    .project-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .project-image {
        height: 180px;
    }

    .project-info h3 {
        font-size: 1.2rem;
    }

    .project-info p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .project-image {
        height: 160px;
    }

    .project-info h3 {
        font-size: 1.1rem;
    }

    .project-info p {
        font-size: 0.85rem;
    }
}