.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 floatWord {
  0% {
    transform: translateY(100vh) translateX(0);
    opacity: 0;
  }
  50% { opacity: 0.5; }
  100% {
    transform: translateY(-100vh) translateX(50vw);
    opacity: 0;
  }
}

.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 */
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;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
  padding: 20px 0;
}

@media (max-width: 1024px) {
  body {
    background-attachment: scroll;
  }
}

.chat-container {
  width: 90%;
  max-width: 400px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
  overflow: hidden;
}
.typed-words-section {
  width: 90%;
  max-width: 400px;
  margin: 20px auto;
  padding: 20px;
  background: rgba(0, 114, 74, 0.8);
  color: #fff;
  border-radius: 15px;
  text-align: center;
  font-family: 'Segoe UI', sans-serif;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.typed-words-section h2 {
  font-size: 1.2rem;
  line-height: 1.4;
}

.typed-words-section span {
  border-right: 2px solid #fff;
  padding-right: 5px;
  white-space: nowrap;
  overflow: hidden;
  display: inline-block;
}

/* Header */
.chat-header {
  background: #00724a;
  color: white;
  display: flex;
  align-items: center;
  padding: 10px;
  flex-wrap: wrap;
}

.logo {
  width: 40px;
  margin-right: 10px;
}

.typewriter-glow {
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.2rem;
  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;
}

@keyframes typing { from { width: 0 } to { width: 17ch } }
@keyframes blink-caret { 50% { border-color: transparent } }

/* Chat box */
.chat-box {
  flex-grow: 1;
  padding: 10px;
  overflow-y: auto;
  max-height: 60vh;
  background: #f4f4f4;
}

/* Chat input */
.chat-input {
  display: flex;
  flex-direction: column;
  padding: 10px;
  border-top: 1px solid #ccc;
}

.chat-input input {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 20px;
  margin-bottom: 10px;
  font-size: 1rem;
  outline: none;
}

.chat-input button {
  background: #00724a;
  color: white;
  border: none;
  padding: 10px;
  border-radius: 20px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
}

.chat-input button:hover {
  background: #004d30;
}

/* Messages */
.bot-message, .user-message {
  margin: 10px 0;
  padding: 10px 15px;
  border-radius: 20px;
  max-width: 90%;
  font-size: 1rem;
  line-height: 1.4;
  animation: fadeIn 0.3s ease-in;
}

.bot-message { background: #e0f7fa; align-self: flex-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 */
.chat-prompts {
  background: rgba(255, 255, 255, 0.15);
  padding: 15px;
  border-radius: 10px;
  color: #fff;
  width: 90%;
  max-width: 400px;
  margin: 0 auto 20px auto;
  text-align: center;
  backdrop-filter: blur(10px);
}

.chat-prompts ul {
  list-style: none;
  padding: 0;
  margin: 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;
  width: 100%;
  box-sizing: border-box;
}

.chat-prompts a:hover {
  background: #00ffc3;
  color: #000;
}

.site-footer {
  background-color: rgba(0, 0, 0, 0.3);
  color: #fff;
  text-align: center;
  padding: 8px 0;
  font-size: 0.85rem;
  font-family: 'Arial', sans-serif;
  border-top: 1px solid rgba(0, 255, 213, 0.5); 
  width: 100%;
  backdrop-filter: blur(5px); 
}

.site-footer p {
  margin: 2px 0;
}

.site-footer p strong {
  color: #00ffd5;
}
