/* =========================================================
   TYTOZ GALLERY
   Animations Stylesheet
   Tattoo Artist: Akash Kumar
========================================================= */


/* =========================================================
   FADE IN
========================================================= */

.fade-in {
  animation: fadeIn 0.8s ease forwards;
}


@keyframes fadeIn {
  
  from {
    opacity: 0;
  }
  
  to {
    opacity: 1;
  }
  
}


/* =========================================================
   FADE UP
========================================================= */

.fade-up {
  animation: fadeUp 0.8s ease forwards;
}


@keyframes fadeUp {
  
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  
  to {
    opacity: 1;
    transform: translateY(0);
  }
  
}


/* =========================================================
   FADE DOWN
========================================================= */

.fade-down {
  animation: fadeDown 0.8s ease forwards;
}


@keyframes fadeDown {
  
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  
  to {
    opacity: 1;
    transform: translateY(0);
  }
  
}


/* =========================================================
   SCALE IN
========================================================= */

.scale-in {
  animation: scaleIn 0.7s ease forwards;
}


@keyframes scaleIn {
  
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  
  to {
    opacity: 1;
    transform: scale(1);
  }
  
}


/* =========================================================
   SLIDE LEFT
========================================================= */

.slide-left {
  animation: slideLeft 0.8s ease forwards;
}


@keyframes slideLeft {
  
  from {
    opacity: 0;
    transform: translateX(-35px);
  }
  
  to {
    opacity: 1;
    transform: translateX(0);
  }
  
}


/* =========================================================
   SLIDE RIGHT
========================================================= */

.slide-right {
  animation: slideRight 0.8s ease forwards;
}


@keyframes slideRight {
  
  from {
    opacity: 0;
    transform: translateX(35px);
  }
  
  to {
    opacity: 1;
    transform: translateX(0);
  }
  
}


/* =========================================================
   HERO CONTENT
========================================================= */

.hero-content>* {
  
  animation:
    heroItem 0.8s ease both;
  
}


.hero-content>*:nth-child(1) {
  animation-delay: 0.15s;
}


.hero-content>*:nth-child(2) {
  animation-delay: 0.25s;
}


.hero-content>*:nth-child(3) {
  animation-delay: 0.35s;
}


.hero-content>*:nth-child(4) {
  animation-delay: 0.45s;
}


.hero-content>*:nth-child(5) {
  animation-delay: 0.55s;
}


@keyframes heroItem {
  
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  
  to {
    opacity: 1;
    transform: translateY(0);
  }
  
}


/* =========================================================
   HOVER LIFT
========================================================= */

.hover-lift {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}


.hover-lift:hover {
  
  transform: translateY(-5px);
  
  box-shadow:
    0 12px 35px rgba(0, 0, 0, 0.3);
  
}


/* =========================================================
   IMAGE ZOOM
========================================================= */

.image-zoom {
  overflow: hidden;
}


.image-zoom img {
  
  transition:
    transform 0.5s ease;
  
}


.image-zoom:hover img {
  
  transform: scale(1.06);
  
}


/* =========================================================
   BUTTON PRESS
========================================================= */

.btn:active {
  
  transform: translateY(0) scale(0.98);
  
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
  
  *,
  *::before,
  *::after {
    
    animation-duration: 0.01ms !important;
    
    animation-iteration-count: 1 !important;
    
    scroll-behavior: auto !important;
    
    transition-duration: 0.01ms !important;
    
  }
  
}


/* =========================================================
   END
========================================================= */
