/* ===== UNIFIED NAVIGATION SYSTEM ===== */

/* Navigation Container */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: auto;
  z-index: 200;
  width: 100%;
  /* Glassmorphism Background */
  background: rgba(0, 0, 0, 0.07);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0);
}

/* Navigation Padding */
.nav_padding {
  padding: 1rem 2.5%;
  height: 100%;
  position: relative;
}

/* Navigation Grid - Even Spacing Layout */
.nav_grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto;
  align-items: center;
  height: 60px;
  width: 100%;
  margin: 0 auto;
  gap: 1rem;
  position: relative;
}

/* Left Section - Logo Text */
.nav_logo_parent {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  color: #fff;
  font-family: var(--font-2, 'MonumentExtended'), sans-serif;
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 1px;
  cursor: pointer;
  transition: color 0.3s ease;
}

.nav_logo_parent:hover {
  color: var(--main-color, #fff);
}

/* Center Section - Always Centered and Rotating Logo */
.nav_logo_center {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  height: 100%;
  /* Prevent layout shifts during font loading */
  min-height: 60px;
}

.nav_logo_rotating {
  width: 55px;
  height: auto;
  /* More stable centering approach */
  position: relative;
  /* Always rotating animation */
  animation: rotate-logo 8s linear infinite;
  /* Performance optimizations */
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  z-index: 150;
  /* Prevent layout shifts */
  display: block;
  margin: 0 auto;
}


/* Logo Rotation Animations */
@keyframes rotate-logo {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes rotate-logo-fast {
  from {
    transform: scale(1.1) rotate(0deg);
  }
  to {
    transform: scale(1.1) rotate(360deg);
  }
}

/* Right Section - Clean Hamburger Menu */
.nav_menu_section {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.nav_menu_section .action {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.nav_menu_section .action:hover {
  background: none;
}

.nav_menu_section .action:active {
  background: none;
}

.hamburger_menu {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 70px;
  height: 14px;
  gap: 4px;
  cursor: pointer;
    margin-top: 20px;
}

.hamburger_line {
  width: 100%;
  height: 2px;
  background:#fff;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.hamburger_menu:hover .hamburger_line {
  background: var(--main-color, #fff);
}

.hamburger_menu:hover .hamburger_line:nth-child(1) {
  transform: translateX(-2px);
}

.hamburger_menu:hover .hamburger_line:nth-child(2) {
  transform: translateX(0);
}

.hamburger_menu:hover .hamburger_line:nth-child(3) {
  transform: translateX(2px);
}

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

/* Tablet */
@media screen and (max-width: 991px) {
  .nav_grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.5rem;
    height: 55px;
  }
  
  .nav_logo_parent {
    font-size: 1.1rem;
  }
  
  .nav_logo_rotating {
    width: 50px;
  }
  
  .hamburger_menu {
    width: 80px;
    height: 13px;
    padding-left: 35px;
  }
}

/* Mobile */
@media screen and (max-width: 767px) {
  .nav_padding {
    padding: 0.8rem 2%;
  }
  
  .nav_grid {
    grid-template-columns: 1fr 1fr 1fr;
    height: 50px;
    gap: 0.3rem;
  }
  
  .nav_logo_parent {
    font-size: 1rem;
  }
  
  .nav_logo_rotating {
    width: 40px;
  }
  
  .hamburger_menu {
    height: 12px;
    gap: 3px;
    margin-top: 13px;
  }
  
  .hamburger_line {
    height: 1.5px;
  }
  
  .nav_menu_section {
    margin-right: 0rem;
  }
  
  .nav_menu_section .action {
    padding: 6px 10px;
    border-radius: 10px;
  }
}

/* Small Mobile */
@media screen and (max-width: 480px) {
  .nav_padding {
    padding: 0.6rem 1.5%;
  }
  
  .nav_grid {
    height: 45px;
  }
  
  .nav_logo_rotating {
    width: 40px;
  }
  
  .hamburger_menu {
    height: 14px;
    margin-top: 10px;
  }
  
  .nav_menu_section {
    margin-right: 0.1rem;
  }
  
  .nav_menu_section .action {
    padding: 4px 8px;
    border-radius: 8px;
  }
}

/* ===== ACCESSIBILITY ===== */
.nav_logo_parent:focus,
.nav_logo_rotating:focus,
.hamburger_menu:focus {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

/* ===== DARK MODE SUPPORT ===== */
@media (prefers-color-scheme: dark) {
  .below-line {
    background-color: rgba(255, 255, 255, 0.1);
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  .nav {
    display: none;
  }
}

/* ===== LEGACY SUPPORT ===== */
/* Legacy styles removed - all menu styling now consolidated in navigation.css */

/* Remove old conflicting styles */
.nav_centered_logo,
.est_nav {
  display: none !important;
}