.project-section {
    color: #333;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.project-section .container {
    max-width: 1200px;
    margin: auto;
    text-align: center;
}

.project-header h2 {
    color: #501f3a;
    margin-bottom: 0.5rem;
    justify-content: center;
}

.project-header .subtitle {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 2rem;
}

.project-figure {
    margin-top: 20px;
    margin-bottom: 30px;
}

.project-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 8px;
}

figcaption {
    font-style: italic;
    color: #666;
    margin-top: 8px;
}

.project-content section {
    margin-bottom: 20px;
}

.project-content h3 {
    color: #501f3a;
    margin-bottom: 10px;
}

.tech-stack {
    list-style-type: none;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.tech-stack li {
    background: #cb2d6f;
    color: #fff;
    padding: 8px 16px;
    margin: 5px;
    border-radius: 4px;
}

.challenges-solutions {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.challenges-solutions .challenges, .challenges-solutions .solutions {
    flex: 1;
}

@media (max-width: 768px) {
    .challenges-solutions {
        flex-direction: column;
    }
}
.project-section {
    background-color: #f4f4f4;
    padding: 40px 0;
    color: #333;
    text-align: center;
}

.project-section .container {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

.project-header h2, .project-header p.subtitle {
    color: #501f3a;
}

.project-images {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
}

.project-figure {
    flex: 1;
    margin: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.project-image {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1; /* Maintains square aspect ratio */
    object-fit: cover; /* Ensures the image covers the area without distorting aspect ratio */
}

figcaption {
    margin-top: 8px;
    color: #666;
    font-style: italic;
}

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

    .project-figure {
        width: 80%; /* Adjust width for smaller screens */
        margin: auto; /* Centers the figure in the column */
    }
}
