﻿
/* SMART ERP Orbit Animation - Isolated CSS */

.features-side {
    flex: 2;
    min-width: 0;
    background-image: none !important;
    background-color: #d8f1f4;
    position: relative;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

    /* Orbit Wrapper */
    .features-side .orbit-wrapper {
        position: relative;
        width: 540px;
        height: 540px;
        flex: 0 0 540px;
        margin: 0 auto;
        top: -15px;
        left: 0;
    }

    /* Three Inner Rings */
    .features-side .ring {
        position: absolute;
        top: 50%;
        left: 50%;
        border-radius: 50%;
        transform: translate(-50%, -50%);
        pointer-events: none;
    }

    .features-side .ring-1 {
        width: 270px;
        height: 270px;
        border: 2px solid rgba(5, 198, 107, .20);
        animation: smartErpRingBreath 6.6667s ease-in-out infinite;
    }

    .features-side .ring-2 {
        width: 370px;
        height: 370px;
        border: 2px solid rgba(16, 196, 232, .18);
        animation: smartErpRingBreath 8s .4s ease-in-out infinite;
    }

    .features-side .ring-3 {
        width: 470px;
        height: 470px;
        border: 2px solid rgba(11, 83, 100, .16);
        animation: smartErpRingBreath 9.3333s .8s ease-in-out infinite;
    }

@keyframes smartErpRingBreath {
    0%, 100% {
        opacity: .5;
    }

    50% {
        opacity: 1;
    }
}

/* Center Logo */
.features-side .center-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: #fff;
    border-radius: 50%;
    border: 6px solid #fff;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: center;
    isolation: isolate;
    overflow: visible;
    box-shadow: 0 8px 24px rgba(20, 43, 69, .12);
}

    /* Glow appears outside the logo, not over its image */
    .features-side .center-core::before {
        content: "";
        position: absolute;
        inset: -6px;
        z-index: -1;
        border-radius: 50%;
        pointer-events: none;
        background: transparent;
        animation: smartErpHeartbeatLight 3.4667s ease-in-out infinite;
    }

.features-side .smart-erp-mark {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

/* Dashboard color heartbeat - 0.75x speed */
@keyframes smartErpHeartbeatLight {
    0%, 100% {
        box-shadow: 0 0 20px rgba(5,198,107,.55), 0 0 40px rgba(5,198,107,.30), 0 0 70px rgba(5,198,107,.15), 0 0 0 8px rgba(255,255,255,.9);
    }

    25% {
        box-shadow: 0 0 28px rgba(245,50,145,.60), 0 0 55px rgba(245,50,145,.35), 0 0 90px rgba(245,50,145,.18), 0 0 0 8px rgba(255,255,255,.9);
    }

    50% {
        box-shadow: 0 0 32px rgba(255,191,8,.65), 0 0 65px rgba(255,191,8,.38), 0 0 100px rgba(255,191,8,.20), 0 0 0 8px rgba(255,255,255,.9);
    }

    75% {
        box-shadow: 0 0 26px rgba(16,196,232,.60), 0 0 50px rgba(16,196,232,.32), 0 0 85px rgba(16,196,232,.16), 0 0 0 8px rgba(255,255,255,.9);
    }
}

/* Moving Module Groups */
.features-side .module-group {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    z-index: 20;
    will-change: transform;
}

/* Circular Module Icons */
.features-side .module-circle {
    position: absolute;
    width: 70px;
    height: 70px;
    margin: -35px 0 0 -35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.97);
    border: 2.5px solid var(--module-color);
    box-shadow: 0 6px 18px rgba(20,43,69,.10), 0 0 0 5px rgba(255,255,255,.60);
    transition: box-shadow .3s ease;
}

    .features-side .module-circle:hover {
        box-shadow: 0 8px 24px rgba(20,43,69,.16), 0 0 0 5px rgba(255,255,255,.8);
    }

.features-side .module-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--module-color);
}

    .features-side .module-icon svg {
        width: 100%;
        height: 100%;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

/* Module Labels */
.features-side .module-label {
    position: absolute;
    top: 45px;
    left: -68px;
    width: 136px;
    color: #334155;
    font-size: 11.5px;
    font-weight: 600;
    white-space: pre-line;
    text-align: center;
    line-height: 1.3;
    pointer-events: none;
    text-shadow: 0 1px 3px rgba(255,255,255,.95);
}

/* Dashboard Colors */
.features-side .c-green {
    --module-color: #05c66b;
}

.features-side .c-pink {
    --module-color: #f53291;
}

.features-side .c-yellow {
    --module-color: #ffbf08;
}

.features-side .c-cyan {
    --module-color: #10c4e8;
}

.features-side .c-orange {
    --module-color: #f36f3b;
}

.features-side .c-blue {
    --module-color: #3b82f6;
}

.features-side .c-purple {
    --module-color: #a855f7;
}

.features-side .c-red {
    --module-color: #ef4444;
}

.features-side .c-teal {
    --module-color: #14b8a6;
}

/* Responsive */
@media (max-width: 992px) {
    .features-side {
        min-height: 390px;
        padding: 0;
        overflow: visible;
    }

        .features-side .orbit-wrapper {
            transform: scale(.70);
            transform-origin: center center;
            flex-basis: 540px;
        }
}

@media (max-width: 600px) {
    .features-side {
        min-height: 320px;
    }

        .features-side .orbit-wrapper {
            transform: scale(.56);
            transform-origin: center center;
        }
}

/* Respect reduced-motion accessibility setting */
@media (prefers-reduced-motion: reduce) {
    .features-side .center-core::before,
    .features-side .ring-1,
    .features-side .ring-2,
    .features-side .ring-3 {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
