@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
  html {
    scroll-behavior: smooth;
  }
  body {
    @apply bg-nova-bg text-nova-text font-sans antialiased;
  }
}

@layer components {
  .glass-card {
    @apply bg-nova-surface/60 backdrop-blur-xl border border-nova-border rounded-2xl;
  }
  .glow-primary {
    box-shadow: 0 0 30px rgba(108, 99, 255, 0.3);
  }
  .glow-accent {
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.3);
  }
}

/* Scroll reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.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; }

/* Shooting stars / meteors */
@keyframes meteor {
  0% {
    transform: translateX(0) translateY(0) rotate(-45deg);
    opacity: 1;
  }
  70% { opacity: 1; }
  100% {
    transform: translateX(-600px) translateY(600px) rotate(-45deg);
    opacity: 0;
  }
}
.meteor {
  position: absolute;
  width: 2px;
  height: 80px;
  background: linear-gradient(to bottom, rgba(108, 99, 255, 0), rgba(108, 99, 255, 0.6), rgba(255, 255, 255, 0.8));
  border-radius: 999px;
  animation: meteor 3s linear infinite;
}

/* Gradient text shimmer */
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}
.text-shimmer {
  background: linear-gradient(90deg, #6C63FF, #00E5FF, #FF44CC, #6C63FF);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 4s linear infinite;
}

/* Floating badge pulse ring */
@keyframes ping-slow {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(2); opacity: 0; }
}
.ping-slow {
  animation: ping-slow 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

/* Counter number animation */
@keyframes countUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Phone float */
@keyframes phoneFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-8px) rotate(0.5deg); }
  75% { transform: translateY(4px) rotate(-0.5deg); }
}
.phone-float {
  animation: phoneFloat 5s ease-in-out infinite;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #0A0E1A;
}
::-webkit-scrollbar-thumb {
  background: #1E2548;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #6C63FF;
}
