/* =========================================================
   KEYFRAMES + DEMO CLASSES
   ========================================================= */

/* --- Movement --- */
@keyframes pan-left {
  0%,
  100% {
    transform: translateX(39.6px);
  }
  50% {
    transform: translateX(-39.6px);
  }
}
.anim-pan-left {
  animation: pan-left 1.1s ease-in-out infinite;
}

@keyframes pan-right {
  0%,
  100% {
    transform: translateX(-39.6px);
  }
  50% {
    transform: translateX(39.6px);
  }
}
.anim-pan-right {
  animation: pan-right 1.1s ease-in-out infinite;
}

@keyframes pan-up {
  0%,
  100% {
    transform: translateY(31.2px);
  }
  50% {
    transform: translateY(-31.2px);
  }
}
.anim-pan-up {
  animation: pan-up 1.1s ease-in-out infinite;
}

@keyframes pan-down {
  0%,
  100% {
    transform: translateY(-31.2px);
  }
  50% {
    transform: translateY(31.2px);
  }
}
.anim-pan-down {
  animation: pan-down 1.1s ease-in-out infinite;
}

@keyframes slide-in-left {
  0% {
    transform: translateX(-120%);
    opacity: 0;
  }
  40% {
    opacity: 1;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}
.anim-slide-in-left {
  animation: slide-in-left 1.2s ease-out infinite;
}

@keyframes slide-in-right {
  0% {
    transform: translateX(120%);
    opacity: 0;
  }
  40% {
    opacity: 1;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}
.anim-slide-in-right {
  animation: slide-in-right 1.2s ease-out infinite;
}

@keyframes slide-in-top {
  0% {
    transform: translateY(-120%);
    opacity: 0;
  }
  40% {
    opacity: 1;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}
.anim-slide-in-top {
  animation: slide-in-top 1.2s ease-out infinite;
}

@keyframes slide-in-bottom {
  0% {
    transform: translateY(120%);
    opacity: 0;
  }
  40% {
    opacity: 1;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}
.anim-slide-in-bottom {
  animation: slide-in-bottom 1.2s ease-out infinite;
}

@keyframes slide-out-left {
  0% {
    transform: translateX(0);
    opacity: 1;
  }
  100% {
    transform: translateX(-120%);
    opacity: 0;
  }
}
.anim-slide-out-left {
  animation: slide-out-left 1.2s ease-in infinite;
}

@keyframes slide-out-right {
  0% {
    transform: translateX(0);
    opacity: 1;
  }
  100% {
    transform: translateX(120%);
    opacity: 0;
  }
}
.anim-slide-out-right {
  animation: slide-out-right 1.2s ease-in infinite;
}

@keyframes float-y {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-26px);
  }
}
.anim-float {
  animation: float-y 1.35s ease-in-out infinite;
}

@keyframes orbit {
  0% {
    transform: rotate(0deg) translateX(35.2px) rotate(0deg);
  }
  100% {
    transform: rotate(360deg) translateX(35.2px) rotate(-360deg);
  }
}
.anim-orbit {
  animation: orbit 1.6s linear infinite;
}

/* --- Rotate --- */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.anim-spin {
  animation: spin 1.2s linear infinite;
}

@keyframes rotate-cw {
  to {
    transform: rotate(360deg);
  }
}
.anim-rotate-cw {
  animation: rotate-cw 1.8s linear infinite;
}

@keyframes rotate-ccw {
  to {
    transform: rotate(-360deg);
  }
}
.anim-rotate-ccw {
  animation: rotate-ccw 1.8s linear infinite;
}

@keyframes flip-x {
  0%,
  100% {
    transform: rotateY(0deg);
  }
  50% {
    transform: rotateY(180deg);
  }
}
.anim-flip-x {
  animation: flip-x 1.2s ease-in-out infinite;
  transform-style: preserve-3d;
}

@keyframes flip-y {
  0%,
  100% {
    transform: rotateX(0deg);
  }
  50% {
    transform: rotateX(180deg);
  }
}
.anim-flip-y {
  animation: flip-y 1.2s ease-in-out infinite;
  transform-style: preserve-3d;
}

@keyframes swing {
  0%,
  100% {
    transform: rotate(15deg);
  }
  50% {
    transform: rotate(-15deg);
  }
}
.anim-swing {
  transform-origin: top center;
  animation: swing 1.0s ease-in-out infinite;
}

@keyframes wobble {
  0%,
  100% {
    transform: translateX(0) rotate(0);
  }
  15% {
    transform: translateX(-20.8px) rotate(-6deg);
  }
  30% {
    transform: translateX(15.6px) rotate(4deg);
  }
  45% {
    transform: translateX(-15.6px) rotate(-4deg);
  }
  60% {
    transform: translateX(10.4px) rotate(2deg);
  }
  75% {
    transform: translateX(-5.2px) rotate(-1deg);
  }
}
.anim-wobble {
  animation: wobble 1.1s ease-in-out infinite;
}

@keyframes tilt {
  0%,
  100% {
    transform: rotate(-8deg);
  }
  50% {
    transform: rotate(8deg);
  }
}
.anim-tilt {
  animation: tilt 1.05s ease-in-out infinite;
}

@keyframes roll-in {
  0% {
    transform: translateX(-100%) rotate(-180deg);
    opacity: 0;
  }
  100% {
    transform: translateX(0) rotate(0);
    opacity: 1;
  }
}
.anim-roll-in {
  animation: roll-in 1.35s ease-out infinite;
}

/* --- Scale --- */
@keyframes grow {
  0% {
    transform: scale(0.280);
  }
  100% {
    transform: scale(1);
  }
}
.anim-grow {
  animation: grow 1.0s ease-out infinite alternate;
}

@keyframes shrink {
  0% {
    transform: scale(1.550);
  }
  100% {
    transform: scale(0.595);
  }
}
.anim-shrink {
  animation: shrink 1.0s ease-in-out infinite alternate;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.288);
  }
}
.anim-pulse {
  animation: pulse 1.2s ease-in-out infinite;
}

@keyframes heartbeat {
  0%,
  28%,
  70%,
  100% {
    transform: scale(1);
  }
  14% {
    transform: scale(1.400);
  }
  42% {
    transform: scale(1.320);
  }
}
.anim-heartbeat {
  animation: heartbeat 1.3s ease-in-out infinite;
}

