@media (max-width: 1300px) and (min-width: 1200px) {
    .carousel-item img {
        animation: kenburns-mid 40s ease-in-out infinite;
    }

    @keyframes kenburns-mid {
        0% {
            transform: scale(1) translate(0, 0);
        }

        25% {
            transform: scale(1.1) translate(10px, 5px);
        }

        50% {
            transform: scale(1.15) translate(12px, 8px);
        }

        75% {
            transform: scale(1.1) translate(10px, 5px);
        }

        100% {
            transform: scale(1) translate(0, 0);
        }
    }
}

.carousel-item img {
    animation: kenburns 30s ease-in-out infinite;
}

@keyframes kenburns {
    0% {
        transform: scale(1) translate(0, 0);
    }

    25% {
        transform: scale(1.15) translate(15px, 10px);
    }

    50% {
        transform: scale(1.2) translate(20px, 15px);
    }

    75% {
        transform: scale(1.15) translate(15px, 10px);
    }

    100% {
        transform: scale(1) translate(0, 0);
    }
}

/* Gradient Borders */
.gradient-bg-1 { border-left: 5px solid #6366F1; }
.gradient-bg-2 { border-left: 5px solid #F97316; }
.gradient-bg-3 { border-left: 5px solid #22C55E; }
.gradient-bg-4 { border-left: 5px solid #3B82F6; }
.gradient-bg-5 { border-left: 5px solid #EC4899; }
.gradient-bg-6 { border-left: 5px solid #F59E0B; }

.service-card {
    height: 300px;
    padding: 30px;
    margin: 10px;
    position: relative;
    border-radius: 12px;
}

/* Background Image */
.service-card.bg-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    position: relative;
}

/* Dark Overlay for readability */
.service-card.bg-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(26, 25, 25, 0.45); 
    z-index: 1;
}

/* Particles stay low */
.particles-container {
    position: absolute;
    inset: 0;
    z-index: 2;
}

/* Text wrapper */
.content-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    text-align: center;
    width: 100%;
    padding: 0 20px;
}


/* Icons and Text */
.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
}

.service-description {
    color: #ddd;
    font-size: 1rem;
    line-height: 1.5;
}
