@import 'variables.css';

/* Reveal Text Animation */
.reveal-text {
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s, transform 0.8s;
  transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);
}

.reveal-text.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Reveal Slide Animation */
.reveal-slide {
  position: relative;
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.8s, transform 0.8s;
  transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);
}

.reveal-slide.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Delay Classes */
.delay-1 {
  transition-delay: 0.2s;
}

.delay-2 {
  transition-delay: 0.4s;
}

.delay-3 {
  transition-delay: 0.6s;
}

/* Animated Background Gradient */
@keyframes gradientBG {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Typing Animation */
.typing-animation {
  width: 0;
  overflow: hidden;
  white-space: nowrap;
  animation: typing 4s steps(40, end) forwards;
  animation-delay: 1s;
}

@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

/* Pulse Animation */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

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

/* Hover Effects */
.hover-scale {
  transition: transform 0.3s ease;
}

.hover-scale:hover {
  transform: scale(1.05);
}

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

.hover-shadow:hover {
  box-shadow: 0 10px 25px -5px var(--shadow);
}

/* Loading Spinner */
.spinner {
  width: 40px;
  height: 40px;
  margin: 100px auto;
  background-color: var(--color-primary);
  border-radius: 100%;  
  animation: sk-scaleout 1.0s infinite ease-in-out;
}

@keyframes sk-scaleout {
  0% { 
    transform: scale(0);
  } 
  100% {
    transform: scale(1.0);
    opacity: 0;
  }
}

/* Animated Button */
.animated-btn {
  position: relative;
  overflow: hidden;
}

.animated-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(-100%);
  transition: transform 0.3s ease-out;
  z-index: 0;
}

.animated-btn:hover::before {
  transform: translateX(0);
}

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

.bounce {
  animation: bounce 2s infinite;
}

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

.rotate {
  animation: rotate 4s linear infinite;
}