/**
 * DragoBit Website - Custom CSS
 * Additional styles and animations to enhance the Tailwind base
 */

/* ===== Custom Animations ===== */

/* Floating animation for dragon images */
.float-animation {
    animation: float 6s ease-in-out infinite;
  }
  
  @keyframes float {
    0% {
      transform: translateY(0px);
    }
    50% {
      transform: translateY(-20px);
    }
    100% {
      transform: translateY(0px);
    }
  }
  
  /* Rotating animation for propeller hat */
  .spin-animation {
    animation: spin 3s linear infinite;
    transform-origin: center center;
  }
  
  @keyframes spin {
    from {
      transform: rotate(0deg);
    }
    to {
      transform: rotate(360deg);
    }
  }
  
  /* Pulsing animation for buttons and CTAs */
  .pulse-animation {
    animation: pulse 2s infinite;
  }
  
  @keyframes pulse {
    0% {
      transform: scale(1);
      box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }
    70% {
      transform: scale(1.05);
      box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }
    100% {
      transform: scale(1);
      box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
  }
  
  /* Rainbow text animation */
  .rainbow-text-animated {
    background: linear-gradient(90deg, #FF5757 0%, #FFC857 25%, #5AE25A 50%, #5AB9EA 75%, #D65FFD 100%);
    background-size: 200% auto;
    animation: rainbow-shift 3s linear infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
  }
  
  @keyframes rainbow-shift {
    0% {
      background-position: 0% center;
    }
    100% {
      background-position: 200% center;
    }
  }
  
  /* Fire animation for burn elements */
  .fire-animation {
    animation: fire 0.5s ease-in-out infinite alternate;
  }
  
  @keyframes fire {
    0% {
      transform: scale(1) rotate(-3deg);
      filter: brightness(1);
    }
    100% {
      transform: scale(1.1) rotate(3deg);
      filter: brightness(1.2);
    }
  }
  
  /* ===== Custom Elements ===== */
  
  /* Custom scrollbar */
  ::-webkit-scrollbar {
    width: 8px;
  }
  
  ::-webkit-scrollbar-track {
    background: rgba(90, 88, 133, 0.2);
  }
  
  ::-webkit-scrollbar-thumb {
    background: rgba(90, 88, 133, 0.5);
    border-radius: 4px;
  }
  
  ::-webkit-scrollbar-thumb:hover {
    background: rgba(90, 88, 133, 0.7);
  }
  
  /* Custom selection color */
  ::selection {
    background: rgba(90, 185, 234, 0.3);
    color: white;
  }
  
  /* Button hover effects */
  .hover-scale {
    transition: transform 0.3s ease;
  }
  
  .hover-scale:hover {
    transform: scale(1.05);
  }
  
  /* Glassmorphism effect */
  .glass-effect {
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.15);
  }
  
  /* 3D Card effect */
  .card-3d {
    transition: transform 0.3s ease;
    transform-style: preserve-3d;
  }
  
  .card-3d:hover {
    transform: translateY(-10px) rotateX(5deg);
  }
  
  /* Dragon's den glow effect */
  .dragon-glow {
    box-shadow: 0 0 20px rgba(90, 185, 234, 0.4);
    animation: glow 3s ease-in-out infinite alternate;
  }
  
  @keyframes glow {
    0% {
      box-shadow: 0 0 20px rgba(90, 185, 234, 0.4);
    }
    100% {
      box-shadow: 0 0 30px rgba(214, 95, 253, 0.6);
    }
  }
  
  /* ===== Responsive Adjustments ===== */
  
  /* Mobile-specific animations (reduce motion) */
  @media (max-width: 768px) {
    .float-animation {
      animation-duration: 8s;
    }
    
    .spin-animation {
      animation-duration: 5s;
    }
    
    @media (prefers-reduced-motion: reduce) {
      .float-animation,
      .spin-animation,
      .pulse-animation,
      .rainbow-text-animated,
      .fire-animation,
      .dragon-glow {
        animation: none !important;
        transform: none !important;
      }
    }
  }
  
  /* Special page transitions */
  .page-transition {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
  }
  
  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* Special focus styles for accessibility */
  a:focus, button:focus {
    outline: 2px solid rgba(90, 185, 234, 0.5);
    outline-offset: 2px;
  }
  
  /* Print styles */
  @media print {
    body {
      background: white !important;
      color: black !important;
    }
    
    .glass-effect, .dragon-glow, .card-3d {
      box-shadow: none !important;
    }
    
    nav, footer, .btn-primary, .btn-secondary {
      display: none !important;
    }
    
    .container {
      width: 100% !important;
      margin: 0 !important;
      padding: 0 !important;
    }
  }