/* ============================================================================
   MY EFFECTS LIBRARY
   File        : effects.css
   Version     : 1.0.0
   Purpose     : Reusable CSS animations, hover effects, reveal effects and UI
                 motion utilities.
   Frameworks  : Framework-independent (Vanilla CSS).
   Naming      : All library classes and keyframes use the "fx-" prefix.

   GENERAL USAGE
   1) Link this file in your HTML document.
   2) Add one or more fx-* classes to the target element.
   3) For scroll reveal effects, load the companion effects.js file as well.

   IMPORTANT NOTES
   - Prefer one transform-based animation class per element at a time.
   - Multiple animation classes can override each other's animation property.
   - Hover transform effects should generally not be stacked together.
   - Respect the user's reduced-motion preference; see the final section.
   ============================================================================ */


/* ============================================================================
   SECTION 00 : GLOBAL EFFECT VARIABLES
   Description : Centralized values used by several library effects.
   ============================================================================ */

:root {
    --fx-duration-instant: 150ms;
    --fx-duration-fast: 250ms;
    --fx-duration-normal: 500ms;
    --fx-duration-slow: 800ms;
    --fx-ease-standard: cubic-bezier(0.2, 0.8, 0.2, 1);
    --fx-ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --fx-ease-back: cubic-bezier(0.34, 1.56, 0.64, 1);
    --fx-ease-sharp: cubic-bezier(0.4, 0, 1, 1);
    --fx-accent: #6c63ff;
    --fx-loader-color: currentColor;
}


/* ============================================================================
   SECTION 01 : FADE EFFECTS
   Description : Fades elements in or out by animating their opacity.
   ============================================================================ */

/* ---------------------------------------------------------------------------
   EFFECT 01.01 : Fade In
   Description : Gradually makes an element visible.
   Usage       : Add .fx-fade-in to the target element.
   Duration    : 700ms | Repeat: Once
   --------------------------------------------------------------------------- */
.fx-fade-in {
    animation: fx-fade-in 700ms ease both;
}

@keyframes fx-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ---------------------------------------------------------------------------
   EFFECT 01.02 : Fade Out
   Description : Gradually makes an element transparent.
   Usage       : Add .fx-fade-out to the target element.
   Note        : The element remains transparent after the animation.
   --------------------------------------------------------------------------- */
.fx-fade-out {
    animation: fx-fade-out 700ms ease both;
}

@keyframes fx-fade-out {
    from { opacity: 1; }
    to   { opacity: 0; }
}

/* ---------------------------------------------------------------------------
   EFFECT 01.03 : Fade In Up
   Description : Fades in while moving upward from below.
   Usage       : Add .fx-fade-in-up to the target element.
   --------------------------------------------------------------------------- */
.fx-fade-in-up {
    animation: fx-fade-in-up 700ms var(--fx-ease-standard) both;
}

@keyframes fx-fade-in-up {
    from { opacity: 0; transform: translate3d(0, 30px, 0); }
    to   { opacity: 1; transform: translate3d(0, 0, 0); }
}

/* ---------------------------------------------------------------------------
   EFFECT 01.04 : Fade In Down
   Description : Fades in while moving downward from above.
   Usage       : Add .fx-fade-in-down to the target element.
   --------------------------------------------------------------------------- */
.fx-fade-in-down {
    animation: fx-fade-in-down 700ms var(--fx-ease-standard) both;
}

@keyframes fx-fade-in-down {
    from { opacity: 0; transform: translate3d(0, -30px, 0); }
    to   { opacity: 1; transform: translate3d(0, 0, 0); }
}

/* ---------------------------------------------------------------------------
   EFFECT 01.05 : Fade In Left
   Description : Fades in while entering from the left.
   Usage       : Add .fx-fade-in-left to the target element.
   --------------------------------------------------------------------------- */
.fx-fade-in-left {
    animation: fx-fade-in-left 700ms var(--fx-ease-standard) both;
}

@keyframes fx-fade-in-left {
    from { opacity: 0; transform: translate3d(-30px, 0, 0); }
    to   { opacity: 1; transform: translate3d(0, 0, 0); }
}

/* ---------------------------------------------------------------------------
   EFFECT 01.06 : Fade In Right
   Description : Fades in while entering from the right.
   Usage       : Add .fx-fade-in-right to the target element.
   --------------------------------------------------------------------------- */
.fx-fade-in-right {
    animation: fx-fade-in-right 700ms var(--fx-ease-standard) both;
}

@keyframes fx-fade-in-right {
    from { opacity: 0; transform: translate3d(30px, 0, 0); }
    to   { opacity: 1; transform: translate3d(0, 0, 0); }
}

/* ---------------------------------------------------------------------------
   EFFECT 01.07 : Fade In Soft
   Description : Uses a subtle blur while fading an element into view.
   Usage       : Add .fx-fade-in-soft to the target element.
   --------------------------------------------------------------------------- */
.fx-fade-in-soft {
    animation: fx-fade-in-soft 900ms ease both;
}

@keyframes fx-fade-in-soft {
    from { opacity: 0; filter: blur(8px); }
    to   { opacity: 1; filter: blur(0); }
}


/* ============================================================================
   SECTION 02 : SLIDE EFFECTS
   Description : Moves elements into or out of the visible area.
   ============================================================================ */

/* EFFECT 02.01 : Slide In Up | Enters from below. Usage: .fx-slide-in-up */
.fx-slide-in-up { animation: fx-slide-in-up 650ms var(--fx-ease-standard) both; }
@keyframes fx-slide-in-up {
    from { transform: translate3d(0, 100%, 0); }
    to   { transform: translate3d(0, 0, 0); }
}

/* EFFECT 02.02 : Slide In Down | Enters from above. Usage: .fx-slide-in-down */
.fx-slide-in-down { animation: fx-slide-in-down 650ms var(--fx-ease-standard) both; }
@keyframes fx-slide-in-down {
    from { transform: translate3d(0, -100%, 0); }
    to   { transform: translate3d(0, 0, 0); }
}

/* EFFECT 02.03 : Slide In Left | Enters from the left. Usage: .fx-slide-in-left */
.fx-slide-in-left { animation: fx-slide-in-left 650ms var(--fx-ease-standard) both; }
@keyframes fx-slide-in-left {
    from { transform: translate3d(-100%, 0, 0); }
    to   { transform: translate3d(0, 0, 0); }
}

