/* ═══════════════════════════════════════════════════════════
   AKNEX LABS — Shared Navigation & Design System
   aknex-shared.css  |  v1.0
   ═══════════════════════════════════════════════════════════ */

/* ── DESIGN TOKENS ──────────────────────────────────────── */
:root {
  --akx-bg:           #080a12;
  --akx-surface:      #0f1221;
  --akx-border:       rgba(255,255,255,0.06);
  --akx-border-hover: rgba(0,242,254,0.22);
  --akx-accent:       #00f2fe;
  --akx-accent2:      #6366f1;
  --akx-text:         #e2e8f0;
  --akx-muted:        #64748b;
  --akx-muted2:       #94a3b8;
  --akx-emerald:      #10b981;
  --akx-amber:        #f59e0b;
  --akx-nav-h:        48px;
  --akx-font:         'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --akx-mono:         'JetBrains Mono', 'Fira Code', 'SF Mono', monospace;
  --akx-radius:       8px;
  --akx-ease:         cubic-bezier(0.16, 1, 0.3, 1);
}

/* ═══════════════════════════════════════════════════════════
   TOP NAVIGATION BAR
   ═══════════════════════════════════════════════════════════ */

.aknex-topnav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--akx-nav-h);
  background: rgba(8, 10, 18, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--akx-border);
  display: flex;
  align-items: center;
  padding: 0 16px 0 20px;
  z-index: 9000;
  font-family: var(--akx-font);
  gap: 0;
}

.aknex-topnav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: 4px;
}

.aknex-topnav-logo {
  width: 26px; height: 26px;
  background: linear-gradient(135deg, #00f2fe 0%, #6366f1 100%);
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 900;
  color: #000;
  font-family: var(--akx-mono);
  letter-spacing: -0.5px;
  flex-shrink: 0;
  transition: opacity 0.15s;
  user-select: none;
}
.aknex-topnav-brand:hover .aknex-topnav-logo { opacity: 0.82; }

.aknex-topnav-name {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
}

.aknex-topnav-sep {
  width: 1px;
  height: 18px;
  background: var(--akx-border);
  margin: 0 14px;
  flex-shrink: 0;
}

.aknex-topnav-page {
  font-size: 11px;
  color: var(--akx-muted);
  font-family: var(--akx-mono);
  letter-spacing: 0.06em;
  flex-shrink: 0;
  margin-right: 16px;
}

.aknex-topnav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
.aknex-topnav-links::-webkit-scrollbar { display: none; }

.aknex-topnav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 9px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--akx-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
}
.aknex-topnav-link:hover {
  color: var(--akx-text);
  background: rgba(255,255,255,0.05);
}
.aknex-topnav-link.akx-active {
  color: var(--akx-accent);
  background: rgba(0,242,254,0.07);
  border-color: rgba(0,242,254,0.12);
}

.aknex-topnav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding-left: 12px;
}

.aknex-topnav-github {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: 6px;
  border: 1px solid var(--akx-border);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--akx-muted);
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  font-family: var(--akx-mono);
}
.aknex-topnav-github:hover {
  color: var(--akx-text);
  border-color: var(--akx-border-hover);
  background: rgba(0,242,254,0.04);
}

.aknex-topnav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--akx-border);
  border-radius: 6px;
  color: var(--akx-muted);
  cursor: pointer;
  padding: 5px;
  margin-left: auto;
  transition: color 0.15s, border-color 0.15s;
  flex-shrink: 0;
}
.aknex-topnav-toggle:hover {
  color: var(--akx-text);
  border-color: var(--akx-border-hover);
}

@media (max-width: 768px) {
  .aknex-topnav-toggle { display: flex; }
  .aknex-topnav-right  { display: none; }
  .aknex-topnav-page   { display: none; }
  .aknex-topnav-links {
    display: none;
    position: absolute;
    top: var(--akx-nav-h);
    left: 0; right: 0;
    background: rgba(8, 10, 18, 0.98);
    border-bottom: 1px solid var(--akx-border);
    flex-direction: column;
    gap: 0;
    padding: 6px 8px 10px;
  }
  .aknex-topnav-links.akx-open { display: flex; }
  .aknex-topnav-link {
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    width: 100%;
  }
}
@media (max-width: 480px) {
  .aknex-topnav-name { display: none; }
}

/* ═══════════════════════════════════════════════════════════
   ENTRANCE ANIMATIONS
   ═══════════════════════════════════════════════════════════ */

@keyframes akx-fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.akx-entrance        { animation: akx-fade-up 0.45s var(--akx-ease) both; }
.akx-entrance-d1     { animation-delay: 0.04s; }
.akx-entrance-d2     { animation-delay: 0.08s; }
.akx-entrance-d3     { animation-delay: 0.13s; }
.akx-entrance-d4     { animation-delay: 0.19s; }
.akx-entrance-d5     { animation-delay: 0.26s; }

/* ═══════════════════════════════════════════════════════════
   SECTION REVEAL (driven by IntersectionObserver)
   ═══════════════════════════════════════════════════════════ */

.akx-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity   0.5s var(--akx-ease),
    transform 0.5s var(--akx-ease);
}
.akx-reveal.akx-visible { opacity: 1; transform: translateY(0); }
.akx-reveal[data-delay="1"] { transition-delay: 0.06s; }
.akx-reveal[data-delay="2"] { transition-delay: 0.12s; }
.akx-reveal[data-delay="3"] { transition-delay: 0.18s; }
.akx-reveal[data-delay="4"] { transition-delay: 0.24s; }

/* ═══════════════════════════════════════════════════════════
   CARD HOVER & BUTTON MICRO-INTERACTIONS
   ═══════════════════════════════════════════════════════════ */

.akx-card-hover {
  transition:
    transform    0.22s var(--akx-ease),
    border-color 0.22s ease,
    box-shadow   0.22s ease;
  will-change: transform;
}
.akx-card-hover:hover {
  transform: translateY(-2px);
  border-color: rgba(0,242,254,0.22) !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.35), 0 0 0 1px rgba(0,242,254,0.06);
}

@keyframes akx-pulse-dot {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.45; }
}
.akx-live-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #10b981;
  animation: akx-pulse-dot 2.2s ease-in-out infinite;
  flex-shrink: 0;
  vertical-align: middle;
  margin-right: 3px;
}

/* ═══════════════════════════════════════════════════════════
   REDUCED MOTION SUPPORT
   ═══════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  .akx-entrance,
  .akx-reveal, .akx-reveal.akx-visible,
  .akx-card-hover,
  .akx-live-dot {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
