/* 
 * DavinciOpen - Animations
 * Defines keyframes and animation-specific classes.
 */

/* Aurora / Orb Animations */
.light-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.7;
    animation: none !important;
}

.orb-1 {
    width: 50vw;
    height: 50vw;
    background: var(--accent-color);
    top: -10%;
    left: -10%;
}

.orb-2 {
    width: 40vw;
    height: 40vw;
    background: var(--secondary-accent);
    bottom: -10%;
    right: -10%;
    animation-delay: -5s;
}

.orb-3 {
    width: 30vw;
    height: 30vw;
    background: #4a00e0;
    top: 40%;
    left: 40%;
    animation-delay: -10s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

@media (max-width: 768px) {
    .light-orb {
        filter: blur(100px);
    }

    .orb-1 {
        width: 100vw;
        height: 100vw;
        top: -20%;
        left: -20%;
    }

    .orb-2 {
        width: 90vw;
        height: 90vw;
        bottom: -10%;
        right: -10%;
    }

    .orb-3 {
        top: 30%;
        left: 10%;
        opacity: 0.5;
    }
}

/* Marquee Animations */
.marquee-left .marquee-content {
    animation: scroll-left 40s linear infinite;
}

.marquee-right .marquee-content {
    animation: scroll-right 40s linear infinite;
}

@keyframes scroll-left {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }
}

@keyframes scroll-right {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(0);
    }
}

/* Pulse Glow & Gradient Animations */
@keyframes pulse-glow {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(0, 210, 211, 0.5);
    }

    50% {
        transform: scale(1.02);
        box-shadow: 0 0 30px rgba(0, 210, 211, 0.8), 0 0 15px rgba(112, 0, 255, 0.8);
    }
}

@keyframes gradient-move {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes rotate-border {
    100% {
        transform: rotate(360deg);
    }
}

/* Running Light Effect */
@property --angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

@keyframes rotate-light {
    to {
        --angle: 360deg;
    }
}

/* Wheel Spin Hack/Animation if needed provided by JS mostly, but transition is here */
.wheel {
    /* Ease-Out for spin */
}

/* Cyber Flux Loader */
.cyber-flux-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 40px auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.flux-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: var(--accent-color);
    border-bottom-color: var(--secondary-accent);
    box-shadow: 0 0 15px var(--accent-color);
    animation: flux-spin 1.5s linear infinite;
}

.ring-1 {
    width: 100%;
    height: 100%;
    animation-duration: 2s;
    border-width: 3px;
}

.ring-2 {
    width: 70%;
    height: 70%;
    animation-duration: 1.5s;
    animation-direction: reverse;
    border-left-color: #fff;
}

.ring-3 {
    width: 40%;
    height: 40%;
    animation-duration: 1s;
    border-right-color: var(--secondary-accent);
}

.flux-core {
    width: 15px;
    height: 15px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 20px #fff, 0 0 40px var(--accent-color);
    animation: pulse-core 0.5s infinite alternate;
}

@keyframes flux-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulse-core {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.2);
        opacity: 1;
    }
}

.loading-text-glitch {
    text-align: center;
    font-family: 'Courier New', monospace;
    color: var(--secondary-accent);
    margin-top: 30px;
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 4px;
    text-shadow: 2px 0 var(--accent-color), -2px 0 var(--secondary-accent);
    animation: text-glitch 0.3s infinite;
}

@keyframes text-glitch {
    0% {
        transform: translate(0);
    }

    20% {
        transform: translate(-2px, 1px);
    }

    40% {
        transform: translate(2px, -1px);
    }

    60% {
        transform: translate(-1px, 2px);
    }

    80% {
        transform: translate(1px, -2px);
    }

    100% {
        transform: translate(0);
    }
}

@keyframes blink {
    50% {
        opacity: 0.5;
    }
}