/* ========================================
   CLEAN PC NAVIGATION BAR
   Simple, intuitive navigation for desktop viewing
   ======================================== */

/* CSS Variables for consistent styling */
:root {
  /* Theme: glassy dark with violet accent */
  --nav-bg-color: rgba(8, 12, 20, 0.6);
  --nav-text-color: rgba(255, 255, 255, 0.88);
  --nav-purple: #8b5cf6;
  --nav-purple-light: rgba(139, 92, 246, 0.18);
  --nav-border-color: rgba(255, 255, 255, 0.08);
  --nav-font-family: "Inter", sans-serif;
  --nav-height: 70px;
  --nav-transition: all 0.3s ease;
}

/* ========================================
   MAIN NAVIGATION CONTAINER
   ======================================== */

/* Fixed navigation bar at the top */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background-color: var(--nav-bg-color);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  font-family: var(--nav-font-family);
  z-index: 1000;
  border-bottom: 1px solid var(--nav-border-color);
}

/* ========================================
   BRAND/LOGO SECTION
   ======================================== */

/* Main brand link styling */
.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--nav-text-color);
  text-decoration: none;
  transition: var(--nav-transition);
}

/* Purple accent for "Law." */
.brand-accent {
  color: var(--nav-purple);
}

/* Subtle hover effect for brand */
.navbar-brand:hover {
  color: var(--nav-purple);
}

/* ========================================
   NAVIGATION LINKS SECTION
   ======================================== */

/* Navigation links container */
.nav-links {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

/* Individual navigation items */
.nav-item {
  color: var(--nav-text-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  transition: var(--nav-transition);
  position: relative;
}

/* ========================================
   SELECTED STATE STYLING
   Purple text color only (no background)
   ======================================== */

/* Active/selected navigation item */
.nav-item.active {
  color: var(--nav-purple);
  background-color: transparent;
}

/* ========================================
   HOVER EFFECTS
   Simple underline animation
   ======================================== */

/* Underline animation setup */
.nav-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--nav-purple);
  transition: var(--nav-transition);
  transform: translateX(-50%);
}

/* Show underline on hover for all navigation items */
.nav-item:hover::after {
  width: 80%;
}

/* Hover color change for all navigation items */
.nav-item:hover {
  color: var(--nav-purple);
}

/* ========================================
   CLICK EFFECTS
   Subtle interaction feedback
   ======================================== */

/* Subtle click effect for all navigation items */
.nav-item:active {
  transform: translateY(1px);
  transition: transform 0.1s ease;
}

/* Click effect for brand */
.navbar-brand:active {
  transform: translateY(1px);
  transition: transform 0.1s ease;
}

/* Click effect for CTA button */
.navbar-cta:active {
  transform: translateY(1px);
  transition: transform 0.1s ease;
}

/* ========================================
   CTA BUTTON STYLING
   ======================================== */

/* Call-to-action button */
.navbar-cta {
  background-color: transparent;
  color: var(--nav-text-color);
  border: 2px solid var(--nav-text-color);
  padding: 0.6rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--nav-transition);
}

/* CTA button hover effect */
.navbar-cta:hover {
  background-color: var(--nav-purple);
  border-color: var(--nav-purple);
  color: white;
}

/* ========================================
   FOCUS OUTLINE REMOVAL
   Remove default browser focus outlines
   ======================================== */

/* Remove focus outlines from all navigation elements */
.navbar a:focus,
.navbar a:active,
.navbar a:focus-visible {
  outline: none;
  box-shadow: none;
}

/* Remove focus outlines specifically from navigation items */
.nav-item:focus,
.nav-item:active,
.nav-item:focus-visible {
  outline: none;
  box-shadow: none;
}

/* Remove focus outlines from brand and CTA */
.navbar-brand:focus,
.navbar-brand:active,
.navbar-cta:focus,
.navbar-cta:active {
  outline: none;
  box-shadow: none;
}

/* ========================================
   RESPONSIVE DESIGN FOR PC ONLY
   Optimized for desktop viewing (1024px+)
   ======================================== */

/* Large desktop optimization */
@media (min-width: 1200px) {
  .navbar {
    padding: 0 3rem;
  }
  
  .nav-links {
    gap: 2.5rem;
  }
}

/* Standard desktop (1024px - 1199px) */
@media (max-width: 1199px) and (min-width: 1024px) {
  .nav-links {
    gap: 1.8rem;
  }
  
  .nav-item {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
  }
}

/* ========================================
   PERFORMANCE OPTIMIZATIONS
   ======================================== */

/* GPU acceleration for smooth animations */
.navbar,
.nav-item,
.navbar-brand,
.navbar-cta {
  will-change: transform;
  backface-visibility: hidden;
}

/* Optimize transitions for 60fps */
.nav-item::after {
  will-change: width;
}

/* ========================================
   NAVBAR CHAIN REACTION (after hero title animates)
   ======================================== */

/* Start hidden; reveal via .animate-in */
.navbar .navbar-brand,
.navbar .nav-links .nav-item,
.navbar .navbar-cta {
  opacity: 0;
  transform: translateY(-14px);
}

/* Keyframes */
@keyframes navBrandIn {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes navItemIn {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes navCTAIn {
  from { opacity: 0; transform: translateY(-12px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Animate in with staggered delays */
.navbar.animate-in .navbar-brand {
  animation: navBrandIn 380ms ease-out forwards;
}
.navbar.animate-in .nav-links li:nth-child(1) .nav-item { animation: navItemIn 360ms ease-out 80ms forwards; }
.navbar.animate-in .nav-links li:nth-child(2) .nav-item { animation: navItemIn 360ms ease-out 160ms forwards; }
.navbar.animate-in .nav-links li:nth-child(3) .nav-item { animation: navItemIn 360ms ease-out 240ms forwards; }
.navbar.animate-in .nav-links li:nth-child(4) .nav-item { animation: navItemIn 360ms ease-out 320ms forwards; }
.navbar.animate-in .nav-links li:nth-child(5) .nav-item { animation: navItemIn 360ms ease-out 400ms forwards; }
.navbar.animate-in .navbar-cta {
  animation: navCTAIn 420ms ease-out 500ms forwards;
}

/* One-time small pulse when user starts scrolling */
/* (removed per request) */

/* Reduced motion: show instantly, no animations */
@media (prefers-reduced-motion: reduce) {
  .navbar .navbar-brand,
  .navbar .nav-links .nav-item,
  .navbar .navbar-cta {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}