/* EFFECT 02.04 : Slide In Right | Enters from the right. Usage: .fx-slide-in-right */
.fx-slide-in-right { animation: fx-slide-in-right 650ms var(--fx-ease-standard) both; }
@keyframes fx-slide-in-right {
    from { transform: translate3d(100%, 0, 0); }
    to   { transform: translate3d(0, 0, 0); }
}

/* EFFECT 02.05 : Slide Out Up | Leaves toward the top. Usage: .fx-slide-out-up */
.fx-slide-out-up { animation: fx-slide-out-up 600ms ease both; }
@keyframes fx-slide-out-up {
    from { transform: translate3d(0, 0, 0); opacity: 1; }
    to   { transform: translate3d(0, -100%, 0); opacity: 0; }
}

/* EFFECT 02.06 : Slide Out Down | Leaves toward the bottom. Usage: .fx-slide-out-down */
.fx-slide-out-down { animation: fx-slide-out-down 600ms ease both; }
@keyframes fx-slide-out-down {
    from { transform: translate3d(0, 0, 0); opacity: 1; }
    to   { transform: translate3d(0, 100%, 0); opacity: 0; }
}

/* EFFECT 02.07 : Slide Out Left | Leaves toward the left. Usage: .fx-slide-out-left */
.fx-slide-out-left { animation: fx-slide-out-left 600ms ease both; }
@keyframes fx-slide-out-left {
    from { transform: translate3d(0, 0, 0); opacity: 1; }
    to   { transform: translate3d(-100%, 0, 0); opacity: 0; }
}

/* EFFECT 02.08 : Slide Out Right | Leaves toward the right. Usage: .fx-slide-out-right */
.fx-slide-out-right { animation: fx-slide-out-right 600ms ease both; }
@keyframes fx-slide-out-right {
    from { transform: translate3d(0, 0, 0); opacity: 1; }
    to   { transform: translate3d(100%, 0, 0); opacity: 0; }
}


/* ============================================================================
   SECTION 03 : ZOOM & SCALE EFFECTS
   Description : Changes element size using scale transforms.
   ============================================================================ */

/* EFFECT 03.01 : Zoom In | Scales up from a smaller size. Usage: .fx-zoom-in */
.fx-zoom-in { animation: fx-zoom-in 650ms var(--fx-ease-back) both; }
@keyframes fx-zoom-in {
    from { opacity: 0; transform: scale(0.65); }
    to   { opacity: 1; transform: scale(1); }
}

/* EFFECT 03.02 : Zoom Out | Settles from a larger size. Usage: .fx-zoom-out */
.fx-zoom-out { animation: fx-zoom-out 650ms var(--fx-ease-standard) both; }
@keyframes fx-zoom-out {
    from { opacity: 0; transform: scale(1.3); }
    to   { opacity: 1; transform: scale(1); }
}

/* EFFECT 03.03 : Zoom In Soft | Gentle scale-in with a fade. Usage: .fx-zoom-in-soft */
.fx-zoom-in-soft { animation: fx-zoom-in-soft 900ms ease both; }
@keyframes fx-zoom-in-soft {
    from { opacity: 0; transform: scale(0.92); }
    to   { opacity: 1; transform: scale(1); }
}

/* EFFECT 03.04 : Zoom Out Soft | Gentle scale-out with a fade. Usage: .fx-zoom-out-soft */
.fx-zoom-out-soft { animation: fx-zoom-out-soft 800ms ease both; }
@keyframes fx-zoom-out-soft {
    from { opacity: 0; transform: scale(1.08); }
    to   { opacity: 1; transform: scale(1); }
}

/* EFFECT 03.05 : Zoom Pulse | Repeatedly grows and returns to normal. Usage: .fx-zoom-pulse */
.fx-zoom-pulse { animation: fx-zoom-pulse 1.8s ease-in-out infinite; }
@keyframes fx-zoom-pulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.08); }
}

/* EFFECT 03.06 : Zoom Pop | Overshoots slightly before settling. Usage: .fx-zoom-pop */
.fx-zoom-pop { animation: fx-zoom-pop 700ms var(--fx-ease-back) both; }
@keyframes fx-zoom-pop {
    0%   { opacity: 0; transform: scale(0.3); }
    65%  { opacity: 1; transform: scale(1.08); }
    100% { transform: scale(1); }
}


/* ============================================================================
   SECTION 04 : ROTATION EFFECTS
   Description : Rotates elements around their 2D or 3D axes.
   ============================================================================ */

