/* Mobile Navigation Styles - Only for screens up to 991px */
@media (max-width: 991.98px) {
  /* Base Mobile Navbar */
  .navbar-custom {
    padding: 15px 0;
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
  }

  .navbar-container {
    padding: 0 15px;
    position: relative;
  }

  /* Logo in Mobile */
  .navbar-logo {
    z-index: 1001;
    position: relative;
  }

  .logo-text span:first-child {
    font-size: 0.9rem;
  }

  .logo-text span:last-child {
    font-size: 1.4rem;
  }

  /* Mobile Menu Toggle Button */
  .navbar-toggle {
    display: block;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 0;
  }

  .navbar-toggle:focus {
    outline: none;
  }

  .navbar-toggle .bar {
    display: block;
    width: 100%;
    height: 3px;
    background: #1a5bbf;
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
  }

  .navbar-toggle .bar:nth-child(1) {
    top: 0;
  }

  .navbar-toggle .bar:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
  }

  .navbar-toggle .bar:nth-child(3) {
    bottom: 0;
  }

  .navbar-toggle.active .bar:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
  }

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

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

  /* Mobile Menu */
  .navbar-menu-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .navbar-menu-container.active {
    opacity: 1;
    visibility: visible;
  }

  .navbar-menu {
    background: #fff;
    width: 85%;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 10px;
    padding: 20px 0;
    margin: 0;
    list-style: none;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  }

  .navbar-menu-container.active .navbar-menu {
    transform: translateY(0);
  }

  .navbar-menu li {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #f0f0f0;
  }

  .navbar-menu li:last-child {
    border-bottom: none;
  }

  .navbar-menu a {
    display: block;
    padding: 15px 25px;
    color: #333;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
  }

  .navbar-menu a:hover,
  .navbar-menu a.active {
    background: #f8f9fa;
    color: #1a5bbf;
    padding-left: 30px;
  }

  /* Hide desktop navigation on mobile */
  .page-nav-buttons {
    display: none;
  }

  /* Scrolled state for mobile */
  .navbar-custom.scrolled {
    padding: 10px 0;
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }

  /* Smooth transitions for menu items */
  .navbar-menu a::after {
    content: '';
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: #1a5bbf;
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s ease;
  }

  .navbar-menu a:hover::after,
  .navbar-menu a.active::after {
    opacity: 1;
    left: 15px;
  }
}

/* Animation for menu items */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.navbar-menu li {
  animation: fadeInUp 0.3s ease forwards;
  opacity: 0;
}

/* Staggered animation for menu items */
.navbar-menu li:nth-child(1) { animation-delay: 0.1s; }
.navbar-menu li:nth-child(2) { animation-delay: 0.15s; }
.navbar-menu li:nth-child(3) { animation-delay: 0.2s; }
.navbar-menu li:nth-child(4) { animation-delay: 0.25s; }
.navbar-menu li:nth-child(5) { animation-delay: 0.3s; }
