/* ============================================================
   RoopM-ScrollTrigger v2.0.1 (Ultimate Premium Edition - Fixed)
   Pure CSS Scroll Animation Library — Zero JavaScript
   ============================================================ */

:root {
    --roopm-duration: 0.9s;
    --roopm-delay: 0s;
    --roopm-easing: cubic-bezier(0.16, 1, 0.3, 1);
    --roopm-distance: 64px;
    --roopm-scale-start: 0.82;
    --roopm-rotate-deg: 14deg;
    --roopm-blur-start: 18px;
    --roopm-parallax-amount: 100px;
    /* Increased for better visibility */
    --roopm-glow-color: #00e5ff;
    --roopm-pin-offset: 0px;
    --roopm-pin-height: 300vh;
    --roopm-stagger: 0.1s;
}

[data-roopm-duration="fast"] {
    --roopm-duration: 0.4s;
}

[data-roopm-duration="0.5s"] {
    --roopm-duration: 0.5s;
}

[data-roopm-duration="0.8s"] {
    --roopm-duration: 0.8s;
}

[data-roopm-duration="1s"] {
    --roopm-duration: 1s;
}

[data-roopm-duration="1.5s"] {
    --roopm-duration: 1.5s;
}

[data-roopm-duration="2s"] {
    --roopm-duration: 2s;
}

[data-roopm-duration="slow"] {
    --roopm-duration: 2.5s;
}

[data-roopm-delay="0.1s"] {
    --roopm-delay: 0.1s;
}

[data-roopm-delay="0.2s"] {
    --roopm-delay: 0.2s;
}

[data-roopm-delay="0.3s"] {
    --roopm-delay: 0.3s;
}

[data-roopm-delay="0.4s"] {
    --roopm-delay: 0.4s;
}

[data-roopm-delay="0.5s"] {
    --roopm-delay: 0.5s;
}

[data-roopm-easing="linear"] {
    --roopm-easing: linear;
}

[data-roopm-easing="ease-out"] {
    --roopm-easing: ease-out;
}

