/* 
 * CSSN COMBAT - GLOBAL STYLE LAYER
 */

:root {
  --combat-indigo: #6366f1;
  --combat-indigo-bright: #818cf8;
  --combat-indigo-glow: rgba(99, 102, 241, 0.5);
  --combat-obsidian: #020617;
  --combat-border: rgba(255, 255, 255, 0.08);
  --nav-height: 5.5rem;
  --font-main: 'Plus Jakarta Sans', sans-serif;
  --font-tech: 'Space Grotesk', sans-serif;
}

/* Base UI Elements */
.blueprint-bg {
  background-image: 
    linear-gradient(rgba(99, 102, 241, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.05) 1px, transparent 1px);
  background-size: 80px 80px;
}

.kinetic-grid {
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle at 2px 2px, rgba(99, 102, 241, 0.1) 1px, transparent 0);
  background-size: 40px 40px;
  z-index: -1;
  animation: combat-grid-drift 100s linear infinite;
  pointer-events: none;
}

@keyframes combat-grid-drift {
  from { background-position: 0 0; }
  to { background-position: 1000px 1000px; }
}

#custom-cursor {
  width: 20px;
  height: 20px;
  background: var(--combat-indigo);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 99999;
  mix-blend-mode: difference;
  transition: transform 0.1s ease-out;
}

/* Global Nav */
.combat-nav-container {
  height: var(--nav-height);
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  background: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--combat-border);
}

.combat-nav-inner {
  max-width: 1920px;
  margin: 0 auto;
  width: 100%;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.combat-nav-pill {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.5rem 1.75rem;
  border-radius: 9999px;
  border: 1px solid var(--combat-border);
}

.nav-link-item {
  font-family: var(--font-tech);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #64748b;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.nav-link-item:hover, 
.nav-link-item.active {
  color: white;
  text-shadow: 0 0 12px var(--combat-indigo-glow);
}

/* Mobile Menu */
#mobile-toggle-btn {
  color: white;
  transition: all 0.2s ease;
}

#mobile-toggle-btn:active { transform: scale(0.9); }

.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 10001;
  visibility: hidden;
  pointer-events: none;
  display: flex;
  justify-content: flex-end;
}

.mobile-nav-overlay.is-active {
  visibility: visible;
  pointer-events: auto;
}

.mobile-nav-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.9);
  backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.mobile-nav-overlay.is-active .mobile-nav-backdrop {
  opacity: 1;
}

.mobile-nav-panel {
  position: relative;
  width: 100%;
  max-width: 320px;
  height: 100%;
  background: linear-gradient(180deg, #0a0f1d 0%, var(--combat-obsidian) 100%);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-overlay.is-active .mobile-nav-panel {
  transform: translateX(0);
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  color: #94a3b8;
  text-decoration: none;
  transition: all 0.3s ease;
}

.mobile-nav-link .num {
  font-family: var(--font-tech);
  font-size: 10px;
  color: var(--combat-indigo);
  opacity: 0.6;
}

.mobile-nav-link .label {
  font-family: var(--font-tech);
  font-size: 1.5rem;
  font-weight: 800;
  text-transform: uppercase;
}

.mobile-nav-link:hover, 
.mobile-nav-link.active {
  color: white;
  padding-left: 0.5rem;
}

/* Page Offset Helper */
.combat-page-offset {
  padding-top: var(--nav-height);
}

/* Shared Typography */
.combat-heading {
  font-family: var(--font-main);
  font-weight: 950;
  letter-spacing: -0.05em;
  font-style: italic;
  text-transform: uppercase;
}

.tech-label {
  font-family: var(--font-tech);
  font-weight: 700;
  color: var(--combat-indigo);
  text-transform: uppercase;
  letter-spacing: 0.4em;
}

.btn-tactical {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-tech);
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Footer Condensed */
.combat-footer-condensed {
  border-top: 1px solid var(--combat-border);
  background: #010410;
  padding: 3rem 0;
}

.footer-link-compact {
  font-family: var(--font-tech);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #475569;
  transition: all 0.3s ease;
  text-decoration: none;
}

.footer-link-compact:hover,
.footer-link-compact.active {
  color: white;
}

.shadow-glow {
  box-shadow: 0 0 25px var(--combat-indigo-glow);
}

.reveal { 
  opacity: 0; 
  transform: translateY(20px); 
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1); 
}
.reveal.active { 
  opacity: 1; 
  transform: translateY(0); 
}

@media (max-width: 1024px) {
  .combat-nav-container { height: 5rem; }
  :root { --nav-height: 5rem; }
}
