/* =============================================
   PROJECTS PAGE CSS - JK Drive Technology
   Pixel-matched to jkdrive.lk/industry/
   ============================================= */

/* ------------------------------------------------------------------
   1) HERO / INTRO  – light-gray panel with title + welcome paragraph
   ------------------------------------------------------------------ */
.projects-intro {
    background: #ededed;
    padding: 50px 0 50px;
    text-align: center;
}

.projects-intro-title {
    font-family: var(--font-heading);
    font-size: 30px;
    font-weight: 800;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 0 22px;
}

.projects-intro-text {
    font-size: 14px;
    color: #4a4a4a;
    line-height: 1.9;
    max-width: 920px;
    margin: 0 auto;
    text-align: center;
}

/* ------------------------------------------------------------------
   2) PROJECTS GRID  – 3-column grid with checkerboard gray panels
   ------------------------------------------------------------------ */
.projects-grid-section {
    background: var(--white);
    padding: 60px 0 80px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px 28px;
}

/* ── Card ── */
.project-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 28px 22px 30px;
    border-radius: 14px;
    background: transparent;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.project-card:hover {
    transform: translateY(-4px);
}

/* ── Image (rounded corners, fixed height) ── */
.project-image-wrap {
    width: 100%;
    height: 200px;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 22px;
}

.project-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image-wrap img { transform: scale(1.05); }

/* ── Title ── */
.project-title {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 800;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    line-height: 1.5;
    margin: 0;
}

/* ── Checkerboard pattern: every 2nd card gets a light-gray rounded panel ── */
.projects-grid .project-card:nth-child(even) {
    background: #ededed;
}

.projects-grid .project-card:nth-child(even):hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

/* ------------------------------------------------------------------
   3) RESPONSIVE
   ------------------------------------------------------------------ */
@media (max-width: 991px) {
    .projects-intro-title { font-size: 26px; }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px 22px;
    }

    /* Reset checkerboard for 2-col layout: alternate every other */
    .projects-grid .project-card { background: transparent; }
    .projects-grid .project-card:nth-child(even) { background: #ededed; }
}

@media (max-width: 575px) {
    .projects-intro { padding: 40px 0; }
    .projects-intro-title { font-size: 22px; letter-spacing: 1px; }
    .projects-intro-text { font-size: 13px; }

    .projects-grid-section { padding: 40px 0 50px; }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .project-card { padding: 22px 18px 24px; }
    .project-image-wrap { height: 220px; }

    /* In single-column layout: alternate background by position */
    .projects-grid .project-card { background: transparent; }
    .projects-grid .project-card:nth-child(even) { background: #ededed; }
}
