/* Custom Cursor Styles */

/* Hide default cursor on desktop */
@media (pointer: fine) {
  body, 
  a, 
  button, 
  input, 
  textarea {
    cursor: none !important;
  }
}

/* Main cursor dot */
.cursor-dot {
  position: fixed;
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, #d4af37, #f4d03f);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: width 0.2s ease, height 0.2s ease, background 0.2s ease;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.6),
              0 0 20px rgba(212, 175, 55, 0.4);
}

/* Cursor ring */
.cursor-ring {
  position: fixed;
  width: 40px;
  height: 40px;
  border: 2px solid rgba(212, 175, 55, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease;
}

/* Particle container */
.cursor-particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9998;
}

/* Individual particles */
.cursor-particle {
  position: fixed;
  width: 4px;
  height: 4px;
  background: linear-gradient(135deg, #d4af37, #c9a961);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.5);
  animation: particlePulse 1.5s infinite ease-in-out;
}

/* Particle pulse animation */
@keyframes particlePulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.7;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 1;
  }
}

/* Hover state - when over interactive elements */
.cursor-dot.cursor-hover {
  width: 16px;
  height: 16px;
  background: linear-gradient(135deg, #f4d03f, #d4af37);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.8),
              0 0 30px rgba(212, 175, 55, 0.6);
}

.cursor-ring.cursor-hover {
  width: 60px;
  height: 60px;
  border-color: rgba(212, 175, 55, 0.8);
  border-width: 3px;
}

/* Click state */
.cursor-dot.cursor-clicked {
  width: 12px;
  height: 12px;
  background: linear-gradient(135deg, #fff, #d4af37);
  box-shadow: 0 0 20px rgba(212, 175, 55, 1),
              0 0 40px rgba(212, 175, 55, 0.8);
}

.cursor-ring.cursor-clicked {
  width: 30px;
  height: 30px;
  border-color: rgba(212, 175, 55, 1);
}

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

/* Add smooth transition for all cursor states */
.cursor-dot,
.cursor-ring {
  will-change: transform, width, height;
}

/* Alternative glow effect for particles */
.cursor-particle:nth-child(odd) {
  animation-delay: 0.3s;
}

.cursor-particle:nth-child(even) {
  animation-delay: 0.6s;
}

/* Enhance visual appeal with alternating colors */
.cursor-particle:nth-child(3n) {
  background: linear-gradient(135deg, #f4d03f, #ffd700);
}

.cursor-particle:nth-child(5n) {
  background: linear-gradient(135deg, #c9a961, #d4af37);
  width: 3px;
  height: 3px;
}