@keyframes zoom-in {
  0% {
    transform: scale(0.150);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
.anim-zoom-in {
  animation: zoom-in 1.1s ease-out infinite;
}

@keyframes zoom-out {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(0.150);
    opacity: 0;
  }
}
.anim-zoom-out {
  animation: zoom-out 1.1s ease-in infinite;
}

@keyframes pop {
  0% {
    transform: scale(0.210);
    opacity: 0;
  }
  50% {
    transform: scale(1.225);
    opacity: 1;
  }
  70% {
    transform: scale(0.950);
  }
  100% {
    transform: scale(1);
  }
}
.anim-pop {
  animation: pop 1.05s ease-out infinite;
}

@keyframes squash {
  0%,
  100% {
    transform: scale(1, 1);
  }
  30% {
    transform: scale(1.25, 0.7);
  }
  50% {
    transform: scale(0.8, 1.25);
  }
  70% {
    transform: scale(1.1, 0.9);
  }
}
.anim-squash {
  animation: squash 1.2s ease-in-out infinite;
}

/* --- Opacity --- */
@keyframes fade-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
.anim-fade-in {
  animation: fade-in 1.05s ease-in-out infinite alternate;
}

@keyframes fade-out {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
.anim-fade-out {
  animation: fade-out 1.05s ease-in-out infinite alternate;
}

@keyframes fade-in-up {
  0% {
    opacity: 0;
    transform: translateY(35.2px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
.anim-fade-in-up {
  animation: fade-in-up 1.05s ease-out infinite;
}

@keyframes fade-in-down {
  0% {
    opacity: 0;
    transform: translateY(-35.2px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
.anim-fade-in-down {
  animation: fade-in-down 1.05s ease-out infinite;
}

@keyframes blink {
  0%,
  50%,
  100% {
    opacity: 1;
  }
  25%,
  75% {
    opacity: 0;
  }
}
.anim-blink {
  animation: blink 1.2s step-start infinite;
}

@keyframes strobe {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.1;
  }
}
.anim-strobe {
  animation: strobe 0.25s linear infinite;
}

/* --- Bounce --- */
@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
    animation-timing-function: ease-in;
  }
  50% {
    transform: translateY(-39.6px);
    animation-timing-function: ease-out;
  }
}
.anim-bounce {
  animation: bounce 0.8s infinite;
}

@keyframes bounce-in {
  0% {
    transform: scale(0.210);
    opacity: 0;
  }
  50% {
    transform: scale(1.120);
    opacity: 1;
  }
  70% {
    transform: scale(0.920);
  }
  100% {
    transform: scale(1);
  }
}
.anim-bounce-in {
  animation: bounce-in 1.0s ease infinite;
}

@keyframes rubber-band {
  0%,
  100% {
    transform: scale(1, 1);
  }
  30% {
    transform: scale(1.25, 0.75);
  }
  40% {
    transform: scale(0.75, 1.25);
  }
  50% {
    transform: scale(1.15, 0.85);
  }
  65% {
    transform: scale(0.95, 1.05);
  }
  75% {
    transform: scale(1.05, 0.95);
  }
}
.anim-rubber-band {
  animation: rubber-band 1.0s ease infinite;
}

@keyframes jello {
  0%,
  100% {
    transform: skewX(0) skewY(0);
  }
  15% {
    transform: skewX(-12deg) skewY(-12deg);
  }
  30% {
    transform: skewX(10deg) skewY(10deg);
  }
  45% {
    transform: skewX(-6deg) skewY(-6deg);
  }
  60% {
    transform: skewX(3deg) skewY(3deg);
  }
  75% {
    transform: skewX(-1deg) skewY(-1deg);
  }
}
.anim-jello {
  animation: jello 1.0s ease infinite;
}

@keyframes elastic {
  0% {
    transform: translateX(-44px);
  }
  40% {
    transform: translateX(26px);
  }
  60% {
    transform: translateX(-15.6px);
  }
  80% {
    transform: translateX(7.8px);
  }
  100% {
    transform: translateX(0);
  }
}
.anim-elastic {
  animation: elastic 1.05s ease-out infinite;
}

/* --- Shake --- */
@keyframes shake-x {
  0%,
  100% {
    transform: translateX(0);
  }
  20%,
  60% {
    transform: translateX(-15.6px);
  }
  40%,
  80% {
    transform: translateX(15.6px);
  }
}
.anim-shake-x {
  animation: shake-x 0.6s ease-in-out infinite;
}

@keyframes shake-y {
  0%,
  100% {
    transform: translateY(0);
  }
  20%,
  60% {
    transform: translateY(-13px);
  }
  40%,
  80% {
    transform: translateY(13px);
  }
}
.anim-shake-y {
  animation: shake-y 0.6s ease-in-out infinite;
}

@keyframes vibrate {
  0%,
  100% {
    transform: translate(0);
  }
  25% {
    transform: translate(2.6px, -2.6px);
  }
  50% {
    transform: translate(-2.6px, 2.6px);
  }
  75% {
    transform: translate(2.6px, 2.6px);
  }
}
.anim-vibrate {
  animation: vibrate 0.08s linear infinite;
}

@keyframes head-shake {
  0%,
  100% {
    transform: translateX(0) rotate(0);
  }
  15% {
    transform: translateX(-15.6px) rotate(-4deg);
  }
  30% {
    transform: translateX(13px) rotate(3deg);
  }
  45% {
    transform: translateX(-10.4px) rotate(-2deg);
  }
  60% {
    transform: translateX(7.8px) rotate(1deg);
  }
  75% {
    transform: translateX(-2.6px) rotate(0);
  }
}
.anim-head-shake {
  animation: head-shake 1s ease-in-out infinite;
}

@keyframes tada {
  0%,
  100% {
    transform: scale(1) rotate(0);
  }
  10%,
  20% {
    transform: scale(0.900) rotate(-3deg);
  }
  30%,
  50%,
  70%,
  90% {
    transform: scale(1.180) rotate(3deg);
  }
  40%,
  60%,
  80% {
    transform: scale(1.180) rotate(-3deg);
  }
}
.anim-tada {
  animation: tada 1.0s ease infinite;
}

/* --- Color --- */
@keyframes color-cycle {
  0% {
    background: #5b9fd4;
  }
  25% {
    background: #7c6cf0;
  }
  50% {
    background: #e06090;
  }
  75% {
    background: #f0a060;
  }
  100% {
    background: #5b9fd4;
  }
}
.anim-color-cycle {
  animation: color-cycle 1.8s linear infinite;
  background: #5b9fd4;
}

@keyframes text-color-shift {
  0% {
    color: #5b9fd4;
  }
  33% {
    color: #e06090;
  }
  66% {
    color: #60d4a0;
  }
  100% {
    color: #5b9fd4;
  }
}
.anim-text-color-shift {
  animation: text-color-shift 1.6s linear infinite;
  background: #1a2332 !important;
  color: #5b9fd4;
}

@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
.anim-gradient-shift {
  background: linear-gradient(90deg, #5b9fd4, #7c6cf0, #e06090, #f0a060, #5b9fd4) !important;
  background-size: 300% 100% !important;
  animation: gradient-shift 1.8s ease infinite;
}

@keyframes glow {
  0%,
  100% {
    box-shadow: 0 0 10.4px 2.6px rgba(91, 159, 212, 0.4);
  }
  50% {
    box-shadow: 0 0 39.6px 15.6px rgba(124, 108, 240, 0.9);
  }
}
.anim-glow {
  animation: glow 1.05s ease-in-out infinite;
}

@keyframes shadow-pulse {
  0%,
  100% {
    box-shadow: 0 5.2px 10.4px rgba(0, 0, 0, 0.3);
  }
  50% {
    box-shadow: 0 26px 44px rgba(0, 0, 0, 0.65);
  }
}
.anim-shadow-pulse {
  animation: shadow-pulse 1.0s ease-in-out infinite;
}

@keyframes border-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 5.2px #5b9fd4;
  }
  50% {
    box-shadow: 0 0 0 15.6px #e06090;
  }
}
.anim-border-pulse {
  animation: border-pulse 1.2s ease-in-out infinite;
}

/* --- Filter --- */
@keyframes hue-rotate {
  to {
    filter: hue-rotate(360deg);
  }
}
.anim-hue-rotate {
  animation: hue-rotate 1.6s linear infinite;
}

@keyframes blur-in {
  0% {
    filter: blur(20.8px);
    opacity: 0.4;
  }
  100% {
    filter: blur(0);
    opacity: 1;
  }
}
.anim-blur-in {
  animation: blur-in 1.2s ease-out infinite alternate;
}

@keyframes blur-out {
  0% {
    filter: blur(0);
    opacity: 1;
  }
  100% {
    filter: blur(20.8px);
    opacity: 0.4;
  }
}
.anim-blur-out {
  animation: blur-out 1.2s ease-in infinite alternate;
}

@keyframes brightness-pulse {
  0%,
  100% {
    filter: brightness(0.7);
  }
  50% {
    filter: brightness(1.6);
  }
}
.anim-brightness-pulse {
  animation: brightness-pulse 1.0s ease-in-out infinite;
}

@keyframes saturate-pulse {
  0%,
  100% {
    filter: saturate(0.2);
  }
  50% {
    filter: saturate(2);
  }
}
.anim-saturate-pulse {
  animation: saturate-pulse 1.1s ease-in-out infinite;
}

@keyframes grayscale-to-color {
  0% {
    filter: grayscale(1);
  }
  100% {
    filter: grayscale(0.150);
  }
}
.anim-grayscale-to-color {
  animation: grayscale-to-color 1.35s ease-in-out infinite alternate;
}

@keyframes contrast-pulse {
  0%,
  100% {
    filter: contrast(0.6);
  }
  50% {
    filter: contrast(1.8);
  }
}
.anim-contrast-pulse {
  animation: contrast-pulse 1.05s ease-in-out infinite;
}

/* --- Skew --- */
@keyframes skew-x {
  0%,
  100% {
    transform: skewX(0deg);
  }
  50% {
    transform: skewX(18deg);
  }
}
.anim-skew-x {
  animation: skew-x 1.0s ease-in-out infinite;
}

@keyframes skew-y {
  0%,
  100% {
    transform: skewY(0deg);
  }
  50% {
    transform: skewY(14deg);
  }
}
.anim-skew-y {
  animation: skew-y 1.0s ease-in-out infinite;
}

@keyframes squeeze {
  0%,
  100% {
    transform: scaleX(1);
  }
  50% {
    transform: scaleX(0.55);
  }
}
.anim-squeeze {
  animation: squeeze 1.2s ease-in-out infinite;
}

/* --- Loading --- */
@keyframes loading-spinner {
  to {
    transform: rotate(360deg);
  }
}
.anim-loading-spinner {
  width: 47.6px;
  height: 47.6px;
  border-radius: 50%;
  border: 7.8px solid rgba(91, 159, 212, 0.25);
  border-top-color: #38bdf8;
  animation: loading-spinner 0.8s linear infinite;
}

@keyframes loading-dot {
  0%,
  80%,
  100% {
    transform: scale(0.510);
    opacity: 0.4;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}
.anim-loading-dots {
  display: flex;
  gap: 15.6px;
  align-items: center;
}
.anim-loading-dots span {
  width: 20.8px;
  height: 20.8px;
  border-radius: 50%;
  background: #5b9fd4;
  animation: loading-dot 1.2s ease-in-out infinite;
}
.anim-loading-dots span:nth-child(2) {
  animation-delay: 0.15s;
}
.anim-loading-dots span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes loading-bar {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(200%);
  }
}
.anim-loading-bar {
  width: 72px;
  height: 15.6px;
  border-radius: 72px;
  background: rgba(91, 159, 212, 0.2);
  overflow: hidden;
  position: relative;
}
.anim-loading-bar i {
  display: block;
  width: 40%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #5b9fd4, #7c6cf0);
  animation: loading-bar 1.1s ease-in-out infinite;
}

@keyframes ping-ring {
  0% {
    transform: scale(0.425);
    opacity: 0.9;
  }
  100% {
    transform: scale(1.550);
    opacity: 0;
  }
}
.anim-ping {
  position: relative;
  width: 61.2px;
  height: 61.2px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.anim-ping .ping-core {
  width: 31.2px;
  height: 31.2px;
  border-radius: 50%;
  background: #5b9fd4;
  position: relative;
  z-index: 1;
}
.anim-ping .ping-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 5.2px solid #5b9fd4;
  animation: ping-ring 1.2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

/* --- Special --- */
@keyframes typewriter {
  0% {
    width: 0;
  }
  40%,
  60% {
    width: 100%;
  }
  100% {
    width: 0;
  }
}
.anim-typewriter {
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: #b8d4f0;
  border-right: 5.2px solid #5b9fd4;
  animation: typewriter 2.8s steps(8, end) infinite;
  width: 0;
}

@keyframes wave {
  0%,
  100% {
    transform: translateY(0);
  }
  25% {
    transform: translateY(-26px);
  }
  75% {
    transform: translateY(26px);
  }
}
.anim-wave {
  animation: wave 1.2s ease-in-out infinite;
}

@keyframes clip-circle {
  0% {
    clip-path: circle(0% at 50% 50%);
  }
  100% {
    clip-path: circle(75% at 50% 50%);
  }
}
.anim-clip-circle {
  animation: clip-circle 1.2s ease-in-out infinite alternate;
}

@keyframes clip-inset {
  0% {
    clip-path: inset(45% 45% 45% 45%);
  }
  100% {
    clip-path: inset(0 0 0 0);
  }
}
.anim-clip-inset {
  animation: clip-inset 1.2s ease-in-out infinite alternate;
}

@keyframes bg-position {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}
.anim-bg-position {
  background-image: repeating-linear-gradient(
    90deg,
    #5b9fd4 0 20.8px,
    #7c6cf0 20.8px 35.2px,
    #e06090 35.2px 40.8px
  ) !important;
  background-size: 200% 100% !important;
  animation: bg-position 1.05s linear infinite;
  color: transparent !important;
}

@keyframes border-radius-morph {
  0%,
  100% {
    border-radius: 20.8px;
  }
  25% {
    border-radius: 50% 20.8px;
  }
  50% {
    border-radius: 50%;
  }
  75% {
    border-radius: 20.8px 50%;
  }
}
.anim-border-radius-morph {
  animation: border-radius-morph 1.6s ease-in-out infinite;
}

/* --- 3D --- */
@keyframes rotate-3d {
  0% {
    transform: perspective(72px) rotateY(0deg);
  }
  100% {
    transform: perspective(72px) rotateY(360deg);
  }
}
.anim-rotate-3d {
  animation: rotate-3d 2.2s linear infinite;
  transform-style: preserve-3d;
}

@keyframes flip-card {
  0%,
  100% {
    transform: perspective(72px) rotateY(0deg);
  }
  50% {
    transform: perspective(72px) rotateY(180deg);
  }
}
.anim-flip-card {
  animation: flip-card 1.35s ease-in-out infinite;
  transform-style: preserve-3d;
  backface-visibility: visible;
}

@keyframes swing-3d {
  0%,
  100% {
    transform: perspective(72px) rotateX(18deg);
  }
  50% {
    transform: perspective(72px) rotateX(-18deg);
  }
}
.anim-swing-3d {
  animation: swing-3d 1.1s ease-in-out infinite;
  transform-style: preserve-3d;
}

/* --- Transitions (hover-driven) --- */
.anim-transition-hover-scale {
  transition: transform 0.25s ease;
  cursor: pointer;
}
.anim-transition-hover-scale:hover {
  transform: scale(1.400);
}

.anim-transition-hover-color {
  transition: background 0.35s ease, color 0.35s ease;
  cursor: pointer;
  background: #5b9fd4 !important;
}
.anim-transition-hover-color:hover {
  background: #e06090 !important;
}

.anim-transition-hover-lift {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}
.anim-transition-hover-lift:hover {
  transform: translateY(-15.6px);
  box-shadow: 0 26px 39.6px rgba(0, 0, 0, 0.45);
}

/* Reduce motion for a11y without breaking demos entirely for teaching */
@media (prefers-reduced-motion: reduce) {
  .demo-box,
  .anim-loading-spinner,
  .anim-loading-dots span,
  .anim-loading-bar i,
  .anim-ping .ping-ring,
  .anim-typewriter {
    animation-duration: 4s !important;
  }
}

/* =========================================================
   EXPANSION — Animate.css / Hover.css / loader-inspired
   ========================================================= */

@keyframes flash {
  0%, 50%, 100% { opacity: 1; }
  25%, 75% { opacity: 0; }
}
.anim-flash { animation: flash 1.2s ease-in-out infinite; }

@keyframes back-in-down {
  0% { transform: translateY(-80%) scale(0.595); opacity: 0.7; }
  80% { transform: translateY(8%) scale(0.595); }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}
.anim-back-in-down { animation: back-in-down 1.1s ease infinite; }

@keyframes back-in-left {
  0% { transform: translateX(-80%) scale(0.595); opacity: 0.7; }
  80% { transform: translateX(8%) scale(0.595); }
  100% { transform: translateX(0) scale(1); opacity: 1; }
}
.anim-back-in-left { animation: back-in-left 1.1s ease infinite; }

@keyframes back-in-right {
  0% { transform: translateX(80%) scale(0.595); opacity: 0.7; }
  80% { transform: translateX(-8%) scale(0.595); }
  100% { transform: translateX(0) scale(1); opacity: 1; }
}
.anim-back-in-right { animation: back-in-right 1.1s ease infinite; }

@keyframes back-in-up {
  0% { transform: translateY(80%) scale(0.595); opacity: 0.7; }
  80% { transform: translateY(-8%) scale(0.595); }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}
.anim-back-in-up { animation: back-in-up 1.1s ease infinite; }

@keyframes back-out-down {
  0% { transform: scale(1); opacity: 1; }
  20% { transform: translateY(0) scale(0.595); }
  100% { transform: translateY(80%) scale(0.595); opacity: 0.7; }
}
.anim-back-out-down { animation: back-out-down 1.1s ease infinite; }

@keyframes back-out-left {
  0% { transform: scale(1); opacity: 1; }
  20% { transform: translateX(0) scale(0.595); }
  100% { transform: translateX(-80%) scale(0.595); opacity: 0.7; }
}
.anim-back-out-left { animation: back-out-left 1.1s ease infinite; }

@keyframes back-out-right {
  0% { transform: scale(1); opacity: 1; }
  20% { transform: translateX(0) scale(0.595); }
  100% { transform: translateX(80%) scale(0.595); opacity: 0.7; }
}
.anim-back-out-right { animation: back-out-right 1.1s ease infinite; }

@keyframes back-out-up {
  0% { transform: scale(1); opacity: 1; }
  20% { transform: translateY(0) scale(0.595); }
  100% { transform: translateY(-80%) scale(0.595); opacity: 0.7; }
}
.anim-back-out-up { animation: back-out-up 1.1s ease infinite; }

@keyframes bounce-in-down {
  0% { transform: translateY(-80%); opacity: 0; }
  60% { transform: translateY(10%); opacity: 1; }
  80% { transform: translateY(-4%); }
  100% { transform: translateY(0); }
}
.anim-bounce-in-down { animation: bounce-in-down 1.05s ease infinite; }

@keyframes bounce-in-left {
  0% { transform: translateX(-80%); opacity: 0; }
  60% { transform: translateX(10%); opacity: 1; }
  80% { transform: translateX(-4%); }
  100% { transform: translateX(0); }
}
.anim-bounce-in-left { animation: bounce-in-left 1.05s ease infinite; }

@keyframes bounce-in-right {
  0% { transform: translateX(80%); opacity: 0; }
  60% { transform: translateX(-10%); opacity: 1; }
  80% { transform: translateX(4%); }
  100% { transform: translateX(0); }
}
.anim-bounce-in-right { animation: bounce-in-right 1.05s ease infinite; }

@keyframes bounce-in-up {
  0% { transform: translateY(80%); opacity: 0; }
  60% { transform: translateY(-10%); opacity: 1; }
  80% { transform: translateY(4%); }
  100% { transform: translateY(0); }
}
.anim-bounce-in-up { animation: bounce-in-up 1.05s ease infinite; }

@keyframes bounce-out {
  0% { transform: scale(1); opacity: 1; }
  25% { transform: scale(0.950); }
  50% { transform: scale(1.050); opacity: 1; }
  100% { transform: scale(0.210); opacity: 0; }
}
.anim-bounce-out { animation: bounce-out 1.0s ease infinite; }

@keyframes bounce-out-down {
  0% { transform: translateY(0); opacity: 1; }
  20% { transform: translateY(-8%); }
  100% { transform: translateY(80%); opacity: 0; }
}
.anim-bounce-out-down { animation: bounce-out-down 1.0s ease infinite; }

@keyframes bounce-out-left {
  0% { transform: translateX(0); opacity: 1; }
  20% { transform: translateX(8%); }
  100% { transform: translateX(-80%); opacity: 0; }
}
.anim-bounce-out-left { animation: bounce-out-left 1.0s ease infinite; }

@keyframes bounce-out-right {
  0% { transform: translateX(0); opacity: 1; }
  20% { transform: translateX(-8%); }
  100% { transform: translateX(80%); opacity: 0; }
}
.anim-bounce-out-right { animation: bounce-out-right 1.0s ease infinite; }

@keyframes bounce-out-up {
  0% { transform: translateY(0); opacity: 1; }
  20% { transform: translateY(8%); }
  100% { transform: translateY(-80%); opacity: 0; }
}
.anim-bounce-out-up { animation: bounce-out-up 1.0s ease infinite; }

@keyframes fade-in-left {
  0% { opacity: 0; transform: translateX(-44px); }
  100% { opacity: 1; transform: translateX(0); }
}
.anim-fade-in-left { animation: fade-in-left 1.05s ease-out infinite; }

@keyframes fade-in-right {
  0% { opacity: 0; transform: translateX(44px); }
  100% { opacity: 1; transform: translateX(0); }
}
.anim-fade-in-right { animation: fade-in-right 1.05s ease-out infinite; }

@keyframes fade-in-up-big {
  0% { opacity: 0; transform: translateY(64.8px); }
  100% { opacity: 1; transform: translateY(0); }
}
.anim-fade-in-up-big { animation: fade-in-up-big 1.1s ease-out infinite; }

@keyframes fade-in-down-big {
  0% { opacity: 0; transform: translateY(-64.8px); }
  100% { opacity: 1; transform: translateY(0); }
}
.anim-fade-in-down-big { animation: fade-in-down-big 1.1s ease-out infinite; }

@keyframes fade-out-up {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-39.6px); }
}
.anim-fade-out-up { animation: fade-out-up 1.05s ease-in infinite; }

@keyframes fade-out-down {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(39.6px); }
}
.anim-fade-out-down { animation: fade-out-down 1.05s ease-in infinite; }

@keyframes fade-out-left {
  0% { opacity: 1; transform: translateX(0); }
  100% { opacity: 0; transform: translateX(-44px); }
}
.anim-fade-out-left { animation: fade-out-left 1.05s ease-in infinite; }

@keyframes fade-out-right {
  0% { opacity: 1; transform: translateX(0); }
  100% { opacity: 0; transform: translateX(44px); }
}
.anim-fade-out-right { animation: fade-out-right 1.05s ease-in infinite; }

@keyframes fade-in-top-left {
  0% { opacity: 0; transform: translate(-39.6px, -39.6px); }
  100% { opacity: 1; transform: translate(0, 0); }
}
.anim-fade-in-top-left { animation: fade-in-top-left 1.05s ease-out infinite; }

@keyframes fade-in-bottom-right {
  0% { opacity: 0; transform: translate(39.6px, 39.6px); }
  100% { opacity: 1; transform: translate(0, 0); }
}
.anim-fade-in-bottom-right { animation: fade-in-bottom-right 1.05s ease-out infinite; }

@keyframes flip-3d {
  0% { transform: perspective(72px) rotate3d(0, 1, 0, -360deg); }
  100% { transform: perspective(72px) rotate3d(0, 1, 0, 0deg); }
}
.anim-flip-3d { animation: flip-3d 1.2s ease-in-out infinite; transform-style: preserve-3d; }

@keyframes flip-in-x {
  0% { transform: perspective(72px) rotateX(90deg); opacity: 0; }
  40% { transform: perspective(72px) rotateX(-15deg); opacity: 1; }
  70% { transform: perspective(72px) rotateX(10deg); }
  100% { transform: perspective(72px) rotateX(0); }
}
.anim-flip-in-x { animation: flip-in-x 1.1s ease infinite; transform-style: preserve-3d; }

@keyframes flip-in-y {
  0% { transform: perspective(72px) rotateY(90deg); opacity: 0; }
  40% { transform: perspective(72px) rotateY(-15deg); opacity: 1; }
  70% { transform: perspective(72px) rotateY(10deg); }
  100% { transform: perspective(72px) rotateY(0); }
}
.anim-flip-in-y { animation: flip-in-y 1.1s ease infinite; transform-style: preserve-3d; }

@keyframes flip-out-x {
  0% { transform: perspective(72px) rotateX(0); opacity: 1; }
  100% { transform: perspective(72px) rotateX(90deg); opacity: 0; }
}
.anim-flip-out-x { animation: flip-out-x 1.0s ease infinite; transform-style: preserve-3d; }

@keyframes flip-out-y {
  0% { transform: perspective(72px) rotateY(0); opacity: 1; }
  100% { transform: perspective(72px) rotateY(90deg); opacity: 0; }
}
.anim-flip-out-y { animation: flip-out-y 1.0s ease infinite; transform-style: preserve-3d; }

@keyframes lightspeed-in-right {
  0% { transform: translateX(80%) skewX(-20deg); opacity: 0; }
  60% { transform: translateX(-5%) skewX(10deg); opacity: 1; }
  80% { transform: translateX(0) skewX(-5deg); }
  100% { transform: translateX(0) skewX(0); }
}
.anim-lightspeed-in-right { animation: lightspeed-in-right 1.05s ease-out infinite; }

@keyframes lightspeed-in-left {
  0% { transform: translateX(-80%) skewX(20deg); opacity: 0; }
  60% { transform: translateX(5%) skewX(-10deg); opacity: 1; }
  80% { transform: translateX(0) skewX(5deg); }
  100% { transform: translateX(0) skewX(0); }
}
.anim-lightspeed-in-left { animation: lightspeed-in-left 1.05s ease-out infinite; }

@keyframes lightspeed-out-right {
  0% { transform: translateX(0) skewX(0); opacity: 1; }
  100% { transform: translateX(80%) skewX(20deg); opacity: 0; }
}
.anim-lightspeed-out-right { animation: lightspeed-out-right 1.3s ease-in infinite; }

@keyframes lightspeed-out-left {
  0% { transform: translateX(0) skewX(0); opacity: 1; }
  100% { transform: translateX(-80%) skewX(-20deg); opacity: 0; }
}
.anim-lightspeed-out-left { animation: lightspeed-out-left 1.3s ease-in infinite; }

@keyframes rotate-in {
  0% { transform: rotate(-200deg); opacity: 0; }
  100% { transform: rotate(0); opacity: 1; }
}
.anim-rotate-in { animation: rotate-in 1.05s ease-out infinite; }

@keyframes rotate-in-down-left {
  0% { transform: rotate(-45deg); opacity: 0; transform-origin: left bottom; }
  100% { transform: rotate(0); opacity: 1; transform-origin: left bottom; }
}
.anim-rotate-in-down-left { animation: rotate-in-down-left 1.05s ease-out infinite; transform-origin: left bottom; }

@keyframes rotate-in-down-right {
  0% { transform: rotate(45deg); opacity: 0; transform-origin: right bottom; }
  100% { transform: rotate(0); opacity: 1; transform-origin: right bottom; }
}
.anim-rotate-in-down-right { animation: rotate-in-down-right 1.05s ease-out infinite; transform-origin: right bottom; }

@keyframes rotate-out {
  0% { transform: rotate(0); opacity: 1; }
  100% { transform: rotate(200deg); opacity: 0; }
}
.anim-rotate-out { animation: rotate-out 1.0s ease-in infinite; }

@keyframes rotate-out-up-right {
  0% { transform: rotate(0); opacity: 1; transform-origin: right bottom; }
  100% { transform: rotate(45deg); opacity: 0; transform-origin: right bottom; }
}
.anim-rotate-out-up-right { animation: rotate-out-up-right 1.0s ease-in infinite; transform-origin: right bottom; }

@keyframes hinge {
  0% { transform: rotate(0); transform-origin: top left; }
  20%, 60% { transform: rotate(80deg); transform-origin: top left; }
  40%, 80% { transform: rotate(60deg); transform-origin: top left; opacity: 1; }
  100% { transform: translateY(80%) rotate(80deg); transform-origin: top left; opacity: 0; }
}
.anim-hinge { animation: hinge 1.35s ease infinite; transform-origin: top left; }

@keyframes jack-in-the-box {
  0% { transform: scale(0.150) rotate(30deg); opacity: 0; }
  50% { transform: rotate(-10deg); opacity: 1; }
  70% { transform: rotate(3deg); }
  100% { transform: scale(1) rotate(0); }
}
.anim-jack-in-the-box { animation: jack-in-the-box 1.1s ease infinite; }

@keyframes roll-out {
  0% { transform: translateX(0) rotate(0); opacity: 1; }
  100% { transform: translateX(100%) rotate(120deg); opacity: 0; }
}
.anim-roll-out { animation: roll-out 1.1s ease-in infinite; }

@keyframes zoom-in-down {
  0% { transform: scale(0.150) translateY(-60%); opacity: 0; }
  60% { transform: scale(0.425) translateY(8%); opacity: 1; }
  100% { transform: scale(1) translateY(0); }
}
.anim-zoom-in-down { animation: zoom-in-down 1.05s ease infinite; }

@keyframes zoom-in-left {
  0% { transform: scale(0.150) translateX(-60%); opacity: 0; }
  60% { transform: scale(0.425) translateX(8%); opacity: 1; }
  100% { transform: scale(1) translateX(0); }
}
.anim-zoom-in-left { animation: zoom-in-left 1.05s ease infinite; }

@keyframes zoom-in-right {
  0% { transform: scale(0.150) translateX(60%); opacity: 0; }
  60% { transform: scale(0.425) translateX(-8%); opacity: 1; }
  100% { transform: scale(1) translateX(0); }
}
.anim-zoom-in-right { animation: zoom-in-right 1.05s ease infinite; }

@keyframes zoom-in-up {
  0% { transform: scale(0.150) translateY(60%); opacity: 0; }
  60% { transform: scale(0.425) translateY(-8%); opacity: 1; }
  100% { transform: scale(1) translateY(0); }
}
.anim-zoom-in-up { animation: zoom-in-up 1.05s ease infinite; }

@keyframes zoom-out-down {
  0% { transform: scale(1) translateY(0); opacity: 1; }
  40% { transform: scale(0.425) translateY(8%); opacity: 1; }
  100% { transform: scale(0.150) translateY(60%); opacity: 0; }
}
.anim-zoom-out-down { animation: zoom-out-down 1.05s ease infinite; }

@keyframes zoom-out-left {
  0% { transform: scale(1) translateX(0); opacity: 1; }
  40% { transform: scale(0.425) translateX(8%); opacity: 1; }
  100% { transform: scale(0.150) translateX(-60%); opacity: 0; }
}
.anim-zoom-out-left { animation: zoom-out-left 1.05s ease infinite; }

@keyframes zoom-out-right {
  0% { transform: scale(1) translateX(0); opacity: 1; }
  40% { transform: scale(0.425) translateX(-8%); opacity: 1; }
  100% { transform: scale(0.150) translateX(60%); opacity: 0; }
}
.anim-zoom-out-right { animation: zoom-out-right 1.05s ease infinite; }

@keyframes zoom-out-up {
  0% { transform: scale(1) translateY(0); opacity: 1; }
  40% { transform: scale(0.425) translateY(-8%); opacity: 1; }
  100% { transform: scale(0.150) translateY(-60%); opacity: 0; }
}
.anim-zoom-out-up { animation: zoom-out-up 1.05s ease infinite; }

@keyframes slide-out-up {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(-120%); opacity: 0; }
}
.anim-slide-out-up { animation: slide-out-up 1.1s ease-in infinite; }

@keyframes slide-out-down {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(120%); opacity: 0; }
}
.anim-slide-out-down { animation: slide-out-down 1.1s ease-in infinite; }

