@property --rotate {
    syntax: "<angle>";
    initial-value: 132deg;
    inherits: false;
}

:root {
    --card-height: 400px;
    /* Adjusted height */
    --card-width: 300px;
    /* Adjusted width */
}

/* Swiper Container Adjustments */
.services-swiper {
    width: 100%;
    padding: 50px 20px;
    overflow: hidden;
    position: relative;
}

.swiper-wrapper {
    align-items: center;
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    /* Allow Swiper to manage width based on content */
    opacity: 1;
    /* Remove fade logic for simplicity */
    transition: opacity 0.3s ease;
}

/* On mobile, maybe only active is opaque? User wants 3 visible generally, but on mobile 1. */
@media (max-width: 768px) {

    .swiper-slide-prev,
    .swiper-slide-next {
        opacity: 0.4;
        /* Reset neighbors to faded on small screens if we only want 1 focused */
    }

    .swiper-slide-active {
        opacity: 1;
    }
}

/* User Provided Card Styles with Adjustments */
.magic-card {
    background: #191c29;
    width: var(--card-width);
    height: var(--card-height);
    padding: 3px;
    position: relative;
    border-radius: 6px;
    justify-content: center;
    align-items: center;
    text-align: center;
    display: flex;
    flex-direction: column;
    font-size: 1rem;
    color: white;
    cursor: pointer;
    font-family: var(--font-en);
    /* margin: 20px; Removed to prevent alignment issues */
}

.magic-card-content {
    height: 100%;
    width: 100%;
    background: #191c29;
    border-radius: 6px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2;
    position: relative;
}

/* Hover effects */
.magic-card:hover:before,
.magic-card:hover:after {
    animation: none;
    opacity: 0;
}

/* Making the gradient border visible */
.magic-card::before {
    content: "";
    width: 104%;
    height: 102%;
    border-radius: 8px;
    background-image: linear-gradient(var(--rotate), #ff6b6b, #ffb347 43%, #ffcc33);
    position: absolute;
    z-index: -1;
    top: -1%;
    left: -2%;
    animation: spin 2.5s linear infinite;
}

.magic-card::after {
    position: absolute;
    content: "";
    top: calc(var(--card-height) / 6);
    left: 0;
    right: 0;
    z-index: -1;
    height: 100%;
    width: 100%;
    margin: 0 auto;
    transform: scale(0.8);
    filter: blur(calc(var(--card-height) / 6));
    background-image: linear-gradient(var(--rotate), #ff6b6b, #ffb347 43%, #ffcc33);
    opacity: 1;
    transition: opacity .5s;
    animation: spin 2.5s linear infinite;
}

@keyframes spin {
    0% {
        --rotate: 0deg;
    }

    100% {
        --rotate: 360deg;
    }
}

/* Inner content styling */
.magic-card h3 {
    margin-top: 15px;
    margin-bottom: 10px;
    font-size: 1.5rem;
    color: #ffd700;
}

.magic-card p {
    font-size: 0.95rem;
    color: rgb(200, 200, 200);
    line-height: 1.6;
}


.magic-card .service-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.magic-card .service-icon i {
    font-size: 3rem;
    color: #3c67e3;
}

.magic-card .service-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
    /* Optional rounded corners */
}


/* Swiper Navigation */
.swiper-button-next,
.swiper-button-prev {
    color: #ff9f43;
    background: rgba(255, 255, 255, 0.8);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 20px;
    font-weight: bold;
}