/* 
 * SureEntry.io Animations Stylesheet
 * This file contains animation styles for the SureEntry.io application
 */

/* Base Animation Classes */
.animate-fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-fade-in.animated {
  opacity: 1;
  transform: translateY(0);
}

.animate-slide-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-slide-up.animated {
  opacity: 1;
  transform: translateY(0);
}

.animate-slide-right {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-slide-right.animated {
  opacity: 1;
  transform: translateX(0);
}

.animate-slide-left {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-slide-left.animated {
  opacity: 1;
  transform: translateX(0);
}

.animate-scale {
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-scale.animated {
  opacity: 1;
  transform: scale(1);
}

/* Delay Classes */
.delay-100 {
  transition-delay: 0.1s;
}

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

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

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

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

/* Colored Block Animations */
.colored-block {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  height: 100%;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.colored-block.primary {
  background-color: #0d6efd;
}

.colored-block.success {
  background-color: #198754;
}

.colored-block.info {
  background-color: #0dcaf0;
}

/* Wave Animation */
.wave-animation {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40%;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="white" fill-opacity="0.1" d="M0,192L48,197.3C96,203,192,213,288,229.3C384,245,480,267,576,250.7C672,235,768,181,864,181.3C960,181,1056,235,1152,234.7C1248,235,1344,181,1392,154.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
  background-size: cover;
  animation: wave 15s linear infinite;
}

@keyframes wave {
  0% {
    background-position-x: 0;
  }
  100% {
    background-position-x: 1440px;
  }
}

/* Pulse Animation */
.pulse-animation {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  animation: pulse 3s ease-in-out infinite;
}

.pulse-animation:before, .pulse-animation:after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  animation: pulse 3s ease-in-out infinite;
}

.pulse-animation:before {
  animation-delay: 0.5s;
}

.pulse-animation:after {
  animation-delay: 1s;
}

@keyframes pulse {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

/* Particles Animation */
.particles-animation {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.particle {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  animation: float 10s linear infinite;
}

.particle:nth-child(1) {
  top: 20%;
  left: 20%;
  animation-duration: 15s;
}

.particle:nth-child(2) {
  top: 60%;
  left: 80%;
  width: 12px;
  height: 12px;
  animation-duration: 25s;
  animation-delay: 1s;
}

.particle:nth-child(3) {
  top: 40%;
  left: 40%;
  width: 10px;
  height: 10px;
  animation-duration: 20s;
  animation-delay: 2s;
}

.particle:nth-child(4) {
  top: 80%;
  left: 10%;
  width: 6px;
  height: 6px;
  animation-duration: 18s;
  animation-delay: 3s;
}

.particle:nth-child(5) {
  top: 10%;
  left: 60%;
  width: 9px;
  height: 9px;
  animation-duration: 22s;
  animation-delay: 4s;
}

@keyframes float {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100px) translateX(100px);
    opacity: 0;
  }
}

/* Feature Card Hover Effects */
.feature-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-card:hover .feature-icon {
  transform: scale(1.1);
  background-color: rgba(13, 110, 253, 0.2);
}

.feature-icon {
  transition: transform 0.3s ease, background-color 0.3s ease;
}

/* System Card Hover Effects */
.system-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  position: relative;
}

.system-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.system-card:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, #0d6efd, #6610f2);
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.3s ease;
}

.system-card:hover:after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* Button Hover Effects */
.btn {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn:after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%);
  transform-origin: 50% 50%;
}

.btn:hover:after {
  animation: ripple 1s ease-out;
}

@keyframes ripple {
  0% {
    transform: scale(0, 0);
    opacity: 0.5;
  }
  100% {
    transform: scale(20, 20);
    opacity: 0;
  }
}

/* Testimonial Card Hover Effects */
.testimonial-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.testimonial-card:hover .testimonial-quote {
  color: #0d6efd;
}

.testimonial-quote {
  transition: color 0.3s ease;
}

/* CTA Section Hover Effects */
.cta-section .btn {
  transition: all 0.3s ease;
}

.cta-section .btn-primary:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(13, 110, 253, 0.3);
}

.cta-section .btn-outline-secondary:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(108, 117, 125, 0.2);
}

/* Media Queries */
@media (max-width: 768px) {
  .animate-slide-right, 
  .animate-slide-left {
    transform: translateY(20px);
  }
  
  .animate-slide-right.animated, 
  .animate-slide-left.animated {
    transform: translateY(0);
  }
}
