/* Mobile Menu Styles - Creative Toggle */

/* Hide mobile navigation on desktop */
.mobile-nav-toggle,
.mobile-nav {
    display: none !important;
}

@media (max-width: 768px) {
    /* Show mobile navigation only on mobile */
    .mobile-nav-toggle,
    .mobile-nav {
        display: block !important;
    }
  /* Force mobile layout */
  .nav__menu {
    display: none !important;
  }
  
  .nav__menu.active {
    display: flex !important;
  }

  .nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 350px;
    height: 100vh;
    background: linear-gradient(135deg, #ffffff 0%, #f4f7f6 100%);
    flex-direction: column;
    padding: 2rem 1.5rem;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
    transform: translateX(0);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 999;
    overflow-y: auto;
    backdrop-filter: blur(10px);
    border-left: 3px solid #00627c;
    border-radius: 0 0 0 20px;
  }

  .nav__menu.active {
    right: 0;
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
  }

  /* Mobile menu overlay */
  .nav__menu.active::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    z-index: -1;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
  }

  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  .nav__list {
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 2rem;
    width: 100%;
  }

  .nav__item {
    width: 100%;
  }

  .nav__link {
    display: block;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(0, 98, 124, 0.2);
    margin-bottom: 0.5rem;
    font-weight: 600;
    text-align: center;
  }

  .nav__link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 98, 124, 0.1), transparent);
    transition: left 0.5s ease;
  }

  .nav__link:hover::before {
    left: 100%;
  }

  .nav__link:hover {
    background: rgba(0, 98, 124, 0.1);
    border-color: #00627c;
    transform: translateX(5px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 98, 124, 0.3);
    color: #00627c;
  }

  .nav__link.active {
    background: linear-gradient(135deg, #00627c, #4a9ba8);
    color: #ffffff;
    border-color: #00627c;
    box-shadow: 0 8px 30px rgba(0, 98, 124, 0.4);
    transform: scale(1.05);
  }

  .nav__actions {
    flex-direction: column;
    gap: 1rem;
    margin-top: auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 98, 124, 0.1);
  }

  .lang-toggle {
    width: 100%;
    padding: 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 98, 124, 0.2);
    transition: all 0.3s ease;
  }

  .lang-toggle:hover {
    background: rgba(0, 98, 124, 0.05);
    border-color: #00627c;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 98, 124, 0.2);
  }

  .btn {
    width: 100%;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    font-weight: 600;
    border: 2px solid transparent;
  }

  .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
  }

  .btn:hover::before {
    left: 100%;
  }

  .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 98, 124, 0.3);
  }

  .nav__toggle {
    display: block !important;
    position: relative;
    z-index: 1001;
  }

  /* Mobile Menu Header */
  .nav__menu::after {
    content: 'Smart Global Link';
    position: absolute;
    top: 2rem;
    left: 1.5rem;
    right: 1.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: #00627c;
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(0, 98, 124, 0.1);
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #00627c, #4a9ba8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  /* Mobile Menu Animation Stagger */
  .nav__item {
    opacity: 0;
    transform: translateX(50px);
    animation: slideInRight 0.5s ease forwards;
  }

  .nav__item:nth-child(1) { animation-delay: 0.1s; }
  .nav__item:nth-child(2) { animation-delay: 0.2s; }
  .nav__item:nth-child(3) { animation-delay: 0.3s; }
  .nav__item:nth-child(4) { animation-delay: 0.4s; }
  .nav__item:nth-child(5) { animation-delay: 0.5s; }
  .nav__item:nth-child(6) { animation-delay: 0.6s; }

  @keyframes slideInRight {
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

  /* Mobile Menu Close Animation */
  .nav__menu:not(.active) .nav__item {
    animation: slideOutRight 0.3s ease forwards;
  }

  @keyframes slideOutRight {
    to {
      opacity: 0;
      transform: translateX(50px);
    }
  }

  /* Extra Small Screens */
  @media (max-width: 480px) {
    .nav__menu {
      width: 95%;
      max-width: none;
      padding: 1.5rem 1rem;
    }

    .nav__link {
      padding: 0.875rem 1.25rem;
      font-size: 0.95rem;
    }

    .btn {
      padding: 0.875rem 1.25rem;
      font-size: 0.95rem;
    }

    .lang-toggle {
      padding: 0.875rem;
      font-size: 0.95rem;
    }
  }
}

/* Creative Mobile Toggle Animation */
.nav__toggle i {
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  transform-origin: center;
}

.nav__toggle:hover i {
  transform: scale(1.1);
  color: #00627c;
}

/* Mobile Toggle Active State */
.nav__toggle.active i {
  transform: rotate(180deg) scale(1.2);
  color: #00627c;
}

/* Ripple Effect */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(0, 98, 124, 0.3);
  transform: scale(0);
  animation: ripple-animation 0.6s linear;
  pointer-events: none;
}

@keyframes ripple-animation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}