/* Hover.css-inspired transitions */
.anim-transition-hover-push {
  transition: transform 0.2s ease;
  cursor: pointer;
}
.anim-transition-hover-push:hover { transform: scale(0.900); }

.anim-transition-hover-sink {
  transition: transform 0.25s ease;
  cursor: pointer;
}
.anim-transition-hover-sink:hover { transform: translateY(15.6px); }

.anim-transition-hover-bob {
  cursor: pointer;
}
.anim-transition-hover-bob:hover {
  animation: float-y 0.6s ease-in-out infinite;
}

@keyframes hover-buzz {
  50% { transform: translateX(5.2px) rotate(1deg); }
  0%, 100% { transform: translateX(-5.2px) rotate(-1deg); }
}
.anim-transition-hover-buzz { cursor: pointer; }
.anim-transition-hover-buzz:hover { animation: hover-buzz 0.1s linear infinite; }

.anim-transition-hover-grow-rotate {
  transition: transform 0.3s ease;
  cursor: pointer;
}
.anim-transition-hover-grow-rotate:hover { transform: scale(1.225) rotate(6deg); }

.anim-transition-hover-skew-forward {
  transition: transform 0.25s ease;
  cursor: pointer;
}
.anim-transition-hover-skew-forward:hover { transform: skewX(-12deg); }

