/* Global Viewport Overflow Protection */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

/* Custom Smooth Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #020617;
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* Glassmorphism Panels */
.glass-panel {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(51, 65, 85, 0.6);
}

.glass-panel-hover {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.glass-panel-hover:hover {
  border-color: rgba(99, 102, 241, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -10px rgba(99, 102, 241, 0.15);
}

/* Radial Glow Accents */
.glow-brand {
  box-shadow: 0 0 50px -10px rgba(99, 102, 241, 0.25);
}

.glow-cyan {
  box-shadow: 0 0 50px -10px rgba(6, 182, 212, 0.25);
}

.glow-emerald {
  box-shadow: 0 0 50px -10px rgba(16, 185, 129, 0.25);
}

/* Glowing Border Gradient */
.border-gradient {
  position: relative;
  border: 1px solid transparent;
  background-clip: padding-box;
}

/* Terminal Cursor Blink */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
.cursor-blink {
  animation: blink 1s infinite;
}

/* Modal Animation */
.modal-enter {
  animation: modalFadeIn 0.25s ease-out forwards;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Accordion transition */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
  opacity: 0;
}
.accordion-content.active {
  max-height: 500px;
  opacity: 1;
}

/* Pulse beacon */
.beacon-dot {
  position: relative;
}
.beacon-dot::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 50%;
  border: 2px solid #34d399;
  animation: beaconPulse 2s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

@keyframes beaconPulse {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(2.4); opacity: 0; }
}
