/* Mobile Services Toggle Functionality */
@media (max-width: 767px) {

    /* Initially hide cards beyond the 3rd one on mobile */
    .services .row>div:nth-child(n+4),
    .additional-services .row>div:nth-child(n+4) {
        display: none;
    }

    /* Show all when expanded */
    .services.expanded .row>div,
    .additional-services.expanded .row>div {
        display: block;
    }
}

/* Show More Button */
.show-more-btn {
    display: none;
    margin: 40px auto 0;
    padding: 15px 40px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(46, 208, 109, 0.3);
    position: relative;
    overflow: hidden;
}

.show-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(46, 208, 109, 0.4);
}

.show-more-btn:active {
    transform: translateY(0);
}

.show-more-btn i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.show-more-btn.rotate-icon i {
    transform: rotate(180deg);
}

/* Only show button on mobile devices */
@media (max-width: 767px) {
    .show-more-btn {
        display: block;
    }
}

/* Animation for revealing cards */
@media (max-width: 767px) {

    .single-service,
    .additional-service-card {
        animation: fadeInUp 0.4s ease forwards;
        opacity: 0;
    }

    .row>div:nth-child(-n+3) .single-service,
    .row>div:nth-child(-n+3) .additional-service-card {
        opacity: 1;
    }

    .services.expanded .single-service,
    .additional-services.expanded .single-service {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}