/* Projects Section */
.projects-section {
    background-color: #E8F3F2;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    /* Hide the slider bleed on the left if any, and bottom */
}

.projects-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--tj-space-edge);
}

/* Heading */
.projects-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 70px;
    gap: 40px;
}

.heading-left .sub-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #1F9E8B;
    margin-bottom: 15px;
}

.heading-left .sub-title svg {
    color: #1F9E8B;
}

.heading-left .sec-title {
    font-size: 56px;
    font-weight: 600;
    color: #0b1f1e;
    line-height: 1.1;
    max-width: 600px;
    letter-spacing: -0.02em;
}

.heading-left .sec-title>span {
    display: block;
}

.heading-right {
    flex-shrink: 0;
}

/* Explore More Button */
.tj-primary-btn {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 12px 12px 12px 30px;
    background: #26BAA4;
    color: #fff;
    border-radius: 100px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(38, 186, 164, 0.2);
}

.tj-primary-btn:hover {
    background: #1F9E8B;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(38, 186, 164, 0.3);
}

.tj-primary-btn .btn-icon {
    width: 44px;
    height: 44px;
    background: #0b1f1e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.tj-primary-btn:hover .btn-icon {
    transform: rotate(45deg);
}

/* Project Slider */
.projects-slider {
    margin-top: 50px;
    padding-left: calc((100% - 1400px) / 2 + var(--tj-space-edge));
    overflow: visible;
}

@media (max-width: 1400px) {
    .projects-slider {
        padding-left: var(--tj-space-edge);
    }
}

.projects-slider .splide__track {
    overflow: visible;
}

/* Project Item */
.project-item {
    display: flex;
    gap: 45px;
    background: #ffffff;
    border-radius: 30px;
    padding: 24px;
    margin: 15px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-item:hover {
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.08);
    transform: translateY(-8px);
}

/* Project Image Wrap */
.project-img {
    flex: 0 0 45%;
    max-width: 45%;
    overflow: hidden;
    border-radius: 20px;
    position: relative;
    background: #f5f8f8;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-item:hover .project-img img {
    transform: scale(1.08);
}

/* Percentage Circle (Extra Detail) */
.project-percentage {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: #0b1f1e;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.project-percentage svg {
    position: absolute;
    inset: 4px;
    width: 42px;
    height: 42px;
    transform: rotate(-90deg);
}

.project-percentage circle {
    fill: none;
    stroke-width: 2;
}

.project-percentage .bg {
    stroke: #eee;
}

.project-percentage .progress {
    stroke: #26BAA4;
    stroke-linecap: round;
}

/* Project Content */
.project-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 40px;
    align-items: flex-start;
}

.project-category {
    display: inline-block;
    padding: 6px 18px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    margin-bottom: 25px;
    width: fit-content;
    text-transform: capitalize;
}

.project-title {
    font-size: 42px;
    font-weight: 700;
    color: #0b1f1e;
    margin-bottom: 15px;
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.project-desc {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 35px;
    max-width: 450px;
}

.project-item .tj-primary-btn.btn-sm {
    padding: 10px 10px 10px 24px;
    font-size: 14px;
}

.project-item .tj-primary-btn.btn-sm .btn-icon {
    width: 38px;
    height: 38px;
}

/* Splide Pagination */
.projects-slider .splide__pagination {
    bottom: -50px;
}

.projects-slider .splide__pagination__page {
    width: 10px;
    height: 10px;
    background: #ccc;
    opacity: 1;
    transition: all 0.3s ease;
}

.projects-slider .splide__pagination__page.is-active {
    background: #26BAA4;
    transform: scale(1.2);
}

/* Responsive */
@media (max-width: 1400px) {
    .heading-left .sec-title {
        font-size: 48px;
    }

    .project-title {
        font-size: 36px;
    }
}

@media (max-width: 1199px) {
    .project-item {
        gap: 30px;
        padding: 20px;
    }

    .project-title {
        font-size: 32px;
    }
}

@media (max-width: 991px) {
    .projects-heading {
        margin-bottom: 50px;
    }

    .heading-left .sec-title {
        font-size: 40px;
    }

    .project-item {
        flex-direction: column;
        padding: 20px;
    }

    .project-img {
        flex: none;
        max-width: 100%;
        min-height: 300px;
    }

    .project-content {
        padding-right: 0;
        padding-top: 10px;
    }
}

@media (max-width: 767px) {
    .projects-section {
        padding: 80px 0;
        margin: 10px;
        border-radius: 25px;
    }

    .projects-heading {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .heading-left .sec-title {
        font-size: 32px;
    }

    .project-title {
        font-size: 28px;
    }

    .project-desc {
        font-size: 15px;
    }
}