/* SECTION BACKGROUND & TITLES */

.services-section {
    position: relative;
    background: linear-gradient(130deg, rgb(255 255 255) 0%, rgb(255 255 255) 69%, rgb(255 255 255) 60%, #007370 60%, #00bf93 100%);
    color: #ffffff;
    overflow: hidden;
}


.services-section::after {
    content: "";
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.06), transparent 70%);
    pointer-events: none;
}

.services-section .container {
    position: relative;
    z-index: 2;
}


.section-title {
    font-weight: 700;
    font-size: 2.1rem;
    color: #ffffff;
}

/* SERVICE CARDS - WHITE ON DARK BG */

.service-card {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    position: relative;
    transition: transform 0.45s ease, box-shadow 0.45s ease, border-color 0.45s ease;
}

.service-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 122, 60, 0.12), transparent 60%);
    opacity: 0;
    transition: opacity 0.45s ease;
    pointer-events: none;
}

.service-card:hover {
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.55);
    border-color: rgba(255, 122, 60, 0.7);
}

.service-card:hover::before {
    opacity: 1;
}

/* IMAGE AREA */

.service-image-wrapper {
    overflow: hidden;
    max-height: 210px;
}

.service-image-wrapper img {
    width: 100%;
    display: block;
    transform: scale(1.02);
    transition: transform 0.5s ease;
}

.service-card:hover .service-image-wrapper img {
    transform: scale(1.08);
}

/* CONTENT */

.service-content {
    padding: 20px 22px 22px;
}

.service-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #14161c;
    margin-bottom: 10px;
}

.service-text {
    font-size: 0.9rem;
    color: rgba(26, 30, 37, 0.78);
    margin-bottom: 18px;
}

/* READ MORE LINK */

.service-link {
    display: inline-flex;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #ff7a3c;
    text-decoration: none;
    position: relative;
}

.service-link span:first-child {
    position: relative;
}

.service-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff7a3c, #ffb15a);
    transition: width 0.3s ease;
}

.service-link-icon {
    display: inline-block;
    margin-left: 8px;
    font-size: 1.1rem;
    transform: translateX(0);
    transition: transform 0.3s ease;
}

.service-link:hover {
    color: #ffb15a;
}

.service-link:hover::after {
    width: 100%;
}

.service-link:hover .service-link-icon {
    transform: translateX(4px);
}

/* CAROUSEL CONTROLS */

#servicesCarousel .carousel-control-prev,
#servicesCarousel .carousel-control-next,
#servicesCarouselMobile .carousel-control-prev,
#servicesCarouselMobile .carousel-control-next {
    width: 48px;
}

.carousel-control-custom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-size: 1.5rem;
    background: rgba(0, 0, 0, 0.4);
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

#servicesCarousel .carousel-control-prev:hover .carousel-control-custom,
#servicesCarousel .carousel-control-next:hover .carousel-control-custom,
#servicesCarouselMobile .carousel-control-prev:hover .carousel-control-custom,
#servicesCarouselMobile .carousel-control-next:hover .carousel-control-custom {
    background: linear-gradient(135deg, #ff7a3c, #ffb15a);
    border-color: transparent;
    transform: translateY(-2px);
}

/* INDICATORS */

#servicesCarousel .carousel-indicators,
#servicesCarouselMobile .carousel-indicators {
    bottom: -30px;
}

#servicesCarousel .carousel-indicators li,
#servicesCarouselMobile .carousel-indicators li {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    border: none;
    margin: 0 4px;
}

#servicesCarousel .carousel-indicators .active,
#servicesCarouselMobile .carousel-indicators .active {
    background: #ff7a3c;
}

/* SLIDE-IN ANIMATION FOR ACTIVE SLIDE (DESKTOP) */

#servicesCarousel .carousel-item.active .service-card {
    animation: serviceCardIn 0.65s ease forwards;
}

@keyframes serviceCardIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* RESPONSIVE */

@media (max-width: 991.98px) {
    .section-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 767.98px) {
    .services-section {
        padding-bottom: 4rem;
        /* space for indicators */
    }

    .service-card {
        max-width: 360px;
        margin-left: auto;
        margin-right: auto;
    }

    #servicesCarouselMobile .carousel-indicators {
        bottom: -20px;
    }
}