/* ==========================================================================
   MODERN HAMBURGER NAVIGATION SYSTEM
   ========================================================================== */

/* Hamburger Button - Modern Animated Style */
.menu-toggle {
  position: relative;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background: #333;
  border-radius: 2px;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  position: relative;
}

/* Animated Hamburger Transform */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
  background: #005EB8;
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -8px);
  background: #005EB8;
}

/* Modern Fullscreen Overlay Navigation */
.nav-mobile-modern {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-mobile-modern.active {
  opacity: 1;
  visibility: visible;
}

/* Navigation Content Container */
.nav-mobile-content {
  width: 90%;
  max-width: 500px;
  text-align: center;
  transform: translateY(30px);
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  transition-delay: 0.2s;
}

.nav-mobile-modern.active .nav-mobile-content {
  transform: translateY(0);
  opacity: 1;
}

/* Navigation Links */
.nav-mobile-modern ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-mobile-modern li {
  margin: 0;
  opacity: 0;
  transform: translateY(20px);
  animation: none;
}

.nav-mobile-modern.active li {
  animation: slideInUp 0.5s forwards;
}

.nav-mobile-modern.active li:nth-child(1) { animation-delay: 0.1s; }
.nav-mobile-modern.active li:nth-child(2) { animation-delay: 0.15s; }
.nav-mobile-modern.active li:nth-child(3) { animation-delay: 0.2s; }
.nav-mobile-modern.active li:nth-child(4) { animation-delay: 0.25s; }
.nav-mobile-modern.active li:nth-child(5) { animation-delay: 0.3s; }
.nav-mobile-modern.active li:nth-child(6) { animation-delay: 0.35s; }
.nav-mobile-modern.active li:nth-child(7) { animation-delay: 0.4s; }

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

/* Modern Link Styles */
.nav-link-mobile-modern {
  display: block;
  padding: 1.2rem 1rem;
  color: #333;
  text-decoration: none;
  font-size: 1.4rem;
  font-weight: 500;
  position: relative;
  transition: all 0.3s ease;
  overflow: hidden;
}

.nav-link-mobile-modern::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: #005EB8;
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.nav-link-mobile-modern:hover::before,
.nav-link-mobile-modern:focus::before {
  width: 80%;
}

.nav-link-mobile-modern:hover,
.nav-link-mobile-modern:focus {
  color: #005EB8;
  transform: scale(1.05);
}

/* Highlight for urgent link */
.nav-link-mobile-modern.highlight {
  color: #ff5722;
  font-weight: 600;
  position: relative;
}

.nav-link-mobile-modern.highlight::after {
  content: '🚨';
  position: absolute;
  right: -30px;
  top: 50%;
  transform: translateY(-50%);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: translateY(-50%) scale(1);
  }
  50% {
    transform: translateY(-50%) scale(1.1);
  }
}

/* Mobile CTA Button */
.mobile-cta-modern {
  margin-top: 2rem;
  opacity: 0;
  transform: translateY(20px);
  animation: none;
}

.nav-mobile-modern.active .mobile-cta-modern {
  animation: slideInUp 0.5s forwards;
  animation-delay: 0.5s;
}

.btn-call-mobile-modern {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #005EB8 0%, #0047a0 100%);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 94, 184, 0.3);
}

.btn-call-mobile-modern:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 94, 184, 0.4);
  background: linear-gradient(135deg, #0047a0 0%, #005EB8 100%);
}

/* Alternative: Slide Panel Style */
.nav-mobile-slide {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 400px;
  height: 100vh;
  background: white;
  box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
  transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
  z-index: 1000;
  overflow-y: auto;
  padding: 80px 0 40px;
}

.nav-mobile-slide.active {
  right: 0;
}

/* Dark Overlay */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Alternative: Circular Reveal Animation */
.nav-mobile-circle {
  position: fixed;
  top: 60px;
  right: 20px;
  width: 0;
  height: 0;
  background: white;
  border-radius: 50%;
  transition: all 0.6s cubic-bezier(0.77, 0, 0.175, 1);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.nav-mobile-circle.active {
  width: 300vmax;
  height: 300vmax;
  top: 50%;
  right: 50%;
  transform: translate(50%, -50%);
  border-radius: 0;
}

/* Responsive Adjustments */
@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }
  
  .nav-mobile-modern,
  .nav-mobile-slide,
  .nav-mobile-circle,
  .nav-overlay {
    display: none !important;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .menu-toggle span,
  .nav-mobile-modern,
  .nav-mobile-slide,
  .nav-mobile-circle,
  .nav-overlay,
  .nav-link-mobile-modern {
    transition: none !important;
    animation: none !important;
  }
}

/* Focus styles for keyboard navigation */
.menu-toggle:focus {
  outline: 2px solid #005EB8;
  outline-offset: 2px;
}

.nav-link-mobile-modern:focus {
  outline: 2px solid #005EB8;
  outline-offset: 4px;
  color: #005EB8;
}

/* Prevent body scroll when menu is open */
body.menu-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}