.projects-section {
    position: relative;
    background-image: url('https://images.unsplash.com/photo-1504307399195-8873a7339634?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.projects-section::before {
    content: '';
    position: absolute;
    border-radius: 5%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 255, 0.849);
    /* Dark blue overlay */
    z-index: 0;
}

.projects-section>.container {
    position: relative;
    z-index: 1;
}

.projects-section .section-title,
.projects-section .section-subtitle,
.projects-section .projects-key-title,
.projects-section .projects-commitment-title,
.projects-section .project-item h4,
.projects-section .project-item p,
.projects-section .projects-commitment-text {
    color: var(--brand-white);
    /* Make text white for contrast */
}

.projects-section .section-title .text-blue {
    color: var(--brand-yellow);
    /* Change accent to yellow */
}

.projects-section .projects-key-title,
.projects-section .projects-commitment-title {
    border-bottom-color: var(--brand-yellow);
}

.projects-section .project-item {
    background-color: rgba(255, 255, 255, 0.1);
    /* Semi-transparent white cards */
    border-left-color: var(--brand-yellow);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.projects-section .project-item:hover {
    background-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.projects-section .project-item p {
    color: #e0e0e0;
    /* Lighter grey for paragraph text */
}

.projects-section .projects-commitment-text {
    background-color: rgba(255, 215, 0, 0.1);
    /* Semi-transparent light yellow */
    border-left-color: var(--brand-yellow);
}

.projects-showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.project-showcase-card {
    background-color: var(--brand-white);
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    text-align: center;
}

.project-showcase-card h3 {
    font-size: 1.5rem;
    color: var(--brand-blue);
    margin-bottom: 20px;
}

.project-gallery-container {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    animation: fadeIn 0.5s ease;
}

.project-gallery-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-gallery-img:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.projects-content {
    text-align: left;
    max-width: 900px;
    margin: 0 auto;
}

.projects-key-title,
.projects-commitment-title {
    font-size: 1.8rem;
    margin-top: 30px;
    margin-bottom: 20px;
    padding-bottom: 10px;
}

.project-item {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 35px;
    padding: 20px;
    border-radius: 0 8px 8px 0;
    transition: box-shadow 0.3s ease-in-out;
}

@media (min-width: 768px) {
    .project-item {
        flex-direction: row;
        align-items: flex-start;
    }
}

.project-item-image-container {
    flex: 0 0 200px;
    height: 150px;
    margin-right: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 7px rgba(0, 0, 0, 0.15);
}

.project-item-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
}

.project-item-image:hover {
    transform: scale(1.1);
}

.project-item-text {
    flex: 1;
}

.project-item h4 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.project-item p {
    font-size: 1rem;
    line-height: 1.7;
}

.projects-commitment-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-top: 15px;
    padding: 20px;
    border-radius: 0 8px 8px 0;
}

.view-more-projects-container {
    text-align: center;
    margin-top: 40px;
}

#view-more-projects-btn,
.project-preview-btn {
    padding: 12px 30px;
    font-size: 1.1rem;
    background: linear-gradient(135deg, var(--brand-yellow), #ffc400);
    color: var(--brand-blue);
    border: none;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    font-weight: 600;
}

#view-more-projects-btn:hover,
.project-preview-btn:hover {
    background: linear-gradient(135deg, #ffc400, var(--brand-yellow));
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
    transform: translateY(-2px);
}

.project-preview-btn {
    margin-top: 15px;
    width: auto;
    display: inline-block;
}


/* All Projects Gallery Modal */

.all-projects-gallery-modal-close {
    z-index: 1005;
    /* Ensure close button is above content */
}

.project-gallery-modal-title {
    font-size: 1.5rem;
    color: var(--brand-blue);
    margin-bottom: 15px;
    text-align: center;
    width: 100%;
}

.project-gallery-main-image-container {
    width: 100%;
    height: 60vh;
    /* Adjust as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    background-color: #f0f0f0;
    /* Light background for image area */
    border-radius: 6px;
    overflow: hidden;
    /* To contain zoomed image if needed */
}

.project-gallery-modal-main-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 6px;
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.project-gallery-modal-main-image.zoomed {
    transform: scale(1.5);
    /* Example zoom level */
    cursor: zoom-out;
}

.project-gallery-modal-caption {
    font-size: 0.9rem;
    color: #555;
    margin-top: 10px;
    text-align: center;
    min-height: 20px;
    /* Ensure space for caption */
}