.anim-transition-hover-sweep-right {
  position: relative;
  overflow: hidden;
  z-index: 0;
  cursor: pointer;
  transition: color 0.3s ease;
  background: #2a3a52 !important;
}
.anim-transition-hover-sweep-right::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #e06090;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
  z-index: -1;
}
.anim-transition-hover-sweep-right:hover::before { transform: scaleX(1); }

.anim-transition-hover-radial-out {
  position: relative;
  overflow: hidden;
  z-index: 0;
  cursor: pointer;
  background: #2a3a52 !important;
}
.anim-transition-hover-radial-out::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #7c6cf0;
  border-radius: 50%;
  transform: scale(0.150);
  transition: transform 0.4s ease;
  z-index: -1;
}
.anim-transition-hover-radial-out:hover::before { transform: scale(1.550); }

.anim-transition-hover-underline-left {
  position: relative;
  cursor: pointer;
  background: #2a3a52 !important;
}
.anim-transition-hover-underline-left::after {
  content: "";
  position: absolute;
  left: 15.6px;
  right: 15.6px;
  bottom: 10.4px;
  height: 5.2px;
  background: #5b9fd4;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.anim-transition-hover-underline-left:hover::after { transform: scaleX(1); }

.anim-transition-hover-border-ripple {
  position: relative;
  cursor: pointer;
}
.anim-transition-hover-border-ripple::after {
  content: "";
  position: absolute;
  inset: -10.4px;
  border: 5.2px solid #5b9fd4;
  border-radius: 31.2px;
  opacity: 0;
  transform: scale(0.850);
  transition: transform 0.35s ease, opacity 0.35s ease;
}
.anim-transition-hover-border-ripple:hover::after {
  opacity: 1;
  transform: scale(1.225);
}

/* Loaders */
@keyframes dual-ring-spin {
  to { transform: rotate(360deg); }
}
.anim-loading-dual-ring {
  width: 47.6px;
  height: 47.6px;
  border-radius: 50%;
  border: 7.8px solid transparent;
  border-top-color: #38bdf8;
  border-bottom-color: #7c6cf0;
  animation: dual-ring-spin 0.9s linear infinite;
}

@keyframes bar-bounce {
  0%, 100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1); }
}
.anim-loading-bars {
  display: flex;
  align-items: flex-end;
  gap: 7.8px;
  height: 40.8px;
}
.anim-loading-bars span {
  width: 10.4px;
  height: 100%;
  background: #5b9fd4;
  border-radius: 5.2px;
  animation: bar-bounce 0.9s ease-in-out infinite;
}
.anim-loading-bars span:nth-child(2) { animation-delay: 0.1s; }
.anim-loading-bars span:nth-child(3) { animation-delay: 0.2s; }
.anim-loading-bars span:nth-child(4) { animation-delay: 0.3s; }

