/* ===== PREMIUM CURSOR ===== */
* { cursor: none !important; }

.cursor-dot,
.cursor-ring,
.cursor-glow,
.cursor-trail {
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99999;
  transform: translate(-50%, -50%);
}

/* Inner dot */
.cursor-dot {
  width: 8px;
  height: 8px;
  background: #5B3CC4;
  border-radius: 50%;
  transition: transform 0.15s ease, background 0.3s ease;
  box-shadow: 0 0 10px rgba(91,60,196,0.8), 0 0 20px rgba(91,60,196,0.4);
}

/* Outer ring */
.cursor-ring {
  width: 40px;
  height: 40px;
  border: 2px solid rgba(91,60,196,0.5);
  border-radius: 50%;
  transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease, background 0.3s ease;
  background: rgba(91,60,196,0.05);
}

/* Glow aura */
.cursor-glow {
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(91,60,196,0.12) 0%, rgba(45,140,255,0.06) 40%, transparent 70%);
  border-radius: 50%;
  transition: width 0.4s ease, height 0.4s ease, background 0.4s ease;
}

/* Trail particles */
.cursor-trail {
  width: 4px;
  height: 4px;
  background: rgba(24,212,255,0.6);
  border-radius: 50%;
  opacity: 0;
  animation: trailFade 0.6s ease forwards;
}

@keyframes trailFade {
  0% { opacity: 0.8; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(0.2); }
}

/* ===== HOVER STATES ===== */

/* Links & buttons */
.cursor-hover .cursor-dot {
  transform: translate(-50%, -50%) scale(2.5);
  background: linear-gradient(135deg, #5B3CC4, #2D8CFF);
  box-shadow: 0 0 15px rgba(45,140,255,0.8), 0 0 30px rgba(91,60,196,0.5), 0 0 45px rgba(24,212,255,0.3);
}
.cursor-hover .cursor-ring {
  width: 60px;
  height: 60px;
  border-color: rgba(45,140,255,0.6);
  background: rgba(45,140,255,0.08);
}
.cursor-hover .cursor-glow {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(45,140,255,0.15) 0%, rgba(91,60,196,0.08) 40%, transparent 70%);
}

/* Text inputs */
.cursor-text .cursor-dot {
  transform: translate(-50%, -50%) scaleX(0.1) scaleY(2);
  width: 4px;
  height: 24px;
  border-radius: 2px;
  background: linear-gradient(180deg, #5B3CC4, #2D8CFF);
  box-shadow: 0 0 12px rgba(45,140,255,0.7);
}
.cursor-text .cursor-ring {
  width: 30px;
  height: 30px;
  border-color: rgba(24,212,255,0.4);
}

/* Service cards / portfolio items */
.cursor-card .cursor-dot {
  transform: translate(-50%, -50%) scale(3);
  background: radial-gradient(circle, rgba(24,212,255,0.9), rgba(45,140,255,0.7));
  box-shadow: 0 0 20px rgba(24,212,255,0.6), 0 0 40px rgba(45,140,255,0.3);
}
.cursor-card .cursor-ring {
  width: 80px;
  height: 80px;
  border-color: rgba(24,212,255,0.4);
  background: rgba(24,212,255,0.06);
}
.cursor-card .cursor-glow {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(24,212,255,0.12) 0%, rgba(91,60,196,0.06) 50%, transparent 70%);
}

/* Hidden when leaving window */
.cursor-hidden .cursor-dot,
.cursor-hidden .cursor-ring,
.cursor-hidden .cursor-glow {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.5);
}

/* Mobile: hide custom cursor */
@media (hover: none) and (pointer: coarse) {
  .cursor-dot, .cursor-ring, .cursor-glow, .cursor-trail { display: none !important; }
  * { cursor: auto !important; }
}

@media (max-width: 768px) {
  .cursor-dot, .cursor-ring, .cursor-glow, .cursor-trail { display: none !important; }
  * { cursor: auto !important; }
}