/* GLOBAL THEME */
:root {
  --neon-green: #10b981;
  --neon-glow: #34d399;
  --bg-black: #030712;
}

body {
  font-family: 'Space Grotesk', sans-serif;
  background-color: var(--bg-black);
  overflow-x: hidden;
}

/* CANVAS BACKGROUND */
#math-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: -2;
  pointer-events: none;
}

.cyber-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.08), #000000 85%);
  z-index: -1;
  pointer-events: none;
}

/* GLASSMORPHISM & KARTU */
.glass-header {
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.glass-card {
  background: rgba(16, 185, 129, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(16, 185, 129, 0.25);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  position: relative;
  transition: all 0.3s ease;
}

.glass-card:hover {
  border-color: var(--neon-glow);
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.4);
}

.text-glow {
  text-shadow: 0 0 15px rgba(16, 185, 129, 0.6), 0 0 30px rgba(16, 185, 129, 0.2);
}

/* MODAL GLOBAL OVERLAY STYLING */
#global-modal-overlay {
  opacity: 0;
  pointer-events: none; /* Mencegah modal merebut fokus kursor dari kartu */
  transition: opacity 0.25s ease-in-out;
}

#global-modal-overlay #global-modal-box {
  transform: scale(0.85);
  pointer-events: none; /* Kursor tembus sehingga tidak memicu flicker/blip */
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Saat aktif, overlay cukup tampil visual tanpa mengganggu hover kartu */
#global-modal-overlay.active {
  opacity: 1 !important;
}

#global-modal-overlay.active #global-modal-box {
  transform: scale(1) !important;
}

/* CUSTOM SCROLLBAR UNTUK MODAL */
.custom-scrollbar::-webkit-scrollbar {
  width: 5px;
}
.custom-scrollbar::-webkit-scrollbar-track {
  background: rgba(16, 185, 129, 0.05);
  border-radius: 10px;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
  background: rgba(16, 185, 129, 0.4);
  border-radius: 10px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: rgba(52, 211, 153, 0.8);
}

/* NAV LINKS */
.nav-link {
  position: relative;
  padding-bottom: 4px;
}
.nav-link::before {
  content: '';
  position: absolute; width: 0; height: 2px;
  bottom: 0; left: 0;
  background: var(--neon-green);
  box-shadow: 0 0 10px var(--neon-green);
  transition: width 0.3s ease;
}
.nav-link:hover::before, .nav-link.active::before {
  width: 100%;
}
