/* Axencia.co — Navbar: Never-Before-Seen World-Class Animations */

/* Aurora gradient background — flows on scroll */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(3,7,18,0.7) 0%, rgba(15,23,42,0.5) 50%, rgba(3,7,18,0.8) 100%);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-bottom: 1px solid rgba(59, 130, 246, 0.06);
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.33, 1, 0.68, 1);
}

.navbar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 120% 80% at 20% -20%, rgba(59, 130, 246, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 100% 60% at 80% -10%, rgba(6, 182, 212, 0.08) 0%, transparent 45%),
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(99, 102, 241, 0.05) 0%, transparent 40%);
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.navbar.scrolled::before {
  opacity: 1;
  animation: auroraPulse 8s ease-in-out infinite;
}

@keyframes auroraPulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.02); }
}

.navbar.scrolled {
  background: linear-gradient(135deg, rgba(3,7,18,0.92) 0%, rgba(15,23,42,0.88) 100%);
  border-bottom-color: rgba(59, 130, 246, 0.12);
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.3);
}

.nav-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  box-sizing: border-box;
}

/* Logo — holographic shimmer on hover */
.nav-logo {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  padding: 8px 4px;
  margin: 0 8px 0 0;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-logo::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 8px;
  padding: 2px;
  background: linear-gradient(105deg, transparent 10%, rgba(59,130,246,0.6) 50%, rgba(6,182,212,0.4) 90%, transparent);
  background-size: 200% 100%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.nav-logo:hover {
  transform: scale(1.03) translateZ(0);
}

.nav-logo:hover::before {
  opacity: 1;
  animation: logoShimmer 1.5s ease-in-out;
}

@keyframes logoShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.logo-text { color: #e8e8ed; }
.logo-dot { color: #3b82f6; }
.logo-co { color: #94a3b8; font-weight: 500; }

.nav-logo:hover .logo-co { color: #60a5fa; transition: color 0.3s; }

/* Nav links — staggered entrance + spacing */
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0 8px;
}

.nav-links li {
  margin: 0;
  padding: 0;
  opacity: 0;
  transform: translateY(-12px);
  animation: navLinkReveal 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.nav-links li:nth-child(1) { animation-delay: 0.05s; }
.nav-links li:nth-child(2) { animation-delay: 0.1s; }
.nav-links li:nth-child(3) { animation-delay: 0.15s; }
.nav-links li:nth-child(4) { animation-delay: 0.2s; }
.nav-links li:nth-child(5) { animation-delay: 0.25s; }
.nav-links li:nth-child(6) { animation-delay: 0.3s; }

@keyframes navLinkReveal {
  to { opacity: 1; transform: translateY(0); }
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: #94a3b8;
  padding: 12px 8px;
  margin: 0 4px;
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  box-sizing: border-box;
  transition: color 0.25s, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Morphing underline — blob expansion */
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #06b6d4);
  border-radius: 3px;
  transform: translateX(-50%);
  transition: width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover {
  color: #e8e8ed;
  transform: translateY(-2px) scale(1.02);
}

.nav-cta::after,
.nav-cybershield::after {
  display: none !important;
}

/* Get a Quote — World-Class CTA */
.nav-cta {
  padding: 14px 28px;
  margin: 0 8px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1d4ed8 100%);
  background-size: 200% 200%;
  color: white !important;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: 
    0 4px 24px rgba(59, 130, 246, 0.4),
    0 0 0 1px rgba(255,255,255,0.1) inset;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  box-sizing: border-box;
  transition: all 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.nav-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.3) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.35s;
}

.nav-cta:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 
    0 16px 40px rgba(59, 130, 246, 0.5),
    0 0 40px rgba(59, 130, 246, 0.2);
  border-color: rgba(255,255,255,0.4);
  background-position: 100% 50%;
}

.nav-cta:hover::before {
  opacity: 1;
}

.nav-cta:active {
  transform: translateY(-2px) scale(1.01);
}

/* CyberShield — World-Class Premium */
.nav-cybershield {
  padding: 14px 24px;
  margin: 0 8px;
  border: 1px solid rgba(59, 130, 246, 0.5);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(6, 182, 212, 0.05) 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  box-sizing: border-box;
  transition: all 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.nav-cybershield::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.35s;
}

.nav-cybershield:hover {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(6, 182, 212, 0.12) 100%);
  border-color: rgba(59, 130, 246, 0.8);
  transform: translateY(-4px);
  box-shadow: 
    0 12px 32px rgba(59, 130, 246, 0.35),
    0 0 32px rgba(59, 130, 246, 0.15);
}

.nav-cybershield:hover::before {
  opacity: 1;
}

/* Toggle */
.nav-toggle {
  display: none;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  padding: 10px;
  margin: 0;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.2);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 10px;
  box-sizing: border-box;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-toggle:hover {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.4);
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #e8e8ed;
  border-radius: 1px;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Progress bar */
.nav-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, #3b82f6, #06b6d4, #6366f1, #3b82f6);
  background-size: 200% 100%;
  animation: navProgressGlow 3s ease infinite;
  transition: width 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes navProgressGlow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@media (max-width: 1024px) {
  .nav-container { padding: 0 24px; gap: 28px; }
  .nav-links { gap: 24px; padding: 0 4px; }
  .nav-links a { font-size: 0.9rem; padding: 10px 6px; }
  .nav-cta, .nav-cybershield { padding: 12px 20px; margin: 0 4px; min-height: 44px; }
  .nav-logo { font-size: 1.3rem; }
}

@media (max-width: 768px) {
  :root { --nav-height: 64px; }
  .nav-container { padding: 0 16px; gap: 0; }
  .nav-logo { font-size: 1.25rem; }
  .nav-links { position: fixed; top: var(--nav-height); left: 0; right: 0; bottom: 0; width: 100%; height: calc(100vh - var(--nav-height)); background: rgba(3, 7, 18, 0.98); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); flex-direction: column; justify-content: center; align-items: center; gap: 8px; transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); z-index: 999; overflow-y: auto; }
  .nav-links.open { transform: translateX(0); }
  .nav-links li { animation: none; opacity: 1; transform: none; }
  .nav-links a { font-size: 1.1rem; padding: 14px 28px; }
  .nav-cta, .nav-cybershield { margin: 8px 0; }
  .nav-toggle { display: flex; }
}

@media (max-width: 480px) {
  .nav-container { padding: 0 12px; }
  .nav-logo { font-size: 1.15rem; }
}
