/* ============================================
   PERFORMANCE-OPTIMIZED WEB3 EFFECTS CSS
   GPU-Accelerated, Reduced Complexity
   ============================================ */

/* Ensure all links are clickable */
a {
  pointer-events: auto !important;
  cursor: pointer !important;
}

#generatedLink {
  pointer-events: auto !important;
  cursor: pointer !important;
  display: inline-block !important;
}

/* Force GPU acceleration */
.holographic-card,
.blockchain-logo,
.feature-card,
.pricing-card {
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}

/* ============================================
   HOLOGRAPHIC CARDS (Optimized)
   ============================================ */
.holographic-card {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.holographic-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 215, 0, 0.08) 50%,
    transparent 70%
  );
  transform: rotate(0deg);
  transition: transform 0.6s ease;
  pointer-events: none;
  will-change: transform;
}

.holographic-card:hover::before {
  transform: rotate(180deg);
}

/* ============================================
   SIMPLIFIED GLITCH TEXT
   ============================================ */
.glitch-text {
  position: relative;
  display: inline-block;
  font-weight: 800;
}

.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 {
  animation: glitch-anim 3s infinite linear;
  color: #00ffff;
  z-index: -1;
  clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
}

.glitch-text::after {
  animation: glitch-anim 2.5s infinite linear reverse;
  color: #ff00ff;
  z-index: -2;
  clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
}

@keyframes glitch-anim {
  0%, 100% { transform: translate(0); }
  33% { transform: translate(-2px, 2px); }
  66% { transform: translate(2px, -2px); }
}

/* ============================================
   OPTIMIZED NEON GLOW
   ============================================ */
.neon-text {
  color: #fff;
  text-shadow: 
    0 0 10px #00ffff,
    0 0 20px #00ffff,
    0 0 40px #00ffff;
  animation: neonPulse 3s ease-in-out infinite;
}

.neon-cyan {
  text-shadow: 
    0 0 10px #ffd700,
    0 0 20px #ffd700,
    0 0 30px #ffa500;
  animation: neonPulseGold 3s ease-in-out infinite;
}

@keyframes neonPulse {
  0%, 100% {
    text-shadow: 
      0 0 10px #00ffff,
      0 0 20px #00ffff;
  }
  50% {
    text-shadow: 
      0 0 15px #00ffff,
      0 0 30px #00ffff,
      0 0 50px #00ffff;
  }
}

@keyframes neonPulseGold {
  0%, 100% {
    text-shadow: 
      0 0 10px #ffd700,
      0 0 20px #ffd700;
  }
  50% {
    text-shadow: 
      0 0 15px #ffd700,
      0 0 30px #ffd700,
      0 0 50px #ffa500;
  }
}

/* ============================================
   OPTIMIZED BLOB ANIMATION
   ============================================ */
@keyframes blobFloat {
  0%, 100% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(30px, -30px);
  }
  50% {
    transform: translate(-20px, 30px);
  }
  75% {
    transform: translate(25px, 20px);
  }
}

/* ============================================
   GLASS MORPHISM (Lightweight)
   ============================================ */
.glass-morph {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ============================================
   CSS CONTAINMENT (Performance boost)
   ============================================ */
.feature-card,
.pricing-card,
.blockchain-logo,
.panel {
  contain: layout style paint;
}

/* ============================================
   REDUCE COMPLEXITY ON LOW-END DEVICES
   ============================================ */
@media (max-width: 768px) {
  /* Disable expensive effects on mobile */
  .holographic-card::before {
    display: none;
  }
  
  .glitch-text::before,
  .glitch-text::after {
    display: none;
  }
  
  .neon-text,
  .neon-cyan {
    text-shadow: 0 0 10px currentColor;
    animation: none;
  }
  
  /* Simpler transforms */
  .feature-card,
  .pricing-card {
    will-change: auto !important;
  }
}

/* ============================================
   PREFERS 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;
  }
}

/* ============================================
   HARDWARE ACCELERATION HINTS
   ============================================ */
.feature-card,
.pricing-card,
.blockchain-logo,
.btn,
.nav-btn {
  transform: translateZ(0);
  will-change: transform;
}

/* Remove will-change after animation */
.feature-card:not(:hover),
.pricing-card:not(:hover) {
  will-change: auto;
}
