:root {
    --circle-size: 380px;
    --icon-size: 80px;
    --active-scale: 1.25;
    --active-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    --transition: 0.4s cubic-bezier(.4, 2, .6, 1);
}

.services-section {
    /* background-color: red; */
    padding-top: 40px;
    /* padding: 80px 0; */
    /* background: url("../static/img/bg.webp"); */
    background: linear-gradient(135deg, #f1f1f1, #ecf7ff, #6c88be);
}

.services-section {
    position: relative;
    padding-top: 40px;
}

.services-bg-blob {
    position: absolute;
    top: -150px;
    left: -150px;
    width: 800px;
    height: 800px;
    z-index: 0;
    pointer-events: none;
}

.services-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--secondary-color);
    /* margin-bottom: 20px; */
    padding-bottom: 60px;
    font-family: var(--title-font-family);
    letter-spacing: 2px;
}

.services-details-panel {
    /* background-color: green; */
    display: flex;
    justify-content: center;
    /* align-items: center; */
    /* min-height: 85vh; */
    min-height: 65vh;
    /* gap: 3vw; */
    /* padding: 40px 10px; */
    box-sizing: border-box;
    flex-wrap: wrap;
}

.services-left {
    display: flex;
    /* align-items: center; */
    align-items: flex-start;
    justify-content: center;
    flex: 1 1 340px;
    min-width: 320px;
    /* flex: 800px 900px 840px; */
    /* min-width: 100px; */
    /* background-color: pink; */
}

.service-circle-container {
    position: relative;
    width: var(--circle-size);
    height: var(--circle-size);
    /* min-width: 220px;
    min-height: 220px; */

    min-width: 420px;
    min-height: 420px;
    border-radius: 50%;
    /* background: linear-gradient(135deg, #e3e9f7 60%, #f4f7fa 100%); */
    background: var(--primary-color);

    box-shadow: 0 8px 32px rgba(60, 80, 180, 0.08);
    margin: 0 auto;
    overflow: visible;
    transition: background 0.3s;
}

.service-icon {
    position: absolute;
    width: var(--icon-size);
    height: var(--icon-size);
    /* background: var(--secondary-color); */
    /* background: #f4f7fa; */
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(60, 80, 180, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    /* color: #3a4a8c; */
    /* color: var(--secondary-color); */
    cursor: pointer;
    transition:
        transform var(--transition),
        box-shadow var(--transition),
        z-index 0s;
    z-index: 1;
    border: 3px solid #f4f7fa;
    will-change: transform;
}

.service-icon.active {
    border-color: var(--secondary-color);
}

.service-icon-img {
    width: 40px;
    height: 40px;
    background: none;
}


.service-icon-img.active {
    transform: scale(var(--active-scale)) !important;
    /* box-shadow: var(--active-shadow); */
    z-index: 2;
    /* background: #f7faff; */
    /* color: var(--secondary-color); */
    /* border-color: #dbeafe; */

}

.services-right {
    flex: 1 1 340px;
    min-width: 320px;
    display: flex;
    align-items: center;
    /* align-items: flex-start; */
    justify-content: flex-start;
    /* background-color: grey; */
}

.service-card {
    /* background: #fff; */
    background: var(--secondary-color);
    color: white;
    border-radius: 18px;
    box-shadow: 0 4px 32px rgba(60, 80, 180, 0.10);
    padding: 38px 32px 32px 32px;
    /* max-width: 470px; */

    max-width: 600px;

    min-width: 260px;
    width: 100%;
    transition: box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;

    /* background-color: rebeccapurple; */
    margin-bottom: 40px;
}

.service-card h2 {
    margin: 0 0 8px 0;
    font-size: 2rem;
    /* color: #2e3a6c; */
    color: var(--primary-color);
    font-weight: 700;
    font-family: var(--description-font-family);
}

.service-card p {
    margin: 0 0 18px 0;
    /* color: #4b587c; */
    /* color: var(--primary-color); */
    color: var(--background-color-light);
    font-size: 1.08rem;
    line-height: 1.6;
    font-family: var(--description-font-family);
}

#serviceExploreBtn {
    background: linear-gradient(90deg, #4f8cff 60%, #6ed0fa 100%);
    /* background: var(--primary-color); */
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(60, 80, 180, 0.10);
    transition: background 0.2s, box-shadow 0.2s;
}

#serviceExploreBtn:hover {
    background: linear-gradient(90deg, #3a6be8 60%, #4fc3f7 100%);
    box-shadow: 0 4px 18px rgba(60, 80, 180, 0.13);
}

@media (max-width: 900px) {
    .services-section {
        flex-direction: column;
        gap: 40px;
        min-height: unset;
        padding: 32px 0;
    }

    .services-right,
    .services-left {
        justify-content: center;
    }

    .service-card {
        margin-top: 40px;
        max-width: 98vw;
        min-width: 0;
        padding: 28px 12px 24px 12px;
    }

    .service-card h2 {
        font-size: 1.8rem;
    }

    .service-icon-img {
        width: 20px;
        height: 20px;
    }


    .service-circle-container {
        width: 300px;
        height: 300px;
        min-width: 140px;
        min-height: 140px;
    }

    :root {
        --circle-size: 240px;
        --icon-size: 44px;
    }
}