#projects {
    background-color: #f9f9f9;
    padding: 50px 0;
    text-align: center;
}

h2 {
    font-size: 36px;
    margin-bottom: 40px;
    color: #333;
}

.container {
    width: 80%;
    margin: 0 auto;
}

/* Ensure uniform size for the project cards */
.project-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    margin-bottom: 30px;
    padding: 20px;
    transition: box-shadow 0.3s ease;
    text-decoration: none;  /* Remove underline */
    color: inherit;         /* Inherit text color */
    height: 300px;          /* Set a fixed height for the card */
}

.project-card:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* Fix image height to ensure all cards are of uniform size */
.project-card img {
    width: 40%;
    height: 100%; /* Make sure the image takes the full height of the card */
    object-fit: cover; /* Maintain aspect ratio and cover the area */
    border-radius: 8px;
}

.project-content {
    width: 55%;
    text-align: left;
}

.project-content h3 {
    font-size: 24px;
    color: #333;
}

.project-content p {
    font-size: 16px;
    color: #666;
    margin-top: 10px;
    margin-bottom: 20px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
}

.tags span {
    background-color: #e0e7ff;
    color: #3b82f6;
    font-size: 14px;
    padding: 5px 10px;
    margin-right: 10px;
    margin-bottom: 10px;
    border-radius: 20px;
    transition: background-color 0.3s ease;
}

.tags span:hover {
    background-color: #3b82f6;
    color: #fff;
}

/* Responsive Design for smaller screens */
@media (max-width: 768px) {
    .project-card {
        flex-direction: column;
        height: auto;
    }

    .project-card img {
        width: 100%;
        height: 200px; /* Set a fixed height for images on mobile */
        margin-bottom: 15px;
    }

    .project-content {
        width: 100%;
    }
}