/* EFFECT 04.01 : Rotate 360 | Completes one clockwise rotation. Usage: .fx-rotate-360 */
.fx-rotate-360 { animation: fx-rotate-360 1.5s ease-in-out both; }
@keyframes fx-rotate-360 {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* EFFECT 04.02 : Rotate Infinite | Spins clockwise continuously. Usage: .fx-rotate-infinite */
.fx-rotate-infinite { animation: fx-rotate-360 2s linear infinite; }

/* EFFECT 04.03 : Rotate Reverse | Spins counter-clockwise continuously. Usage: .fx-rotate-reverse */
.fx-rotate-reverse { animation: fx-rotate-360 2s linear infinite reverse; }

/* EFFECT 04.04 : Rotate Slow | Slow continuous clockwise rotation. Usage: .fx-rotate-slow */
.fx-rotate-slow { animation: fx-rotate-360 8s linear infinite; }

/* EFFECT 04.05 : Rotate Y | Completes a horizontal 3D flip. Usage: .fx-rotate-y */
.fx-rotate-y { animation: fx-rotate-y 1.5s ease-in-out both; backface-visibility: visible; }
@keyframes fx-rotate-y {
    from { transform: perspective(700px) rotateY(0deg); }
    to   { transform: perspective(700px) rotateY(360deg); }
}

/* EFFECT 04.06 : Rotate X | Completes a vertical 3D flip. Usage: .fx-rotate-x */
.fx-rotate-x { animation: fx-rotate-x 1.5s ease-in-out both; backface-visibility: visible; }
@keyframes fx-rotate-x {
    from { transform: perspective(700px) rotateX(0deg); }
    to   { transform: perspective(700px) rotateX(360deg); }
}

/* EFFECT 04.07 : Rotate Quarter Turn | Turns 90 degrees clockwise. Usage: .fx-rotate-90 */
.fx-rotate-90 { animation: fx-rotate-90 500ms ease both; }
@keyframes fx-rotate-90 {
    from { transform: rotate(0deg); }
    to   { transform: rotate(90deg); }
}

/* EFFECT 04.08 : Rotate Swing | Swings around its top edge. Usage: .fx-rotate-swing */
.fx-rotate-swing { transform-origin: top center; animation: fx-rotate-swing 1s ease both; }
@keyframes fx-rotate-swing {
    20%  { transform: rotate(15deg); }
    40%  { transform: rotate(-10deg); }
    60%  { transform: rotate(5deg); }
    80%  { transform: rotate(-5deg); }
    100% { transform: rotate(0deg); }
}


/* ============================================================================
   SECTION 05 : 3D FLIP EFFECTS
   Description : Uses perspective and rotateX / rotateY for 3D movement.
   ============================================================================ */

/* EFFECT 05.01 : Flip In X | Enters by rotating around the X-axis. Usage: .fx-flip-in-x */
.fx-flip-in-x { backface-visibility: visible; animation: fx-flip-in-x 800ms ease both; }
@keyframes fx-flip-in-x {
    from { opacity: 0; transform: perspective(800px) rotateX(90deg); }
    to   { opacity: 1; transform: perspective(800px) rotateX(0deg); }
}

/* EFFECT 05.02 : Flip In Y | Enters by rotating around the Y-axis. Usage: .fx-flip-in-y */
.fx-flip-in-y { backface-visibility: visible; animation: fx-flip-in-y 800ms ease both; }
@keyframes fx-flip-in-y {
    from { opacity: 0; transform: perspective(800px) rotateY(90deg); }
    to   { opacity: 1; transform: perspective(800px) rotateY(0deg); }
}

/* EFFECT 05.03 : Flip Out X | Exits by rotating around the X-axis. Usage: .fx-flip-out-x */
.fx-flip-out-x { backface-visibility: visible; animation: fx-flip-out-x 700ms ease both; }
@keyframes fx-flip-out-x {
    from { opacity: 1; transform: perspective(800px) rotateX(0deg); }
    to   { opacity: 0; transform: perspective(800px) rotateX(90deg); }
}

/* EFFECT 05.04 : Flip Out Y | Exits by rotating around the Y-axis. Usage: .fx-flip-out-y */
.fx-flip-out-y { backface-visibility: visible; animation: fx-flip-out-y 700ms ease both; }
@keyframes fx-flip-out-y {
    from { opacity: 1; transform: perspective(800px) rotateY(0deg); }
    to   { opacity: 0; transform: perspective(800px) rotateY(90deg); }
}

/* EFFECT 05.05 : Flip Card Hover | Rotates a card on hover. Usage: .fx-flip-card on a wrapper with a child .fx-flip-card-inner */
.fx-flip-card { perspective: 1000px; }
.fx-flip-card-inner {
    position: relative;
    transform-style: preserve-3d;
    transition: transform 700ms var(--fx-ease-smooth);
}
.fx-flip-card:is(:hover, :focus-within) .fx-flip-card-inner { transform: rotateY(180deg); }
.fx-flip-card-front,
.fx-flip-card-back { backface-visibility: hidden; }
.fx-flip-card-back {
    position: absolute;
    inset: 0;
    transform: rotateY(180deg);
}


/* ============================================================================
   SECTION 06 : BOUNCE EFFECTS
   Description : Adds elastic movement with controlled overshoot.
   ============================================================================ */

/* EFFECT 06.01 : Bounce | Repeated vertical bounce. Usage: .fx-bounce */
.fx-bounce { animation: fx-bounce 1.2s infinite; }
@keyframes fx-bounce {
    0%, 20%, 53%, 80%, 100% { transform: translate3d(0, 0, 0); }
    40%, 43% { transform: translate3d(0, -22px, 0); }
    70%      { transform: translate3d(0, -12px, 0); }
    90%      { transform: translate3d(0, -4px, 0); }
}

/* EFFECT 06.02 : Bounce In | Enters with a spring-like bounce. Usage: .fx-bounce-in */
.fx-bounce-in { animation: fx-bounce-in 900ms both; }
@keyframes fx-bounce-in {
    0%   { opacity: 0; transform: scale(0.3); }
    50%  { opacity: 1; transform: scale(1.08); }
    70%  { transform: scale(0.92); }
    100% { transform: scale(1); }
}

/* EFFECT 06.03 : Bounce In Up | Enters from below with a bounce. Usage: .fx-bounce-in-up */
.fx-bounce-in-up { animation: fx-bounce-in-up 900ms both; }
@keyframes fx-bounce-in-up {
    0%   { opacity: 0; transform: translate3d(0, 100px, 0); }
    60%  { opacity: 1; transform: translate3d(0, -15px, 0); }
    80%  { transform: translate3d(0, 5px, 0); }
    100% { transform: translate3d(0, 0, 0); }
}

/* EFFECT 06.04 : Bounce In Down | Enters from above with a bounce. Usage: .fx-bounce-in-down */
.fx-bounce-in-down { animation: fx-bounce-in-down 900ms both; }
@keyframes fx-bounce-in-down {
    0%   { opacity: 0; transform: translate3d(0, -100px, 0); }
    60%  { opacity: 1; transform: translate3d(0, 15px, 0); }
    80%  { transform: translate3d(0, -5px, 0); }
    100% { transform: translate3d(0, 0, 0); }
}

/* EFFECT 06.05 : Bounce Soft | Small, continuous vertical movement. Usage: .fx-bounce-soft */
.fx-bounce-soft { animation: fx-bounce-soft 2s ease-in-out infinite; }
@keyframes fx-bounce-soft {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}


/* ============================================================================
   SECTION 07 : ATTENTION-SEEKING EFFECTS
   Description : Short movements intended to draw attention to an element.
   ============================================================================ */

/* EFFECT 07.01 : Pulse | Expands and contracts repeatedly. Usage: .fx-pulse */
.fx-pulse { animation: fx-pulse 1.5s ease-in-out infinite; }
@keyframes fx-pulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.06); }
}

/* EFFECT 07.02 : Pulse Soft | Subtle opacity and scale pulse. Usage: .fx-pulse-soft */
.fx-pulse-soft { animation: fx-pulse-soft 2s ease-in-out infinite; }
@keyframes fx-pulse-soft {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.78; transform: scale(1.025); }
}

/* EFFECT 07.03 : Heartbeat | Mimics a double heartbeat pulse. Usage: .fx-heartbeat */
.fx-heartbeat { animation: fx-heartbeat 1.4s ease-in-out infinite; }
@keyframes fx-heartbeat {
    0%, 28%, 56%, 100% { transform: scale(1); }
    14%, 42%          { transform: scale(1.13); }
}

