.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
}

.project-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    padding: 28px 24px 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 18px 45px rgba(78, 161, 255, 0.14);
    transition: 0.28s ease;
}

.project-card::before,
.project-card::after {
    content: "";
    position: absolute;
    width: 56px;
    height: 56px;
    border-color: var(--plan-line-strong);
    opacity: 0.7;
    pointer-events: none;
}

.project-card::before {
    top: 0;
    left: 0;
    border-top: 1px solid;
    border-left: 1px solid;
}

.project-card::after {
    right: 0;
    bottom: 0;
    border-right: 1px solid;
    border-bottom: 1px solid;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: rgba(127, 209, 255, 0.38);
    box-shadow: 0 24px 55px rgba(78, 161, 255, 0.18);
}

/* CATEGORY / TYPE */
.project-type {
    display: inline-flex;
    align-self: flex-start;
    margin-bottom: 14px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(78, 161, 255, 0.12);
    color: var(--primary-2);
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* OLD BADGE SUPPORT */
.project-badge {
    display: inline-flex;
    align-self: flex-start;
    margin-bottom: 16px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(78, 161, 255, 0.12);
    color: var(--primary-2);
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1;
}

.project-card h3 {
    margin-bottom: 12px;
    font-size: 1.45rem;
    line-height: 1.2;
}

.project-card p {
    margin-bottom: 16px;
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.7;
}

.project-status {
    display: block;
    margin: 4px 0 14px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #64748b;
    font-family: 'Poppins', sans-serif;
}

.ongoing-text {
    color: #2563eb;
}

.upcoming-text {
    color: #64748b;
}

.project-card.ongoing-card {
    border-color: rgba(59, 130, 246, 0.3);
    background: linear-gradient(180deg,
            rgba(78, 161, 255, 0.10),
            rgba(255, 255, 255, 0.04));
}

.project-card.upcoming-card {
    border-style: dashed;
    opacity: 0.92;
    background: linear-gradient(180deg,
            rgba(78, 161, 255, 0.08),
            rgba(255, 255, 255, 0.04));
}

.feature-list {
    list-style: none;
    margin: 0 0 22px;
    padding: 0;
}

.feature-list li {
    position: relative;
    margin-bottom: 10px;
    padding-left: 20px;
    color: var(--text);
    line-height: 1.55;
}

.feature-list li::before {
    content: "•";
    position: absolute;
    top: 0;
    left: 0;
    color: var(--accent);
    font-weight: 800;
}

.card-actions {
    margin-top: auto;
    padding-top: 8px;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-2);
    font-weight: 700;
    transition: 0.2s ease;
}

.text-link:hover {
    transform: translateX(3px);
    color: var(--primary);
}

/* LIGHT SECTION SUPPORT */
.section-light .project-card {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.section-light .project-card:hover {
    border-color: rgba(78, 161, 255, 0.28);
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.10);
}

.section-light .project-type,
.section-light .project-badge {
    background: rgba(37, 99, 235, 0.10);
    color: #2563eb;
}

.section-light .project-card h3 {
    color: #0f172a;
}

.section-light .project-card p,
.section-light .feature-list li {
    color: #334155;
}

.section-light .feature-list li::before {
    color: #2563eb;
}

.section-light .text-link {
    color: #2563eb;
}

.section-light .text-link:hover {
    color: #1d4ed8;
}

.section-light .project-card.ongoing-card {
    background: linear-gradient(180deg,
            rgba(78, 161, 255, 0.10),
            rgba(255, 255, 255, 0.92));
    border-color: rgba(59, 130, 246, 0.28);
}

.section-light .project-card.upcoming-card {
    background: linear-gradient(180deg,
            rgba(100, 116, 139, 0.06),
            rgba(255, 255, 255, 0.9));
    border-style: dashed;
    border-color: rgba(100, 116, 139, 0.35);
}

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

@media (max-width: 680px) {
    .project-grid {
        grid-template-columns: 1fr;
    }

    .project-card {
        padding: 24px 20px 22px;
    }

    .project-card h3 {
        font-size: 1.3rem;
    }
}

.demo-btn {
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    font: inherit;
}

.systems-development-heading {
    margin-top: 90px;
}

.upcoming-grid {
    margin-top: 30px;
}

/* =====================================================
   INDUSTRY TAG COLORS
===================================================== */

/* CLINIC */
.clinic-type {
    background: #dff7e8;
    color: #15803d;
}

/* LAW */
.law-type {
    background: #ede9fe;
    color: #6d28d9;
}

/* LAUNDRY */
.laundry-type {
    background: #dbeafe;
    color: #2563eb;
}

/* LANDSCAPING */
.landscaping-type {
    background: #dcfce7;
    color: #166534;
}

/* CONSTRUCTION */
.construction-type {
    background: #fef3c7;
    color: #b45309;
}

/* CONTRACTOR CRM */
.contractor-type {
    background: #fee2e2;
    color: #b91c1c;
}

/* =====================================================
   UPCOMING INDUSTRY GRID FIX
===================================================== */

.upcoming-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
    align-items: stretch;
}

/* SAME CLEAN CARD STYLE AS FEATURED PROJECTS */

.upcoming-grid .project-card {
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* UNIFORM TITLE HEIGHT */

.upcoming-card h3 {
    min-height: 90px;
}

/* UNIFORM DESCRIPTION HEIGHT */

.upcoming-card p {
    min-height: 120px;
}

/* TABLET */

@media (max-width: 1100px) {

    .upcoming-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

/* MOBILE */

@media (max-width: 680px) {

    .upcoming-grid {
        grid-template-columns: 1fr;
    }

}