@keyframes ripple-pair {
  0% { transform: scale(0.210); opacity: 0.9; }
  100% { transform: scale(1.550); opacity: 0; }
}
.anim-loading-ripple-pair {
  position: relative;
  width: 47.6px;
  height: 47.6px;
}
.anim-loading-ripple-pair::before,
.anim-loading-ripple-pair::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 5.2px solid #5b9fd4;
  border-radius: 50%;
  animation: ripple-pair 1.2s ease-out infinite;
}
.anim-loading-ripple-pair::after { animation-delay: 0.6s; }

@keyframes pulse-ring {
  0% { transform: scale(0.595); opacity: 1; }
  100% { transform: scale(1.480); opacity: 0; }
}
.anim-loading-pulse-ring {
  width: 37.4px;
  height: 37.4px;
  border: 7.8px solid #7c6cf0;
  border-radius: 50%;
  animation: pulse-ring 1s ease-out infinite;
}

@keyframes glitch {
  0%, 100% { transform: translate(0); text-shadow: 0 0 transparent; }
  20% { transform: translate(-5.2px, 2.6px); filter: drop-shadow(5.2px 0 #e06090) drop-shadow(-5.2px 0 #5b9fd4); }
  40% { transform: translate(5.2px, -2.6px); filter: drop-shadow(-5.2px 0 #e06090) drop-shadow(5.2px 0 #5b9fd4); }
  60% { transform: translate(-2.6px, 5.2px); }
  80% { transform: translate(2.6px, -5.2px); }
}
.anim-glitch { animation: glitch 0.7s steps(2) infinite; }

@keyframes neon-flicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
    box-shadow: 0 0 10.4px #5b9fd4, 0 0 31.2px #5b9fd4, 0 0 44px #7c6cf0;
  }
  20%, 24%, 55% {
    box-shadow: none;
  }
}
.anim-neon-flicker {
  animation: neon-flicker 1.35s linear infinite;
  background: #1a2332 !important;
  border: 2.6px solid #5b9fd4;
  color: #9fd0f5;
}

@keyframes ken-burns {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.400) translate(-6%, -4%); }
}
.anim-ken-burns { animation: ken-burns 1.8s ease-in-out infinite alternate; }