/* EFFECT 07.04 : Shake X | Repeated horizontal shake. Usage: .fx-shake-x */
.fx-shake-x { animation: fx-shake-x 650ms ease-in-out both; }
@keyframes fx-shake-x {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-8px); }
    40%, 80% { transform: translateX(8px); }
}

/* EFFECT 07.05 : Shake Y | Repeated vertical shake. Usage: .fx-shake-y */
.fx-shake-y { animation: fx-shake-y 650ms ease-in-out both; }
@keyframes fx-shake-y {
    0%, 100% { transform: translateY(0); }
    20%, 60% { transform: translateY(-7px); }
    40%, 80% { transform: translateY(7px); }
}

/* EFFECT 07.06 : Wobble | Tilts and shifts from side to side. Usage: .fx-wobble */
.fx-wobble { animation: fx-wobble 800ms ease both; }
@keyframes fx-wobble {
    0%, 100% { transform: translateX(0) rotate(0); }
    15%      { transform: translateX(-8px) rotate(-5deg); }
    30%      { transform: translateX(6px) rotate(3deg); }
    45%      { transform: translateX(-5px) rotate(-3deg); }
    60%      { transform: translateX(3px) rotate(2deg); }
    75%      { transform: translateX(-2px) rotate(-1deg); }
}

/* EFFECT 07.07 : Tada | Scales and rotates in a celebratory motion. Usage: .fx-tada */
.fx-tada { animation: fx-tada 900ms ease both; }
@keyframes fx-tada {
    0%   { transform: scale(1) rotate(0); }
    10%, 20% { transform: scale(0.9) rotate(-4deg); }
    30%, 50%, 70%, 90% { transform: scale(1.1) rotate(4deg); }
    40%, 60%, 80% { transform: scale(1.1) rotate(-4deg); }
    100% { transform: scale(1) rotate(0); }
}

/* EFFECT 07.08 : Jello | Produces a soft skewing motion. Usage: .fx-jello */
.fx-jello { animation: fx-jello 900ms both; }
@keyframes fx-jello {
    0%, 100% { transform: skewX(0) skewY(0); }
    30% { transform: skewX(-10deg) skewY(-5deg); }
    40% { transform: skewX(8deg) skewY(4deg); }
    50% { transform: skewX(-5deg) skewY(-2deg); }
    65% { transform: skewX(3deg) skewY(1deg); }
    75% { transform: skewX(-1deg) skewY(-1deg); }
}

/* EFFECT 07.09 : Rubber Band | Stretches and compresses elastically. Usage: .fx-rubber-band */
.fx-rubber-band { animation: fx-rubber-band 900ms both; }
@keyframes fx-rubber-band {
    0%   { transform: scale3d(1, 1, 1); }
    30%  { transform: scale3d(1.25, 0.75, 1); }
    40%  { transform: scale3d(0.75, 1.25, 1); }
    50%  { transform: scale3d(1.15, 0.85, 1); }
    65%  { transform: scale3d(0.95, 1.05, 1); }
    75%  { transform: scale3d(1.05, 0.95, 1); }
    100% { transform: scale3d(1, 1, 1); }
}

/* EFFECT 07.10 : Flash | Alternates opacity briefly. Usage: .fx-flash */
.fx-flash { animation: fx-flash 1s both; }
@keyframes fx-flash {
    0%, 50%, 100% { opacity: 1; }
    25%, 75%      { opacity: 0.25; }
}

/* EFFECT 07.11 : Blink | Repeatedly fades in and out. Usage: .fx-blink */
.fx-blink { animation: fx-blink 1.2s ease-in-out infinite; }
@keyframes fx-blink {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.2; }
}

/* EFFECT 07.12 : Head Shake | Small angular shake. Usage: .fx-head-shake */
.fx-head-shake { animation: fx-head-shake 800ms ease both; }
@keyframes fx-head-shake {
    0%, 50%, 100% { transform: translateX(0); }
    6.5%, 18.5%, 31%, 43% { transform: translateX(-6px) rotateY(-9deg); }
    12.5%, 25%, 37.5% { transform: translateX(5px) rotateY(7deg); }
}


/* ============================================================================
   SECTION 08 : FLOATING & CONTINUOUS MOTION
   Description : Gentle looping motion for icons, badges and decorative items.
   ============================================================================ */

/* EFFECT 08.01 : Float | Moves gently up and down. Usage: .fx-float */
.fx-float { animation: fx-float 3s ease-in-out infinite; }
@keyframes fx-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
}

/* EFFECT 08.02 : Float Horizontal | Moves gently from side to side. Usage: .fx-float-horizontal */
.fx-float-horizontal { animation: fx-float-horizontal 3s ease-in-out infinite; }
@keyframes fx-float-horizontal {
    0%, 100% { transform: translateX(0); }
    50%      { transform: translateX(10px); }
}

/* EFFECT 08.03 : Bob | Repeats a small vertical bob. Usage: .fx-bob */
.fx-bob { animation: fx-bob 2s ease-in-out infinite; }
@keyframes fx-bob {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}

/* EFFECT 08.04 : Drift | Slowly shifts diagonally. Usage: .fx-drift */
.fx-drift { animation: fx-drift 5s ease-in-out infinite alternate; }
@keyframes fx-drift {
    from { transform: translate3d(-5px, 5px, 0); }
    to   { transform: translate3d(5px, -5px, 0); }
}

/* EFFECT 08.05 : Pendulum | Swings continuously from its top edge. Usage: .fx-pendulum */
.fx-pendulum { transform-origin: top center; animation: fx-pendulum 2.5s ease-in-out infinite alternate; }
@keyframes fx-pendulum {
    from { transform: rotate(-8deg); }
    to   { transform: rotate(8deg); }
}


/* ============================================================================
   SECTION 09 : HOVER & FOCUS EFFECTS
   Description : Interactive transitions activated by hover or keyboard focus.
   ============================================================================ */

/* EFFECT 09.01 : Hover Grow | Enlarges the element. Usage: .fx-hover-grow */
.fx-hover-grow { transition: transform var(--fx-duration-fast) var(--fx-ease-standard); }
.fx-hover-grow:is(:hover, :focus-visible) { transform: scale(1.06); }

