/* RESET + BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #fce4ec, #e0c3fc);
  overflow-x: hidden;
}

/* BACKGROUND BLUR EFFECT */
#mbbg-video {
  display: none;
}

#bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -1;
  opacity: 0.85;
  filter: blur(4px) brightness(0.8);
  pointer-events: none;
}


/* MAIN LAYOUT */
.app-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1vh;
  flex-wrap: wrap;
  gap: 2rem;
  min-height: 100vh;
}

/* CHAT BOX */
.chat-box {
  flex: 1;
  min-width: 320px;
  max-width: 600px;
  padding: 1vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* CHAT HEADER */
.chat-header {
  text-align: center;
  margin-bottom: 1rem;
}

.chat-header h1 {
  font-size: 2rem;
  color: #ffffff;
  text-shadow: 0 0 5px #000;
}

.chat-header p {
  font-size: 1rem;
  color: whitesmoke;
  text-shadow: 0 0 10px BLACK;
}

/* CHAT WINDOW */
.chat-window {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 1rem;
  height: 350px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.chat-window::-webkit-scrollbar {
  display: none;
}

/* CHAT BUBBLES */
.chat-bubble {
  padding: 0.8rem 1rem;
  border-radius: 20px;
  max-width: 85%;
  line-height: 1.5;
  font-size: 0.95rem;
  word-break: break-word;
  animation: fadeIn 0.3s ease-in-out;
}

.user {
  background-color: #d8eaff;
  align-self: flex-end;
  color: #222;
}

.bot {
  background-color: #ffe4f0;
  align-self: flex-start;
  color: #333;
}

.typing {
  font-style: italic;
  opacity: 0.7;
}

/* CHAT INPUT */
.chat-input {
  display: flex;
  align-items: center;
  gap: 5px;
}

.chat-input input {
  flex: 1;
  padding: 0.9rem 1rem;
  border-radius: 30px;
  border: none;
  background: #fff;
  font-size: 1rem;
  outline: none;
}

.chat-input button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: #b388f0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.chat-input button img {
  width: 18px;
  height: 18px;
}

/* FEEDBACK BUTTON */
.feedback-button {
  margin-top: 10px;
  padding: 10px 20px;
  background: #ff69b4;
  color: #fff;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background 0.3s ease-in-out;
}

.feedback-button:hover {
  background: #ff85c1;
}

/* FEEDBACK FORM */
#contact {
  display: none;
  padding: 2rem;
  text-align: center;
}

#contact h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #fff;
  text-shadow: 0 0 4px #000;
}

form {
  max-width: 500px;
  margin: 0 auto;
}

form input,
form textarea {
  width: 100%;
  margin-bottom: 1rem;
  padding: 1rem;
  border-radius: 10px;
  border: none;
  font-size: 1rem;
  background: #fce4ec;
  outline: none;
}

form button {
  padding: 0.9rem 2rem;
  background: #ff69b4;
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
}

form button:hover {
  background: #ff8ac5;
}

/* RESPONSIVE */
@media (max-width: 768px) {

  #bg-video {
    display: none;
  }

  #mbbg-video {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: -1;
    opacity: 0.85;
    filter: blur(4px) brightness(0.8);
    pointer-events: none;
  }

  /* .chat-header h1 {
    font-size: 3rem;
  }

  .chat-header p {
    font-size: 1.5rem;
  } */

  .app-container {
    flex-direction: column;
    padding: 0;
  }

  .avatar-panel {
    display: none;
    width: 90%;
  }

  .chat-box {
    width: 100%;
    border-radius: 0;
  }

  .chat-window {
    height: 75vh;
  }
}

/* ANIMATION */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
