/**
 * Crumble Animation Styles
 * Extracted from Crumble Builder
 */

.animated:not(.dialog-widget-content) {
  animation-duration: 600ms !important;
}

.animated.animated-fast {
  animation-duration: 450ms !important;
}

.animated.animated-slow {
  animation-duration: 800ms !important;
}

.h-kenBurnsCrumble {
  transition-property: transform;
  transition-timing-function: linear;
}

.h-kenBurnsCrumble--out {
  transform: scale(1.3);
}

.h-kenBurnsCrumble--active {
  transition-duration: 20s;
}

.h-kenBurnsCrumble--active.h-kenBurnsCrumble--out {
  transform: scale(1);
}

.h-kenBurnsCrumble--active.h-kenBurnsCrumble--in {
  transform: scale(1.3);
}

body:not(.elementor-editor-active) .h-crumble-animation--wow:not(.active) {
  animation-name: none;
  opacity: 0;
  visibility: hidden;
}

body:not(.elementor-editor-active) .h-crumble-animation--wow.active {
  opacity: 1;
}

.h-crumble-animation--fadeIn {
  animation-name: fadeIn;
  animation-timing-function: ease;
}

.h-crumble-animation--slideUp {
  animation-name: slideUp;
  animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.h-crumble-animation--slideDown {
  animation-name: slideDown;
  animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.h-crumble-animation--slideFromLeft {
  animation-name: slideFromLeft;
  animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.h-crumble-animation--slideFromRight {
  animation-name: slideFromRight;
  animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.h-crumble-animation--scaleIn {
  animation-name: scaleIn;
  animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.h-crumble-animation--curtainUp {
  animation-name: curtainUp;
  animation-timing-function: cubic-bezier(0.165, 0.84, 0.44, 1);
}

.h-crumble-animation--curtainDown {
  animation-name: curtainDown;
  animation-timing-function: cubic-bezier(0.165, 0.84, 0.44, 1);
}

.h-crumble-animation--curtainFromLeft {
  animation-name: curtainFromLeft;
  animation-timing-function: cubic-bezier(0.165, 0.84, 0.44, 1);
}

.h-crumble-animation--curtainFromRight {
  animation-name: curtainFromRight;
  animation-timing-function: cubic-bezier(0.165, 0.84, 0.44, 1);
}

.h-crumble-animation--specialOne {
  animation-name: specialOne;
  transform-origin: top;
  animation-duration: 700ms;
  animation-timing-function: cubic-bezier(0.165, 0.84, 0.44, 1);
}

.h-crumble-animation--tiltUp {
  animation-name: tiltUp;
  animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.h-crumble-animation--tiltDown {
  animation-name: tiltDown;
  animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.h-crumble-animation--skewFromBottom {
  animation-name: skewFromBottom;
  transform-origin: top center;
  animation-duration: 800ms;
  animation-timing-function: cubic-bezier(0.165, 0.84, 0.44, 1);
}

.h-crumble-animation--skewFromTop {
  animation-name: skewFromTop;
  transform-origin: bottom center;
  animation-duration: 800ms;
  animation-timing-function: cubic-bezier(0.165, 0.84, 0.44, 1);
}

.h-crumble-animation--skewFromLeft {
  animation-name: skewFromLeft;
  transform-origin: center right;
  animation-duration: 800ms;
  animation-timing-function: cubic-bezier(0.165, 0.84, 0.44, 1);
}

.h-crumble-animation--skewFromRight {
  animation-name: skewFromRight;
  transform-origin: center left;
  animation-duration: 800ms;
  animation-timing-function: cubic-bezier(0.165, 0.84, 0.44, 1);
}

.h-crumble-animation--clipFromRight {
  animation-name: clipFromRight;
  animation-duration: 800ms;
  animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.h-crumble-animation--clipFromLeft {
  animation-name: clipFromLeft;
  animation-duration: 800ms;
  animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.h-crumble-animation--clipUp {
  animation-name: clipUp;
  animation-duration: 800ms;
  animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.h-crumble-animation--clipBottom {
  animation-name: clipBottom;
  animation-duration: 800ms;
  animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.h-crumble-animation--reverse {
  animation-fill-mode: forwards;
  animation-direction: reverse;
}

/* Hover Animations */
.elementor-animation-crumble-animation--slideRight {
  background-size: 200% 100%;
  background-repeat: no-repeat;
  background-position: right bottom;
}

.elementor-animation-crumble-animation--slideRight:hover {
  background-position: left bottom;
}

.elementor-animation-crumble-animation--slideDown {
  background-size: 100% 200%;
  background-repeat: no-repeat;
  background-position: center bottom;
}

.elementor-animation-crumble-animation--slideDown:hover {
  background-position: center top;
}

.elementor-animation-crumble-animation--slideLine span {
  position: relative;
  overflow: hidden;
}

.elementor-animation-crumble-animation--slideLine span::after {
  content: '';
  display: block;
  width: 300%;
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    currentColor 0,
    currentColor 33%,
    transparent 33%,
    transparent 66%,
    currentColor 66%,
    currentColor 100%
  );
  transform: translateX(-66%);
  transition: all 1.2s cubic-bezier(0.53, 0.95, 0.28, 1.03);
}

.elementor-animation-crumble-animation--slideLine span:hover::after {
  transform: translateX(0);
}

.elementor-animation-crumble-animation--iconForward .elementor-button-icon {
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.elementor-animation-crumble-animation--iconForward:hover .elementor-button-icon {
  transform: translateX(5px);
}

/* Keyframes */
@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes slideUp {
  0% { transform: matrix(1, 0, 0, 1, 0, 20); opacity: 0; }
  100% { transform: matrix(1, 0, 0, 1, 0, 0); opacity: 1; }
}

@keyframes slideDown {
  0% { transform: matrix(1, 0, 0, 1, 0, -20); opacity: 0; }
  100% { transform: matrix(1, 0, 0, 1, 0, 0); opacity: 1; }
}

@keyframes slideFromLeft {
  0% { transform: matrix(1, 0, 0, 1, -20, 0); opacity: 0; }
  100% { transform: matrix(1, 0, 0, 1, 0, 0); opacity: 1; }
}

@keyframes slideFromRight {
  0% { transform: matrix(1, 0, 0, 1, 20, 0); opacity: 0; }
  100% { transform: matrix(1, 0, 0, 1, 0, 0); opacity: 1; }
}

@keyframes scaleIn {
  0% { transform: matrix(0.92, 0, 0, 0.92, 0, 0); opacity: 0; }
  100% { transform: matrix(1, 0, 0, 1, 0, 0); opacity: 1; }
}

@keyframes curtainUp {
  0% { transform: translateY(100%); }
  100% { transform: translateY(0); }
}

@keyframes curtainDown {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(0); }
}

@keyframes curtainFromLeft {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(0); }
}

@keyframes curtainFromRight {
  0% { transform: translateX(100%); }
  100% { transform: translateX(0); }
}

@keyframes clipUp {
  0% { clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%); }
  100% { clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%); }
}

@keyframes clipBottom {
  0% { clip-path: polygon(0 0, 100% 0, 100% 0, 0 0); }
  100% { clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%); }
}

@keyframes clipFromLeft {
  0% { clip-path: polygon(0 0, 0 0, 0% 100%, 0% 100%); }
  100% { clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%); }
}

@keyframes clipFromRight {
  0% { clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%); }
  100% { clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%); }
}

@keyframes tiltUp {
  0% { transform: matrix(0.92, 0.03, 0, 0.92, 0, 20); opacity: 0; }
  100% { transform: matrix(1, 0, 0, 1, 0, 0); opacity: 1; }
}

@keyframes tiltDown {
  0% { transform: matrix(0.92, -0.03, 0, 0.92, 0, 20); opacity: 0; }
  100% { transform: matrix(1, 0, 0, 1, 0, 0); opacity: 1; }
}

@keyframes skewFromBottom {
  0% {
    -webkit-transform: skewY(1deg) scaleY(1.1) translateY(30px) translateZ(0);
    -ms-transform: skewY(1deg) scaleY(1.1) translateY(30px) translateZ(0);
    transform: skewY(1deg) scaleY(1.1) translateY(30px) translateZ(0);
    opacity: 0;
  }

  100% {
    -webkit-transform: skewY(0) scaleY(1) translateY(0) translateZ(0);
    -ms-transform: skewY(0) scaleY(1) translateY(0) translateZ(0);
    transform: skewY(0) scaleY(1) translateY(0) translateZ(0);
    opacity: 1;
  }
}

@keyframes skewFromTop {
  0% {
    -webkit-transform: skewY(-1deg) scaleY(1.1) translateY(-30px) translateZ(0);
    -ms-transform: skewY(-1deg) scaleY(1.1) translateY(-30px) translateZ(0);
    transform: skewY(-1deg) scaleY(1.1) translateY(-30px) translateZ(0);
    opacity: 0;
  }

  100% {
    -webkit-transform: skewY(0) scaleY(1) translateY(0) translateZ(0);
    -ms-transform: skewY(0) scaleY(1) translateY(0) translateZ(0);
    transform: skewY(0) scaleY(1) translateY(0) translateZ(0);
    opacity: 1;
  }
}

@keyframes skewFromLeft {
  0% {
    -webkit-transform: skewX(-1deg) scaleX(1.1) translateX(-30px) translateZ(0);
    -ms-transform: skewX(-1deg) scaleX(1.1) translateX(-30px) translateZ(0);
    transform: skewX(-1deg) scaleX(1.1) translateX(-30px) translateZ(0);
    opacity: 0;
  }

  100% {
    -webkit-transform: skewX(0) scaleX(1) translateX(0) translateZ(0);
    -ms-transform: skewX(0) scaleX(1) translateX(0) translateZ(0);
    transform: skewX(0) scaleX(1) translateX(0) translateZ(0);
    opacity: 1;
  }
}

@keyframes skewFromRight {
  0% {
    -webkit-transform: skewX(1deg) scaleX(1.1) translateX(30px) translateZ(0);
    -ms-transform: skewX(1deg) scaleX(1.1) translateX(30px) translateZ(0);
    transform: skewX(1deg) scaleX(1.1) translateX(30px) translateZ(0);
    opacity: 0;
  }

  100% {
    -webkit-transform: skewX(0) scaleX(1) translateX(0) translateZ(0);
    -ms-transform: skewX(0) scaleX(1) translateX(0) translateZ(0);
    transform: skewX(0) scaleX(1) translateX(0) translateZ(0);
    opacity: 1;
  }
}

@keyframes specialOne {
  0% { transform: rotateX(75deg) rotateY(10deg) rotateZ(-9deg); opacity: 0; }
  100% { transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg); opacity: 1; }
}
