/* ================= SECTION BACKGROUND ================= */
.vmc-section {
    padding: 70px 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(24,154,240,0.08), transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(16,145,174,0.10), transparent 55%),
        #ffffff;
}

/* ================= GRID ================= */
.vmc-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

/* ================= CARD ================= */
.vmc-card {
    text-align: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.vmc-card:hover {
    transform: translateY(-10px);
}

/* ================= RING ================= */
.vmc-ring {
    position: relative;
    width: min(100%, 300px);
    aspect-ratio: 1 / 1;
    margin: auto;
}

/* Rotating outer arc */
.vmc-ring::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background:
        conic-gradient(
            from -90deg,
            var(--ring-color) 0deg,
            var(--ring-color) 300deg,
            rgba(0,0,0,0.08) 330deg,
            transparent 360deg
        );
    mask:
        radial-gradient(circle, transparent 66%, #000 67%);
    animation: rotateRing 12s linear infinite;
}

/* ================= INNER ================= */
.vmc-inner {
    position: absolute;
    inset: 22px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 18px 36px rgba(0,0,0,0.12);
    padding: 28px 22px;
    z-index: 2;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Glow on hover */
.vmc-card:hover .vmc-inner {
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

/* Inner border animation */
.vmc-inner-border {
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    background:
        conic-gradient(
            from -90deg,
            var(--ring-color) 0deg,
            var(--ring-color) 240deg,
            transparent 360deg
        );
    mask:
        radial-gradient(circle, transparent 92%, #000 93%);
    opacity: 0.85;
    animation: rotateRingReverse 10s linear infinite;
}

/* ================= CONTENT ================= */
.vmc-inner i {
    font-size: 28px;
    color: var(--ring-color);
    margin-bottom: 10px;
    animation: pulseIcon 2.5s infinite;
}

.vmc-inner h4 {
    font-size: 16px;
    font-weight: 700;
    color: #0b2a4a;
    margin-bottom: 8px;
}

.vmc-inner p {
    font-size: 13.5px;
    line-height: 1.6;
    color: #4a5a6a;
    margin-bottom: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
}

/* ================= REFLECTION ================= */
.vmc-arc-reflection {
    position: absolute;
    bottom: -26px;
    left: 50%;
    width: 78%;
    height: 26px;
    transform: translateX(-50%);
    background:
        radial-gradient(ellipse at center, var(--ring-color), transparent 70%);
    opacity: 0.22;
    filter: blur(12px);
}

/* ================= COLORS ================= */
.ring-blue  { --ring-color: #189af0; }
.ring-teal  { --ring-color: #1091ae; }
.ring-indigo{ --ring-color: #4f6fd1; }
.ring-gold  { --ring-color: #f5b400; }

/* ================= ANIMATIONS ================= */

/* Rotate outer ring */
@keyframes rotateRing {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* Reverse rotation */
@keyframes rotateRingReverse {
    from { transform: rotate(360deg); }
    to   { transform: rotate(0deg); }
}

/* Icon pulse */
@keyframes pulseIcon {
    0%,100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* Fade in */
.animate-fade {
    opacity: 0;
    transform: translateY(40px);
    animation: fadeUp 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1200px) {
    .vmc-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 42px 28px;
    }
}

@media (max-width: 767px) {
    .vmc-section {
        padding: 55px 0;
    }

    .vmc-grid {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .vmc-ring {
        width: min(300px, 88vw);
    }

    .vmc-inner {
        inset: 16px;
        padding: 24px 18px;
        overflow-y: auto;
    }

    .vmc-inner p {
        font-size: 12.5px;
        line-height: 1.5;
        max-height: 118px;
        overflow-y: auto;
        padding-right: 3px;
    }
}

@media (max-width: 576px) {
    .vmc-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .vmc-ring {
        width: min(280px, 88vw);
    }
}

/* ================= RESPONSIVE CARD ALTERNATIVE =================
   The circular layout is too restrictive for variable-length content.
   Use clean cards while retaining the existing colour themes and motion. */
.vmc-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
}

.vmc-ring {
    width: 100%;
    height: 100%;
    min-height: 300px;
    aspect-ratio: auto;
    padding: 2px;
    border-radius: 20px;
    background: linear-gradient(145deg, var(--ring-color), rgba(255,255,255,.9) 72%);
    box-shadow: 0 12px 28px rgba(11,42,74,.10);
}

.vmc-ring::before,
.vmc-inner-border,
.vmc-arc-reflection {
    display: none;
}

.vmc-inner {
    position: relative;
    inset: auto;
    width: 100%;
    min-height: 296px;
    height: 100%;
    padding: 32px 26px 28px;
    border-radius: 18px;
    background: #fff;
    box-shadow: none;
    overflow: hidden;
}

.vmc-inner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--ring-color);
}

.vmc-inner i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin-bottom: 18px;
    border-radius: 16px;
    background: color-mix(in srgb, var(--ring-color) 12%, white);
}

.vmc-inner h4 {
    margin-bottom: 12px;
}

.vmc-inner p {
    max-height: none;
    overflow: visible;
}

@media (max-width: 1200px) {
    .vmc-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .vmc-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .vmc-ring,
    .vmc-inner {
        min-height: 0;
    }

    .vmc-inner {
        padding: 28px 24px 26px;
    }

    .vmc-inner p {
        max-height: none;
        overflow: visible;
    }
}
