.loader {
  animation: loaderRemove 2s 4s forwards cubic-bezier(0.25, 0.8, 0.25, 1);
}

@keyframes loaderRemove {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
.loaderText::before {
  animation: loadComplete 4.5s forwards cubic-bezier(0.25, 0.8, 0.25, 1);
}

@keyframes loadComplete {
  0% {
    width: 0;
    height: 10px;
    transform: scale(1);
    opacity: 1;
  }
  75% {
    width: 100%;
    height: 10px;
    transform: scale(1);
  }
  77% {
    width: 100%;
    height: 10px;
    transform: scale(1);
  }
  90% {
    width: 100%;
    height: 100%;
    transform: scale(1);
    opacity: 1;
  }
  100% {
    width: 100%;
    transform: scale(6);
    height: 100%;
    opacity: 0;
  }
}
.loaderText span {
  animation: changeColor 1s 3.5s forwards cubic-bezier(0.25, 0.8, 0.25, 1);
}
@keyframes changeColor {
  from {
    color: var(--headingLight);
  }
  to {
    color: var(--headingDark);
  }
}
.loaderText {
  animation: reveal 2s cubic-bezier(0.25, 0.8, 0.25, 1) 4.5s forwards;
}
@keyframes reveal {
  0% {
    min-height: 10px;
    min-width: 0px;
    opacity: 1;
  }
  99% {
    min-height: 10px;
    min-width: 0px;
    opacity: 0;
  }
  100% {
    display: none;
    min-height: 10px;
    min-width: 0px;
    opacity: 0;
  }
}
.text-line .word {
  display: inline-block;
  transition: 1s var(--transition);
  transform: translateY(100px);
  opacity: 0;
}
.textAnimate .word {
  animation: fade 1s forwards var(--transition);
}
@keyframes fade {
  from {
    transform: translateY(100px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.explode-circle {
  animation: explode 0.5s forwards;
}

.desplode-circle {
  animation: desplode 0.5s forwards;
}

@keyframes explode {
  0% {
    width: 0px;
    height: 0px;
    margin-left: 0px;
    margin-top: 0px;
    /* background-color: rgba(42, 53, 80, 0.2); */
    background-color: var(--headingDark);
  }
  100% {
    width: 400px;
    height: 400px;
    margin-left: -200px;
    margin-top: -200px;
    background-color: var(--headingDark);
  }
}

@keyframes desplode {
  0% {
    width: 400px;
    height: 400px;
    margin-left: -200px;
    margin-top: -200px;
    /* background-color: rgba(20, 180, 87, 0.8); */
    background-color: var(--primary-color);
  }
  100% {
    width: 0px;
    height: 0px;
    margin-left: 0px;
    margin-top: 0px;
    background-color: rgba(129, 80, 108, 0.6);
  }
}

@keyframes pulse-border {
  0% {
    transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1.5);
    opacity: 0;
  }
}
