/* Global Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* Header */
header {
  background: orange;
  color: #fff;
  padding: 15px 0;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav .logo {
  font-size: 1.8em;
  font-weight: 700;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

nav ul li a {
  font-weight: 500;
  transition: color 0.3s ease-in-out;
}

nav ul li a:hover {
  color: #ffeb3b;
}

/* Hero Section */
.hero {
  background: url('https://source.unsplash.com/1600x900/?technology,ai') no-repeat center/cover;
  color: #fff;
  text-align: center;
  padding: 100px 20px;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3em;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2em;
  margin-bottom: 30px;
}

.hero a.btn {
  background: #ffeb3b;
  color: #333;
  padding: 12px 25px;
  font-size: 1.1em;
  border-radius: 5px;
  transition: background 0.3s ease-in-out;
}

.hero a.btn:hover {
  background: #e0c200;
}

/* Chat Widget Section */
.chat-section {
  background: #f8f9fa;
  padding: 40px 20px;
}

.chat-container {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  max-width: 600px;
  margin: auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-header {
  background: #007bff;
  color: #fff;
  padding: 15px;
  text-align: center;
  font-size: 1.2em;
  font-weight: bold;
}

.chat-box {
  height: 350px;
  padding: 15px;
  overflow-y: auto;
  background: #f4f4f4;
  display: flex;
  flex-direction: column;
}

.chat-message {
  margin-bottom: 10px;
  padding: 10px;
  border-radius: 5px;
  max-width: 80%;
  word-wrap: break-word;
}

.chat-message.user {
  background: #007bff;
  color: #fff;
  margin-left: auto;
  text-align: right;
}

.chat-message.ai {
  background: #e2e3e5;
  color: #333;
  margin-right: auto;
  text-align: left;
}

.timestamp {
  font-size: 10px;
  color: #888;
  text-align: right;
  margin-top: 2px;
}

.chat-footer {
  padding: 15px;
  border-top: 1px solid #ddd;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-footer textarea {
  width: 100%;
  height: 50px;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  resize: none;
  font-size: 14px;
}

.chat-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-controls label {
  font-size: 14px;
  display: flex;
  align-items: center;
}

.chat-controls input {
  margin-right: 5px;
}

.chat-controls button {
  background: #007bff;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s ease-in-out;
}

.chat-controls button:hover {
  background: #0056b3;
}

/* Hide Token Info */
.token-info {
  display: none !important;
}

/* About Section */
.about {
  background: #fff;
  padding: 40px 20px;
}

.about-content {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: center;
}

.about-content img {
  max-width: 400px;
  border-radius: 8px;
}

.about-text {
  max-width: 600px;
}

.about-text h2 {
  margin-bottom: 20px;
}

/* Features Section */
.features {
  background: #f8f9fa;
  padding: 40px 20px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.feature-card {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  text-align: center;
}

.feature-card h3 {
  margin-bottom: 10px;
  color: #007bff;
}

/* Footer */
footer {
  background: #333;
  color: #fff;
  padding: 40px 20px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.footer-section {
  flex: 1;
  min-width: 200px;
}

footer h4 {
  margin-bottom: 20px;
}

footer ul {
  list-style: none;
  padding: 0;
}

footer ul li {
  margin-bottom: 10px;
}

footer ul li a {
  color: #bbb;
  transition: color 0.3s ease-in-out;
}

footer ul li a:hover {
  color: #fff;
}

.footer .socials a {
  margin-right: 10px;
  font-size: 1.2em;
  color: #bbb;
  transition: color 0.3s ease-in-out;
}

.footer .socials a:hover {
  color: #fff;
}

footer .copyright {
  text-align: center;
  margin-top: 20px;
  font-size: 0.9em;
  color: #bbb;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    gap: 10px;
  }

  .about-content {
    flex-direction: column;
  }

  .footer-content {
    flex-direction: column;
    align-items: center;
  }
}
