/* Animations for domain.com */

/* Fade In Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.fade-in {
  animation: fadeIn 0.8s ease-in-out forwards;
}

/* Slide Up Animation */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-up {
  animation: slideUp 0.8s ease-out forwards;
}

/* Gradient Animation */
@keyframes gradientFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.gradient-bg {
  background: linear-gradient(-45deg, var(--midnight-indigo), var(--crimson-alloy), var(--glacier-mint), var(--electric-amber));
  background-size: 400% 400%;
  animation: gradientFlow 15s ease infinite;
}

/* Hero Background Animation */
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--midnight-indigo) 0%, rgba(26, 30, 54, 0.8) 100%);
  opacity: 0.9;
  z-index: 1;
}

/* Scale In Animation */
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.scale-in {
  animation: scaleIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Testimonial Carousel Animation */
@keyframes slide1 {
  0%, 25% { opacity: 1; z-index: 3; }
  33%, 92% { opacity: 0; z-index: 1; }
  100% { opacity: 0; z-index: 1; }
}

@keyframes slide2 {
  0%, 25% { opacity: 0; z-index: 1; }
  33%, 58% { opacity: 1; z-index: 3; }
  66%, 100% { opacity: 0; z-index: 1; }
}

@keyframes slide3 {
  0%, 58% { opacity: 0; z-index: 1; }
  66%, 92% { opacity: 1; z-index: 3; }
  100% { opacity: 0; z-index: 1; }
}

.testimonial-slide:nth-child(1) {
  animation: slide1 15s infinite;
}

.testimonial-slide:nth-child(2) {
  animation: slide2 15s infinite;
}

.testimonial-slide:nth-child(3) {
  animation: slide3 15s infinite;
}

/* CSS-Only Scroll Animation Classes */
.reveal {
  animation: fadeIn 1s ease-in-out forwards;
}

.reveal-left {
  animation: slideInLeft 1s ease-in-out forwards;
}

.reveal-right {
  animation: slideInRight 1s ease-in-out forwards;
}

.reveal-up {
  animation: slideInUp 1s ease-in-out forwards;
}

/* CSS animations for reveal */
@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes slideInLeft {
  0% {
    opacity: 0;
    transform: translateX(-50px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  0% {
    opacity: 0;
    transform: translateX(50px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInUp {
  0% {
    opacity: 0;
    transform: translateY(50px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Sequential animation delays */
.delay-100 { animation-delay: 0.1s; transition-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; transition-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; transition-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; transition-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; transition-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; transition-delay: 0.6s; }
.delay-700 { animation-delay: 0.7s; transition-delay: 0.7s; }
.delay-800 { animation-delay: 0.8s; transition-delay: 0.8s; }

/* Pulse Animation */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.pulse {
  animation: pulse 2s infinite;
}

/* Floating Animation */
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

.float {
  animation: float 5s ease-in-out infinite;
}

/* Button Hover Animation */
.btn {
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::after {
  width: 300px;
  height: 300px;
}

/* Form Field Animation */
.form-control {
  position: relative;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  border-color: var(--electric-amber);
}
