/* 
 * RAVØYA - Animations-Stylesheet
 * Cyberpunk/Glitch-Effekte
 */

/* Hauptanimationen */
@keyframes glow {
    0% { text-shadow: 0 0 5px #9370DB, 0 0 10px #9370DB; }
    50% { text-shadow: 0 0 15px #9370DB, 0 0 30px #9370DB, 0 0 40px rgba(147, 112, 219, 0.4); }
    100% { text-shadow: 0 0 5px #9370DB, 0 0 10px #9370DB; }
  }
  
  @keyframes scanline {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
  }
  
  @keyframes flicker {
    0%, 100% { opacity: 1; }
    5%, 10% { opacity: 0.8; }
    15% { opacity: 1; }
    20% { opacity: 0.6; }
    25% { opacity: 1; }
    30% { opacity: 0.9; }
    35% { opacity: 1; }
    40% { opacity: 0.7; }
    45%, 100% { opacity: 1; }
  }
  
  @keyframes glitch {
    0% { 
      clip-path: inset(80% 0 0 0);
      transform: translate(-2px, 2px);
    }
    20% { 
      clip-path: inset(10% 0 60% 0);
      transform: translate(2px, -2px);
    }
    40% { 
      clip-path: inset(30% 0 20% 0);
      transform: translate(3px, 1px);
    }
    60% { 
      clip-path: inset(20% 0 40% 0);
      transform: translate(-3px, -2px);
    }
    80% { 
      clip-path: inset(50% 0 30% 0);
      transform: translate(1px, 4px);
    }
    100% { 
      clip-path: inset(70% 0 10% 0);
      transform: translate(-2px, -1px);
    }
  }
  
  @keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
  }
  
  @keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
  }
  
  @keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
  }
  
  @keyframes dataflow {
    0% { background-position: 0% 0%; }
    100% { background-position: 100% 100%; }
  }
  
  /* Hintergrundanimation */
  @keyframes cyberbg {
    0% {
      background-position: 0% 0%;
    }
    100% {
      background-position: 100% 100%;
    }
  }
  
  /* Glitch-Text-Effekt */
  .glitch-text {
    position: relative;
    animation: flicker 8s infinite linear;
  }
  
  .glitch-text::before,
  .glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
  }
  
  .glitch-text::before {
    color: #ff00c1;
    z-index: -1;
    animation: glitch 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite;
    animation-delay: 0.1s;
  }
  
  .glitch-text::after {
    color: #0ff;
    z-index: -2;
    animation: glitch 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) reverse both infinite;
    animation-delay: 0.2s;
  }
  
  /* Pulsieren */
  .pulse {
    animation: pulse 2s ease-in-out infinite;
  }
  
  /* Schweben */
  .float {
    animation: float 5s ease-in-out infinite;
  }
  
  /* Datenfluss-Hintergrund */
  .data-flow {
    background: linear-gradient(45deg, 
      rgba(90, 70, 140, 0.1) 0%, 
      rgba(60, 40, 100, 0.1) 25%, 
      rgba(90, 70, 140, 0.1) 50%, 
      rgba(60, 40, 100, 0.1) 75%, 
      rgba(90, 70, 140, 0.1) 100%);
    background-size: 400% 400%;
    animation: dataflow 15s linear infinite;
  }
  
  /* Anwendungsklassen */
  .typing::after {
    content: '|';
    animation: blink 1s infinite;
  }
  
  .noisy {
    position: relative;
    overflow: hidden;
  }
  
  .noisy::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    pointer-events: none;
  }
  
  /* Loading-Animation */
  .loading {
    position: relative;
  }
  
  .loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid rgba(147, 112, 219, 0.3);
    border-top-color: #9370DB;
    animation: spin 1s infinite linear;
  }
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }