/* =========================================
   SERVICES SECTION
========================================= */

.services-section {
    width: 100%;
    padding: 100px 0;
    overflow: hidden;
}

.services-container {
    width: min(1200px, 90%);
    margin: auto;
}


/* =========================================
   HEADER
========================================= */

.services-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;

    gap: 50px;

    margin-bottom: 55px;
}

.section-tag {
    display: inline-block;

    margin-bottom: 14px;

    font-size: 13px;
    font-weight: 600;

    text-transform: uppercase;

    letter-spacing: 1.5px;

    color: #777;
}

.services-header h2 {
    margin: 0;

    max-width: 600px;

    font-size: clamp(36px, 5vw, 58px);

    line-height: 1.08;

    font-weight: 700;

    color: #151515;
}

.services-header h2 span {
    color: #777;
}

.services-header>p {
    max-width: 450px;

    margin: 0;

    color: #666;

    font-size: 16px;

    line-height: 1.7;
}


/* =========================================
   SLIDER
========================================= */

.services-slider {
    position: relative;

    overflow: hidden;
}

.services-track {
    display: flex;

    gap: 25px;

    transition:
        transform 0.7s cubic-bezier(0.77,
            0,
            0.175,
            1);
}


/* =========================================
   CARD
========================================= */

.service-card {
    flex: 0 0 calc((100% - 50px) / 3);

    min-width: 0;

    background: #fff;

    border-radius: 8px;

    overflow: hidden;

    box-shadow:
        0 10px 35px rgba(0, 0, 0, 0.06);

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}

.service-card:hover {
    transform: translateY(-7px);

    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.11);
}


/* =========================================
   IMAGE
========================================= */

.service-image {
    position: relative;

    width: 100%;

    height: 280px;

    overflow: hidden;

    background: #ddd;
}

.service-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 0.6s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.07);
}


/* Number */

.service-number {
    position: absolute;

    top: 18px;
    right: 18px;

    width: 42px;
    height: 42px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.9);

    color: #222;

    font-size: 12px;

    font-weight: 700;

    backdrop-filter: blur(5px);
}


/* =========================================
   CONTENT
========================================= */

.service-content {
    padding: 28px 28px 30px;
}

.service-category {
    display: block;

    margin-bottom: 10px;

    font-size: 12px;

    font-weight: 600;

    text-transform: uppercase;

    letter-spacing: 1px;

    color: #888;
}

.service-content h3 {
    margin: 0 0 12px;

    font-size: 24px;

    line-height: 1.2;

    color: #171717;
}

.service-content p {
    margin: 0 0 22px;

    font-size: 14px;

    line-height: 1.7;

    color: #707070;
}


/* =========================================
   LINK
========================================= */

.service-link {
    display: inline-flex;

    align-items: center;

    gap: 10px;

    color: #171717;

    text-decoration: none;

    font-size: 14px;

    font-weight: 600;
}

.service-link span {
    font-size: 19px;

    transition:
        transform 0.3s ease;
}

.service-link:hover span {
    transform: translateX(5px);
}


/* =========================================
   CONTROLS
========================================= */

.services-controls {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 18px;

    margin-top: 40px;
}

.services-prev,
.services-next {
    width: 48px;
    height: 48px;

    border: 1px solid #ddd;

    border-radius: 50%;

    background: #fff;

    color: #222;

    cursor: pointer;

    font-size: 18px;

    transition: 0.3s ease;
}

.services-prev:hover,
.services-next:hover {
    background: #222;

    color: #fff;

    border-color: #222;
}


/* =========================================
   PROGRESS
========================================= */

.services-progress {
    width: 100px;

    height: 2px;

    background: #ddd;

    overflow: hidden;
}

.services-progress span {
    display: block;

    width: 33.33%;

    height: 100%;

    background: #222;

    transition:
        width 0.5s ease;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 992px) {

    .services-section {
        padding: 80px 0;
    }

    .services-header {
        align-items: flex-start;

        flex-direction: column;

        gap: 20px;
    }

    .service-card {
        flex: 0 0 calc((100% - 25px) / 2);
    }

    .service-image {
        height: 260px;
    }

    .services-progress {
        width: 80px;
    }
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 600px) {

    .services-section {
        padding: 65px 0;
    }

    .services-container {
        width: 88%;
    }

    .services-header {
        margin-bottom: 35px;
    }

    .services-header h2 {
        font-size: 38px;
    }

    .services-header>p {
        font-size: 14px;
    }

    .service-card {
        flex: 0 0 100%;
    }

    .service-image {
        height: 250px;
    }

    .service-content {
        padding: 24px;
    }

    .service-content h3 {
        font-size: 22px;
    }

}