/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #09090b;
}

::-webkit-scrollbar-thumb {
  background: #3f3f46;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #71717a;
}

/* Utilitas Tambahan */
.glass-nav {
  background: rgba(9, 9, 11, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Loading Screen */
#loading-screen {
  transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

#loading-screen.fade-out {
  opacity: 0;
  visibility: hidden;
}

/* Loader Animation */
.loader {
  width: 60px;
  height: 60px;
  border: 4px solid #27272a;
  border-top: 4px solid #fafafa;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

#loading-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #09090b;
  transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

#loading-screen.fade-out {
  opacity: 0;
  visibility: hidden;
}

.loader {
  width: 60px;
  height: 60px;
  border: 4px solid #27272a;
  border-top: 4px solid #fafafa;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1.5rem auto;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.loading-logo {
  color: #fafafa;
  font-family: monospace;
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  font-weight: bold;
}

.loading-text {
  color: #a1a1aa;
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

/* Project tilt + shine effect */
.project-card {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 200ms ease, box-shadow 200ms ease;
  transform: perspective(900px) rotateX(var(--tilt-y, 0deg))
    rotateY(var(--tilt-x, 0deg));
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at var(--shine-x, 50%) var(--shine-y, 50%),
    rgba(255, 255, 255, 0.16),
    transparent 45%
  );
  opacity: 0;
  transition: opacity 200ms ease;
  pointer-events: none;
}

.project-card:hover {
  transform: perspective(900px) rotateX(var(--tilt-y, 0deg))
    rotateY(var(--tilt-x, 0deg)) translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.project-card:hover::before {
  opacity: 1;
}
