/* ==========================================
   SERVICES SHOWCASE SECTION
========================================== */

.services-showcase {
    width: 100%;
    position: relative;
    overflow: hidden;
    padding: 75px 0 65px;

    background:
        radial-gradient(circle at 4% 100%, #b8dcff 0%, transparent 28%),
        radial-gradient(circle at 95% 15%, #c4e0ff 0%, transparent 24%),
        #f0f1ff;

    font-family: 'Poppins', sans-serif;
}

.services-showcase-container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;

    position: relative;
    z-index: 2;
}


/* ==========================================
   SECTION HEADING
========================================== */

.services-showcase-heading {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 45px;
    align-items: center;

    margin-bottom: 55px;
}

.services-label {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    color: #3479ff;
    font-size: 13px;
    font-weight: 600;

    margin-bottom: 14px;
}

.services-heading-left h2 {
    max-width: 580px;

    color: #091d45;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -1px;

    margin: 0;
}

.services-heading-left h2 span {
    display: block;
    color: #3479ff;
}

.services-heading-right {
    padding-left: 15px;
}

.services-heading-right p {
    max-width: 430px;

    color: #718098;
    font-size: 14px;
    line-height: 1.8;

    margin: 0;
}


/* ==========================================
   MAIN GRID
========================================== */

.services-showcase-grid {
    display: grid;

    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);

    gap: 35px;
    align-items: center;
}


/* ==========================================
   LEFT IMAGE AREA
========================================== */

.services-visual {
    width: 100%;
    height: 490px;

    position: relative;
    margin: 0 10px;
}


/* Decorative dashed border */

.services-image-decoration {
    position: absolute;

    width: 85%;
    height: 65%;

    left: 20px;
    top: 50px;

    border: 1px dashed #3479ff;
    border-radius: 35px;

    z-index: 0;
}


/* Fixed main image */

.services-main-image {
    position: absolute;

    width: 74%;
    height: 75%;

    top: 0;
    right: 0;

    overflow: hidden;
    border-radius: 20px;

    background: #dce7f5;

    z-index: 1;
}

.services-main-image img {
    width: 100%;
    height: 100%;

    display: block;
    object-fit: cover;

    transition: transform 0.5s ease;
}

.services-main-image:hover img {
    transform: scale(1.04);
}


/* Fixed secondary image */

.services-secondary-image {
    position: absolute;

    width: 74%;
    height: 56%;

    left: 0;
    bottom: 0;

    overflow: hidden;
    border-radius: 20px;

    background: #dce7f5;

    z-index: 2;
}

.services-secondary-image img {
    width: 100%;
    height: 100%;

    display: block;
    object-fit: cover;

    transition: transform 0.5s ease;
}

.services-secondary-image:hover img {
    transform: scale(1.04);
}


/* ==========================================
   EXPERIENCE BADGE
========================================== */

.services-experience-badge {
    position: absolute;

    right: -5px;
    bottom: 0;

    min-width: 220px;
    padding: 17px 23px;

    display: flex;
    align-items: center;
    gap: 13px;

    background: #3479f5;
    color: #ffffff;

    border-radius: 60px;

    z-index: 4;

    box-shadow: 0 10px 30px rgba(52, 121, 245, 0.2);
}

.experience-icon {
    font-size: 31px;
    flex-shrink: 0;
}

.services-experience-badge strong {
    display: block;

    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
}

.services-experience-badge small {
    display: block;

    font-size: 10px;
    font-weight: 500;
}


/* ==========================================
   RIGHT SERVICES LIST
========================================== */

.services-list {
    width: 100%;
    min-width: 0;

    position: relative;

    padding-left: 20px;
    padding-right: 0;

    overflow: visible;
    isolation: isolate;
}


/* Service row */

.service-hover-item {
    position: relative;

    display: flex;
    align-items: center;
    gap: 20px;

    min-height: 105px;
    padding: 16px 5px;

    border-bottom: 1px solid #d8ddf2;

    cursor: pointer;

    z-index: 1;

    transition:
        padding 0.3s ease,
        border-color 0.3s ease;
}

.service-hover-item:last-of-type {
    border-bottom: none;
}


/* Service number */

.service-index {
    min-width: 32px;

    color: #718098;
    font-size: 12px;
    font-weight: 700;

    transition: color 0.3s ease;
}


/* Service text */

.service-details {
    flex: 1;
    min-width: 0;
}

.service-details h3 {
    color: #0a1e43;

    font-size: 20px;
    font-weight: 600;

    margin: 0 0 4px;

    transition: color 0.3s ease;
}

.service-details p {
    max-width: 360px;

    color: #718098;
    font-size: 13px;
    line-height: 1.6;

    margin: 0;
}


/* Hover and active row */

.service-hover-item:hover,
.service-hover-item.active {
    padding-left: 17px;
}

.service-hover-item:hover h3,
.service-hover-item.active h3 {
    color: #3479ff;
}

.service-hover-item:hover .service-index,
.service-hover-item.active .service-index {
    color: #3479ff;
}


/* ==========================================
   SMALL FLOATING HOVER IMAGE
========================================== */