/* EFFECT 09.02 : Hover Shrink | Slightly reduces the element size. Usage: .fx-hover-shrink */
.fx-hover-shrink { transition: transform var(--fx-duration-fast) var(--fx-ease-standard); }
.fx-hover-shrink:is(:hover, :focus-visible) { transform: scale(0.96); }

/* EFFECT 09.03 : Hover Lift | Raises the element with a subtle shadow. Usage: .fx-hover-lift */
.fx-hover-lift {
    transition: transform var(--fx-duration-fast) var(--fx-ease-standard), box-shadow var(--fx-duration-fast) ease;
}
.fx-hover-lift:is(:hover, :focus-visible) {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgb(0 0 0 / 14%);
}

/* EFFECT 09.04 : Hover Sink | Moves the element slightly downward. Usage: .fx-hover-sink */
.fx-hover-sink { transition: transform var(--fx-duration-fast) ease; }
.fx-hover-sink:is(:hover, :focus-visible) { transform: translateY(4px); }

/* EFFECT 09.05 : Hover Rotate | Rotates the element slightly. Usage: .fx-hover-rotate */
.fx-hover-rotate { transition: transform var(--fx-duration-fast) ease; }
.fx-hover-rotate:is(:hover, :focus-visible) { transform: rotate(5deg); }

/* EFFECT 09.06 : Hover Shadow | Adds a stronger shadow. Usage: .fx-hover-shadow */
.fx-hover-shadow { transition: box-shadow var(--fx-duration-fast) ease; }
.fx-hover-shadow:is(:hover, :focus-visible) { box-shadow: 0 12px 30px rgb(0 0 0 / 18%); }

/* EFFECT 09.07 : Hover Glow | Adds a colored outer glow. Usage: .fx-hover-glow; customize --fx-glow-color */
.fx-hover-glow {
    --fx-glow-color: var(--fx-accent);
    transition: box-shadow var(--fx-duration-fast) ease;
}
.fx-hover-glow:is(:hover, :focus-visible) {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--fx-glow-color) 22%, transparent),
                0 0 22px color-mix(in srgb, var(--fx-glow-color) 45%, transparent);
}

/* EFFECT 09.08 : Hover Brightness | Brightens the element. Usage: .fx-hover-bright */
.fx-hover-bright { transition: filter var(--fx-duration-fast) ease; }
.fx-hover-bright:is(:hover, :focus-visible) { filter: brightness(1.12); }

/* EFFECT 09.09 : Hover Grayscale | Removes grayscale on hover. Usage: .fx-hover-color */
.fx-hover-color { filter: grayscale(1); transition: filter var(--fx-duration-normal) ease; }
.fx-hover-color:is(:hover, :focus-visible) { filter: grayscale(0); }

/* EFFECT 09.10 : Underline From Left | Draws an underline from left to right. Usage: .fx-underline-left */
.fx-underline-left { position: relative; text-decoration: none; }
.fx-underline-left::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.2em;
    width: 100%;
    height: 2px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform var(--fx-duration-fast) ease;
}
.fx-underline-left:is(:hover, :focus-visible)::after { transform: scaleX(1); }

/* EFFECT 09.11 : Underline From Center | Draws an underline outward from center. Usage: .fx-underline-center */
.fx-underline-center { position: relative; text-decoration: none; }
.fx-underline-center::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.2em;
    width: 100%;
    height: 2px;
    background: currentColor;
    transform: scaleX(0);
    transition: transform var(--fx-duration-fast) ease;
}
.fx-underline-center:is(:hover, :focus-visible)::after { transform: scaleX(1); }

/* EFFECT 09.12 : Underline From Right | Draws an underline from right to left. Usage: .fx-underline-right */
.fx-underline-right { position: relative; text-decoration: none; }
.fx-underline-right::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -0.2em;
    width: 100%;
    height: 2px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right center;
    transition: transform var(--fx-duration-fast) ease;
}
.fx-underline-right:is(:hover, :focus-visible)::after { transform: scaleX(1); }

/* EFFECT 09.13 : Border Reveal | Animates a border color on interaction. Usage: .fx-border-reveal */
.fx-border-reveal { border: 1px solid transparent; transition: border-color var(--fx-duration-fast) ease; }
.fx-border-reveal:is(:hover, :focus-visible) { border-color: currentColor; }

/* EFFECT 09.14 : Icon Nudge | Moves an inline icon slightly to the right. Usage: .fx-icon-nudge on wrapper; add .fx-icon to icon */
.fx-icon-nudge .fx-icon { display: inline-block; transition: transform var(--fx-duration-fast) ease; }
.fx-icon-nudge:is(:hover, :focus-visible) .fx-icon { transform: translateX(4px); }


/* ============================================================================
   SECTION 10 : IMAGE EFFECTS
   Description : Effects intended for image elements or image containers.
   ============================================================================ */

/* EFFECT 10.01 : Image Zoom | Zooms the image inside its wrapper on hover. Usage: .fx-image-zoom on wrapper containing an img */
.fx-image-zoom { overflow: hidden; }
.fx-image-zoom img {
    display: block;
    width: 100%;
    transition: transform 500ms var(--fx-ease-standard);
}
.fx-image-zoom:is(:hover, :focus-within) img { transform: scale(1.08); }

/* EFFECT 10.02 : Image Grayscale | Restores image color on hover. Usage: .fx-image-grayscale on wrapper or img */
.fx-image-grayscale img,
img.fx-image-grayscale { filter: grayscale(1); transition: filter 500ms ease; }
.fx-image-grayscale:is(:hover, :focus-within) img,
img.fx-image-grayscale:is(:hover, :focus-visible) { filter: grayscale(0); }

/* EFFECT 10.03 : Image Brighten | Increases image brightness on hover. Usage: .fx-image-brighten on wrapper */
.fx-image-brighten img { transition: filter 400ms ease; }
.fx-image-brighten:is(:hover, :focus-within) img { filter: brightness(1.15); }

/* EFFECT 10.04 : Image Blur | Removes blur on hover. Usage: .fx-image-blur on wrapper or img */
.fx-image-blur img,
img.fx-image-blur { filter: blur(3px); transition: filter 500ms ease; }
.fx-image-blur:is(:hover, :focus-within) img,
img.fx-image-blur:is(:hover, :focus-visible) { filter: blur(0); }

/* EFFECT 10.05 : Image Tilt | Slightly tilts an image on hover. Usage: .fx-image-tilt on wrapper */
.fx-image-tilt img { transition: transform 400ms ease; }
.fx-image-tilt:is(:hover, :focus-within) img { transform: scale(1.04) rotate(1.5deg); }

