/* ============================================
   NANDA TECH – Animations & Particles CSS
   ============================================ */

/* Particle canvas overlay effect */
#heroCanvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
}

/* Glowing border animation for service cards */
@keyframes borderGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(109,40,217,0.3); }
  50% { box-shadow: 0 0 50px rgba(109,40,217,0.6), 0 0 80px rgba(6,182,212,0.2); }
}

/* Floating keyframes */
@keyframes floatUpDown {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
}

/* Rotating gradient border */
@keyframes rotateBorder {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Neon text pulse */
@keyframes neonPulse {
  0%, 100% { text-shadow: 0 0 10px rgba(139,92,246,0.5), 0 0 20px rgba(139,92,246,0.3); }
  50% { text-shadow: 0 0 20px rgba(139,92,246,1), 0 0 40px rgba(139,92,246,0.6), 0 0 60px rgba(6,182,212,0.4); }
}

/* Morphing blob */
@keyframes morphBlob {
  0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
}

/* Gradient sweep animation */
@keyframes gradientSweep {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Process step hover line animation */
.process-step::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%; transform: translateX(-50%);
  width: 0; height: 3px;
  background: var(--gradient);
  border-radius: 2px;
  transition: width 0.4s ease;
}
.process-step:hover::after { width: 60%; }

/* Loaded state for service cards */
.service-card-inner.loaded {
  animation: cardIn 0.6s ease forwards;
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Shiny effect on hover for buttons */
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.15), transparent);
  transform: skewX(-15deg);
  animation: buttonShine 3s ease-in-out infinite 1s;
}
@keyframes buttonShine {
  0% { left: -100%; }
  100% { left: 200%; }
}

/* Loading dots animation */
@keyframes loadingDots {
  0%, 80%, 100% { transform: scale(0); opacity: 0; }
  40% { transform: scale(1); opacity: 1; }
}

/* Section entrance animation */
.slide-up {
  animation: slideUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(60px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Typewriter cursor */
.typewriter-cursor {
  display: inline-block;
  width: 3px;
  height: 1em;
  background: var(--primary-light);
  margin-left: 4px;
  vertical-align: text-bottom;
  animation: cursorBlink 1s step-end infinite;
}
@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Number counter pulse */
.stat-number {
  display: inline-block;
  animation: numberGlow 2s ease-in-out infinite;
}
@keyframes numberGlow {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.3); }
}

/* Portfolio card 3D tilt effect */
.portfolio-card {
  transition: transform 0.3s ease;
  transform-style: preserve-3d;
}

/* Glassmorphism card shine */
.service-card-inner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.15), transparent);
  z-index: 2;
}

/* Animated gradient background for featured pricing */
.pricing-card.featured {
  background-size: 200% 200% !important;
  animation: gradientSweep 5s ease infinite;
}

/* WhatsApp ripple */
.whatsapp-float::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(37,211,102,0.3);
  animation: rippleEffect 2s ease-out infinite;
}
@keyframes rippleEffect {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(2); opacity: 0; }
}

/* Star rating animation */
.testi-stars {
  background: linear-gradient(to right, #fbbf24, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: starsGlow 3s ease-in-out infinite;
}
@keyframes starsGlow {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.4); }
}

/* Mobile menu slide animation */
.nav-links {
  animation: none;
}
.nav-links.open {
  animation: menuSlide 0.3s ease-out forwards;
}
@keyframes menuSlide {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Ticker hover pause */
.ticker-section:hover .ticker-track {
  animation-play-state: paused;
}

/* Grid pattern overlay */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(109,40,217,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(109,40,217,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 0;
  pointer-events: none;
}

/* Noise texture overlay */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}
