
.services {

    text-align: center;
    overflow-x: auto;
}

.services__title {
    font-size: 38px;
    font-weight: 700;
    color: #333;
    letter-spacing: 1px;
}

.services__subtitle {
    font-size: 16px;
    color: #666;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 50px;
}

.services__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding-bottom: 10px;
    overflow-x: auto;
    height: auto;
    margin-top: 40px;
}

.service-item {
    background: linear-gradient(135deg, #0f17f1, #ff6600);
    padding: 20px;
    border-radius: 12px;
    position: relative;
    width: 100%;
    max-width: 260px;
    text-align: center;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.5s ease-out;
}

.service-item::before {
    content: "";
    position: absolute;
    top: -20px;
    left: -25px;
    width: 50%;
    height: 50%;
    background-color: rgb(94, 19, 141);;
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    z-index: -1;
    transition: all 0.3s ease;
}

.service-icon {
    font-size: 35px;
    color: #fff;
    margin-bottom: 15px;
    transition: transform 0.3s ease, color 0.3s ease;
    width: 50px;
    height: 50px;

    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-title {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.service-item ul {
    list-style: none;
    padding-left: 0;
    color: #fff;
    font-size: 12px;
    margin-bottom: 15px;
}

.service-item ul li {
    margin-bottom: 8px;
}

.service-item:hover {
    transform: scale(1);
    opacity: 1;
    box-shadow: 0 18px 45px rgba(0, 123, 255, 0.2);
}

.service-item:hover .service-icon {
    color: #ffcc00;
    transform: translateY(-5px);
}

.service-item:hover .service-title {
    color: #ffcc00;
    transform: translateY(-5px);
}

.service-item:hover ul li {
    color: #ffffff;
}

.service-item:hover::before {
    top: -50px;
    left: -50px;
    width: 60%;
    height: 60%;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-item:nth-child(1) {
    animation: fadeInUp 0.6s ease-out forwards;
}

.service-item:nth-child(2) {
    animation: fadeInUp 0.7s ease-out forwards;
}

.service-item:nth-child(3) {
    animation: fadeInUp 0.8s ease-out forwards;
}

.service-item:nth-child(4) {
    animation: fadeInUp 0.9s ease-out forwards;
}

@media (max-width: 768px) {
    .services__title {
        font-size: 26px;
    }

    .services__subtitle {
        font-size: 13px;
    }

    .service-item {
        padding: 18px;
    }

    .service-item .service-title {
        font-size: 18px;
    }

    .service-item .service-icon {
        font-size: 30px;
    }

    .services__grid {
        flex-direction: row;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .services__title {
        font-size: 22px;
    }

    .services__subtitle {
        font-size: 12px;
    }

    .services__grid {
        flex-direction: column;
        align-items: center;
    }
}