/* EFFECT 10.06 : Image Overlay | Adds a dark overlay using a pseudo-element. Usage: .fx-image-overlay on a positioned image wrapper */
.fx-image-overlay { position: relative; overflow: hidden; }
.fx-image-overlay::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgb(0 0 0 / 0%);
    pointer-events: none;
    transition: background var(--fx-duration-normal) ease;
}
.fx-image-overlay:is(:hover, :focus-within)::after { background: rgb(0 0 0 / 22%); }


/* ============================================================================
   SECTION 11 : TEXT EFFECTS
   Description : Animated text treatments for headings, labels and highlights.
   ============================================================================ */

/* EFFECT 11.01 : Gradient Text | Applies a static gradient to text. Usage: .fx-text-gradient */
.fx-text-gradient {
    color: transparent;
    background: linear-gradient(90deg, #6c63ff, #00b8a9, #ff8a5b);
    background-clip: text;
    -webkit-background-clip: text;
}

/* EFFECT 11.02 : Animated Gradient Text | Moves a gradient across text. Usage: .fx-text-gradient-animated */
.fx-text-gradient-animated {
    color: transparent;
    background: linear-gradient(90deg, #6c63ff, #00b8a9, #ff8a5b, #6c63ff);
    background-size: 300% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    animation: fx-gradient-shift 5s linear infinite;
}
@keyframes fx-gradient-shift {
    from { background-position: 0% 50%; }
    to   { background-position: 300% 50%; }
}

/* EFFECT 11.03 : Text Shadow Pop | Briefly emphasizes text with a shadow. Usage: .fx-text-shadow-pop */
.fx-text-shadow-pop { animation: fx-text-shadow-pop 700ms ease both; }
@keyframes fx-text-shadow-pop {
    0%   { text-shadow: 0 0 0 transparent; transform: translateY(0); }
    50%  { text-shadow: 3px 3px 0 rgb(0 0 0 / 20%); transform: translateY(-2px); }
    100% { text-shadow: 0 0 0 transparent; transform: translateY(0); }
}

/* EFFECT 11.04 : Text Flicker | Simulates a subtle neon flicker. Usage: .fx-text-flicker */
.fx-text-flicker { animation: fx-text-flicker 2.5s linear infinite; }
@keyframes fx-text-flicker {
    0%, 18%, 22%, 25%, 53%, 57%, 100% { opacity: 1; }
    20%, 24%, 55% { opacity: 0.45; }
}

/* EFFECT 11.05 : Typing | Reveals text horizontally like a typewriter.
   Usage       : .fx-text-typing
   Custom props: --fx-typing-width: 18ch; --fx-typing-steps: 18; --fx-typing-duration: 3s;
   Note        : Best for short, single-line text with a known character count.
*/
.fx-text-typing {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    vertical-align: bottom;
    border-right: 2px solid currentColor;
    width: 0;
    animation:
        fx-typing var(--fx-typing-duration, 3s) steps(var(--fx-typing-steps, 18), end) forwards,
        fx-caret 750ms step-end infinite;
}
@keyframes fx-typing {
    from { width: 0; }
    to   { width: var(--fx-typing-width, 18ch); }
}
@keyframes fx-caret {
    50% { border-color: transparent; }
}

/* EFFECT 11.06 : Text Reveal | Reveals text through a horizontal clip. Usage: .fx-text-reveal */
.fx-text-reveal { animation: fx-text-reveal 900ms var(--fx-ease-standard) both; }
@keyframes fx-text-reveal {
    from { clip-path: inset(0 100% 0 0); }
    to   { clip-path: inset(0 0 0 0); }
}


/* ============================================================================
   SECTION 12 : BACKGROUND & SURFACE EFFECTS
   Description : Animated backgrounds, shine, shimmer and surface highlights.
   ============================================================================ */

/* EFFECT 12.01 : Animated Gradient Background | Shifts a multi-color gradient. Usage: .fx-bg-gradient */
.fx-bg-gradient {
    background: linear-gradient(120deg, #6c63ff, #00b8a9, #ff8a5b, #6c63ff);
    background-size: 300% 300%;
    animation: fx-bg-gradient 10s ease infinite;
}
@keyframes fx-bg-gradient {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}

/* EFFECT 12.02 : Shimmer | Moves a light band across a surface. Usage: .fx-shimmer on a positioned container */
.fx-shimmer { position: relative; overflow: hidden; }
.fx-shimmer::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 -150%;
    width: 70%;
    pointer-events: none;
    background: linear-gradient(100deg, transparent, rgb(255 255 255 / 35%), transparent);
    transform: skewX(-18deg);
    animation: fx-shimmer 2.2s ease-in-out infinite;
}
@keyframes fx-shimmer {
    0%   { left: -150%; }
    60%, 100% { left: 160%; }
}

/* EFFECT 12.03 : Shine Sweep | Sweeps a bright highlight across an element. Usage: .fx-shine on a positioned container */
.fx-shine { position: relative; overflow: hidden; }
.fx-shine::before {
    content: "";
    position: absolute;
    inset: -50% auto -50% -75%;
    width: 45%;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgb(255 255 255 / 55%), transparent);
    transform: rotate(20deg);
}
.fx-shine:is(:hover, :focus-within)::before { animation: fx-shine 800ms ease; }
@keyframes fx-shine {
    from { left: -75%; }
    to   { left: 140%; }
}

/* EFFECT 12.04 : Border Glow | Pulses a soft shadow around a bordered element. Usage: .fx-border-glow */
.fx-border-glow { border: 1px solid currentColor; animation: fx-border-glow 2s ease-in-out infinite; }
@keyframes fx-border-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgb(108 99 255 / 0%); }
    50%      { box-shadow: 0 0 0 5px rgb(108 99 255 / 18%); }
}

/* EFFECT 12.05 : Ripple | Creates a repeating expanding ring. Usage: .fx-ripple on a square or circular element */
.fx-ripple { position: relative; isolation: isolate; }
.fx-ripple::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border: 2px solid currentColor;
    border-radius: inherit;
    opacity: 0;
    animation: fx-ripple 2s ease-out infinite;
}
@keyframes fx-ripple {
    0%   { transform: scale(1); opacity: 0.55; }
    100% { transform: scale(1.7); opacity: 0; }
}


/* ============================================================================
   SECTION 13 : SCROLL REVEAL EFFECTS
   Description : Prepares elements for reveal when the companion JavaScript
                 adds the "fx-js" class to <html> and "is-visible" to elements.
   ============================================================================ */

