/* Enhanced Service Box Styles for Why Us Page */
.service-box-items-3 {
    position: relative;
    padding: 40px 35px;
    background: #ffffff;
    border-radius: 0px;
    /* Sharp rectangle corners */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-box-items-3::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #8339ff 0%, #a855f7 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-box-items-3:hover::before {
    transform: scaleX(1);
}

.service-box-items-3:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(131, 57, 255, 0.15);
    background: linear-gradient(135deg, #ffffff 0%, #f8f7ff 100%);
}

.service-box-items-3 .icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #8339ff 0%, #a855f7 100%);
    border-radius: 0px;
    /* Sharp rectangle corners */
    margin-bottom: 25px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.service-box-items-3 .icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.service-box-items-3:hover .icon::before {
    width: 100px;
    height: 100px;
}

.service-box-items-3:hover .icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 30px rgba(131, 57, 255, 0.3);
}

.service-box-items-3 .icon i {
    font-size: 32px;
    color: #ffffff;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.service-box-items-3:hover .icon i {
    transform: scale(1.1);
}

.service-box-items-3 .content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-box-items-3 .content h3 {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.service-box-items-3 .content h3 a {
    color: #1a1a1a;
    text-decoration: none;
    background: linear-gradient(to right, #8339ff 0%, #8339ff 100%);
    background-size: 0% 2px;
    background-repeat: no-repeat;
    background-position: left bottom;
    transition: background-size 0.3s ease;
    display: inline;
    padding-bottom: 2px;
}

.service-box-items-3:hover .content h3 a {
    background-size: 100% 2px;
    color: #8339ff;
}

.service-box-items-3 .content p {
    font-size: 15px;
    line-height: 1.7;
    color: #666666;
    margin: 0;
    flex: 1;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .service-box-items-3 {
        padding: 35px 30px;
    }

    .service-box-items-3 .icon {
        width: 65px;
        height: 65px;
    }

    .service-box-items-3 .icon i {
        font-size: 28px;
    }

    .service-box-items-3 .content h3 {
        font-size: 20px;
    }
}

@media (max-width: 767px) {
    .service-box-items-3 {
        padding: 30px 25px;
    }

    .service-box-items-3 .icon {
        width: 60px;
        height: 60px;
        margin-bottom: 20px;
    }

    .service-box-items-3 .icon i {
        font-size: 26px;
    }

    .service-box-items-3 .content h3 {
        font-size: 19px;
        margin-bottom: 14px;
    }

    .service-box-items-3 .content p {
        font-size: 14px;
    }
}

/* Animation for service boxes on scroll */
@keyframes fadeInUpService {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-box-items-3.animated {
    animation: fadeInUpService 0.6s ease forwards;
}