/* ═══ Spiritual Motion: Scroll + Mouse Tracking ═══ */

/* ── Scroll progress bar (auto-injected) ── */
#sacred-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    width: 0%;
    background: linear-gradient(90deg, #800000, #FF9933, #D4AF37);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
    z-index: 9999;
}

/* ── Scroll reveal (works with your existing .fade-up) ── */
.fade-up,
[data-animate] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-animate="scale-in"] {
    transform: scale(0.85);
}

[data-animate="slide-left"] {
    transform: translateX(-60px);
}

[data-animate="slide-right"] {
    transform: translateX(60px);
}

.fade-up.visible,
[data-animate].visible {
    opacity: 1;
    transform: none;
}

[data-delay="100"] {
    transition-delay: .1s;
}

[data-delay="200"] {
    transition-delay: .2s;
}

[data-delay="300"] {
    transition-delay: .3s;
}

/* ── Mouse aura: soft saffron glow following the cursor ── */
#cursor-aura {
    position: fixed;
    top: 0;
    left: 0;
    width: 400px;
    height: 400px;
    margin: -200px 0 0 -200px;
    border-radius: 50%;
    background: radial-gradient(circle,
            rgba(255, 153, 51, 0.12) 0%,
            rgba(212, 175, 55, 0.06) 35%,
            transparent 70%);
    pointer-events: none;
    z-index: 40;
    will-change: transform;
}

/* ── Sacred dot cursor ring ── */
#cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    width: 36px;
    height: 36px;
    margin: -18px 0 0 -18px;
    border: 1.5px solid rgba(212, 175, 55, 0.7);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transition: width .25s, height .25s, margin .25s, border-color .25s;
    will-change: transform;
}

#cursor-ring.hovering {
    width: 60px;
    height: 60px;
    margin: -30px 0 0 -30px;
    border-color: #FF9933;
    background: rgba(255, 153, 51, 0.08);
}

/* ── Gold particle trail ── */
.gold-spark {
    position: fixed;
    pointer-events: none;
    z-index: 9997;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: radial-gradient(circle, #FFD700, #FF9933);
    animation: spark-fade 0.9s ease-out forwards;
}

@keyframes spark-fade {
    0% {
        opacity: 0.9;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(0.1) translateY(14px);
    }
}

/* ── 3D tilt cards ── */
[data-tilt] {
    transform-style: preserve-3d;
    transition: transform 0.15s ease-out, box-shadow 0.3s;
}

[data-tilt]:hover {
    box-shadow: 0 20px 40px -15px rgba(87, 0, 0, 0.25);
}

/* Hide custom cursor effects on touch devices */
@media (hover: none),
(pointer: coarse) {

    #cursor-aura,
    #cursor-ring,
    .gold-spark {
        display: none !important;
    }
}

/* ── Accessibility ── */
@media (prefers-reduced-motion: reduce) {

    .fade-up,
    [data-animate] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    #cursor-aura,
    #cursor-ring,
    .gold-spark {
        display: none !important;
    }

    [data-tilt] {
        transform: none !important;
    }
}