/* PixGrid Landing - Custom CSS
   Supplements Tailwind CDN with animations and utilities */

/* Smooth fade-in on page load */
@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in-slow {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.15);
  }
  50% {
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.3);
  }
}

/* Utility animation classes */
.animate-fade-in {
  animation: fade-in 0.6s ease-out both;
}

.animate-fade-in-slow {
  animation: fade-in-slow 1s ease-out both;
}

.animate-pulse-glow {
  animation: pulse-glow 3s ease-in-out infinite;
}

/* Stagger delays for feature cards */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }
.stagger-6 { animation-delay: 0.6s; }

/* Custom scrollbar for dark theme */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #0f1117;
}

::-webkit-scrollbar-thumb {
  background: #2a2d3a;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #3a3d4a;
}

/* Focus-visible outlines for accessibility */
*:focus-visible {
  outline: 2px solid #6366f1;
  outline-offset: 2px;
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Selection colors */
::selection {
  background: rgba(99, 102, 241, 0.3);
  color: #fff;
}
