/* =========================================
   Projects Page Styles
   ========================================= */

/* Projects Section */
.projects-section {
    padding: 40px 0 80px;
    background: #F7F4EB;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 11px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Project Tile */
.project-tile {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 0;
    text-decoration: none;
    cursor: pointer;
}

.project-tile-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.4s ease;
}

.project-tile:hover .project-tile-image {
    transform: scale(1.05);
}

.project-tile-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: hsla(0, 0%, 0%, 0.31);
    mix-blend-mode: multiply;
    transition: background 0.3s ease;
}

.project-tile:hover .project-tile-overlay {
    background: hsla(0, 0%, 0%, 0.45);
}

.project-tile-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    z-index: 2;
}

.project-tile-label,
.goal-label {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 32px;
    line-height: 109%;
    letter-spacing: -0.05em;
    color: #FFFFFF;
    margin: 0;
}

.project-tile-title,
.goal-title {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 32px;
    line-height: 109%;
    letter-spacing: -0.05em;
    color: #FFFFFF;
    margin: 0;
}

/* Responsive Styles */
@media (max-width: 1100px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .project-tile-label,
    .project-tile-title,
    .goal-label,
    .goal-title {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .projects-section {
        padding: 24px 0 48px;
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 0 16px;
    }

    .project-tile-content {
        padding: 16px;
    }

    .project-tile-label,
    .project-tile-title,
    .goal-label,
    .goal-title {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .project-tile {
        aspect-ratio: 4 / 3;
    }

    .project-tile-content {
        padding: 20px;
    }

    .project-tile-label,
    .project-tile-title,
    .goal-label,
    .goal-title {
        font-size: 20px;
    }
}
