/* ==========================================
   Advanced Animations & Effects
   Author: AI Web Development Assistant
   ========================================== */

/* ==========================================
   Keyframe Animations
   ========================================== */

/* Gradient Animation */
@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Float Animation */
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}

/* Bounce Animation */
@keyframes bounce {
  0%, 20%, 53%, 80%, 100% {
    transform: translate3d(0, 0, 0);
  }
  40%, 43% {
    transform: translate3d(0, -30px, 0);
  }
  70% {
    transform: translate3d(0, -15px, 0);
  }
  90% {
    transform: translate3d(0, -4px, 0);
  }
}

/* Pulse Animation */
@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.7);
  }
  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(255, 107, 107, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 107, 107, 0);
  }
}

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

/* Swing Animation */
@keyframes swing {
  15% { transform: translateX(5px); }
  30% { transform: translateX(-5px); }
  50% { transform: translateX(3px); }
  65% { transform: translateX(-3px); }
  80% { transform: translateX(2px); }
  100% { transform: translateX(0); }
}

/* Tada Animation */
@keyframes tada {
  0% { transform: scale(1); }
  10%, 20% { transform: scale(0.9) rotate(-3deg); }
  30%, 50%, 70%, 90% { transform: scale(1.1) rotate(3deg); }
  40%, 60%, 80% { transform: scale(1.1) rotate(-3deg); }
  100% { transform: scale(1) rotate(0); }
}

/* Wobble Animation */
@keyframes wobble {
  0% { transform: translateX(0%); }
  15% { transform: translateX(-25%) rotate(-5deg); }
  30% { transform: translateX(20%) rotate(3deg); }
  45% { transform: translateX(-15%) rotate(-3deg); }
  60% { transform: translateX(10%) rotate(2deg); }
  75% { transform: translateX(-5%) rotate(-1deg); }
  100% { transform: translateX(0%); }
}

/* Jello Animation */
@keyframes jello {
  0%, 100% { transform: scale(1, 1); }
  25% { transform: scale(0.9, 1.1); }
  50% { transform: scale(1.1, 0.9); }
  75% { transform: scale(0.95, 1.05); }
}

/* Heartbeat Animation */
@keyframes heartbeat {
  0% { transform: scale(1); }
  14% { transform: scale(1.3); }
  28% { transform: scale(1); }
  42% { transform: scale(1.3); }
  70% { transform: scale(1); }
}

/* Flash Animation */
@keyframes flash {
  0%, 50%, 100% { opacity: 1; }
  25%, 75% { opacity: 0; }
}

/* Rubber Band Animation */
@keyframes rubberBand {
  0% { transform: scale(1); }
  30% { transform: scaleX(1.25) scaleY(0.75); }
  40% { transform: scaleX(0.75) scaleY(1.25); }
  60% { transform: scaleX(1.15) scaleY(0.85); }
  100% { transform: scale(1); }
}

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

/* Ping Animation */
@keyframes ping {
  75%, 100% {
    transform: scale(2);
    opacity: 0;
  }
}

/* Bounce In Animation */
@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Fade In Animation */
@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

