@font-face {
  font-family: "cybernetik";
  src: url("/fonts/cybernetik.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "nasalization";
  src: url("/fonts/nasalization.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "dejavu";
  src: url("/fonts/dejavu.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
}

.typing-text {
  border-right: 2px solid #00e5ff;
  font-family: inherit;
  /* atau font spesifik */
  white-space: nowrap;
}

/* Animasi blink untuk cursor */
@keyframes blink {
  50% {
    border-color: transparent;
  }
}

.typing-text.blinking {
  animation: blink 0.7s step-end infinite;
}

/* custom scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #050a0e;
}

::-webkit-scrollbar-thumb {
  background: #00e5ff;
  border-radius: 8px;
}

/* Three.js canvas */
canvas.webgl {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -5;
  pointer-events: none;
}

.relative-z {
  position: relative;
  z-index: 10;
}

#info {
  position: fixed;
  bottom: 12px;
  right: 12px;
  z-index: 20;
  background: rgba(0, 0, 0, 0.5);
  padding: 4px 8px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 10px;
  color: #aaa;
  pointer-events: none;
}

#info a {
  color: #00e5ff;
  text-decoration: none;
}

/* ─── HOLOGRAPHIC CURSOR (gabungan) ─── */
.holographic-cursor {
  position: fixed;
  width: 40px;
  height: 40px;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition:
    width 0.3s ease,
    height 0.3s ease;
}

.holographic-cursor::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(255, 106, 0, 0.8);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow:
    0 0 15px rgba(255, 106, 0, 0.6),
    0 0 30px rgba(255, 106, 0, 0.3);
  animation: cursorPulse 2s infinite;
}

.holographic-cursor::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 106, 0, 0.8);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 10px rgba(255, 106, 0, 0.8);
}

.holographic-cursor.hover {
  width: 60px;
  height: 60px;
}

.holographic-cursor.hover::before {
  border-color: rgba(255, 106, 0, 1);
  box-shadow:
    0 0 25px rgba(255, 106, 0, 0.8),
    0 0 50px rgba(255, 106, 0, 0.5);
}

.holographic-cursor.hover::after {
  border-color: rgba(255, 106, 0, 1);
  box-shadow: 0 0 20px rgba(255, 106, 0, 1);
}

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

  50% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 0.5;
  }
}

/* Sembunyikan kursor default di desktop */
body {
  cursor: none;
}

@media (max-width: 768px) {
  body {
    cursor: auto;
  }

  .holographic-cursor {
    display: none;
  }
}

/* Canvas trail (dari script akan dibuat sendiri) */
canvas.cursor-trail {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9998;
}

/* Back to top button - hanya tampil di mobile */
.back-to-top-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 28px;
  height: 28px;
  background-color: #00e5ff;
  color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 20px;
  font-weight: bold;
  font-family: monospace;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  z-index: 99999;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
  border: none;
  line-height: 28px;
  text-align: center;
  /* tambahkan agar teks rapat vertikal */
}

.back-to-top-btn.show {
  opacity: 1;
  visibility: visible;
}

/* Sembunyikan di desktop (lebar >= 769px) */
@media (min-width: 769px) {
  .back-to-top-btn {
    display: none;
  }
}
