/* Main cursor */
.cursor {
  --count: 9; 
  --offset: 20px;
  position: fixed;
  /* clip-path: polygon(50% 0%, 100% 100%, 50% 65%, 0 100%); */
  pointer-events: none;
  transform-origin: center;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 9999;
}

body:active .cursor {
  --offset: 5px;
  animation: clickable 10s linear infinite;
}

@keyframes clickable {
  100% {
    transform: rotate(360deg);
  }
}

.cursor.click-release {
  transition: all ease 0.25s;
  --offset: 40px;
}

.cursor.click-release .flx{
  opacity: 0;
}

.cursor .flx {
  --i: 0;
  gap: 3px;
  transform:
    rotate(calc(360deg / var(--count) * var(--i)))
    translate(var(--offset));
  transition: all ease 0.3s;
  position: absolute;
  top: 50%;
  left: 50%;
  transform-origin: center;
}

.cursor .flx .line {
  background-color: rgb(var(--white-color), 1);
  height: 1px;
}

.cursor .flx .line:first-child {
  width: 2px;
  background: rgba(var(--white-color), 1);
}

.cursor .flx .line:last-child {
  width: 6px;
  opacity: 0.05;
}

/* states */
.flx.is-clickable .line:first-child {
  background: var(--primary-color) !important;
}

.flx.is-text .line:first-child {
  background: var(--secondary-color) !important;
}

.flx.is-clickable .line:last-child {
  opacity: 1;
}

.flx.is-text .line:last-child {
  opacity: 1;
}

/* Click animation */
/* .cursor.click {
  clip-path: circle(50%);
  animation: clickExpand 0.4s ease-out;
}

@keyframes clickExpand {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(4);
    opacity: 0;
  }
} */

/* Trail particles */
/* .trail {
  position: fixed;
  transition: all ease 0.3s;
  width: 6px;
  height: 6px;
  background: #ffffff;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.7;
  animation: fadeOut 0.5s linear forwards;
}

@keyframes fadeOut {
  to {
    transform: scale(0.5);
    opacity: 0;
  }
} */