/* ===========================
   🤖 NML SmartBot Animation
   =========================== */

#nml-bot {
  position: fixed;
  bottom: 12px;
  left: -120px;
  width: 100px;
  height: 100px;
  z-index: 1000;
  animation: nml-walk 5s linear forwards, nml-loop 30s linear infinite;
}

/* 👁️ Robot Image Styling */
#nml-bot img {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 10px #ffffff);
  pointer-events: none;
}

/* 👣 Robot walking motion (left ➜ right) */
@keyframes nml-walk {
  0% { left: -120px; }
  100% { left: calc(100% - 120px); }
}

/* 🔁 Flip robot to face opposite direction each loop */
@keyframes nml-loop {
  0% { transform: scaleX(1); }
  49% { transform: scaleX(1); }
  50% { transform: scaleX(-1); }
  99% { transform: scaleX(-1); }
  100% { transform: scaleX(1); }
}

/* 💬 Speech bubble styling */
.speech {
  position: fixed;
  bottom: 115px;
  right: 95px;
  background: #ffffff;
  color: #333;
  border-radius: 10px;
  padding: 8px 14px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  animation: fadein 0.8s ease;
  font-size: 15px;
  font-weight: 500;
}

/* 🪄 Fade-in for speech bubble */
@keyframes fadein {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* 📱 Responsive adjustments for mobile */
@media (max-width:600px) {
  #nml-bot {
    width: 60px;
    height: 60px;
    bottom: 8px;
  }
  .speech {
    bottom: 74px;
    right: 70px;
    font-size: 13px;
  }
}