.services-hover-preview {
    position: absolute;

    /*
       Small preview image.
       Change width and height here if needed.
    */
    width: 150px;
    height: 170px;

    top: 0;
    right: 60px;

    overflow: hidden;
    border-radius: 18px;

    background: #dce7f5;

    box-shadow: 0 15px 35px rgba(20, 45, 90, 0.15);

    opacity: 0;
    visibility: hidden;

    transform: translateY(12px) scale(0.96);

    z-index: 10;
    pointer-events: none;

    transition:
        opacity 0.3s ease,
        transform 0.3s ease,
        visibility 0.3s ease,
        top 0.3s ease;
}


/* Show preview */

.services-hover-preview.show {
    opacity: 1;
    visibility: visible;

    transform: translateY(0) scale(1);
}


/* Preview image */

.services-hover-preview img {
    width: 100%;
    height: 100%;

    display: block;
    object-fit: cover;

    opacity: 1;

    transition:
        opacity 0.25s ease,
        transform 0.4s ease;
}


/* Image changing animation */

.services-hover-preview img.image-changing {
    opacity: 0.3;
    transform: scale(1.05);
}


/* ==========================================
   BLUE HOVER ARROW
========================================== */

.services-hover-arrow {
    position: absolute;

    width: 44px;
    height: 44px;

    top: 0;
    right: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #ffffff;
    background: #3479ff;

    border-radius: 50%;

    font-size: 19px;

    opacity: 0;
    visibility: hidden;

    transform: translateY(12px);

    z-index: 11;
    pointer-events: none;

    transition:
        opacity 0.3s ease,
        transform 0.3s ease,
        top 0.3s ease,
        visibility 0.3s ease;
}


/* Show arrow */

.services-hover-arrow.show {
    opacity: 1;
    visibility: visible;

    transform: translateY(0);
}


/* ==========================================
   TABLET
========================================== */

@media (max-width: 991px) {

    .services-showcase {
        padding: 60px 0;
    }

    .services-showcase-heading {
        gap: 25px;
    }

    .services-heading-left h2 {
        font-size: 26px;
    }

    .services-showcase-grid {
        grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
        gap: 15px;
    }

    .services-visual {
        height: 420px;
        margin: 0;
    }

    .services-main-image {
        width: 80%;
        height: 70%;
    }

    .services-secondary-image {
        width: 80%;
        height: 72%;
    }

    .services-experience-badge {
        right: -10px;

        min-width: 175px;
        padding: 13px 16px;
    }

    .services-experience-badge strong {
        font-size: 18px;
    }

    .services-list {
        padding-left: 10px;
    }

    .service-hover-item {
        min-height: 90px;
        gap: 12px;
    }

    .service-details h3 {
        font-size: 17px;
    }

    .service-details p {
        font-size: 12px;
    }

    /* Smaller preview on tablet */
    .services-hover-preview {
        width: 125px;
        height: 150px;

        right: 50px;

        border-radius: 15px;
    }

    .services-hover-arrow {
        width: 38px;
        height: 38px;

        font-size: 16px;
    }
}


/* ==========================================
   MOBILE / TABLET
========================================== */

@media (max-width: 767px) {

    .services-showcase {
        padding: 50px 0;
    }

    .services-showcase-heading {
        grid-template-columns: 1fr;
        gap: 15px;

        margin-bottom: 35px;
    }

    .services-heading-left h2 {
        font-size: 27px;
    }

    .services-heading-right {
        padding-left: 0;
    }

    .services-heading-right p {
        font-size: 13px;
    }

    .services-showcase-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .services-visual {
        width: 100%;
        max-width: 400px;

        height: 420px;

        margin: auto;
    }

    .services-main-image {
        width: 72%;
        height: 75%;
    }

    .services-secondary-image {
        width: 72%;
        height: 76%;
    }

    .services-experience-badge {
        right: 0;
        bottom: -5px;
    }

    .services-list {
        padding-left: 0;
    }

    .service-hover-item {
        min-height: 95px;
        padding: 15px 5px;
    }

    .service-hover-item:hover,
    .service-hover-item.active {
        padding-left: 12px;
    }

    .service-details h3 {
        font-size: 17px;
    }

    .service-details p {
        font-size: 12px;
    }

    /* Compact hover preview on mobile */
    .services-hover-preview {
        width: 100px;
        height: 125px;

        right: 42px;

        border-radius: 12px;
    }

    .services-hover-arrow {
        width: 34px;
        height: 34px;

        font-size: 15px;
    }
}


/* ==========================================
   SMALL MOBILE
========================================== */

@media (max-width: 480px) {

    .services-heading-left h2 {
        font-size: 24px;
    }

    .services-visual {
        height: 340px;
    }

    .services-main-image,
    .services-secondary-image {
        border-radius: 15px;
    }

    .services-experience-badge {
        min-width: 165px;
        padding: 12px 15px;
    }

    .services-experience-badge strong {
        font-size: 17px;
    }

    .experience-icon {
        font-size: 25px;
    }

    .service-hover-item {
        gap: 10px;
    }

    .service-details h3 {
        font-size: 16px;
    }

    .service-details p {
        font-size: 12px;
    }

    .service-index {
        min-width: 25px;
        font-size: 11px;
    }

    .services-hover-preview {
        width: 85px;
        height: 105px;

        right: 38px;
    }

    .services-hover-arrow {
        width: 30px;
        height: 30px;

        font-size: 13px;
    }
}