/*--------------------- Light box css ---------------------*/

.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s ease;
}

.lightbox-overlay.show {
  opacity: 1;
  visibility: visible;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 30px;
  color: #fff;
  cursor: pointer;
  z-index: 100000;
  background: rgba(0,0,0,0.4);
  border-radius: 50%;
  padding: 5px 12px;
  transition: 0.3s ease;
}

.lightbox-close:hover {
  background: rgba(255,255,255,0.2);
  transform: scale(1.1);
}

.lightbox-overlay img {
  max-width: 90%;
  max-height: 90%;
  transform: scale(0.8);
  transition: 0.3s ease;
}

.lightbox-overlay.show img {
  transform: scale(1);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.lightbox-trigger {
  cursor: pointer;
}

/* =========================
Mobile (UNDER 765)
========================= */

@media (max-width:765px){
    
    .lightbox-overlay {
        background: rgba(0,0,0,1);
    }
    
    .lightbox-overlay img {
        max-width: 100%;
        max-height: 100%;
    }
}


/* --------------------- This are all type of Animation css from hear --------------------- */

@keyframes fadeInScaleDown {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.scale-in {
  animation: fadeInScaleDown 1.2s ease-out forwards;
  opacity: 0;
  will-change: transform, opacity;
}
/*-----------------------------------------------------------*/
@keyframes blink-animation {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

.blink {
  animation: blink-animation 2.5s ease-in-out infinite;
  will-change: opacity;
}
/*-----------------------------------------------------------*/
@keyframes green-blink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

.blink-slow svg,
.blink-slow p svg {
  animation: green-blink 3s ease-in-out infinite;
  will-change: opacity;
}
/*-----------------------------------------------------------*/
@keyframes heavyBounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  
  50% {
    opacity: 1;
    transform: scale(1.15);
  }

  70% {
    transform: scale(0.8);
  }

  90% {
    transform: scale(1.05);
  }
  
  100% {
    transform: scale(1);
  }
}

.bounce-heavy,
.bounce-heavy-2 {
  opacity: 0;
  will-change: transform, opacity;
}

.bounce-heavy.active,
.bounce-heavy-2.active {
  opacity: 1;
  animation: heavyBounceIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
/*-----------------------------------------------------------*/
@keyframes fluidWave {
  0% {
    opacity: 0;
    transform: translateY(var(--start-depth)); 
  }
  60% {
    opacity: 1;
    transform: translateY(var(--bounce));
  }
  85% {
    transform: translateY(5px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.svg-wave {
  --start-depth: 150px;
  --bounce: -10px;
  
  opacity: 0;
  will-change: transform, opacity;
  animation-name: fluidWave;
  animation-duration: 2.5s;
  animation-fill-mode: forwards;
  animation-timing-function: cubic-bezier(0.25, 1, 0.5, 1);
}

@media (max-width: 767px) {
  .svg-wave {
    --start-depth: 30px;
    --bounce: -5px;
  }
}

.svg-wave:nth-child(1) { animation-delay: 2s; }
.svg-wave:nth-child(2) { animation-delay: 2.2s; }
.svg-wave:nth-child(3) { animation-delay: 2.4s; }
/*-----------------------------------------------------------*/
@keyframes slideUp {
  to { transform: translateY(0); }
}

@keyframes curvedMove {
  0% { opacity: 0; transform: translate(-40%, 80%) rotate(-20deg); }
  60% { opacity: 1; }
  100% { opacity: 1; transform: translate(0, 0) rotate(10deg); }
}

.astronaut {
  transform: translateY(0);
  opacity: 1;
}

.spaceship {
  transform: translate(0, 0) rotate(10deg);
  opacity: 1;
}

@media screen and (min-width: 601px) {

  .astronaut:not(.start-anim) {
    transform: translateY(50%);
  }

  .spaceship:not(.start-anim) {
    opacity: 0;
    transform: translate(-50%, 100%) rotate(-20deg);
  }

  .start-anim .astronaut {
    animation: slideUp 3s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  }

  .start-anim .spaceship {
    animation: curvedMove 3.5s ease-in-out forwards;
  }
}
/*-----------------------------------------------------------*/
.scale-in-2 {
  opacity: 0;
  transform: scale(0.5);
  transition: transform 2s cubic-bezier(0.22, 1, 0.36, 1), opacity 1s ease-out;
  will-change: transform, opacity;
}

.scale-in-2.active {
  opacity: 1 !important;
  transform: scale(1) !important;
}
/*-----------------------------------------------------------*/
.reveal, 
.fade-left-big, 
.fade-in, 
.flip-x,
.flip-x-2,
.flip-y { 
  opacity: 0;
  will-change: transform, opacity;
  transition: transform 2s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.8s ease-out;
}

.reveal {
  transform: translateY(80px);
}

.fade-left-big {
  transform: translateX(-100px);
}

.fade-in {
  transform: scale(0.85);
}

.flip-x {
  transform: perspective(1000px) rotateX(90deg);
  backface-visibility: hidden;
}

.flip-x-2 {
  transform: perspective(1000px) rotateX(90deg);
  backface-visibility: hidden;
}

.flip-y {
  transform: perspective(1000px) rotateY(-90deg);
  backface-visibility: hidden;
}

.reveal.active, 
.fade-left-big.active, 
.fade-in.active, 
.flip-x.active,
.flip-x-2.active,
.flip-y.active {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1) rotateX(0) rotateY(0);
}
/*-----------------------------------------------------------*/
/* 1. The Animation */
@keyframes followTheLeader {
  0% {
    opacity: 0;
    transform: translateX(100vw);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.creature-img {
  opacity: 0;
  will-change: transform, opacity;
}

.section-wrapper.active .creature-img {
  animation: followTheLeader 2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.section-wrapper div:nth-of-type(1) .creature-img:nth-of-type(1) { animation-delay: 0.3s; }
.section-wrapper div:nth-of-type(1) .creature-img:nth-of-type(2) { animation-delay: 0.2s; }
.section-wrapper div:nth-of-type(1) .creature-img:nth-of-type(3) { animation-delay: 0.1s; }
.section-wrapper div:nth-of-type(1) .creature-img:nth-of-type(4) { animation-delay: 0s; }
.section-wrapper div:nth-of-type(2) .creature-img:nth-of-type(1) { animation-delay: 0.8s; }
.section-wrapper div:nth-of-type(2) .creature-img:nth-of-type(2) { animation-delay: 0.7s; }
.section-wrapper div:nth-of-type(2) .creature-img:nth-of-type(3) { animation-delay: 0.6s; }
.section-wrapper div:nth-of-type(2) .creature-img:nth-of-type(4) { animation-delay: 0.5s; }
.section-wrapper div:nth-of-type(2) .creature-img:nth-of-type(5) { animation-delay: 0.4s; }

@media (max-width: 767px) {
  .creature-img {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}