body {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  background: none;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('https://png.pngtree.com/png-clipart/20241223/original/pngtree-cool-blue-dragon-logo-png-image_18141282.png') no-repeat center center/cover;
  filter: blur(7px);
  opacity: 0.4;
}
.container {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  max-width: 1200px;
  padding: 20px;
}

header {
  margin-top: 20px;
  width: 100%;
}

.neon-heading {
  font-size: 2.5rem;
  min-height: 60px; /* ✅ fix jumping by reserving space */
  text-align: center;
  background: linear-gradient(to right, #3003fb, #2906ab);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
  overflow: hidden;
}

.model-wrapper {
  margin: 30px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  position: relative;
}

.model-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: inherit;
  backdrop-filter: blur(10px);
  z-index: -1;
  border-radius: 20px;
}

.chatbot-3d {
  width: 100%;
  max-width: 600px;
  height: 400px;
  border-radius: 20px;
  /* background: rgba(0, 0, 0, 0.3); */
}

footer {
  margin-bottom: 30px;
}

#startBtn {
  font-size: 1.2em;
  padding: 12px 28px;
  background: linear-gradient(135deg, #435fe9 0%, #4b43de 100%);
  border: none;
  border-radius: 50px;
  color: #000;
  font-weight: bold;
  cursor: pointer;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

#startBtn:hover {
  transform: scale(1.1);
  box-shadow: 0 0 5px rgb(4, 83, 230),
    0 0 25px rgb(81, 6, 211),
    0 0 50px rgb(3, 22, 231),
    0 0 100px rgb(13, 36, 242),
    0 0 200px rgb(18, 15, 229);
}

/* Mic recording active style */
#microphonr-voice-btn.listening {
    color: white !important;
    background: #ff4b5c !important;
    animation: micPulse 1.2s infinite;
    box-shadow: 0 0 10px rgba(255, 75, 92, 0.7), 0 0 20px rgba(255, 75, 92, 0.5);
}

/* Mic pulse animation */
@keyframes micPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 10px rgba(255, 75, 92, 0.7);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 20px rgba(255, 75, 92, 1);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 10px rgba(255, 75, 92, 0.7);
    }
}



/*media quri*/
@media (max-width: 768px) {
  .neon-heading {
    font-size: 2rem;
    min-height: 60px;
  }
  .chatbot-3d {
    height: 400px;
  }
  #startBtn {
    font-size: 1em;
    padding: 10px 24px;
  }
}

@media (max-width: 480px) {
  .neon-heading {
    font-size: 1.5rem;
    min-height: 45px;
  }
  .chatbot-3d {
    height: 400px;
  }
}