/* Fade In Up Animation */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fade In Down Animation */
@keyframes fadeInDown {
  0% {
    opacity: 0;
    transform: translateY(-30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fade In Left Animation */
@keyframes fadeInLeft {
  0% {
    opacity: 0;
    transform: translateX(-30px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Fade In Right Animation */
@keyframes fadeInRight {
  0% {
    opacity: 0;
    transform: translateX(30px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Zoom In Animation */
@keyframes zoomIn {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Slide In Left Animation */
@keyframes slideInLeft {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Slide In Right Animation */
@keyframes slideInRight {
  0% {
    transform: translateX(100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Slide In Up Animation */
@keyframes slideInUp {
  0% {
    transform: translateY(100%);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Slide In Down Animation */
@keyframes slideInDown {
  0% {
    transform: translateY(-100%);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Flip Animation */
@keyframes flip {
  0% {
    transform: perspective(400px) rotateY(0);
  }
  40% {
    transform: perspective(400px) translateZ(150px) rotateY(170deg);
  }
  50% {
    transform: perspective(400px) translateZ(150px) rotateY(190deg) scale(1);
  }
  80% {
    transform: perspective(400px) rotateY(360deg) scale(0.95);
  }
  100% {
    transform: perspective(400px) scale(1);
  }
}

/* Light Speed In Animation */
@keyframes lightSpeedIn {
  0% {
    transform: translateX(100%) skewX(-30deg);
    opacity: 0;
  }
  60% {
    transform: skewX(20deg);
    opacity: 1;
  }
  80% {
    transform: skewX(-5deg);
  }
  100% {
    transform: translateX(0);
  }
}

/* Roll In Animation */
@keyframes rollIn {
  0% {
    opacity: 0;
    transform: translateX(-100%) rotate(-120deg);
  }
  100% {
    opacity: 1;
    transform: translateX(0px) rotate(0deg);
  }
}

/* Rotate In Animation */
@keyframes rotateIn {
  0% {
    transform: rotate(-200deg);
    opacity: 0;
  }
  100% {
    transform: rotate(0deg);
    opacity: 1;
  }
}

/* ==========================================
   Advanced Hover Effects
   ========================================== */

/* 3D Tilt Effect */
.tilt-effect {
  transform-style: preserve-3d;
  transition: transform 0.1s ease;
}

.tilt-effect:hover {
  transform: perspective(1000px) rotateX(var(--rotate-x, 0deg)) rotateY(var(--rotate-y, 0deg));
}

/* Magnetic Effect */
.magnetic {
  position: relative;
  transition: transform 0.3s ease;
}

.magnetic:hover {
  transform: scale(1.05);
}

/* Ripple Effect */
.ripple {
  position: relative;
  overflow: hidden;
}

.ripple::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.ripple:hover::before {
  width: 300px;
  height: 300px;
}

/* Glow Effect */
.glow-effect {
  position: relative;
  overflow: hidden;
}

.glow-effect::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 70%
  );
  transform: rotate(45deg);
  transition: all 0.5s;
  opacity: 0;
}

.glow-effect:hover::before {
  animation: glow 1.5s ease-in-out;
}

@keyframes glow {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
    opacity: 0;
  }
}

/* Neon Effect */
.neon-effect {
  text-shadow: 
    0 0 10px currentColor,
    0 0 20px currentColor,
    0 0 30px currentColor,
    0 0 40px var(--primary-color);
  animation: neon-flicker 2s infinite alternate;
}

@keyframes neon-flicker {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

/* Holographic Effect */
.holographic {
  position: relative;
  overflow: hidden;
}

.holographic::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transition: left 0.5s;
}

.holographic:hover::before {
  left: 100%;
}

/* ==========================================
   Particle Effects
   ========================================== */

.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--primary-color);
  border-radius: 50%;
  opacity: 0;
  animation: particle-float 20s linear infinite;
}

.particle:nth-child(2n) {
  background: var(--secondary-color);
}

.particle:nth-child(3n) {
  background: var(--accent-color);
}

@keyframes particle-float {
  0% {
    opacity: 0;
    transform: translateY(100vh) scale(0);
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-100vh) scale(1);
  }
}

/* ==========================================
   Advanced 3D Effects
   ========================================== */

/* 3D Card Flip */
.flip-card {
  background-color: transparent;
  width: 300px;
  height: 200px;
  perspective: 1000px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
}

.flip-card-back {
  transform: rotateY(180deg);
}

/* 3D Cube */
.cube-container {
  perspective: 1000px;
  width: 200px;
  height: 200px;
  margin: 50px auto;
}

.cube {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  animation: cube-rotate 10s infinite linear;
}

.cube-face {
  position: absolute;
  width: 200px;
  height: 200px;
  background: var(--gradient-primary);
  opacity: 0.8;
  border: 2px solid white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
}

.cube-face.front { transform: translateZ(100px); }
.cube-face.back { transform: rotateY(180deg) translateZ(100px); }
.cube-face.right { transform: rotateY(90deg) translateZ(100px); }
.cube-face.left { transform: rotateY(-90deg) translateZ(100px); }
.cube-face.top { transform: rotateX(90deg) translateZ(100px); }
.cube-face.bottom { transform: rotateX(-90deg) translateZ(100px); }

@keyframes cube-rotate {
  0% { transform: rotateX(0deg) rotateY(0deg); }
  100% { transform: rotateX(360deg) rotateY(360deg); }
}

/* ==========================================
   Advanced Button Effects
   ========================================== */

/* Liquid Button */
.liquid-button {
  position: relative;
  padding: 15px 30px;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s ease;
}

.liquid-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.liquid-button:hover::before {
  width: 300px;
  height: 300px;
}

.liquid-button span {
  position: relative;
  z-index: 1;
}

/* Morphing Button */
.morphing-button {
  position: relative;
  padding: 15px 30px;
  background: var(--gradient-secondary);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
}

.morphing-button:hover {
  border-radius: 50px;
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(78, 205, 196, 0.4);
}

/* ==========================================
   Text Animations
   ========================================== */

/* Typewriter Effect */
.typewriter {
  overflow: hidden;
  border-right: 0.15em solid var(--primary-color);
  white-space: nowrap;
  margin: 0 auto;
  letter-spacing: 0.15em;
  animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

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

@keyframes blink-caret {
  from, to { border-color: transparent; }
  50% { border-color: var(--primary-color); }
}

/* Text Glow Effect */
.text-glow {
  text-shadow: 0 0 10px currentColor;
  animation: text-glow 2s ease-in-out infinite alternate;
}

@keyframes text-glow {
  from { text-shadow: 0 0 10px currentColor; }
  to { text-shadow: 0 0 20px currentColor, 0 0 30px currentColor; }
}

/* ==========================================
   Advanced Hover States
   ========================================== */

/* 3D Transform on Hover */
.hover-3d {
  transition: transform 0.3s ease;
  transform-style: preserve-3d;
}

.hover-3d:hover {
  transform: perspective(1000px) rotateX(10deg) rotateY(10deg) translateZ(50px);
}

/* Scale and Rotate */
.hover-scale-rotate {
  transition: all 0.3s ease;
}

.hover-scale-rotate:hover {
  transform: scale(1.1) rotate(5deg);
}

/* Skew Effect */
.hover-skew {
  transition: transform 0.3s ease;
}

.hover-skew:hover {
  transform: skew(-10deg, 5deg);
}

/* Perspective Effect */
.hover-perspective {
  perspective: 1000px;
}

.hover-perspective:hover {
  transform: perspective(1000px) rotateY(15deg);
}

/* ==========================================
   Advanced Loading Animations
   ========================================== */

/* Skeleton Loading */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, transparent 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
}

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

/* Dots Loading */
.dots-loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary-color);
  animation: dots-loading 1.4s infinite ease-in-out both;
}

.dots-loading::before,
.dots-loading::after {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary-color);
  position: absolute;
  top: 0;
  animation: dots-loading 1.4s infinite ease-in-out both;
}

.dots-loading::before {
  left: -30px;
  animation-delay: -0.32s;
}

.dots-loading::after {
  left: 30px;
  animation-delay: 0.32s;
}

@keyframes dots-loading {
  0%, 80%, 100% {
    transform: scale(0);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* ==========================================
   Advanced Interactive Effects
   ========================================== */

/* Cursor Trail Effect */
.cursor-trail {
  position: fixed;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary-color);
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.1s ease;
  mix-blend-mode: difference;
}

/* Magnetic Cursor Effect */
.magnetic-cursor {
  cursor: none;
}

.magnetic-cursor .cursor {
  position: fixed;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-color);
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.1s ease;
  mix-blend-mode: difference;
}

/* Parallax Effect */
.parallax-container {
  position: relative;
  overflow: hidden;
}

.parallax-element {
  position: absolute;
  will-change: transform;
}

/* ==========================================
   Advanced Responsive Animations
   ========================================== */

/* Mobile Optimized Animations */
@media (max-width: 768px) {
  .animate-on-mobile {
    animation-duration: 0.5s !important;
  }
  
  .disable-on-mobile {
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================
   Advanced Performance Optimizations
   ========================================== */

/* Hardware Acceleration */
.hardware-accelerated {
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}

/* Will Change Property */
.will-change-transform {
  will-change: transform;
}

.will-change-opacity {
  will-change: opacity;
}

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

/* Contain Property */
.contain-strict {
  contain: strict;
}

.contain-content {
  contain: content;
}

.contain-layout {
  contain: layout;
}

/* ==========================================
   Advanced Animation Utilities
   ========================================== */

/* Animation Delays */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }
.delay-700 { animation-delay: 0.7s; }
.delay-800 { animation-delay: 0.8s; }
.delay-900 { animation-delay: 0.9s; }
.delay-1000 { animation-delay: 1s; }

/* Animation Durations */
.duration-fast { animation-duration: 0.3s; }
.duration-normal { animation-duration: 0.5s; }
.duration-slow { animation-duration: 0.8s; }
.duration-slower { animation-duration: 1s; }

/* Animation Iterations */
.infinite { animation-iteration-count: infinite; }
.count-1 { animation-iteration-count: 1; }
.count-2 { animation-iteration-count: 2; }
.count-3 { animation-iteration-count: 3; }

/* Animation Directions */
.reverse { animation-direction: reverse; }
.alternate { animation-direction: alternate; }
.alternate-reverse { animation-direction: alternate-reverse; }

/* Animation Fill Modes */
.fill-none { animation-fill-mode: none; }
.fill-forwards { animation-fill-mode: forwards; }
.fill-backwards { animation-fill-mode: backwards; }
.fill-both { animation-fill-mode: both; }

/* ==========================================
   Advanced Hover Animations
   ========================================== */

/* Hover Lift Effect */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Hover Glow Effect */
.hover-glow {
  transition: box-shadow 0.3s ease;
}

.hover-glow:hover {
  box-shadow: 0 0 30px rgba(255, 107, 107, 0.6);
}

/* Hover Morph Effect */
.hover-morph {
  transition: all 0.3s ease;
}

.hover-morph:hover {
  border-radius: 50%;
  transform: scale(1.1);
}

/* Hover Shake Effect */
.hover-shake:hover {
  animation: shake 0.5s ease-in-out;
}

/* Hover Pulse Effect */
.hover-pulse:hover {
  animation: pulse 0.5s ease-in-out;
}

/* Hover Bounce Effect */
.hover-bounce:hover {
  animation: bounce 0.5s ease-in-out;
}

/* Hover Swing Effect */
.hover-swing:hover {
  animation: swing 0.5s ease-in-out;
}

/* Hover Tada Effect */
.hover-tada:hover {
  animation: tada 0.5s ease-in-out;
}

/* Hover Wobble Effect */
.hover-wobble:hover {
  animation: wobble 0.5s ease-in-out;
}

/* Hover Jello Effect */
.hover-jello:hover {
  animation: jello 0.5s ease-in-out;
}

/* Hover Heartbeat Effect */
.hover-heartbeat:hover {
  animation: heartbeat 0.5s ease-in-out;
}

/* Hover Flash Effect */
.hover-flash:hover {
  animation: flash 0.5s ease-in-out;
}

/* Hover Rubber Band Effect */
.hover-rubber-band:hover {
  animation: rubberBand 0.5s ease-in-out;
}

/* Hover Spin Effect */
.hover-spin:hover {
  animation: spin 0.5s ease-in-out;
}

/* ==========================================
   Advanced Scroll Animations
   ========================================== */

/* Scroll Reveal */
.scroll-reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.6s ease;
}

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

/* Scroll Parallax */
.scroll-parallax {
  transform: translateY(0);
  transition: transform 0.1s ease-out;
}

/* Scroll Scale */
.scroll-scale {
  transform: scale(0.8);
  transition: transform 0.6s ease;
}

.scroll-scale.scaled {
  transform: scale(1);
}

/* Scroll Rotate */
.scroll-rotate {
  transform: rotate(0deg);
  transition: transform 0.1s ease-out;
}

/* ==========================================
   Advanced Interactive States
   ========================================== */

/* Active State Animation */
.active-state {
  position: relative;
  overflow: hidden;
}

.active-state::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.active-state:active::before {
  width: 300px;
  height: 300px;
}

/* Focus State Animation */
.focus-state {
  transition: all 0.3s ease;
}

.focus-state:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.3);
  transform: scale(1.02);
}

/* Loading State Animation */
.loading-state {
  position: relative;
  overflow: hidden;
}

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

@keyframes loading-shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* ==========================================
   Advanced CSS Custom Properties
   ========================================== */

:root {
  /* Animation Timing Functions */
  --ease-in-quad: cubic-bezier(0.55, 0.085, 0.68, 0.53);
  --ease-in-cubic: cubic-bezier(0.55, 0.055, 0.675, 0.19);
  --ease-out-quad: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out-cubic: cubic-bezier(0.215, 0.61, 0.355, 1);
  --ease-in-out-quad: cubic-bezier(0.455, 0.03, 0.515, 0.955);
  --ease-in-out-cubic: cubic-bezier(0.645, 0.045, 0.355, 1);
  --ease-elastic: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  
  /* Animation Delays */
  --delay-100: 0.1s;
  --delay-200: 0.2s;
  --delay-300: 0.3s;
  --delay-400: 0.4s;
  --delay-500: 0.5s;
  --delay-600: 0.6s;
  --delay-700: 0.7s;
  --delay-800: 0.8s;
  --delay-900: 0.9s;
  --delay-1000: 1s;
  
  /* Animation Durations */
  --duration-fast: 0.3s;
  --duration-normal: 0.5s;
  --duration-slow: 0.8s;
  --duration-slower: 1s;
  --duration-slowest: 1.5s;
}

/* ==========================================
   Advanced Utility Classes
   ========================================== */

/* Animation Classes */
.animate-bounce { animation: bounce 1s infinite; }
.animate-pulse { animation: pulse 2s infinite; }
.animate-shake { animation: shake 0.5s ease-in-out; }
.animate-swing { animation: swing 0.5s ease-in-out; }
.animate-tada { animation: tada 0.5s ease-in-out; }
.animate-wobble { animation: wobble 0.5s ease-in-out; }
.animate-jello { animation: jello 0.5s ease-in-out; }
.animate-heartbeat { animation: heartbeat 0.5s ease-in-out; }
.animate-flash { animation: flash 0.5s ease-in-out; }
.animate-rubber-band { animation: rubberBand 0.5s ease-in-out; }
.animate-spin { animation: spin 1s linear infinite; }
.animate-ping { animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite; }

/* Entrance Animations */
.animate-fade-in { animation: fadeIn 0.5s ease-in-out; }
.animate-fade-in-up { animation: fadeInUp 0.5s ease-in-out; }
.animate-fade-in-down { animation: fadeInDown 0.5s ease-in-out; }
.animate-fade-in-left { animation: fadeInLeft 0.5s ease-in-out; }
.animate-fade-in-right { animation: fadeInRight 0.5s ease-in-out; }
.animate-bounce-in { animation: bounceIn 0.5s ease-in-out; }
.animate-zoom-in { animation: zoomIn 0.5s ease-in-out; }
.animate-slide-in-left { animation: slideInLeft 0.5s ease-in-out; }
.animate-slide-in-right { animation: slideInRight 0.5s ease-in-out; }
.animate-slide-in-up { animation: slideInUp 0.5s ease-in-out; }
.animate-slide-in-down { animation: slideInDown 0.5s ease-in-out; }
.animate-flip { animation: flip 0.5s ease-in-out; }
.animate-light-speed-in { animation: lightSpeedIn 0.5s ease-in-out; }
.animate-roll-in { animation: rollIn 0.5s ease-in-out; }
.animate-rotate-in { animation: rotateIn 0.5s ease-in-out; }

/* Hover Animation Classes */
.hover-animate-bounce:hover { animation: bounce 0.5s ease-in-out; }
.hover-animate-pulse:hover { animation: pulse 0.5s ease-in-out; }
.hover-animate-shake:hover { animation: shake 0.5s ease-in-out; }
.hover-animate-swing:hover { animation: swing 0.5s ease-in-out; }
.hover-animate-tada:hover { animation: tada 0.5s ease-in-out; }
.hover-animate-wobble:hover { animation: wobble 0.5s ease-in-out; }
.hover-animate-jello:hover { animation: jello 0.5s ease-in-out; }
.hover-animate-heartbeat:hover { animation: heartbeat 0.5s ease-in-out; }
.hover-animate-flash:hover { animation: flash 0.5s ease-in-out; }
.hover-animate-rubber-band:hover { animation: rubberBand 0.5s ease-in-out; }
.hover-animate-spin:hover { animation: spin 0.5s linear; }

/* 3D Animation Classes */
.animate-3d-rotate { animation: rotate3d 2s infinite linear; }
.animate-3d-flip { animation: flip3d 2s infinite ease-in-out; }
.animate-3d-bounce { animation: bounce3d 1s infinite ease-in-out; }

@keyframes rotate3d {
  0% { transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg); }
  100% { transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg); }
}

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

@keyframes bounce3d {
  0%, 100% { transform: perspective(400px) translateZ(0); }
  50% { transform: perspective(400px) translateZ(50px); }
}

/* ==========================================
   Advanced Animation States
   ========================================== */

/* Animation States */
.animation-paused { animation-play-state: paused; }
.animation-running { animation-play-state: running; }
.animation-delayed { animation-delay: var(--delay-500); }
.animation-fast { animation-duration: var(--duration-fast); }
.animation-slow { animation-duration: var(--duration-slow); }
.animation-reverse { animation-direction: reverse; }
.animation-alternate { animation-direction: alternate; }
.animation-infinite { animation-iteration-count: infinite; }
.animation-once { animation-iteration-count: 1; }
.animation-twice { animation-iteration-count: 2; }
.animation-thrice { animation-iteration-count: 3; }

/* Transform States */
.transform-3d { transform-style: preserve-3d; }
.transform-flat { transform-style: flat; }
.backface-hidden { backface-visibility: hidden; }
.backface-visible { backface-visibility: visible; }

/* Perspective Classes */
.perspective-100 { perspective: 100px; }
.perspective-250 { perspective: 250px; }
.perspective-500 { perspective: 500px; }
.perspective-750 { perspective: 750px; }
.perspective-1000 { perspective: 1000px; }
.perspective-1500 { perspective: 1500px; }
.perspective-2000 { perspective: 2000px; }

/* Origin Classes */
.transform-origin-center { transform-origin: center; }
.transform-origin-top { transform-origin: top; }
.transform-origin-bottom { transform-origin: bottom; }
.transform-origin-left { transform-origin: left; }
.transform-origin-right { transform-origin: right; }
.transform-origin-top-left { transform-origin: top left; }
.transform-origin-top-right { transform-origin: top right; }
.transform-origin-bottom-left { transform-origin: bottom left; }
.transform-origin-bottom-right { transform-origin: bottom right; }

/* ==========================================
   Advanced Responsive Animation Classes
   ========================================== */

/* Mobile Optimized */
@media (max-width: 768px) {
  .animate-mobile-disable {
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
  
  .animate-mobile-fast {
    animation-duration: 0.3s !important;
  }
  
  .animate-mobile-slow {
    animation-duration: 0.8s !important;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .animate-reduced-motion {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .animate-high-contrast {
    animation-duration: 0.5s !important;
    animation-timing-function: ease-out !important;
  }
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
  .animate-dark-mode {
    animation-duration: 0.6s !important;
    animation-timing-function: ease-in-out !important;
  }
}