/* ===================================
   BILLY PRINT 3D — ANIMATIONS
   =================================== */

/* ---- REVEAL ON SCROLL ---- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ---- FLOATING PARTICLES ---- */
.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-blue);
  opacity: 0;
  animation: floatParticle var(--duration, 8s) var(--delay, 0s) infinite ease-in-out;
}

@keyframes floatParticle {
  0%   { opacity: 0; transform: translateY(100vh) scale(0); }
  10%  { opacity: 0.6; }
  90%  { opacity: 0.3; }
  100% { opacity: 0; transform: translateY(-100px) scale(1.5); }
}

/* ---- HERO TITLE ANIMATION ---- */
.hero-title .word {
  display: inline-block;
  animation: wordReveal 0.7s ease forwards;
  opacity: 0;
}

.hero-title .word:nth-child(1) { animation-delay: 0.1s; }
.hero-title .word:nth-child(2) { animation-delay: 0.2s; }
.hero-title .word:nth-child(3) { animation-delay: 0.3s; }
.hero-title .word:nth-child(4) { animation-delay: 0.4s; }
.hero-title .word:nth-child(5) { animation-delay: 0.5s; }

@keyframes wordReveal {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- NEON PULSE ---- */
.neon-pulse {
  animation: neonPulse 2.5s ease-in-out infinite;
}

@keyframes neonPulse {
  0%, 100% { text-shadow: 0 0 10px rgba(0, 200, 255, 0.5), 0 0 30px rgba(0, 200, 255, 0.3); }
  50%       { text-shadow: 0 0 20px rgba(0, 200, 255, 0.9), 0 0 60px rgba(0, 200, 255, 0.5), 0 0 100px rgba(0, 200, 255, 0.2); }
}

/* ---- SPIN ANIMATION ---- */
.spin-slow {
  animation: spin 20s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ---- FLOAT ANIMATION ---- */
.float {
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

/* ---- SHIMMER ---- */
.shimmer {
  position: relative;
  overflow: hidden;
}

.shimmer::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.05) 50%, transparent 100%);
  animation: shimmer 2.5s infinite;
}

@keyframes shimmer {
  from { left: -100%; }
  to   { left: 200%; }
}

/* ---- COUNTER ANIMATION ---- */
.count-up {
  animation: countUp 1.5s ease forwards;
}

/* ---- PROGRESS BAR ---- */
.progress-bar {
  height: 4px;
  background: var(--bg-secondary);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--grad-accent);
  border-radius: var(--radius-full);
  width: 0%;
  transition: width 1s ease;
}

/* ---- CURSOR GLOW ---- */
.cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 200, 255, 0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  transition: left 0.15s ease, top 0.15s ease;
}

/* ---- TYPING CURSOR ---- */
.typing-cursor {
  display: inline-block;
  width: 3px;
  height: 1em;
  background: var(--accent-blue);
  margin-left: 2px;
  vertical-align: middle;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ---- CART BOUNCE ---- */
@keyframes cartBounce {
  0%   { transform: scale(1); }
  30%  { transform: scale(1.3); }
  60%  { transform: scale(0.9); }
  80%  { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.cart-bounce { animation: cartBounce 0.5s ease; }

/* ---- BUTTON RIPPLE ---- */
.btn {
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease, opacity 0.4s ease;
  opacity: 0;
}

.btn:active::after {
  width: 300px;
  height: 300px;
  opacity: 1;
  transition: 0s;
}

/* ---- GRID STAGGER ---- */
.stagger-grid > * {
  opacity: 0;
  transform: translateY(20px);
  animation: staggerIn 0.5s ease forwards;
}

.stagger-grid > *:nth-child(1) { animation-delay: 0.05s; }
.stagger-grid > *:nth-child(2) { animation-delay: 0.10s; }
.stagger-grid > *:nth-child(3) { animation-delay: 0.15s; }
.stagger-grid > *:nth-child(4) { animation-delay: 0.20s; }
.stagger-grid > *:nth-child(5) { animation-delay: 0.25s; }
.stagger-grid > *:nth-child(6) { animation-delay: 0.30s; }
.stagger-grid > *:nth-child(7) { animation-delay: 0.35s; }
.stagger-grid > *:nth-child(8) { animation-delay: 0.40s; }

@keyframes staggerIn {
  to { opacity: 1; transform: translateY(0); }
}

/* ---- GLOW BORDER ---- */
.glow-border {
  position: relative;
}

.glow-border::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: var(--grad-accent);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.glow-border:hover::before { opacity: 0.5; }

/* ---- PRICE TAG ANIMATION ---- */
.price-highlight {
  animation: priceGlow 3s ease-in-out infinite;
}

@keyframes priceGlow {
  0%, 100% { text-shadow: none; }
  50%       { text-shadow: 0 0 15px rgba(192, 122, 107, 0.5); }
}

/* ---- HERO BG PATTERN ---- */
.hex-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image:
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c07a6b' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

/* ---- WHATSAPP FLOAT BTN ---- */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  cursor: pointer;
  transition: var(--transition-normal);
  animation: waPulse 2s infinite;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
  fill: white;
}

@keyframes waPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
  50%       { box-shadow: 0 4px 30px rgba(37, 211, 102, 0.7), 0 0 0 8px rgba(37, 211, 102, 0.1); }
}
