/**
 * Techmenas.lt Navigation Bar Styles
 * Dark theme with glowing accents and frosted glass effect
 * Created: 2025-01-07
 */

/* ============================================
   NAVIGATION CONTAINER
   ============================================ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 80px;
  z-index: var(--z-sticky, 1020);
  
  /* Semi-transparent dark background */
  background: rgba(26, 26, 46, 0.85);
  
  /* Frosted glass effect */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  
  /* Subtle bottom border */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  
  /* Shadow for depth */
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  
  transition: all 0.3s ease;
}

/* Scrolled state - more opaque */
.navbar.scrolled {
  background: rgba(26, 26, 46, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* Navigation Inner Container */
.navbar-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ============================================
   LOGO SECTION
   ============================================ */

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.navbar-logo:hover {
  transform: translateY(-2px);
}

.navbar-logo-image {
  width: 40px;
  height: 40px;
  transition: all 0.3s ease;
  filter: drop-shadow(0 0 8px rgba(0, 191, 255, 0.4));
}

.navbar-logo:hover .navbar-logo-image {
  filter: drop-shadow(0 0 12px rgba(0, 191, 255, 0.6));
  transform: rotate(5deg);
}

.navbar-logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.navbar-logo-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text-primary, #FFFFFF);
  letter-spacing: -0.02em;
  line-height: 1;
}

.navbar-logo-subtitle {
  font-size: 0.75rem;
  color: var(--color-text-muted, #A0A0A0);
  letter-spacing: 0.02em;
  line-height: 1;
}

/* ============================================
   NAVIGATION LINKS
   ============================================ */

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar-link {
  position: relative;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text-secondary, #E0E0E0);
  text-decoration: none;
  padding: 8px 0;
  transition: all 0.3s ease;
  letter-spacing: 0.01em;
}

/* Underline effect */
.navbar-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #00BFFF 0%, #8A2BE2 100%);
  transition: width 0.3s ease;
}

.navbar-link:hover {
  color: var(--color-accent-cyan, #00FFFF);
  text-shadow: 0 0 8px rgba(0, 255, 255, 0.6);
}

.navbar-link:hover::after {
  width: 100%;
}

/* Active link state */
.navbar-link.active {
  color: var(--color-accent-blue, #00BFFF);
}

.navbar-link.active::after {
  width: 100%;
}

/* ============================================
   CTA BUTTON
   ============================================ */

.navbar-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-primary, #FFFFFF);
  text-decoration: none;
  
  /* Gradient background */
  background: linear-gradient(135deg, #00BFFF 0%, #8A2BE2 100%);
  
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  
  /* Shadow */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: nowrap;
}

.navbar-cta:hover {
  /* Slightly brighter gradient */
  background: linear-gradient(135deg, #00D4FF 0%, #9D3EF5 100%);
  
  /* Scale up */
  transform: scale(1.05);
  
  /* Enhanced glow */
  box-shadow: 
    0 0 25px rgba(0, 191, 255, 0.5),
    0 0 50px rgba(138, 43, 226, 0.3);
  
  /* Remove text shadow from link hover */
  text-shadow: none;
}

.navbar-cta:active {
  transform: scale(0.98);
}

/* ============================================
   MOBILE MENU TOGGLE
   ============================================ */

.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  transition: all 0.3s ease;
}

.navbar-toggle-bar {
  width: 28px;
  height: 3px;
  background: var(--color-text-primary, #FFFFFF);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.navbar-toggle:hover .navbar-toggle-bar {
  background: var(--color-accent-cyan, #00FFFF);
  box-shadow: 0 0 8px rgba(0, 255, 255, 0.6);
}

/* Animated hamburger to X */
.navbar-toggle.active .navbar-toggle-bar:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.navbar-toggle.active .navbar-toggle-bar:nth-child(2) {
  opacity: 0;
}

.navbar-toggle.active .navbar-toggle-bar:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
  .navbar {
    height: 70px;
  }
  
  .navbar-container {
    padding: 0 1rem;
  }
  
  .navbar-toggle {
    display: flex;
  }
  
  .navbar-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(26, 26, 46, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    
    /* Hidden by default */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  
  .navbar-menu.active {
    max-height: 500px;
  }
  
  .navbar-menu li {
    width: 100%;
  }
  
  .navbar-link {
    display: block;
    padding: 1rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
  
  .navbar-link::after {
    display: none;
  }
  
  .navbar-link:hover {
    background: rgba(0, 191, 255, 0.1);
  }
  
  .navbar-cta {
    margin: 1rem 2rem;
    width: calc(100% - 4rem);
    justify-content: center;
  }
  
  .navbar-logo-image {
    width: 36px;
    height: 36px;
  }
  
  .navbar-logo-title {
    font-size: 1.125rem;
  }
  
  .navbar-logo-subtitle {
    font-size: 0.7rem;
  }
}

@media (max-width: 480px) {
  .navbar-container {
    padding: 0 0.75rem;
  }
  
  .navbar-logo-text {
    display: none;
  }
  
  .navbar-logo-image {
    width: 32px;
    height: 32px;
  }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

/* Focus states */
.navbar-link:focus-visible,
.navbar-cta:focus-visible,
.navbar-toggle:focus-visible {
  outline: 2px solid var(--color-accent-blue, #00BFFF);
  outline-offset: 4px;
  border-radius: 4px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .navbar,
  .navbar-link,
  .navbar-cta,
  .navbar-toggle,
  .navbar-toggle-bar,
  .navbar-logo,
  .navbar-logo-image {
    transition: none;
  }
  
  .navbar-link::after {
    transition: none;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .navbar {
    background: rgba(0, 0, 0, 1);
    border-bottom: 2px solid #FFFFFF;
  }
  
  .navbar-link {
    color: #FFFFFF;
  }
  
  .navbar-cta {
    border: 2px solid #FFFFFF;
  }
}

