/* --- PROJECTS GALLERY STYLES --- */

.projects-main {
    width: 100%;
    max-width: 1400px;
    margin: 5rem auto;
    padding: 4rem 5%;
    background-color: #000;
}

.projects-main h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3rem;
    font-weight: 500;
    color: #fff;
    margin-bottom: 3rem;
    border-bottom: 1px solid #333;
    padding-bottom: 1rem;
}

.project-leadin {
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    color: #aaa;
    line-height: 1.7;
    max-width: 80ch; /* Limits line length for readability */
    margin: -1.5rem 0 3rem 0; /* Pulls it up and adds space below */
}

/* --- 1. The Gallery Grid --- */
.project-gallery {
    display: grid;
    /* 3 columns on desktop */
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* --- 2. The Project Card --- */
.project-card {
    display: block;
    text-decoration: none;
    color: #fff;
    background-color: #0a0a0a;
    border: 1px solid #222;
    border-radius: 4px;
    overflow: hidden; /* Ensures image corners are rounded */
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border-color: #444;
}

/* Card Image (using background-image) */
.card-image {
    height: 250px;
    width: 100%;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid #222;
}

/* Card Content */
.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.75rem;
    font-weight: 500;
    margin: 0;
}

.card-content p {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: #aaa;
    margin: 0;
    line-height: 1.5;
}

/* --- 3. Card-Specific Images --- */
#ppm-card-img { background-image: url('../../assets/images/ppm-bg.jpg'); }
#aurelis-card-img { background-image: url('../../assets/images/aurelis-bg.jpg'); }
#censa-card-img { background-image: url('../../assets/images/censa-bg.jpg'); }
#reach-card-img { background-image: url('../../assets/images/reach-bg.jpg'); }
#vital-card-img { background-image: url('../../assets/images/vital-bg.jpg'); }
#synth-card-img { background-image: url('../../assets/images/synth-bg.jpg'); }


/* --- 4. Responsive Layout --- */

/* Tablet: 2 columns */
@media (max-width: 900px) {
    .project-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .projects-main h1 {
        font-size: 2.5rem;
    }
}

/* Mobile: 1 column */
@media (max-width: 600px) {
    .projects-main {
        padding: 2rem 5%;
    }

    .project-gallery {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .card-image {
        height: 200px;
    }
}