[data-roopm-easing="spring"] {
    --roopm-easing: cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-roopm-easing="bounce"] {
    --roopm-easing: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

[data-roopm-easing="sharp"] {
    --roopm-easing: cubic-bezier(0.16, 1, 0.3, 1);
}

[data-roopm-easing="expo-out"] {
    --roopm-easing: cubic-bezier(0.16, 1, 0.3, 1);
}

[data-roopm-easing="circ-out"] {
    --roopm-easing: cubic-bezier(0, 0.55, 0.45, 1);
}

[data-roopm-distance="sm"] {
    --roopm-distance: 30px;
}

[data-roopm-distance="md"] {
    --roopm-distance: 64px;
}

[data-roopm-distance="lg"] {
    --roopm-distance: 120px;
}

.roopm-animate {
    opacity: 1;
    transform: none;
    filter: none;
    clip-path: none;
    transition: transform 0.4s ease-out, opacity 0.4s ease-out, filter 0.4s ease-out;
}

.roopm-overflow-hidden {
    overflow: clip;
    display: block;
}

@keyframes roopm-fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes roopm-fade-up {
    from {
        opacity: 0;
        transform: translateY(var(--roopm-distance, 64px));
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes roopm-fade-down {
    from {
        opacity: 0;
        transform: translateY(calc(var(--roopm-distance, 64px) * -1));
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes roopm-fade-left {
    from {
        opacity: 0;
        transform: translateX(var(--roopm-distance, 64px));
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes roopm-fade-right {
    from {
        opacity: 0;
        transform: translateX(calc(var(--roopm-distance, 64px) * -1));
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes roopm-scale-up {
    from {
        opacity: 0;
        transform: scale(var(--roopm-scale-start, 0.82));
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes roopm-zoom-in {
    from {
        opacity: 0;
        transform: scale(1.5);
        filter: blur(10px);
    }

    to {
        opacity: 1;
        transform: scale(1);
        filter: blur(0px);
    }
}

@keyframes roopm-rotate-left {
    from {
        opacity: 0;
        transform: rotate(calc(var(--roopm-rotate-deg, 14deg) * -1)) translateY(30px);
    }

    to {
        opacity: 1;
        transform: rotate(0deg) translateY(0);
    }
}

@keyframes roopm-rotate-right {
    from {
        opacity: 0;
        transform: rotate(var(--roopm-rotate-deg, 14deg)) translateY(30px);
    }

    to {
        opacity: 1;
        transform: rotate(0deg) translateY(0);
    }
}

@keyframes roopm-flip-x {
    from {
        opacity: 0;
        transform: perspective(700px) rotateX(85deg) translateY(20px);
    }

    to {
        opacity: 1;
        transform: perspective(700px) rotateX(0deg) translateY(0);
    }
}

@keyframes roopm-flip-y {
    from {
        opacity: 0;
        transform: perspective(700px) rotateY(85deg) translateX(20px);
    }

    to {
        opacity: 1;
        transform: perspective(700px) rotateY(0deg) translateX(0);
    }
}

@keyframes roopm-blur-in {
    from {
        opacity: 0;
        filter: blur(var(--roopm-blur-start, 18px));
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        filter: blur(0px);
        transform: translateY(0);
    }
}

@keyframes roopm-focus-in {
    from {
        opacity: 0.2;
        filter: blur(var(--roopm-blur-start, 18px));
    }

    to {
        opacity: 1;
        filter: blur(0px);
    }
}

@keyframes roopm-reveal-left {
    from {
        clip-path: inset(0 100% 0 0 round 4px);
    }

    to {
        clip-path: inset(0 0% 0 0 round 4px);
    }
}

@keyframes roopm-reveal-right {
    from {
        clip-path: inset(0 0 0 100% round 4px);
    }

    to {
        clip-path: inset(0 0 0 0% round 4px);
    }
}

@keyframes roopm-reveal-up {
    from {
        clip-path: inset(100% 0 0 0 round 4px);
    }

    to {
        clip-path: inset(0% 0 0 0 round 4px);
    }
}

@keyframes roopm-mask-circle {
    from {
        clip-path: circle(0% at 50% 50%);
        opacity: 0;
    }

    to {
        clip-path: circle(150% at 50% 50%);
        opacity: 1;
    }
}

@keyframes roopm-mask-wipe {
    from {
        clip-path: inset(100% 0 0 0);
        opacity: 0;
    }

    to {
        clip-path: inset(0 0 0 0);
        opacity: 1;
    }
}

@keyframes roopm-neon-glow {
    0% {
        box-shadow: 0 0 0px transparent;
        border-color: rgba(255, 255, 255, 0.1);
    }

    50% {
        box-shadow: 0 0 40px var(--roopm-glow-color), inset 0 0 20px var(--roopm-glow-color);
        border-color: var(--roopm-glow-color);
    }

    100% {
        box-shadow: 0 0 0px transparent;
        border-color: rgba(255, 255, 255, 0.1);
    }
}

/* Parallax Keyframes (Fixed for better movement) */
@keyframes roopm-parallax-slow {
    from {
        transform: translateY(var(--roopm-parallax-amount, 100px));
    }

    to {
        transform: translateY(calc(var(--roopm-parallax-amount, 100px) * -1));
    }
}

@keyframes roopm-parallax-fast {
    from {
        transform: translateY(calc(var(--roopm-parallax-amount, 100px) * 2));
    }

    to {
        transform: translateY(calc(var(--roopm-parallax-amount, 100px) * -2));
    }
}

@keyframes roopm-bg-parallax {
    from {
        background-position-y: 0%;
    }

    to {
        background-position-y: 100%;
    }
}

@keyframes roopm-scrub-rotate-cw {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes roopm-scrub-rotate-ccw {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(-360deg);
    }
}

@keyframes roopm-scrub-rotate-half {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(180deg);
    }
}

@keyframes roopm-scrub-slide-x {
    from {
        transform: translateX(calc(var(--roopm-distance, 64px) * -1));
    }

    to {
        transform: translateX(var(--roopm-distance, 64px));
    }
}

@keyframes roopm-scrub-slide-y {
    from {
        transform: translateY(var(--roopm-distance, 64px));
    }

    to {
        transform: translateY(calc(var(--roopm-distance, 64px) * -1));
    }
}

@keyframes roopm-scrub-scale {
    from {
        transform: scale(0.7);
        opacity: 0.4;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes roopm-scrub-fade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes roopm-scrub-text-blur {
    from {
        filter: blur(20px);
        opacity: 0;
        letter-spacing: 0.5em;
    }

    to {
        filter: blur(0);
        opacity: 1;
        letter-spacing: normal;
    }
}

@keyframes roopm-progress-bar {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

@keyframes roopm-glass-nav {
    0% {
        background: transparent;
        backdrop-filter: blur(0px);
        border-bottom: 1px solid transparent;
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    100% {
        background: rgba(10, 10, 10, 0.85);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
}

@keyframes roopm-horizontal-scroll {
    to {
        transform: translateX(calc(-100% + 100vw));
    }
}

@supports (animation-timeline: view()) {
    .roopm-animate {
        animation-timing-function: var(--roopm-easing, cubic-bezier(0.16, 1, 0.3, 1));
        animation-duration: var(--roopm-duration, 0.9s);
        animation-fill-mode: both;
        animation-timeline: view();
    }

    .roopm-animate:not([data-roopm-scrub="true"]) {
        animation-range: entry 0% cover 35%;
    }

    .roopm-animate[data-roopm-scrub="true"] {
        animation-duration: auto;
        animation-delay: 0s;
        animation-range: entry 0% exit 100%;
    }

    [data-roopm-start="entry"] {
        animation-range-start: entry 0%;
    }

    [data-roopm-start="entry-50"] {
        animation-range-start: entry 50%;
    }

    [data-roopm-start="contain"] {
        animation-range-start: contain 0%;
    }

    [data-roopm-start="cover"] {
        animation-range-start: cover 0%;
    }

    [data-roopm-end="entry"] {
        animation-range-end: entry 100%;
    }

    [data-roopm-end="contain"] {
        animation-range-end: contain 100%;
    }

    [data-roopm-end="cover"] {
        animation-range-end: cover 100%;
    }

    [data-roopm-effect="fade-in"] {
        animation-name: roopm-fade-in;
    }

    [data-roopm-effect="fade-up"] {
        animation-name: roopm-fade-up;
    }

    [data-roopm-effect="fade-down"] {
        animation-name: roopm-fade-down;
    }

    [data-roopm-effect="fade-left"] {
        animation-name: roopm-fade-left;
    }

    [data-roopm-effect="fade-right"] {
        animation-name: roopm-fade-right;
    }

    [data-roopm-effect="scale-up"] {
        animation-name: roopm-scale-up;
    }

    [data-roopm-effect="scale-down"] {
        animation-name: roopm-scale-down;
    }

    [data-roopm-effect="zoom-in"] {
        animation-name: roopm-zoom-in;
    }

    [data-roopm-effect="rotate-left"] {
        animation-name: roopm-rotate-left;
    }

    [data-roopm-effect="rotate-right"] {
        animation-name: roopm-rotate-right;
    }

    [data-roopm-effect="flip-x"] {
        animation-name: roopm-flip-x;
    }

    [data-roopm-effect="flip-y"] {
        animation-name: roopm-flip-y;
    }

    [data-roopm-effect="blur-in"] {
        animation-name: roopm-blur-in;
    }

    [data-roopm-effect="focus-in"] {
        animation-name: roopm-focus-in;
    }

    [data-roopm-effect="reveal-left"] {
        animation-name: roopm-reveal-left;
    }

    [data-roopm-effect="reveal-right"] {
        animation-name: roopm-reveal-right;
    }

    [data-roopm-effect="reveal-up"] {
        animation-name: roopm-reveal-up;
    }

    [data-roopm-effect="reveal-down"] {
        animation-name: roopm-reveal-down;
    }

    [data-roopm-effect="mask-reveal-circle"] {
        animation-name: roopm-mask-circle;
    }

    [data-roopm-effect="mask-reveal-wipe"] {
        animation-name: roopm-mask-wipe;
    }

    [data-roopm-effect="neon-glow"] {
        animation-name: roopm-neon-glow;
    }

    [data-roopm-effect="parallax-slow"] {
        animation-name: roopm-parallax-slow;
    }

    [data-roopm-effect="parallax-fast"] {
        animation-name: roopm-parallax-fast;
    }

    [data-roopm-effect="scrub-rotate-cw"] {
        animation-name: roopm-scrub-rotate-cw;
    }

    [data-roopm-effect="scrub-rotate-ccw"] {
        animation-name: roopm-scrub-rotate-ccw;
    }

    [data-roopm-effect="scrub-rotate-half"] {
        animation-name: roopm-scrub-rotate-half;
    }

    [data-roopm-effect="scrub-slide-x"] {
        animation-name: roopm-scrub-slide-x;
    }

    [data-roopm-effect="scrub-slide-y"] {
        animation-name: roopm-scrub-slide-y;
    }

    [data-roopm-effect="scrub-scale"] {
        animation-name: roopm-scrub-scale;
    }

    [data-roopm-effect="scrub-fade"] {
        animation-name: roopm-scrub-fade;
    }

    [data-roopm-effect="scrub-text-blur"] {
        animation-name: roopm-scrub-text-blur;
    }

    .roopm-stagger>.roopm-animate:nth-child(1) {
        animation-delay: calc(var(--roopm-stagger, 0.1s) * 0);
    }

    .roopm-stagger>.roopm-animate:nth-child(2) {
        animation-delay: calc(var(--roopm-stagger, 0.1s) * 1);
    }

    .roopm-stagger>.roopm-animate:nth-child(3) {
        animation-delay: calc(var(--roopm-stagger, 0.1s) * 2);
    }

    .roopm-stagger>.roopm-animate:nth-child(4) {
        animation-delay: calc(var(--roopm-stagger, 0.1s) * 3);
    }

    .roopm-stagger>.roopm-animate:nth-child(5) {
        animation-delay: calc(var(--roopm-stagger, 0.1s) * 4);
    }

    .roopm-stagger>.roopm-animate:nth-child(6) {
        animation-delay: calc(var(--roopm-stagger, 0.1s) * 5);
    }

    .roopm-stagger>.roopm-animate:nth-child(7) {
        animation-delay: calc(var(--roopm-stagger, 0.1s) * 6);
    }

    .roopm-stagger>.roopm-animate:nth-child(8) {
        animation-delay: calc(var(--roopm-stagger, 0.1s) * 7);
    }

    .roopm-progress {
        animation: roopm-progress-bar linear both;
        animation-timeline: scroll(root);
        transform-origin: left center;
    }

    .roopm-parallax-bg {
        animation: roopm-bg-parallax linear both;
        animation-timeline: view();
    }

    .roopm-glass-nav {
        animation: roopm-glass-nav linear both;
        animation-timeline: scroll(root);
        animation-range: 0px 200px;
    }

    .roopm-horizontal-section {
        height: 400vh;
        view-timeline-name: --hz-scroll;
        view-timeline-axis: block;
        position: relative;
    }

    .roopm-horizontal-sticky {
        position: sticky;
        top: 0;
        height: 100vh;
        width: 100%;
        overflow: clip;
        display: flex;
        align-items: center;
    }

    .roopm-horizontal-track {
        display: flex;
        width: max-content;
        height: 100%;
        padding: 0 5vw;
        align-items: center;
        gap: 4vw;
        animation: roopm-horizontal-scroll linear both;
        animation-timeline: --hz-scroll;
        animation-range: contain 0% contain 100%;
        will-change: transform;
    }

    [data-roopm-effect^="parallax-"],
    [data-roopm-effect^="scrub-"] {
        will-change: transform;
    }
}

/* ============================================================
   PINNING SYSTEM (GSAP Style)
   ============================================================ */
.roopm-pin-container {
    position: relative;
    height: var(--roopm-pin-height, 300vh);
}

.roopm-pin {
    position: sticky;
    top: var(--roopm-pin-offset, 0px);
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: clip;
    z-index: 10;
}

.roopm-pin-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
}

.roopm-pin-panel {
    position: absolute;
    left: 0;
    width: 100%;
    pointer-events: none;
}

@supports (view-timeline-name: --any) {
    .roopm-pin-container {
        view-timeline-name: --roopm-pin-timeline;
        view-timeline-axis: block;
    }

    .roopm-pin-linked {
        animation-timeline: --roopm-pin-timeline;
        animation-duration: auto;
        animation-fill-mode: both;
        animation-timing-function: linear;
    }

    .roopm-pin-linked[data-roopm-effect="scrub-rotate-cw"] {
        animation-name: roopm-scrub-rotate-cw;
        animation-range: contain 0% contain 100%;
    }

    .roopm-pin-linked[data-roopm-effect="scrub-scale"] {
        animation-name: roopm-scrub-scale;
        animation-range: contain 0% contain 100%;
    }

    .roopm-pin-linked[data-roopm-effect="scrub-fade"] {
        animation-name: roopm-scrub-fade;
        animation-range: entry 0% entry 50%;
    }
}

/* ============================================================
   TEXT ANIMATION UTILITIES
   ============================================================ */
@supports (animation-timeline: view()) {
    .roopm-text-reveal>span {
        display: inline-block;
        animation: roopm-fade-up var(--roopm-duration, 0.7s) var(--roopm-easing, cubic-bezier(0.16, 1, 0.3, 1)) both;
        animation-timeline: view();
        animation-range: entry 0% cover 50%;
        --roopm-distance: 30px;
    }

    .roopm-text-clip>span {
        display: inline-block;
        overflow: clip;
        line-height: 1.2;
    }

    .roopm-text-clip>span>em {
        display: inline-block;
        font-style: normal;
        animation: roopm-clip-rise var(--roopm-duration, 0.8s) var(--roopm-easing, cubic-bezier(0.16, 1, 0.3, 1)) both;
        animation-timeline: view();
        animation-range: entry 0% cover 50%;
    }

    @keyframes roopm-clip-rise {
        from {
            transform: translateY(115%);
            opacity: 0.1;
        }

        to {
            transform: translateY(0%);
            opacity: 1;
        }
    }

    .roopm-text-reveal>span:nth-child(1),
    .roopm-text-clip>span:nth-child(1) em {
        animation-delay: calc(var(--roopm-stagger, 0.05s) * 0);
    }

    .roopm-text-reveal>span:nth-child(2),
    .roopm-text-clip>span:nth-child(2) em {
        animation-delay: calc(var(--roopm-stagger, 0.05s) * 1);
    }

    .roopm-text-reveal>span:nth-child(3),
    .roopm-text-clip>span:nth-child(3) em {
        animation-delay: calc(var(--roopm-stagger, 0.05s) * 2);
    }

    .roopm-text-reveal>span:nth-child(4),
    .roopm-text-clip>span:nth-child(4) em {
        animation-delay: calc(var(--roopm-stagger, 0.05s) * 3);
    }

    .roopm-text-reveal>span:nth-child(5),
    .roopm-text-clip>span:nth-child(5) em {
        animation-delay: calc(var(--roopm-stagger, 0.05s) * 4);
    }

    .roopm-text-reveal>span:nth-child(6),
    .roopm-text-clip>span:nth-child(6) em {
        animation-delay: calc(var(--roopm-stagger, 0.05s) * 5);
    }

    .roopm-text-reveal>span:nth-child(7),
    .roopm-text-clip>span:nth-child(7) em {
        animation-delay: calc(var(--roopm-stagger, 0.05s) * 6);
    }

    .roopm-text-reveal>span:nth-child(8),
    .roopm-text-clip>span:nth-child(8) em {
        animation-delay: calc(var(--roopm-stagger, 0.05s) * 7);
    }

    .roopm-text-reveal>span:nth-child(9),
    .roopm-text-clip>span:nth-child(9) em {
        animation-delay: calc(var(--roopm-stagger, 0.05s) * 8);
    }

    .roopm-text-reveal>span:nth-child(10),
    .roopm-text-clip>span:nth-child(10) em {
        animation-delay: calc(var(--roopm-stagger, 0.05s) * 9);
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after,
    .roopm-animate,
    .roopm-horizontal-track,
    .roopm-parallax-bg {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        clip-path: none !important;
    }
}