/* --- Modern "Dynamic Bridge" Mobile Navigation --- */

.mobile-bridge {
  display: none;
}

@media (max-width: 991px) {
  .mobile-bridge {
    display: flex;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 30px);
    max-width: 440px;
    height: 68px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 34px;
    z-index: 10000;
    align-items: center;
    justify-content: space-around;
    padding: 0 5px;
    box-shadow: 
      0 15px 50px rgba(0, 0, 0, 0.5),
      0 0 0 1px rgba(255, 255, 255, 0.08) inset;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }

  /* Entrance Animation */
  .mobile-bridge {
    animation: bridgePop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  }

  @keyframes bridgePop {
    from {
      opacity: 0;
      transform: translateX(-50%) translateY(40px) scale(0.9);
    }
    to {
      opacity: 1;
      transform: translateX(-50%) translateY(0) scale(1);
    }
  }

  .mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.65rem;
    font-weight: 600;
    width: 20%;
    height: 100%;
    transition: all 0.3s ease;
    gap: 2px;
    position: relative;
    text-align: center;
  }

  .mobile-nav-item i {
    width: 22px;
    height: 22px;
    transition: all 0.3s ease;
  }

  .mobile-nav-item.active {
    color: #fff;
  }

  /* Active Indicator Glow */
  .mobile-nav-item.active i {
    color: var(--accent, #3b82f6);
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.5));
    transform: translateY(-2px);
  }

  .mobile-nav-item span {
    opacity: 0.7;
    transition: all 0.3s ease;
  }

  .mobile-nav-item.active span {
    opacity: 1;
    transform: translateY(-2px);
  }

  /* Subtle background indicator for active item */
  .mobile-bridge::before {
    content: '';
    position: absolute;
    width: 50px;
    height: 50px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    transition: left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: -1;
    top: 50%;
    transform: translateY(-50%) translateX(-50%);
  }
}
