/**
 * Weblore DNA Styles - Pure CSS Premium Effects
 * Dark Mode Maximalism + Glassmorphism
 * GPU-Accelerated Animations
 */

/* ═══════════════════════════════════════════════════════
   CUSTOM CURSOR
   ═══════════════════════════════════════════════════════ */

.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 9999;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background: #00D9FF;
  margin-left: -3px;
  margin-top: -3px;
  mix-blend-mode: difference;
  z-index: 10000;
  will-change: transform;
}

.cursor-ring {
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(0, 217, 255, 0.5);
  margin-left: -18px;
  margin-top: -18px;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              height 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              margin-left 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              margin-top 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.4s;
  will-change: transform;
}

.cursor-ring.cursor-hover {
  width: 60px;
  height: 60px;
  margin-left: -30px;
  margin-top: -30px;
  background: rgba(0, 217, 255, 0.1);
  border-color: #00D9FF;
  border-width: 2px;
}

/* Hide cursor elements on touch devices */
@media (hover: none) and (pointer: coarse) {
  .cursor-dot,
  .cursor-ring {
    display: none;
  }
}

/* ═══════════════════════════════════════════════════════
   BENTO CARD - Glassmorphic Design
   ═══════════════════════════════════════════════════════ */

.bento-card {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 2rem;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 4px 16px rgba(0, 0, 0, 0.1);
}

.bento-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 8px 32px rgba(0, 217, 255, 0.15);
  border-color: rgba(0, 217, 255, 0.2);
}

.bento-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 128px;
  height: 128px;
  background: linear-gradient(to bottom left, rgba(59, 130, 246, 0.05), transparent);
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.7s;
  pointer-events: none;
}

.bento-card:hover::before {
  opacity: 1;
}

/* Bento Card Variations */
.bento-card-sm {
  padding: 1.5rem;
}

.bento-card-lg {
  padding: 3rem;
}

.bento-card-glow-blue:hover {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 8px 40px rgba(59, 130, 246, 0.2);
}

.bento-card-glow-purple:hover {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 8px 40px rgba(168, 85, 247, 0.2);
}

.bento-card-glow-cyan:hover {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 8px 40px rgba(6, 182, 212, 0.2);
}

/* ═══════════════════════════════════════════════════════
   MAGNETIC ELEMENTS
   ═══════════════════════════════════════════════════════ */

[data-magnetic] {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ═══════════════════════════════════════════════════════
   REVEAL ANIMATIONS - Scroll Triggered
   ═══════════════════════════════════════════════════════ */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ═══════════════════════════════════════════════════════
   GRADIENT TEXT EFFECT
   ═══════════════════════════════════════════════════════ */

.gradient-text {
  background: linear-gradient(135deg, #00D9FF, #7000FF, #FF00E5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ═══════════════════════════════════════════════════════
   NEON GLOW EFFECTS
   ═══════════════════════════════════════════════════════ */

.neon-glow {
  box-shadow: 0 0 20px rgba(0, 217, 255, 0.3), 0 0 40px rgba(0, 217, 255, 0.1);
}

.neon-glow-purple {
  box-shadow: 0 0 20px rgba(112, 0, 255, 0.3), 0 0 40px rgba(112, 0, 255, 0.1);
}

.neon-glow-pink {
  box-shadow: 0 0 20px rgba(255, 0, 229, 0.3), 0 0 40px rgba(255, 0, 229, 0.1);
}

.neon-text {
  text-shadow: 0 0 10px rgba(0, 217, 255, 0.5), 0 0 20px rgba(0, 217, 255, 0.3);
}

/* ═══════════════════════════════════════════════════════
   UTILITY CLASSES
   ═══════════════════════════════════════════════════════ */

.glass {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-strong {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* GPU Acceleration Hint */
.gpu-accelerated {
  will-change: transform;
  transform: translateZ(0);
}