/* EFFECT 13.01 : Base Reveal | Keeps content visible when JavaScript is unavailable.
   Usage       : Add .fx-reveal and one direction class to an element.
   JS contract : Add .fx-js to documentElement; add .is-visible when in view.
*/
.fx-reveal {
    opacity: 1;
    transform: none;
    transition: opacity 800ms ease, transform 800ms var(--fx-ease-standard);
}

/* EFFECT 13.02 : Reveal Up | Starts below its final position. Usage: .fx-reveal.fx-reveal-up */
.fx-reveal-up { --fx-reveal-transform: translate3d(0, 55px, 0); }

/* EFFECT 13.03 : Reveal Down | Starts above its final position. Usage: .fx-reveal.fx-reveal-down */
.fx-reveal-down { --fx-reveal-transform: translate3d(0, -55px, 0); }

/* EFFECT 13.04 : Reveal Left | Starts to the left of its final position. Usage: .fx-reveal.fx-reveal-left */
.fx-reveal-left { --fx-reveal-transform: translate3d(-55px, 0, 0); }

/* EFFECT 13.05 : Reveal Right | Starts to the right of its final position. Usage: .fx-reveal.fx-reveal-right */
.fx-reveal-right { --fx-reveal-transform: translate3d(55px, 0, 0); }

/* EFFECT 13.06 : Reveal Zoom | Starts smaller than its final size. Usage: .fx-reveal.fx-reveal-zoom */
.fx-reveal-zoom { --fx-reveal-transform: scale(0.92); }

/* EFFECT 13.07 : Reveal Soft | Starts slightly blurred. Usage: .fx-reveal.fx-reveal-soft */
.fx-reveal-soft { --fx-reveal-filter: blur(7px); }

/* Initial hidden state is enabled only after JS confirms that it is available. */
.fx-js .fx-reveal {
    opacity: 0;
    transform: var(--fx-reveal-transform, translate3d(0, 35px, 0));
    filter: var(--fx-reveal-filter, none);
}

/* EFFECT 13.08 : Reveal Active State | Restores the element to its natural state. Usage: JS adds .is-visible */
.fx-js .fx-reveal.is-visible {
    opacity: 1;
    transform: none;
    filter: none;
}

/* EFFECT 13.09 : Reveal Delay Utilities | Staggers multiple reveal elements.
   Usage       : Add one delay class to each element: .fx-reveal-delay-100, etc.
*/
.fx-reveal-delay-100 { transition-delay: 100ms; }
.fx-reveal-delay-200 { transition-delay: 200ms; }
.fx-reveal-delay-300 { transition-delay: 300ms; }
.fx-reveal-delay-400 { transition-delay: 400ms; }
.fx-reveal-delay-500 { transition-delay: 500ms; }


/* ============================================================================
   SECTION 14 : LOADING & PROGRESS EFFECTS
   Description : Lightweight loading indicators and skeleton placeholders.
   ============================================================================ */

/* EFFECT 14.01 : Spinner | Rotating circular loader. Usage: .fx-spinner; set width, height and border color */
.fx-spinner {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    border: 3px solid rgb(127 127 127 / 25%);
    border-top-color: var(--fx-loader-color);
    border-radius: 50%;
    animation: fx-rotate-360 800ms linear infinite;
}

/* EFFECT 14.02 : Dots Loader | Three-dot loading indicator. Usage: .fx-loading-dots */
.fx-loading-dots {
    position: relative;
    display: inline-block;
    width: 0.5em;
    height: 0.5em;
    margin: 0 1em;
    border-radius: 50%;
    color: var(--fx-loader-color);
    background: currentColor;
    animation: fx-dot-bounce 1s -160ms ease-in-out infinite;
}
.fx-loading-dots::before,
.fx-loading-dots::after {
    content: "";
    position: absolute;
    top: 0;
    width: 0.5em;
    height: 0.5em;
    border-radius: 50%;
    background: currentColor;
    animation: fx-dot-bounce 1s ease-in-out infinite;
}
.fx-loading-dots::before { left: -1em; animation-delay: -320ms; }
.fx-loading-dots::after  { right: -1em; animation-delay: 0ms; }
@keyframes fx-dot-bounce {
    0%, 80%, 100% { opacity: 0.4; transform: translateY(0); }
    40%          { opacity: 1; transform: translateY(-0.35em); }
}

/* EFFECT 14.03 : Indeterminate Bar | A moving bar for unknown progress. Usage: .fx-loader-bar */
.fx-loader-bar {
    position: relative;
    display: block;
    height: 4px;
    overflow: hidden;
    background: rgb(127 127 127 / 20%);
    border-radius: 999px;
}
.fx-loader-bar::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 35%;
    background: var(--fx-loader-color);
    border-radius: inherit;
    animation: fx-loader-bar 1.4s ease-in-out infinite;
}
@keyframes fx-loader-bar {
    0%   { transform: translateX(-110%); }
    100% { transform: translateX(310%); }
}

/* EFFECT 14.04 : Skeleton | Animated placeholder for content being loaded. Usage: .fx-skeleton */
.fx-skeleton {
    color: transparent;
    background: linear-gradient(90deg, rgb(127 127 127 / 12%) 25%, rgb(127 127 127 / 25%) 50%, rgb(127 127 127 / 12%) 75%);
    background-size: 200% 100%;
    border-radius: 4px;
    animation: fx-skeleton 1.5s linear infinite;
}
@keyframes fx-skeleton {
    from { background-position: 200% 0; }
    to   { background-position: -200% 0; }
}

/* EFFECT 14.05 : Loading Ring | Expanding and contracting circular ring. Usage: .fx-loading-ring */
.fx-loading-ring {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    border: 3px solid currentColor;
    border-radius: 50%;
    animation: fx-loading-ring 1.2s ease-in-out infinite;
}
@keyframes fx-loading-ring {
    0%   { transform: scale(0.7); opacity: 0.35; }
    50%  { transform: scale(1); opacity: 1; }
    100% { transform: scale(0.7); opacity: 0.35; }
}


/* ---------------------------------------------------------------------------
   EFFECT 14.06 : Determinate Progress Bar
   Description : Displays a measurable progress value animated by effects.js.
   Usage       : Use .fx-progress-track around .fx-progress-fill; set
                 data-fx-progress="0-100" on the fill element.
   --------------------------------------------------------------------------- */
