/* 
   LUX Neo Animations CSS
   Animation styles for the LUX Neo website
*/

/* Fade In */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

/* Fade In Up */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.5s ease forwards;
}

/* Fade In Down */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-down {
  animation: fadeInDown 0.5s ease forwards;
}

/* Fade In Left */
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.fade-in-left {
  animation: fadeInLeft 0.5s ease forwards;
}

/* Fade In Right */
@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.fade-in-right {
  animation: fadeInRight 0.5s ease forwards;
}

/* Scale In */
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

/* Pulse */
@keyframes pulse {
  0%, 100% {
    opacity: 0.3;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

.pulse {
  animation: pulse 1.5s infinite ease-in-out;
}

/* Bounce */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-20px);
  }
  60% {
    transform: translateY(-10px);
  }
}

.bounce {
  animation: bounce 2s infinite;
}

/* Spin */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.spin {
  animation: spin 2s linear infinite;
}

/* Shimmer */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.shimmer {
  background: linear-gradient(
    90deg,
    rgba(var(--dark-700), 0) 0%,
    rgba(var(--dark-600), 0.5) 50%,
    rgba(var(--dark-700), 0) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

/* Typing */
@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blink-caret {
  from, to {
    border-color: transparent;
  }
  50% {
    border-color: rgb(var(--entity-deployment-rgb));
  }
}

.typing {
  overflow: hidden;
  white-space: nowrap;
  border-right: 3px solid rgb(var(--entity-deployment-rgb));
  animation: 
    typing 3.5s steps(40, end),
    blink-caret 0.75s step-end infinite;
}

/* Floating */
@keyframes floating {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

.floating {
  animation: floating 3s ease-in-out infinite;
}

/* Glow */
@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 5px rgba(var(--entity-deployment-rgb), 0.5);
  }
  50% {
    box-shadow: 0 0 20px rgba(var(--entity-deployment-rgb), 0.8);
  }
}

.glow {
  animation: glow 2s ease-in-out infinite;
}

/* Text Pulse */
@keyframes textPulse {
  0%, 100% {
    opacity: 0.7;
  }
  50% {
    opacity: 1;
  }
}

.animate-text-pulse {
  animation: textPulse 2s infinite ease-in-out;
}

/* Card Hover */
@keyframes cardHover {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-5px);
  }
}

.card-hover {
  animation: cardHover 0.3s forwards ease-out;
}

/* Animation Delays */
.delay-100 {
  animation-delay: 0.1s;
}

.delay-200 {
  animation-delay: 0.2s;
}

.delay-300 {
  animation-delay: 0.3s;
}

.delay-400 {
  animation-delay: 0.4s;
}

.delay-500 {
  animation-delay: 0.5s;
}

.delay-600 {
  animation-delay: 0.6s;
}

.delay-700 {
  animation-delay: 0.7s;
}

.delay-800 {
  animation-delay: 0.8s;
}

.delay-900 {
  animation-delay: 0.9s;
}

.delay-1000 {
  animation-delay: 1s;
}

/* Animation Durations */
.duration-300 {
  animation-duration: 0.3s;
}

.duration-500 {
  animation-duration: 0.5s;
}

.duration-700 {
  animation-duration: 0.7s;
}

.duration-1000 {
  animation-duration: 1s;
}

.duration-1500 {
  animation-duration: 1.5s;
}

.duration-2000 {
  animation-duration: 2s;
}

/* Staggered Animation for Lists */
.stagger-list > * {
  opacity: 0;
}

.stagger-list > *:nth-child(1) {
  animation: fadeInUp 0.5s ease forwards 0.1s;
}

.stagger-list > *:nth-child(2) {
  animation: fadeInUp 0.5s ease forwards 0.2s;
}

.stagger-list > *:nth-child(3) {
  animation: fadeInUp 0.5s ease forwards 0.3s;
}

.stagger-list > *:nth-child(4) {
  animation: fadeInUp 0.5s ease forwards 0.4s;
}

.stagger-list > *:nth-child(5) {
  animation: fadeInUp 0.5s ease forwards 0.5s;
}

.stagger-list > *:nth-child(6) {
  animation: fadeInUp 0.5s ease forwards 0.6s;
}

.stagger-list > *:nth-child(7) {
  animation: fadeInUp 0.5s ease forwards 0.7s;
}

.stagger-list > *:nth-child(8) {
  animation: fadeInUp 0.5s ease forwards 0.8s;
}

.stagger-list > *:nth-child(9) {
  animation: fadeInUp 0.5s ease forwards 0.9s;
}

.stagger-list > *:nth-child(10) {
  animation: fadeInUp 0.5s ease forwards 1s;
}

/* Scroll Animations */
.animate-on-scroll {
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.fade-up {
  transform: translateY(20px);
}

.animate-on-scroll.fade-down {
  transform: translateY(-20px);
}

.animate-on-scroll.fade-left {
  transform: translateX(-20px);
}

.animate-on-scroll.fade-right {
  transform: translateX(20px);
}

.animate-on-scroll.scale {
  transform: scale(0.95);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translate(0) scale(1);
}

/* Power Up Animations */
@keyframes powerUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    box-shadow: 0 0 15px rgba(var(--entity-deployment-rgb), 0.2);
  }
}

@keyframes powerUpClient {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    box-shadow: 0 0 15px rgba(var(--entity-client-rgb), 0.2);
  }
}

@keyframes powerUpKeyword {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    box-shadow: 0 0 15px rgba(var(--entity-keyword-rgb), 0.2);
  }
}

.animate-power-up {
  animation: powerUp 0.5s ease forwards;
  opacity: 0;
  transform: translateY(20px);
}

.animate-power-up-client {
  animation: powerUpClient 0.5s ease forwards;
  opacity: 0;
  transform: translateY(20px);
}

.animate-power-up-keyword {
  animation: powerUpKeyword 0.5s ease forwards;
  opacity: 0;
  transform: translateY(20px);
}

/* Animation Classes */
.animate-fade-in {
  opacity: 0;
  animation: fadeIn 0.5s ease forwards;
}

.animate-slide-in-top {
  opacity: 0;
  transform: translateY(-20px);
  animation: fadeInDown 0.5s ease forwards;
}

.animate-slide-in-right {
  opacity: 0;
  transform: translateX(20px);
  animation: fadeInRight 0.5s ease forwards;
}

.animate-slide-in-bottom {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.5s ease forwards;
}

.animate-slide-in-left {
  opacity: 0;
  transform: translateX(-20px);
  animation: fadeInLeft 0.5s ease forwards;
}
