/* ===================================================
   CRAZEON DIGI SOLUTION — Animations
   =================================================== */

/* — Gradient Shift (hero background) — */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
    filter: hue-rotate(0deg);
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
    filter: hue-rotate(15deg);
  }
}

/* — Shockwave Click Effect — */
@keyframes shockwave {
  0% {
    width: 4px;
    height: 4px;
    opacity: 1;
    border-width: 4px;
  }
  100% {
    width: 120px;
    height: 120px;
    opacity: 0;
    border-width: 0px;
  }
}

/* — Float (geometric shapes) — */
@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(var(--rot, 30deg));
  }
  50% {
    transform: translateY(-30px) rotate(calc(var(--rot, 30deg) + 10deg));
  }
}

/* — Word Reveal (hero text) — */
@keyframes wordReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* — Pulse Glow (CTA buttons) — */
@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.2), 0 0 30px rgba(0, 229, 255, 0.1);
  }
  50% {
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.4), 0 0 60px rgba(0, 229, 255, 0.2), 0 0 80px rgba(0, 255, 156, 0.1);
  }
}

/* — Fade Up (scroll reveal) — */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* — Slide In Left — */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* — Slide In Right — */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* — Scale In — */
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.85);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* — Shimmer (loading/decorative) — */
@keyframes shimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

/* — Spin (loader) — */
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* — Border Glow Rotate — */
@keyframes borderGlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* — Particle Float — */
@keyframes particleFloat {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.3;
  }
  25% {
    transform: translate(10px, -20px) scale(1.1);
    opacity: 0.6;
  }
  50% {
    transform: translate(-5px, -35px) scale(1);
    opacity: 0.4;
  }
  75% {
    transform: translate(15px, -15px) scale(0.9);
    opacity: 0.5;
  }
}

/* ===================================================
   Interactive Hover Effects
   =================================================== */

/* Service card glow on hover */
.service-card:hover {
  border-color: rgba(0, 229, 255, 0.3);
  box-shadow: 0 8px 40px rgba(0, 229, 255, 0.1), 0 0 0 1px rgba(0, 229, 255, 0.1);
}

.service-card:hover .card-icon {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.2), rgba(176, 96, 255, 0.2));
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.15);
}

/* Pricing card hover */
.pricing-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 229, 255, 0.25);
  box-shadow: 0 12px 48px rgba(0, 229, 255, 0.1);
}

/* Portfolio card hover */
.portfolio-card:hover {
  border-color: rgba(0, 229, 255, 0.3);
}

.portfolio-card:hover .card-image {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.15), rgba(176, 96, 255, 0.15));
}

/* Step card hover */
.step-card:hover {
  border-color: rgba(0, 229, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 229, 255, 0.08);
}

/* Testimonial card hover */
.testimonial-card:hover {
  border-color: rgba(176, 96, 255, 0.25);
  box-shadow: 0 8px 32px rgba(176, 96, 255, 0.08);
}

/* Stat card hover */
.stat-card:hover {
  border-color: rgba(0, 255, 156, 0.2);
}

.stat-card:hover .stat-number {
  text-shadow: 0 0 30px rgba(0, 229, 255, 0.3);
}

/* Contact info card hover */
.contact-info-card:hover {
  border-color: rgba(0, 229, 255, 0.25);
  box-shadow: 0 8px 32px rgba(0, 229, 255, 0.08);
}

/* Link arrow animation */
.card-link:hover .arrow {
  transform: translateX(4px);
}

.card-link .arrow {
  transition: transform var(--transition);
}

/* Button ripple effect */
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at center, rgba(255,255,255,0.15) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn:active::after {
  opacity: 1;
}

/* — Staggered animation delays for grid items — */
.fade-up:nth-child(1) { transition-delay: 0.05s; }
.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.15s; }
.fade-up:nth-child(4) { transition-delay: 0.2s; }
.fade-up:nth-child(5) { transition-delay: 0.25s; }
.fade-up:nth-child(6) { transition-delay: 0.3s; }
