/* ==========================================
   PROJECT CATEGORIES SECTION
========================================== */

.project-categories-section {
    width: 100%;
    padding: 10px 0;
    background: #f8fafc;
    overflow: hidden;
}


/* ==========================================
   SECTION HEADER
========================================== */

.project-section-header {
    max-width: 850px;
    margin: 0 auto 55px;
}

.project-section-label {
    display: inline-block;

    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;

    color: #16a34a;

    margin-bottom: 14px;
}

.project-section-header h2 {
    margin: 0;

    font-size: 44px;
    line-height: 1.15;

    font-weight: 800;

    color: #111827;
}

.project-section-header h2 span {
    color: #16a34a;
}

.project-section-header p {
    max-width: 720px;

    margin: 20px auto 0;

    font-size: 16px;
    line-height: 1.8;

    color: #64748b;
}


/* ==========================================
   PROJECT CARD
========================================== */

.project-card {
    height: 100%;

    display: flex;
    flex-direction: column;

    background: #ffffff;

    border: 1px solid #e5e7eb;

    border-radius: 20px;

    overflow: hidden;

    box-shadow:
        0 8px 25px rgba(15, 23, 42, 0.05);

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}

.project-card:hover {
    transform: translateY(-8px);

    border-color: #16a34a;

    box-shadow:
        0 20px 45px rgba(15, 23, 42, 0.12);
}


/* ==========================================
   IMAGE
========================================== */

.project-card-image {
    width: 100%;
    height: 220px;

    position: relative;

    overflow: hidden;

    flex-shrink: 0;
}

.project-card-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 0.5s ease;
}

.project-card:hover .project-card-image img {
    transform: scale(1.08);
}


/* ==========================================
   IMAGE OVERLAY
========================================== */

.project-image-overlay {
    position: absolute;

    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    background:
        linear-gradient(
            to top,
            rgba(15, 23, 42, 0.78) 0%,
            rgba(15, 23, 42, 0.15) 60%,
            rgba(15, 23, 42, 0) 100%
        );
}


/* ==========================================
   CATEGORY BADGE
========================================== */

.project-category {
    position: absolute;

    left: 20px;
    bottom: 18px;

    display: inline-flex;
    align-items: center;

    padding: 7px 13px;

    background: #ffd329;
    color: #111827;

    border-radius: 30px;

    font-size: 11px;
    line-height: 1;

    font-weight: 800;

    letter-spacing: 1px;
}


/* ==========================================
   CARD BODY
========================================== */

.project-card-body {
    padding: 26px;

    display: flex;
    flex-direction: column;

    flex: 1;
}


/* ==========================================
   ICON
========================================== */

.project-icon {
    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 18px;

    border-radius: 14px;

    background: #ecfdf5;
    color: #16a34a;

    font-size: 23px;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
}

.project-card:hover .project-icon {
    background: #16a34a;
    color: #ffffff;

    transform: translateY(-2px);
}


/* ==========================================
   TITLE
========================================== */

.project-card-body h3 {
    margin: 0 0 10px;

    color: #111827;

    font-size: 22px;

    line-height: 1.3;

    font-weight: 800;
}


/* ==========================================
   DESCRIPTION
========================================== */

.project-card-body p {
    margin: 0 0 22px;

    color: #64748b;

    

    line-height: 1.7;
}


/* ==========================================
   LINK
========================================== */

.project-card-link {
    margin-top: auto;

    display: inline-flex;
    align-items: center;

    gap: 8px;

    width: fit-content;

    color: #111827;

    text-decoration: none;

    font-size: 14px;

    font-weight: 700;

    transition:
        color 0.25s ease;
}

.project-card-link i {
    transition:
        transform 0.25s ease;
}

.project-card-link:hover {
    color: #16a34a;
}

.project-card-link:hover i {
    transform: translate(4px, -3px);
}


/* ==========================================
   RESPONSIVE
========================================== */

@media (max-width: 991px) {

    .project-categories-section {
        padding: 80px 0;
    }

    .project-section-header h2 {
        font-size: 38px;
    }

    .project-card-image {
        height: 210px;
    }

}


@media (max-width: 767px) {

    .project-categories-section {
        padding: 24px 0;
    }

    .project-section-header {
        margin-bottom: 40px;
    }

    .project-section-header h2 {
        font-size: 32px;
    }

    .project-section-header p {
        font-size: 15px;
    }

    .project-card-image {
        height: 200px;
    }

    .project-card-body {
        padding: 23px;
    }

}


@media (max-width: 575px) {

    .project-section-header h2 {
        font-size: 28px;
    }

    .project-card-image {
        height: 190px;
    }

}