/* Custom Global Configurations & Styling */
:root {
  color-scheme: dark;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #05050b;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #00f0ff;
}

/* Adjust direction spacing logic dynamically */
[dir="rtl"] .dynamic-gap {
  flex-direction: row-reverse;
}

/* Custom Nav link active style */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background: linear-gradient(90deg, #00f0ff, #d946ef);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 80%;
}

/* Active Class */
.nav-link.active {
  color: #00f0ff !important;
}

/* Keyboard rotation animations for Loading Overlay */
@keyframes spin-reverse {
  0% {
    transform: rotate(360deg);
  }
  100% {
    transform: rotate(0deg);
  }
}
.animate-spin-reverse {
  animation: spin-reverse 1.5s linear infinite;
}

/* Reveal Elements on Scroll */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Typing Indicator Animation */
@keyframes blink {
  50% { border-color: transparent; }
}
.border-r-2 {
  animation: blink 0.75s step-end infinite;
}

/* Glow Effect */
#mouse-glow {
  background: radial-gradient(600px circle at var(--x) var(--y), rgba(0, 240, 255, 0.04) 0%, rgba(217, 70, 239, 0.03) 50%, transparent 100%);
}

/* Glassmorphism Classes */
.glass-panel {
  background: rgba(12, 12, 22, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}