:root {
    --rotate-speed: 40;
    --count: 8;
    --easeinout: cubic-bezier(0.37, 0, 0.63, 1);
    --easing: cubic-bezier(0.000, 0.37, 1.000, 0.63);
}

body {
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f0f0f0;
}

.main {
    width: 90%;
    max-width: 1024px;
    margin: auto;
    position: relative;
    aspect-ratio: 1/1;
}

ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    outline: 2px #bd2ed0;
    z-index: 1;
}

ul:hover * {
    -webkit-animation-play-state: paused;
    animation-play-state: paused;
}

li {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    -webkit-animation: rotateCW calc(var(--rotate-speed) * 1s) var(--easing) infinite;
    animation: rotateCW calc(var(--rotate-speed) * 1s) var(--easing) infinite;
}

.card {
    width: 27%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px;
    gap: 8px;
    background: #FFFFFF;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1), 0px 16px 32px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #535062;
    -webkit-animation: rotateCCW calc(var(--rotate-speed) * 1s) var(--easing) infinite;
    animation: rotateCCW calc(var(--rotate-speed) * 1s) var(--easing) infinite;
}

.card-title {
    font-weight: 500;
    font-size: 18px;
    line-height: 150%;
    color: #bd2ed0;
    display: block;
}

svg {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

li:nth-child(2),
li:nth-child(2) .card {
    -webkit-animation-delay: calc((var(--rotate-speed)/var(--count)) * -1s);
    animation-delay: calc((var(--rotate-speed)/var(--count)) * -1s);
}

li:nth-child(3),
li:nth-child(3) .card {
    -webkit-animation-delay: calc((var(--rotate-speed)/var(--count)) * -2s);
    animation-delay: calc((var(--rotate-speed)/var(--count)) * -2s);
}

li:nth-child(4),
li:nth-child(4) .card {
    -webkit-animation-delay: calc((var(--rotate-speed)/var(--count)) * -3s);
    animation-delay: calc((var(--rotate-speed)/var(--count)) * -3s);
}

li:nth-child(5),
li:nth-child(5) .card {
    -webkit-animation-delay: calc((var(--rotate-speed)/var(--count)) * -4s);
    animation-delay: calc((var(--rotate-speed)/var(--count)) * -4s);
}

li:nth-child(6),
li:nth-child(6) .card {
    -webkit-animation-delay: calc((var(--rotate-speed)/var(--count)) * -5s);
    animation-delay: calc((var(--rotate-speed)/var(--count)) * -5s);
}

li:nth-child(7),
li:nth-child(7) .card {
    -webkit-animation-delay: calc((var(--rotate-speed)/var(--count)) * -6s);
    animation-delay: calc((var(--rotate-speed)/var(--count)) * -6s);
}

li:nth-child(8),
li:nth-child(8) .card {
    -webkit-animation-delay: calc((var(--rotate-speed)/var(--count)) * -7s);
    animation-delay: calc((var(--rotate-speed)/var(--count)) * -7s);
}

@-webkit-keyframes rotateCW {
    from {
        transform: translate3d(0px, -50%, -1px) rotate(-45deg);
    }

    to {
        transform: translate3d(0px, -50%, 0px) rotate(-315deg);
    }
}

@keyframes rotateCW {
    from {
        transform: translate3d(0px, -50%, -1px) rotate(-45deg);
    }

    to {
        transform: translate3d(0px, -50%, 0px) rotate(-315deg);
    }
}

@-webkit-keyframes rotateCCW {
    from {
        transform: rotate(45deg);
    }

    to {
        transform: rotate(315deg);
    }
}

@keyframes rotateCCW {
    from {
        transform: rotate(45deg);
    }

    to {
        transform: rotate(315deg);
    }
}

@-webkit-keyframes pulseGlow {
    from {
        background-size: 60%;
    }

    to {
        background-size: 100%;
    }
}

@keyframes pulseGlow {
    from {
        background-size: 60%;
    }

    to {
        background-size: 100%;
    }
}

.center-circle {
    position: absolute;
    width: 22%;
    aspect-ratio: 1 / 1;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: #FFFFFF;
    box-shadow: 0px 18px 36px -18px rgba(44, 5, 46, 0.3), 0px 30px 60px -12px rgba(36, 5, 46, 0.25);
    border-radius: 50%;
}

.second-circle {
    position: absolute;
    width: 40%;
    aspect-ratio: 1 / 1;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: #F5F4FE;
    opacity: 0.5;
    box-shadow: 0px 18px 36px -18px rgba(44, 5, 46, 0.3), 0px 30px 60px -12px rgba(36, 5, 46, 0.25);
    border-radius: 50%;
}

.last-circle {
    position: absolute;
    width: 66%;
    aspect-ratio: 1 / 1;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: #F5F4FE;
    opacity: 0.25;
    box-shadow: 0px 18px 36px -18px rgba(44, 5, 46, 0.3), 0px 30px 60px -12px rgba(36, 5, 46, 0.25);
    border-radius: 50%;
}

.crop {
    -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 1));
    mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 1));
}

.mask {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 50%;
    -webkit-animation: pulseGlow 5s linear infinite alternate;
    animation: pulseGlow 5s linear infinite alternate;
    background-position: 100% 50%;
    background-repeat: no-repeat;
    background-image: radial-gradient(100% 50% at 100% 50%, rgba(202, 26, 229, 0.25) 0%, rgba(202, 26, 229, 0.247904) 11.79%, rgba(201, 26, 229, 0.241896) 21.38%, rgba(200, 26, 229, 0.2324) 29.12%, rgba(199, 26, 229, 0.219837) 35.34%, rgba(197, 26, 229, 0.20463) 40.37%, rgba(195, 26, 229, 0.1872) 44.56%, rgba(193, 26, 229, 0.16797) 48.24%, rgba(190, 26, 229, 0.147363) 51.76%, rgba(188, 26, 229, 0.1258) 55.44%, rgba(186, 26, 229, 0.103704) 59.63%, rgba(184, 26, 229, 0.0814963) 64.66%, rgba(182, 26, 229, 0.0596) 70.88%, rgba(180, 26, 229, 0.038437) 78.62%, rgba(177, 26, 229, 0.0184296) 88.21%, rgba(174, 26, 229, 0) 100%);
}

.mask:after {
    content: "";
    position: absolute;
    width: 1px;
    height: 100%;
    right: 0;
    display: block;
    background-image: linear-gradient(180deg, rgba(202, 26, 229, 0) 0%, #bd2ed0 50%, rgba(202, 26, 229, 0) 100%);
}

.message p {
    font-size: 6vw;
    font-weight: 600;
    margin: 0 25px;
}
/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    .main {
        display: none;
    }

    .message {
        display: block;
    }
}

@media (min-width: 769px) {
    .message {
        display: none;
    }
}