/* Projects Section */
.projects-section {
    padding: var(--spacing-xxl) 0;
    background-color: #fff;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.project-item {
    position: relative;
    overflow: hidden;
}

.project-image-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

/* Ratio overrides */
.project-image-wrapper.ratio-1-1 { aspect-ratio: 1/1; }
.project-image-wrapper.ratio-4-3 { aspect-ratio: 4/3; }
.project-image-wrapper.ratio-3-4 { aspect-ratio: 3/4; }
.project-image-wrapper.ratio-16-9 { aspect-ratio: 16/9; }
.project-image-wrapper.ratio-9-16 { aspect-ratio: 9/16; }

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(19, 30, 74, 0.9);
    /* Secondary color with opacity */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
    text-align: center;
}

.project-item:hover .project-image {
    transform: scale(1.1);
}

.project-item:hover .project-overlay {
    opacity: 1;
}

.project-content {
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.project-item:hover .project-content {
    transform: translateY(0);
}

.project-category {
    display: block;
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.project-title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
}

.project-title a {
    color: #fff;
    text-decoration: none;
}

.project-title a:hover {
    color: var(--primary-color);
}

/* Responsive */
@media (max-width: 991px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .projects-section {
        padding: var(--spacing-lg) 0;
    }
}

@media (max-width: 767px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .projects-section {
        padding: var(--spacing-md) 0;
    }
}