/* ============================================
   ARS ANIMATION EFFECTS (PREMIUM)
   ============================================ */

/* 1. Neon Pulse Effect */
.effect-neon .ars-section-title {
    animation: neonGlow 2s ease-in-out infinite alternate;
}

@keyframes neonGlow {
    from {
        text-shadow: 0 0 5px rgba(178, 34, 34, 0.2), 0 0 10px rgba(178, 34, 34, 0.2);
    }

    to {
        text-shadow: 0 0 10px rgba(178, 34, 34, 0.8), 0 0 20px rgba(255, 111, 0, 0.6), 0 0 30px rgba(255, 111, 0, 0.4);
    }
}

.effect-neon .highlight {
    animation: neonHighlight 1.5s ease-in-out infinite alternate;
}

@keyframes neonHighlight {
    from {
        filter: brightness(1);
        text-shadow: 0 0 5px rgba(255, 111, 0, 0.4);
    }

    to {
        filter: brightness(1.3);
        text-shadow: 0 0 15px rgba(255, 111, 0, 0.9);
    }
}

/* 2. Western Dust Effect */
.effect-dust .ars-section-title {
    position: relative;
    background: linear-gradient(90deg, #B22222 0%, #8B0000 50%, #B22222 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: dustShimmer 5s linear infinite;
}

.effect-dust .ars-section-title::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.15'/%3E%3C/svg%3E");
    opacity: 0.3;
    pointer-events: none;
    mix-blend-mode: overlay;
    animation: dustGrain 8s steps(10) infinite;
}

@keyframes dustShimmer {
    to {
        background-position: 200% center;
    }
}

@keyframes dustGrain {
    0% {
        transform: translate(0, 0);
    }

    10% {
        transform: translate(-5%, -5%);
    }

    20% {
        transform: translate(-10%, 5%);
    }

    30% {
        transform: translate(5%, -10%);
    }

    40% {
        transform: translate(-5%, 15%);
    }

    50% {
        transform: translate(-10%, 5%);
    }

    60% {
        transform: translate(15%, 0);
    }

    70% {
        transform: translate(0, 10%);
    }

    80% {
        transform: translate(-15%, 0);
    }

    90% {
        transform: translate(10%, 5%);
    }

    100% {
        transform: translate(5%, 0);
    }
}

/* 3. Text Reveal Effect (Premium) */
/* The JS will wrap chars in spans */
.effect-reveal .ars-section-title {
    overflow: hidden;
    line-height: 1.2;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
}

.effect-reveal .ars-section-title .char {
    display: inline-block;
    transform: translateY(110%);
    animation: revealChar 1s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    /* Default delay if JS fails */
    animation-delay: calc(var(--char-index) * 0.05s);
}

@keyframes revealChar {
    0% {
        transform: translateY(110%);
    }

    100% {
        transform: translateY(0);
    }
}