/* Animation Styles */

/* Keyframes */
@keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  @keyframes fadeInDown {
    from {
      opacity: 0;
      transform: translateY(-30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  @keyframes fadeInLeft {
    from {
      opacity: 0;
      transform: translateX(-30px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
  
  @keyframes fadeInRight {
    from {
      opacity: 0;
      transform: translateX(30px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
  
  @keyframes fadeIn {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
  
  @keyframes slideInUp {
    from {
      transform: translateY(100%);
    }
    to {
      transform: translateY(0);
    }
  }
  
  @keyframes slideInDown {
    from {
      transform: translateY(-100%);
    }
    to {
      transform: translateY(0);
    }
  }
  
  @keyframes scaleIn {
    from {
      opacity: 0;
      transform: scale(0.8);
    }
    to {
      opacity: 1;
      transform: scale(1);
    }
  }
  
  @keyframes rotateIn {
    from {
      opacity: 0;
      transform: rotate(-180deg);
    }
    to {
      opacity: 1;
      transform: rotate(0deg);
    }
  }
  
  @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);
    }
  }
  
  @keyframes pulse {
    0% {
      transform: scale(1);
    }
    50% {
      transform: scale(1.05);
    }
    100% {
      transform: scale(1);
    }
  }
  
  @keyframes shake {
    0%,
    100% {
      transform: translateX(0);
    }
    10%,
    30%,
    50%,
    70%,
    90% {
      transform: translateX(-10px);
    }
    20%,
    40%,
    60%,
    80% {
      transform: translateX(10px);
    }
  }
  
  @keyframes gradientShift {
    0% {
      background-position: 0% 50%;
    }
    50% {
      background-position: 100% 50%;
    }
    100% {
      background-position: 0% 50%;
    }
  }
  
  @keyframes float {
    0% {
      transform: translateY(0px);
    }
    50% {
      transform: translateY(-20px);
    }
    100% {
      transform: translateY(0px);
    }
  }
  
  @keyframes glow {
    0% {
      box-shadow: 0 0 5px rgba(0, 195, 255, 0.5);
    }
    50% {
      box-shadow: 0 0 20px rgba(0, 195, 255, 0.8);
    }
    100% {
      box-shadow: 0 0 5px rgba(0, 195, 255, 0.5);
    }
  }
  
  @keyframes typewriter {
    from {
      width: 0;
    }
    to {
      width: 100%;
    }
  }
  
  @keyframes blink {
    0%,
    50% {
      opacity: 1;
    }
    51%,
    100% {
      opacity: 0;
    }
  }
  
  /* Animation Classes */
  .animated {
    animation-duration: 1s;
    animation-fill-mode: both;
  }
  
  .fade-in-up {
    animation-name: fadeInUp;
  }
  
  .fade-in-down {
    animation-name: fadeInDown;
  }
  
  .fade-in-left {
    animation-name: fadeInLeft;
  }
  
  .fade-in-right {
    animation-name: fadeInRight;
  }
  
  .fade-in {
    animation-name: fadeIn;
  }
  
  .slide-in-up {
    animation-name: slideInUp;
  }
  
  .slide-in-down {
    animation-name: slideInDown;
  }
  
  .scale-in {
    animation-name: scaleIn;
  }
  
  .rotate-in {
    animation-name: rotateIn;
  }
  
  .bounce {
    animation-name: bounce;
  }
  
  .pulse {
    animation-name: pulse;
    animation-iteration-count: infinite;
  }
  
  .shake {
    animation-name: shake;
  }
  
  .float {
    animation-name: float;
    animation-duration: 3s;
    animation-iteration-count: infinite;
  }
  
  .glow {
    animation-name: glow;
    animation-duration: 2s;
    animation-iteration-count: infinite;
  }
  
  /* Animation Delays */
  .delay-1 {
    animation-delay: 0.1s;
  }
  
  .delay-2 {
    animation-delay: 0.2s;
  }
  
  .delay-3 {
    animation-delay: 0.3s;
  }
  
  .delay-4 {
    animation-delay: 0.4s;
  }
  
  .delay-5 {
    animation-delay: 0.5s;
  }
  
  /* Animation Durations */
  .duration-fast {
    animation-duration: 0.5s;
  }
  
  .duration-normal {
    animation-duration: 1s;
  }
  
  .duration-slow {
    animation-duration: 2s;
  }
  
  /* Text Animations */
  .animated-text {
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
  }
  
  .animated-text-delay {
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.3s forwards;
  }
  
  .animated-text-delay-2 {
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.6s forwards;
  }
  
  .animated-text-delay-3 {
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.9s forwards;
  }
  
  .typewriter-text {
    overflow: hidden;
    border-right: 2px solid var(--secondary-color);
    white-space: nowrap;
    margin: 0 auto;
    animation: typewriter 3s steps(40, end), blink 0.75s step-end infinite;
  }
  
  /* Hover Animations */
  .hover-scale {
    transition: transform var(--transition-speed) ease;
  }
  
  .hover-scale:hover {
    transform: scale(1.05);
  }
  
  .hover-rotate {
    transition: transform var(--transition-speed) ease;
  }
  
  .hover-rotate:hover {
    transform: rotate(5deg);
  }
  
  .hover-lift {
    transition: transform var(--transition-speed) ease;
  }
  
  .hover-lift:hover {
    transform: translateY(-5px);
  }
  
  .hover-glow {
    transition: box-shadow var(--transition-speed) ease;
  }
  
  .hover-glow:hover {
    box-shadow: 0 0 20px rgba(0, 195, 255, 0.5);
  }
  
  /* Loading Animations */
  .loading-dots {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
  }
  
  .loading-dots div {
    position: absolute;
    top: 33px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--secondary-color);
    animation-timing-function: cubic-bezier(0, 1, 1, 0);
  }
  
  .loading-dots div:nth-child(1) {
    left: 8px;
    animation: loading-dots1 0.6s infinite;
  }
  
  .loading-dots div:nth-child(2) {
    left: 8px;
    animation: loading-dots2 0.6s infinite;
  }
  
  .loading-dots div:nth-child(3) {
    left: 32px;
    animation: loading-dots2 0.6s infinite;
  }
  
  .loading-dots div:nth-child(4) {
    left: 56px;
    animation: loading-dots3 0.6s infinite;
  }
  
  @keyframes loading-dots1 {
    0% {
      transform: scale(0);
    }
    100% {
      transform: scale(1);
    }
  }
  
  @keyframes loading-dots3 {
    0% {
      transform: scale(1);
    }
    100% {
      transform: scale(0);
    }
  }
  
  @keyframes loading-dots2 {
    0% {
      transform: translate(0, 0);
    }
    100% {
      transform: translate(24px, 0);
    }
  }
  
  /* Scroll Animations */
  .scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
  }
  
  .scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
  
  .scroll-reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease-out;
  }
  
  .scroll-reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
  }
  
  .scroll-reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease-out;
  }
  
  .scroll-reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
  }
  
  /* Particle Animation */
  .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(--secondary-color);
    border-radius: 50%;
    opacity: 0.7;
    animation: particle-float 10s infinite linear;
  }
  
  @keyframes particle-float {
    0% {
      transform: translateY(100vh) rotate(0deg);
      opacity: 0;
    }
    10% {
      opacity: 0.7;
    }
    90% {
      opacity: 0.7;
    }
    100% {
      transform: translateY(-100px) rotate(360deg);
      opacity: 0;
    }
  }
  
  /* Stagger Animation */
  .stagger-animation > * {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out forwards;
  }
  
  .stagger-animation > *:nth-child(1) {
    animation-delay: 0.1s;
  }
  .stagger-animation > *:nth-child(2) {
    animation-delay: 0.2s;
  }
  .stagger-animation > *:nth-child(3) {
    animation-delay: 0.3s;
  }
  .stagger-animation > *:nth-child(4) {
    animation-delay: 0.4s;
  }
  .stagger-animation > *:nth-child(5) {
    animation-delay: 0.5s;
  }
  .stagger-animation > *:nth-child(6) {
    animation-delay: 0.6s;
  }
  
  /* Reduced Motion */
  @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;
    }
  }
  
  /* Performance Optimizations */
  .will-change-transform {
    will-change: transform;
  }
  
  .will-change-opacity {
    will-change: opacity;
  }
  
  .gpu-accelerated {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
  }
  