/* ============================================================
   FastPOS.org — Additional Animations CSS
   ============================================================ */

/* Animated gradient background */
.animated-gradient-bg {
  background: linear-gradient(-45deg, #060d1a, #0a1628, #001c3d, #003366);
  background-size: 400% 400%;
  animation: gradientShift 10s ease infinite;
}
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Glowing border animation */
@keyframes borderGlow {
  0%,100% { box-shadow: 0 0 5px var(--primary-glow), 0 0 10px var(--primary-glow); }
  50% { box-shadow: 0 0 20px var(--primary-glow), 0 0 40px var(--primary-glow), 0 0 60px var(--primary-glow); }
}
.glow-border { animation: borderGlow 2s ease infinite; }

/* Typing cursor blink */
.typing-cursor::after {
  content: '|';
  animation: blink 1s step-end infinite;
  color: var(--primary);
}
@keyframes blink { 0%,100% { opacity:1; } 50% { opacity:0; } }

/* Number counter animation */
.counter-value { display: inline-block; }

/* Scroll-triggered number counter */
.count-up { display: inline-block; }

/* Hero animated rings */
.animated-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--primary-glow);
  animation: expandRing 3s ease-out infinite;
}
@keyframes expandRing {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* Floating particles */
.particles-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.particle {
  position: absolute;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0;
  animation: particleFloat var(--duration, 8s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}
@keyframes particleFloat {
  0% { opacity: 0; transform: translateY(100vh) scale(0); }
  10% { opacity: 0.3; }
  90% { opacity: 0.3; }
  100% { opacity: 0; transform: translateY(-100px) scale(1); }
}

/* Icon bounce */
@keyframes bounce {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.bounce { animation: bounce 2s ease infinite; }

/* Slide in animations for mobile menu */
@keyframes slideInRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

/* Ripple effect */
.ripple {
  position: relative;
  overflow: hidden;
}
.ripple::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  background: rgba(255,255,255,0.3);
  border-radius: 50%;
  transform: translate(-50%,-50%);
  transition: width 0.6s ease, height 0.6s ease, opacity 0.6s ease;
  opacity: 0;
}
.ripple:active::before {
  width: 300px; height: 300px;
  opacity: 0;
}

/* Progress bar animation */
.progress-bar {
  height: 6px;
  background: var(--border-light);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 8px;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: 10px;
  transition: width 1.5s cubic-bezier(0.4,0,0.2,1);
  width: 0;
}
.progress-fill.animated { width: var(--progress, 75%); }

/* Tilt effect overlay */
.tilt-card { transform-style: preserve-3d; transition: transform 0.2s ease; }

/* Neon glow text */
.neon-text {
  color: var(--primary);
  text-shadow: 0 0 10px var(--primary-glow), 0 0 20px var(--primary-glow);
}

/* Active nav indicator */
.nav-active-indicator {
  position: absolute;
  bottom: -2px;
  left: 50%; right: 50%;
  height: 2px;
  background: var(--primary);
  border-radius: 10px;
  transition: all 0.3s ease;
}
.nav-links > li > a.active .nav-active-indicator { left: 0; right: 0; }

/* Section divider */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 0;
}

/* Glassmorphism hero overlay */
.glass-hero {
  background: var(--bg-glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.15);
}

/* Skeleton loading */
.skeleton {
  background: linear-gradient(90deg, var(--bg-alt) 25%, var(--border-light) 50%, var(--bg-alt) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: 8px;
}
@keyframes skeleton-shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Stagger children animation */
.stagger-children > * {
  animation: fadeInUp 0.6s ease both;
}
.stagger-children > *:nth-child(1) { animation-delay: 0.0s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.2s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.3s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.4s; }
.stagger-children > *:nth-child(6) { animation-delay: 0.5s; }

/* Hover lift */
.hover-lift { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.hover-lift:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

/* Image glow */
.img-glow {
  box-shadow: 0 0 40px var(--primary-glow);
  border-radius: 24px;
}

/* Accent line */
.accent-line {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: 10px;
  margin: 16px 0;
}
.accent-line-center { margin: 16px auto; }

/* Page transition */
.page-transition {
  animation: fadeIn 0.4s ease;
}

/* WhatsApp floating button */
.wa-float {
  position: fixed;
  bottom: 90px;
  right: 28px;
  width: 52px; height: 52px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  box-shadow: 0 4px 20px rgba(37,211,102,0.5);
  z-index: 100;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  animation: waFloat 3s ease-in-out infinite;
}
.wa-float:hover {
  transform: scale(1.15);
  box-shadow: 0 8px 30px rgba(37,211,102,0.6);
}
@keyframes waFloat {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.wa-float::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(37,211,102,0.4);
  animation: waRipple 2s ease infinite;
}
@keyframes waRipple {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.4); opacity: 0; }
}
