@import url('./design-system.css');

:root {
  --animation-duration-fast: 300ms;
  --animation-duration-normal: 500ms;
  --animation-duration-slow: 800ms;
  --animation-timing-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --animation-timing-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --animation-glow-color: rgba(0, 212, 255, 0.6);
  --animation-neon-color: rgba(0, 255, 157, 0.8);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

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

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.fade-in {
  animation: fadeIn var(--animation-duration-normal) var(--animation-timing-smooth);
}

.fade-in-up {
  animation: fadeInUp var(--animation-duration-normal) var(--animation-timing-smooth);
}

.fade-in-down {
  animation: fadeInDown var(--animation-duration-normal) var(--animation-timing-smooth);
}

.fade-in-left {
  animation: fadeInLeft var(--animation-duration-normal) var(--animation-timing-smooth);
}

.fade-in-right {
  animation: fadeInRight var(--animation-duration-normal) var(--animation-timing-smooth);
}

.fade-in-scale {
  animation: fadeInScale var(--animation-duration-normal) var(--animation-timing-smooth);
}

@keyframes slideInUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideInDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.slide-in-up {
  animation: slideInUp var(--animation-duration-normal) var(--animation-timing-smooth);
}

.slide-in-down {
  animation: slideInDown var(--animation-duration-normal) var(--animation-timing-smooth);
}

.slide-in-left {
  animation: slideInLeft var(--animation-duration-normal) var(--animation-timing-smooth);
}

.slide-in-right {
  animation: slideInRight var(--animation-duration-normal) var(--animation-timing-smooth);
}

.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }

@keyframes glowPulse {
  0%, 100% {
    box-shadow: 0 0 5px var(--animation-glow-color),
                0 0 10px var(--animation-glow-color),
                0 0 15px var(--animation-glow-color);
  }
  50% {
    box-shadow: 0 0 10px var(--animation-glow-color),
                0 0 20px var(--animation-glow-color),
                0 0 30px var(--animation-glow-color),
                0 0 40px var(--animation-glow-color);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.9;
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@keyframes neonFlicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
    opacity: 1;
  }
  20%, 24%, 55% {
    opacity: 0.9;
  }
  22% {
    opacity: 0.8;
  }
}

@keyframes borderGlow {
  0%, 100% {
    border-color: rgba(0, 212, 255, 0.5);
    box-shadow: 0 0 5px rgba(0, 212, 255, 0.3);
  }
  50% {
    border-color: rgba(0, 212, 255, 1);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.6);
  }
}

.glow-pulse {
  animation: glowPulse 2s ease-in-out infinite;
}

.pulse {
  animation: pulse 2s ease-in-out infinite;
}

.shimmer {
  background: linear-gradient(90deg, 
    rgba(255,255,255,0) 0%, 
    rgba(255,255,255,0.1) 50%, 
    rgba(255,255,255,0) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite linear;
}

.neon-flicker {
  animation: neonFlicker 3s infinite;
}

.border-glow {
  animation: borderGlow 2s ease-in-out infinite;
}

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

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

@keyframes floatDiagonal {
  0%, 100% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(10px, -10px);
  }
  50% {
    transform: translate(0, -20px);
  }
  75% {
    transform: translate(-10px, -10px);
  }
}

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

.float {
  animation: float 3s ease-in-out infinite;
}

.float-reverse {
  animation: floatReverse 3s ease-in-out infinite;
}

.float-diagonal {
  animation: floatDiagonal 4s ease-in-out infinite;
}

.float-slow {
  animation: floatSlow 6s ease-in-out infinite;
}

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

@keyframes rotateIn {
  from {
    opacity: 0;
    transform: rotate(-180deg) scale(0.5);
  }
  to {
    opacity: 1;
    transform: rotate(0) scale(1);
  }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes flipCard {
  0% {
    transform: perspective(1000px) rotateY(0);
  }
  100% {
    transform: perspective(1000px) rotateY(360deg);
  }
}

@keyframes tilt {
  0%, 100% {
    transform: perspective(1000px) rotateX(0) rotateY(0);
  }
  50% {
    transform: perspective(1000px) rotateX(5deg) rotateY(5deg);
  }
}

.rotate {
  animation: rotate var(--animation-duration-slow) linear infinite;
}

.rotate-in {
  animation: rotateIn var(--animation-duration-slow) var(--animation-timing-smooth);
}

.spin {
  animation: spin 1s linear infinite;
}

.flip-card {
  animation: flipCard 1s var(--animation-timing-smooth);
}

.tilt {
  animation: tilt 2s ease-in-out infinite;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes particleFloat {
  0%, 100% {
    transform: translateY(0) translateX(0);
    opacity: 0.3;
  }
  25% {
    transform: translateY(-20px) translateX(10px);
    opacity: 0.6;
  }
  50% {
    transform: translateY(-40px) translateX(0);
    opacity: 0.3;
  }
  75% {
    transform: translateY(-20px) translateX(-10px);
    opacity: 0.6;
  }
}

@keyframes gridMove {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 50px 50px;
  }
}

@keyframes scanline {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(100%);
  }
}

.gradient-shift {
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite;
}

.particle-float {
  animation: particleFloat 6s ease-in-out infinite;
}

.grid-move {
  animation: gridMove 20s linear infinite;
}

@keyframes clickPress {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.95);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes ripple {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  100% {
    transform: scale(4);
    opacity: 0;
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  10%, 30%, 50%, 70%, 90% {
    transform: translateX(-5px);
  }
  20%, 40%, 60%, 80% {
    transform: translateX(5px);
  }
}

@keyframes glitch {
  0%, 90%, 100% {
    transform: translate(0);
  }
  92% {
    transform: translate(-2px, 2px);
  }
  94% {
    transform: translate(2px, -2px);
  }
  96% {
    transform: translate(-2px, -2px);
  }
  98% {
    transform: translate(2px, 2px);
  }
}

@keyframes typewriter {
  from { width: 0; }
  to { width: 100%; }
}

.click-press {
  animation: clickPress 0.2s ease-in-out;
}

.ripple {
  animation: ripple 0.6s ease-out;
}

.bounce {
  animation: bounce 1s ease-out;
}

.shake {
  animation: shake 0.5s ease-in-out;
}

.glitch {
  animation: glitch 3s ease-in-out infinite;
}

.typewriter {
  overflow: hidden;
  white-space: nowrap;
  animation: typewriter var(--animation-duration-slow) steps(40, end) forwards;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.reveal-hidden {
  opacity: 0;
}

.reveal-from-bottom {
  transform: translateY(30px);
}

.reveal-from-top {
  transform: translateY(-30px);
}

.reveal-from-left {
  transform: translateX(-30px);
}

.reveal-from-right {
  transform: translateX(30px);
}

.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; }

.will-animate {
  will-change: transform, opacity;
}

.gpu-accelerated {
  transform: translateZ(0);
  backface-visibility: hidden;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal-on-scroll {
    opacity: 1;
    transform: none;
  }

  .will-animate {
    will-change: auto;
  }

  .float,
  .spin,
  .pulse,
  .glow-pulse,
  .neon-flicker,
  .shimmer,
  .bounce {
    animation: none;
  }
}