/* FILE: css/cursor.css */
body {
  cursor: none;
}

.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--dot-color, #2563eb);
  pointer-events: none;
  z-index: 999999;
  transform: translate(-50%, -50%);
  transition:
    width 0.25s ease,
    height 0.25s ease,
    background-color 0.25s ease;
  mix-blend-mode: difference;
}

.cursor-dot.hovering {
  width: 24px;
  height: 24px;
  background-color: var(--primary-glow, #3b82f6);
}

.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid var(--ring-color, rgba(37, 99, 235, 0.25));
  pointer-events: none;
  z-index: 999998;
  transform: translate(-50%, -50%);
  transition:
    width 0.3s ease,
    height 0.3s ease,
    border-color 0.3s ease,
    border-width 0.3s ease;
}

.cursor-ring.hovering {
  width: 90px;
  height: 90px;
  border-color: var(--ring-hover-color, rgba(37, 99, 235, 0.5));
  border-width: 3px;
}

[data-theme="tech"] .cursor-dot {
  mix-blend-mode: normal;
  box-shadow: 0 0 8px var(--primary-glow);
}

[data-theme="tech"] .cursor-ring {
  border-color: rgba(0, 255, 255, 0.3);
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.15);
}

[data-theme="tech"] .cursor-ring.hovering {
  border-color: rgba(0, 255, 255, 0.6);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

a,
button,
.card,
.btn,
input,
textarea,
.theme-btn,
.hamburger,
.skill-circle,
.social-links a,
.project-card,
.about-card,
.featured-card {
  cursor: none;
}

/* Hide custom cursor on touch devices */
@media (pointer: coarse) {
  .cursor-dot,
  .cursor-ring {
    display: none !important;
  }
  body,
  a,
  button,
  .card,
  .btn,
  input,
  textarea,
  .theme-btn,
  .hamburger,
  .skill-circle,
  .social-links a,
  .project-card,
  .about-card,
  .featured-card {
    cursor: auto !important;
  }
}
