/* ========================================
   TitanEdge — Animations & Effects
   ======================================== */

/* --- Particle Canvas --- */
#particles-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* --- Number Counter Animation --- */
@keyframes countUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Glow Keyframes --- */
@keyframes glowPulse {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(0, 212, 255, .3)); }
  50% { filter: drop-shadow(0 0 20px rgba(0, 212, 255, .6)); }
}
.glow-svg { animation: glowPulse 3s ease-in-out infinite; }

/* --- Card Shine --- */
.product-card::after {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: linear-gradient(
    45deg,
    transparent 40%,
    rgba(255,255,255,.02) 50%,
    transparent 60%
  );
  transform: rotate(0deg);
  transition: transform .6s;
  pointer-events: none;
}
.product-card:hover::after {
  transform: rotate(180deg);
}

/* --- Loading Skeleton --- */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,.04) 25%, rgba(255,255,255,.08) 50%, rgba(255,255,255,.04) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}

/* --- Smooth Scroll Indicator --- */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #555;
  font-size: .8rem;
  animation: bounce 2s ease-in-out infinite;
}
.scroll-indicator span {
  width: 20px; height: 32px;
  border: 2px solid #444;
  border-radius: 10px;
  position: relative;
}
.scroll-indicator span::after {
  content: '';
  width: 4px; height: 8px;
  background: #00d4ff;
  border-radius: 2px;
  position: absolute;
  top: 6px; left: 50%;
  transform: translateX(-50%);
  animation: scrollDot 2s ease-in-out infinite;
}
@keyframes scrollDot {
  0%, 100% { top: 6px; opacity: 1; }
  50% { top: 16px; opacity: .3; }
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

@media (max-width: 768px) {
  .scroll-indicator { display: none; }
}
