


.rico-services-box {
    position: relative;
    overflow: hidden;
    padding: 10px;
}

.rico-badge {
    background-color: var(--rico-color-13);
    color: var(--rico-color-1);
    padding: 8px 16px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 13px;
}

.rico-badge span {
  color: var(--rico-color-1);
  font-weight: 400;
}

.highlight-text {
    color: var(--rico-color-1);
    position: relative;
    display: inline-block;
}


.services-desc {
    font-size: 16px;
    color: var(--rico-color-5);
}

.service-card {
    background-color: #fff;
    padding: 15px;
    border-radius: 15px;
    border: 1px solid var(--rico-color-border);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: default;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    width: 40px;
    height: 40px;
    background-color: var(--rico-color-3);
    color: var(--rico-color-1);
    border-radius: 10px;
    transition: transform 0.3s ease;
    margin-left: 14px;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    background-color: var(--rico-color-1);
    color: #fff;
}

.service-title {
    font-weight: 600;
    font-size: 15px;
    color: var(--rico-color-7);
}

.service-sub {
    font-size: 12px;
    color: var(--rico-color-11);
    margin-top: 4px;
}

.animated-visual-box {
    padding: 20px;
    min-height: 380px;
    perspective: 1000px;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.blob-bg {
    position: absolute;
    width: 280px;
    height: 280px;
    background: linear-gradient(135deg, var(--rico-color-13) 0%, var(--rico-color-9) 100%);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    animation: morphBlob 8s ease-in-out infinite alternate;
    z-index: 0;
}

@keyframes morphBlob {
    0% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; transform: rotate(0deg) scale(1); }
    100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; transform: rotate(15deg) scale(1.05); }
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 20px;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    border: 1px solid #fff;
    min-width: 230px;
    backdrop-filter: blur(10px);
    animation: floatY 6s ease-in-out infinite;
}

.float-1 { top: 10%; right: 5%; animation-delay: 0s; }
.float-2 { top: 45%; left: 0%; animation-delay: 2s; }
.float-3 { bottom: 10%; right: 15%; animation-delay: 4s; }

@keyframes floatY {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

.icon-circle {
    width: 42px;
    height: 42px;
    border-radius: 10px;
}

.icon-blue { background: var(--rico-color-1); }
.icon-dark { background: var(--rico-color-2); }
.icon-gray { background: var(--rico-color-11); }

.card-title {
    font-weight: 800;
    font-size: 15px;
    color: var(--rico-color-6);
}

.card-sub {
    font-size: 12px;
    color: var(--rico-color-11);
    margin-top: 3px;
}

@media screen and (max-width: 1024px) {
    .rico-services-box {
        gap: 20px;
    }

    .rico-services-box .title-right {
        font-size: 30px !important;
        line-height: 1.5 !important;
    }

    .services-desc {
        font-size: 14px;
        line-height: 1.5;
    }

    /* تبدیل باکس به اسلایدر افقی */
    .animated-visual-box {
        min-height: auto;
        display: flex;
        justify-content: flex-start;
        align-items: stretch;
        gap: 15px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding: 0;
    }

    /* مخفی کردن اسکرول‌بار در کروم و سافاری */
    .animated-visual-box::-webkit-scrollbar {
        display: none;
    }

    /* مخفی کردن قطعی بک‌گراند آبی در موبایل */
    .blob-bg {
        display: none !important;
    }

    /* ریست کردن استایل کارت‌ها برای اسلایدر */
    .floating-card {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        animation: none !important;
        transform: none !important;
        width: 76% !important; /* برای اینکه لبه کارت بعدی مشخص باشد */
        min-width: 240px;
        flex: 0 0 auto;
        scroll-snap-align: center;
        margin: 0;
        box-shadow: none;
        border: 1px solid var(--rico-color-10);
    }

    .service-card {
        padding: 12px;
    }

    .service-icon {
        width: 36px;
        height: 36px;
        margin-left: 10px;
    }

    .service-icon svg {
        width: 18px;
    }
}