/* Global styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background: #f5f7fa;
  color: #333;
}

/* Header */
header {
  background-color: #1a73e8;
  color: #fff;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header h1 {
  font-size: 2rem;
  margin-right: 20px;
}

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

nav a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: opacity 0.2s ease;
}

nav a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* Hero section */
#hero {
  background: linear-gradient(135deg, #1a73e8, #4285f4);
  color: #fff;
  text-align: center;
  padding: 80px 20px;
}

#hero h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

#hero p {
  font-size: 1.2rem;
}

/* Vehicle cards */
#vehicles {
  padding: 40px 20px;
  background: #fff;
}

#vehicles h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 2rem;
  color: #1a73e8;
}

.vehicle-card {
  background: #f9fafb;
  padding: 20px;
  margin: 20px auto;
  border-radius: 8px;
  max-width: 900px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.vehicle-card img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.vehicle-card h3 {
  margin-top: 10px;
  font-size: 1.5rem;
  color: #1a73e8;
}

.vehicle-card p {
  margin-top: 10px;
  font-size: 1rem;
}

/* About & Contact */
#about,
#contact {
  padding: 40px 20px;
  background: #f5f7fa;
}

#about h2,
#contact h2 {
  color: #1a73e8;
  margin-bottom: 10px;
}

#about p,
#contact p {
  max-width: 800px;
  margin-bottom: 10px;
}

/* Chat widget */
#chat-container {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 300px;
  height: 500px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  display: none;
  flex-direction: column;
  z-index: 1000;
}

#chat-header {
  background: #1a73e8;
  color: #fff;
  padding: 10px;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  font-weight: bold;
}

#chat-body {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
  font-size: 0.9rem;
}

.message {
  margin-bottom: 10px;
}

.message.user {
  text-align: right;
}

.message.bot {
  text-align: left;
}

.message p {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 15px;
  max-width: 80%;
  word-wrap: break-word;
}

.message.user p {
  background: #1a73e8;
  color: #ffffff;
  border-bottom-right-radius: 0;
}

.message.bot p {
  background: #f1f3f4;
  color: #333;
  border-bottom-left-radius: 0;
}

#chat-input-container {
  display: flex;
  padding: 10px;
  border-top: 1px solid #ddd;
}

#chat-input {
  flex: 1;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

#chat-send {
  margin-left: 5px;
  padding: 8px 12px;
  background: #1a73e8;
  color: #ffffff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.2s ease;
}

#chat-send:hover {
  background: #0c56d4;
}

/* Chat toggle button */
#chat-toggle {
  position: fixed;
  bottom: 40px;
  right: 40px;
  background: #1a73e8;
  color: #ffffff;
  border: none;
  border-radius: 50%;
  width: 200px;
  height: 200px;
  font-size: 3rem;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  z-index: 999;
}

#chat-toggle:hover {
  background: #0c56d4;
}