.fx-progress-track {
    width: 100%;
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: rgb(127 127 127 / 20%);
}

.fx-progress-fill {
    display: block;
    width: var(--fx-progress, 0%);
    height: 100%;
    border-radius: inherit;
    background: var(--fx-loader-color);
    transition: width var(--fx-progress-duration, 900ms) ease;
}


/* ============================================================================
   SECTION 15 : ANIMATION & TRANSFORM UTILITIES
   Description : Small helper classes to customize timing and transform setup.
   ============================================================================ */

/* EFFECT 15.01 : Duration Utilities | Overrides animation duration. Usage: add .fx-duration-* alongside an animation class. */
.fx-duration-150  { animation-duration: 150ms !important; }
.fx-duration-250  { animation-duration: 250ms !important; }
.fx-duration-500  { animation-duration: 500ms !important; }
.fx-duration-750  { animation-duration: 750ms !important; }
.fx-duration-1000 { animation-duration: 1s !important; }
.fx-duration-1500 { animation-duration: 1.5s !important; }
.fx-duration-2000 { animation-duration: 2s !important; }
.fx-duration-3000 { animation-duration: 3s !important; }

/* EFFECT 15.02 : Delay Utilities | Delays animation start. Usage: add .fx-delay-* alongside an animation class. */
.fx-delay-100 { animation-delay: 100ms !important; }
.fx-delay-200 { animation-delay: 200ms !important; }
.fx-delay-300 { animation-delay: 300ms !important; }
.fx-delay-400 { animation-delay: 400ms !important; }
.fx-delay-500 { animation-delay: 500ms !important; }
.fx-delay-700 { animation-delay: 700ms !important; }
.fx-delay-1000 { animation-delay: 1s !important; }

/* EFFECT 15.03 : Iteration Utilities | Controls repeat count. Usage: add .fx-repeat-* alongside an animation class. */
.fx-repeat-1       { animation-iteration-count: 1 !important; }
.fx-repeat-2       { animation-iteration-count: 2 !important; }
.fx-repeat-3       { animation-iteration-count: 3 !important; }
.fx-repeat-infinite { animation-iteration-count: infinite !important; }

/* EFFECT 15.04 : Fill Mode Utilities | Controls styles before and after an animation. Usage: add .fx-fill-* alongside an animation class. */
.fx-fill-none      { animation-fill-mode: none !important; }
.fx-fill-forwards  { animation-fill-mode: forwards !important; }
.fx-fill-backwards { animation-fill-mode: backwards !important; }
.fx-fill-both      { animation-fill-mode: both !important; }

/* EFFECT 15.05 : Easing Utilities | Overrides animation timing function. Usage: add .fx-ease-* alongside an animation class. */
.fx-ease-linear { animation-timing-function: linear !important; }
.fx-ease-in     { animation-timing-function: ease-in !important; }
.fx-ease-out    { animation-timing-function: ease-out !important; }
.fx-ease-in-out { animation-timing-function: ease-in-out !important; }
.fx-ease-smooth { animation-timing-function: var(--fx-ease-smooth) !important; }
.fx-ease-back   { animation-timing-function: var(--fx-ease-back) !important; }

/* EFFECT 15.06 : Animation State | Pauses or resumes an animation. Usage: .fx-animation-paused / .fx-animation-running */
.fx-animation-paused  { animation-play-state: paused !important; }
.fx-animation-running { animation-play-state: running !important; }

/* EFFECT 15.07 : Transform Origin | Sets the pivot point for transforms. Usage: add one .fx-origin-* class to the target. */
.fx-origin-center       { transform-origin: center !important; }
.fx-origin-top          { transform-origin: top center !important; }
.fx-origin-bottom       { transform-origin: bottom center !important; }
.fx-origin-left         { transform-origin: center left !important; }
.fx-origin-right        { transform-origin: center right !important; }
.fx-origin-top-left     { transform-origin: top left !important; }
.fx-origin-top-right    { transform-origin: top right !important; }
.fx-origin-bottom-left  { transform-origin: bottom left !important; }
.fx-origin-bottom-right { transform-origin: bottom right !important; }

/* EFFECT 15.08 : Perspective Utilities | Sets 3D perspective on a parent. Usage: add to a wrapper around 3D-transformed children. */
.fx-perspective-500  { perspective: 500px; }
.fx-perspective-800  { perspective: 800px; }
.fx-perspective-1000 { perspective: 1000px; }

/* EFFECT 15.09 : Performance Hint | Hints that an element will be transformed. Usage: .fx-will-animate on elements animated frequently. */
.fx-will-animate { will-change: transform, opacity; }

/* EFFECT 15.10 : Backface Visibility | Hides the reverse side of a 3D element. Usage: .fx-backface-hidden */
.fx-backface-hidden { backface-visibility: hidden; }


/* ============================================================================
   SECTION 16 : ACCESSIBILITY & REDUCED MOTION
   Description : Reduces library motion for users who request less animation.
   ============================================================================ */


/* =========================================================
   ACCESSIBILITY : REDUCED MOTION SUPPORT

   Description:
   Respects the user's operating-system preference
   to minimize animations and visual movement.

   Applies To:
   All CSS effects using the fx- prefix.

   Browser Support:
   Modern browsers.
   ========================================================= */

@media (prefers-reduced-motion: reduce) {


    /* -----------------------------------------------------
       01. Reduce Animation & Transition Duration

       Description:
       Minimizes CSS animation and transition durations
       and prevents repeated animations.
       ----------------------------------------------------- */

    :where([class^="fx-"], [class*=" fx-"]),
    :where([class^="fx-"], [class*=" fx-"])::before,
    :where([class^="fx-"], [class*=" fx-"])::after {

        animation-duration: 0.01ms !important;

        animation-iteration-count: 1 !important;

        transition-duration: 0.01ms !important;

        scroll-behavior: auto !important;

    }


    /* -----------------------------------------------------
       02. Reveal Content Immediately

       Description:
       Makes reveal elements visible without requiring
       scroll animations or JavaScript activation.
       ----------------------------------------------------- */

    .fx-reveal {

        opacity: 1 !important;

        transform: none !important;

        filter: none !important;

    }

}



/* ============================================================================
   END OF FILE
   Next planned sections for future versions:
   - SVG / Icon-specific effects
   - Button-specific effects
   - Navigation and menu transitions
   - Advanced masks and clip-path effects
   - Scroll-linked effects (where browser support allows)
   ============================================================================ */