@keyframes marquee {
  0% { transform: translateX(68px); }
  100% { transform: translateX(-68px); }
}
.anim-marquee { animation: marquee 1.35s linear infinite; }

@keyframes drop {
  0% { transform: translateY(-67.5px); opacity: 0; }
  60% { transform: translateY(15.6px); opacity: 1; }
  80% { transform: translateY(-7.8px); }
  100% { transform: translateY(0); }
}
.anim-drop { animation: drop 1.0s ease infinite; }

@keyframes rise {
  0% { transform: translateY(68px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.anim-rise { animation: rise 1.0s ease-out infinite; }

@keyframes rotate-scale {
  0% { transform: rotate(0) scale(0.850); }
  50% { transform: rotate(180deg) scale(1.225); }
  100% { transform: rotate(360deg) scale(0.850); }
}
.anim-rotate-scale { animation: rotate-scale 1.35s linear infinite; }

@keyframes sepia-pulse {
  0%, 100% { filter: sepia(0); }
  50% { filter: sepia(1); }
}
.anim-sepia-pulse { animation: sepia-pulse 1.2s ease-in-out infinite; }

@keyframes invert-flash {
  0%, 100% { filter: invert(0); }
  50% { filter: invert(1); }
}
.anim-invert-flash { animation: invert-flash 1.2s step-end infinite; }

@keyframes accordion-y {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.25); }
}
.anim-accordion-y { animation: accordion-y 1.0s ease-in-out infinite; transform-origin: center; }

@keyframes accordion-x {
  0%, 100% { transform: scaleX(1); }
  50% { transform: scaleX(0.25); }
}
.anim-accordion-x { animation: accordion-x 1.0s ease-in-out infinite; transform-origin: center; }

@keyframes spin-pulse {
  0% { transform: rotate(0) scale(1); }
  50% { transform: rotate(180deg) scale(1.320); }
  100% { transform: rotate(360deg) scale(1); }
}
.anim-spin-pulse { animation: spin-pulse 1.1s ease-in-out infinite; }

@keyframes pendulum {
  0%, 100% { transform: rotate(25deg); }
  50% { transform: rotate(-25deg); }
}
.anim-pendulum {
  transform-origin: top center;
  animation: pendulum 1.1s ease-in-out infinite;
}

@keyframes zigzag {
  0% { transform: translate(0, 0); }
  25% { transform: translate(31.2px, -20.8px); }
  50% { transform: translate(0, 0); }
  75% { transform: translate(-31.2px, 20.8px); }
  100% { transform: translate(0, 0); }
}
.anim-zigzag { animation: zigzag 1.0s linear infinite; }

@keyframes slide-diagonal {
  0%, 100% { transform: translate(-31.2px, -20.8px); }
  50% { transform: translate(31.2px, 20.8px); }
}
.anim-slide-diagonal { animation: slide-diagonal 1.1s ease-in-out infinite; }

@keyframes fog {
  0%, 100% { filter: blur(0); opacity: 1; }
  50% { filter: blur(15.6px); opacity: 0.45; }
}
.anim-fog { animation: fog 1.35s ease-in-out infinite; }

@keyframes mirror-bounce {
  0%, 100% { transform: scaleX(1) translateY(0); }
  30% { transform: scaleX(-1) translateY(-26px); }
  60% { transform: scaleX(1) translateY(0); }
}
.anim-mirror-bounce { animation: mirror-bounce 1.0s ease-in-out infinite; }

@keyframes tracking-in {
  0% { letter-spacing: 0.4em; opacity: 0; }
  40% { opacity: 1; }
  100% { letter-spacing: 0; opacity: 1; }
}
.anim-tracking-in {
  animation: tracking-in 1.2s ease infinite;
  width: auto !important;
  padding: 0 10.4px;
  background: transparent !important;
  color: #b8d4f0;
  font-size: 0.75rem;
}

@keyframes shadow-pop {
  0%, 100% { box-shadow: 5.2px 5.2px 0 #000; transform: translate(0, 0); }
  50% { box-shadow: 15.6px 15.6px 0 #000; transform: translate(-5.2px, -5.2px); }
}
.anim-shadow-pop { animation: shadow-pop 1.2s ease-in-out infinite; }

@keyframes border-spin {
  to { --angle: 360deg; }
}
.anim-border-spin {
  background:
    linear-gradient(var(--preview-bg, #0c1017), var(--preview-bg, #0c1017)) padding-box,
    conic-gradient(from var(--angle, 0deg), #5b9fd4, #7c6cf0, #e06090, #5b9fd4) border-box !important;
  border: 7.8px solid transparent;
  animation: border-spin 1.2s linear infinite;
  property: --angle;
}
@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@keyframes sheen-move {
  0% { transform: translateX(-120%) skewX(-20deg); }
  100% { transform: translateX(120%) skewX(-20deg); }
}
.anim-sheen {
  position: relative;
  overflow: hidden;
}
.anim-sheen::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.55), transparent);
  animation: sheen-move 1.2s ease-in-out infinite;
}

@keyframes blur-slide {
  0% { transform: translateX(-51px); filter: blur(15.6px); opacity: 0; }
  100% { transform: translateX(0); filter: blur(0); opacity: 1; }
}
.anim-blur-slide { animation: blur-slide 1.05s ease-out infinite; }

@keyframes rotate-x-3d {
  0% { transform: perspective(72px) rotateX(0); }
  100% { transform: perspective(72px) rotateX(360deg); }
}
.anim-rotate-x-3d {
  animation: rotate-x-3d 2.2s linear infinite;
  transform-style: preserve-3d;
}

@keyframes float-shadow {
  0%, 100% {
    transform: translateY(0);
    box-shadow: 0 5.2px 10.4px rgba(0,0,0,0.35);
  }
  50% {
    transform: translateY(-26px);
    box-shadow: 0 30.8px 39.6px rgba(0,0,0,0.25);
  }
}
.anim-float-shadow { animation: float-shadow 1.35s ease-in-out infinite; }
