/* ---------- BASE SETUP ---------- */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #000;
  color: #fff;
  text-align: center;
}

/* ---------- NAVBAR ---------- */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: #000;
  border-bottom: 1px solid #;
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav .logo {
  font-size: 22px;
  font-weight: bold;
}

nav .logo a {
  color: #fff;
  text-decoration: none;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: #0ff;
}

/* ---------- MAIN ---------- */
main {
  margin-top: 80px;
  padding: 20px;
}

h1 {
  font-size: 28px;
  margin-bottom: 30px;
}

/* ---------- HOMEPAGE CHAT ---------- */
.chat-container {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

#chat-input {
  width: 400px;
  max-width: 90%;
  padding: 12px;
  border-radius: 25px;
  border: 1px solid #555;
  outline: none;
  background: #111;
  color: #fff;
}

button {
  background: #fff;
  border: none;
  padding: 12px 18px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
}

button:hover {
  background: #0cc;
}

#chat-box {
  max-width: 600px;
  width: 90%;
  margin: 20px auto;
  text-align: left;
  background: #111;
  padding: 15px;
  border-radius: 10px;
  height: 250px;
  overflow-y: auto;
}

/* ---------- SUBPAGE DESIGN (Services, About, Research, Safety) ---------- */
.services-container,
.about-container,
.research-container,
.safety-container {
  max-width: 1100px;
  margin: 0 auto;
  text-align: left;
  padding: 20px;
}

.services-container h1,
.about-container h1,
.research-container h1,
.safety-container h1 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 32px;
  font-weight: bold;
}

/* Grid for Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

/* Service Cards */
.service-card {
  background: #111;
  padding: 25px;
  border-radius: 12px;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #222;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0, 255, 255, 0.2);
}

.service-card h2 {
  font-size: 20px;
  margin-bottom: 12px;
  color: #fff;
}

.service-card p {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 20px;
  color: #fff;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
  color: #000;
  background: #fff;
  font-weight: bold;
  transition: background 0.3s ease;
}

.btn:hover {
  background: #0cc;
}

/* ---------- FOOTER ---------- */
footer {
  text-align: center;
  padding: 20px;
  margin-top: 50px;
  border-top: 1px solid #111;
  color: #777;
  font-size: 14px;
}

/* ---------- RESPONSIVE DESIGN ---------- */
/* Tablet */
@media (max-width: 1024px) {
  nav ul {
    gap: 15px;
  }
  h1 {
    font-size: 24px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    align-items: flex-start;
  }
  nav ul {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin-top: 10px;
  }
  nav .logo {
    font-size: 18px;
  }
  #chat-input {
    width: 100%;
  }
  h1 {
    font-size: 22px;
  }
}

/* Extra small phones */
@media (max-width: 480px) {
  nav {
    padding: 10px;
  }
  nav ul li a {
    font-size: 14px;
  }
  h1 {
    font-size: 20px;
  }
  button {
    padding: 10px 14px;
  }
}

	

