.floating-words {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.floating-words span {
  position: absolute;
  font-size: 1.5rem;
  font-weight: bold;
  color: rgba(114, 235, 9, 0.2);
  white-space: nowrap;
  animation: floatWord 20s linear infinite;
  user-select: none;
}

/* Keyframes for floating animation */
@keyframes floatWord {
  0% {
    transform: translateY(100vh) translateX(0);
    opacity: 0;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    transform: translateY(-100vh) translateX(50vw);
    opacity: 0;
  }
}

/* Randomize position and animation delay */
.floating-words span:nth-child(1) { left: 5%; animation-delay: 0s; }
.floating-words span:nth-child(2) { left: 20%; animation-delay: 3s; }
.floating-words span:nth-child(3) { left: 40%; animation-delay: 6s; }
.floating-words span:nth-child(4) { left: 60%; animation-delay: 1s; }
.floating-words span:nth-child(5) { left: 80%; animation-delay: 5s; }
.floating-words span:nth-child(6) { left: 30%; animation-delay: 8s; }
.floating-words span:nth-child(7) { left: 70%; animation-delay: 10s; }

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-image: url('images/acade8c9-5c8e-4d7f-bfbc-b357d823aa71.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}
@media (max-width: 1024px) {
  body {
    background-attachment: scroll;
  }
}

.chat-container {
  width: 100%;
  max-width: 300px;
  background: white;
  border-radius: 0;
  height: 50vh;
  box-shadow: 0 0 20px rgba(0,0,0,0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.chat-header {
  background: #00724a;
  color: white;
  display: flex;
  align-items: center;
  padding: 10px;
}

.logo {
  width: 30px;
  margin-right: 10px;
}

.typewriter-glow {
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.3rem;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  border-right: 3px solid rgba(255,255,255,0.75);
  width: 100%;
  animation:
    typing 3s steps(20, end) forwards,
    blink-caret 0.75s step-end infinite;
  text-shadow: 0 0 10px #00ffd5, 0 0 20px #00ffd5, 0 0 40px #00ffd5;
}

/* Typing effect */
@keyframes typing {
  from { width: 0 }
  to { width: 17ch }
}

/* Cursor blink */
@keyframes blink-caret {
  50% { border-color: transparent }
}


.chat-box {
  flex-grow: 1;
  padding: 8px;
  overflow-y: auto;
  max-height: calc(100vh - 240px);
}
.chat-input {
  display: flex;
  flex-direction: column;
  border-top: 1px solid #ccc;
}

.chat-input input {
  flex-grow: 1;
  padding: 8px;
  border: none;
  outline: none;
  font-size: 0.95rem;
}

.chat-input button {
  background: #00724a;
  color: white;
  border: none;
  padding: 8px 16px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.3s;
}

.chat-input button:hover {
  background: #004d30;
}

.bot-message, .user-message {
  margin: 10px 0;
  padding: 10px 15px;
  border-radius: 20px;
  max-width: 80%;
  font-size: 0.95rem;
  line-height: 1.4;
  animation: fadeIn 0.3s ease-in;
}

.bot-message {
  background: #e0f7fa;
  align-self: self-start;
}

.user-message {
  background: #c8e6c9;
  align-self: flex-end;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat-prompts {
  background: rgba(255, 255, 255, 0.15);
  padding: 15px;
  border-radius: 10px;
  color: #fff;
  max-width: 290px;
  margin: 15px auto;
  text-align: center;
  backdrop-filter: blur(10px);
}

.chat-prompts ul {
  list-style: none;
  padding: 0;
}

.chat-prompts li {
  margin: 10px 0;
}

.chat-prompts a {
  color: #00ffc3;
  text-decoration: none;
  font-weight: bold;
  background: rgba(0, 0, 0, 0.2);
  padding: 10px 15px;
  border-radius: 25px;
  display: inline-block;
  transition: all 0.3s ease;
}

.chat-prompts a:hover {
  background: #00ffc3;
  color: #000;
}

.site-footer {
  background-color: #0a0f1a;
  color: #ccc;
  text-align: center;
  padding: 5px;
  font-size: 0.9rem;
  font-family: 'Arial', sans-serif;
  border-top: 1px solid #00ffd5;
  margin-top: 50px;
}

.site-footer p strong {
  color: #00ffd5;
}
