/* ══════════ NERDY ELEMENTS ══════════ */
/* Section comment markers — visible decorative code-comment style labels */

.section-comment {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text4);
  margin-bottom: 24px;
  padding-left: 4px;
  border-left: 2px solid rgba(124, 147, 195, 0.15);
  opacity: 0.6;
}

.sc-slash { color: var(--text4); }
.sc-at    { color: var(--accent); }
.sc-name  { color: var(--text3); font-weight: 600; }
.sc-desc  { color: var(--text4); }

@media (max-width: 768px) {
  .section-comment { display: none; }
}

/* Service item "Learn more" links */
.svc-item-more {
  display: inline-block;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.04em;
  opacity: 0.75;
  transition: opacity 0.2s;
}
.svc-item-more:hover { opacity: 1; }

/* ══════════ KEYBOARD SHORTCUTS ══════════ */

/* Toast notification for 'g' prefix key */
.kbd-toast {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9999;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text2);
  background: var(--card);
  border: 1px solid var(--border-hover);
  border-radius: 6px;
  padding: 6px 12px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.kbd-toast.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Keyboard shortcut help overlay */
.kbd-help-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9990;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.kbd-help-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.kbd-help-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -46%) scale(0.97);
  z-index: 9991;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--r);
  padding: 0;
  min-width: 320px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.kbd-help-modal.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.kbd-help-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 12px;
}
.kbd-help-title {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--text2);
  letter-spacing: 0.04em;
}
.kbd-help-close {
  background: none;
  border: none;
  color: var(--text4);
  font-size: 18px;
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
  transition: color 0.2s;
}
.kbd-help-close:hover { color: var(--text2); }

.kbd-help-divider {
  height: 1px;
  background: var(--border);
  margin: 0 20px;
}

.kbd-help-list {
  padding: 12px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.kbd-help-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.kbd-help-keys {
  display: flex;
  align-items: center;
  gap: 4px;
}
.kbd-help-keys kbd {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text3);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  padding: 2px 6px;
  min-width: 22px;
  text-align: center;
}
.kbd-help-desc {
  font-size: 12px;
  color: var(--text3);
  font-family: var(--mono);
}

@media (max-width: 768px) {
  .kbd-toast { display: none; }
  .kbd-help-modal { min-width: calc(100vw - 48px); }
}

/* ══════════ CIRCUIT LINES ══════════ */

.circuit-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.circuit-line {
  stroke: rgba(124, 147, 195, 0.06);
  stroke-width: 1;
  fill: none;
}
.circuit-dot {
  fill: rgba(124, 147, 195, 0.08);
}
.circuit-line,
.circuit-dot {
  opacity: 0;
  transition: opacity 0.8s ease;
}
.circuit-visible .circuit-line,
.circuit-visible .circuit-dot {
  opacity: 1;
}

@media (max-width: 1024px) {
  .circuit-svg { display: none; }
}

/* ══════════ NEON GLOW ENHANCEMENTS ══════════ */

/* CTA button hover glow */
.btn-p:hover {
  box-shadow: 0 8px 28px rgba(124, 147, 195, 0.25), var(--glow-accent);
}
.nav-cta:hover {
  box-shadow: var(--glow-accent);
}

/* Active nav link glow */
.nav-link.active {
  text-shadow: 0 0 12px rgba(124, 147, 195, 0.25);
}

/* Command palette input focus glow */
.cmd-input:focus {
  box-shadow: 0 0 0 2px rgba(124, 147, 195, 0.15);
  outline: none;
}

/* ══════════ APPLE-LEVEL NUANCES ══════════ */

/* Scroll progress indicator */
.scroll-progress{position:fixed;top:0;left:0;height:2px;background:linear-gradient(90deg,var(--accent),var(--green));z-index:101;width:0%;transition:none;pointer-events:none}

/* Text reveal words */
/* Text reveal: JS adds .reveal-word-init to start animation. Without JS, text is fully visible. */
.text-reveal .reveal-word{display:inline-block;transition:opacity .5s ease,transform .5s ease,filter .5s ease}
.text-reveal .reveal-word.reveal-word-init{opacity:.15;transform:translateY(8px);filter:blur(2px)}

/* Magnetic button base transitions */
.btn-p,.nav-cta{transition:transform .15s ease,background .2s,box-shadow .2s}

/* Remove harsh section borders for smooth transitions */
#stats{border-bottom:none}
.marquee-section{border-top:none;border-bottom:none;background:linear-gradient(to bottom,var(--bg) 0%,var(--bg2) 15%,var(--bg2) 85%,var(--bg) 100%)}

/* Reduced motion: show text-reveal words immediately */
@media(prefers-reduced-motion:reduce){
  .text-reveal .reveal-word{opacity:1!important;transform:none!important;filter:none!important;transition:none!important}
  .scroll-progress{display:none}
}
