* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html, body {
  height: 100%;
  background-color: #f3f3f3;
  color: #111;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 60px;
  background-color: #f4f4f4;
  color: #000;
  flex-wrap: wrap;
}

.logo {
  font-weight: bold;
  font-size: 1.5rem;
}

nav a {
  margin-left: 30px;
  text-decoration: none;
  color: #000;
  font-weight: 500;
}

.hero {
  height: 92.2vh;
  background: url("img/bg.jpg") no-repeat center center/cover;
  position: relative;
}

.overlay {
  background: rgba(0, 0, 0, 0.7);
  height: 100%;
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: left;
  padding-left: 10%;
}

.hero-text {
  max-width: 600px;
  padding-top: 400px;
  color: #fff;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 15px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 25px;
}

.btn {
  background-color: #1c1f4a;
  color: #fff;
  padding: 12px 25px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  transition: background 0.3s;
  display: inline-block;
}

.btn:hover {
  background-color: #343877;
}

/* Inventory Section */
.inventory-section {
  padding: 40px 60px;
  text-align: center;
  max-width: 1400px;
  margin: 0 auto;
}

.inventory-section h2 {
  font-size: 2.2rem;
  margin-bottom: 30px;
  color: #111;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  padding: 20px;
}

.card {
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease-in-out;
}

.card:hover {
  transform: translateY(-5px);
}

.card img {
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  background-color: #fff;
}

.card-body {
  padding: 20px;
  text-align: left;
}

.card-body h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 10px;
}

.card-body h4 {
  color: #111;
  margin-bottom: 15px;
}

.card-body .btn {
  display: block;
  text-align: center;
}

/* Chatbot styles */
#chatbot {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 400px;
  height: 450px;
  background: white;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
  z-index: 1000;
}

.chat-header {
  background: #1c1f4a;
  color: white;
  padding: 12px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#close-chat {
  background: transparent;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
}

.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 15px;
  font-size: 15px;
  line-height: 1.5;
}

.chat-input {
  display: flex;
  border-top: 1px solid #ccc;
}

.chat-input input {
  flex: 1;
  padding: 12px;
  font-size: 15px;
  border: none;
  outline: none;
}

.chat-input button {
  background: #1c1f4a;
  color: white;
  border: none;
  padding: 12px 18px;
  font-size: 15px;
  cursor: pointer;
}

#chat-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background-color: #1c1f4a;
  color: white;
  font-size: 24px;
  border: none;
  cursor: pointer;
  z-index: 1001;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.hidden {
  display: none !important;
}

/* Media Queries */
@media (max-width: 992px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    text-align: center;
    padding: 15px 20px;
  }

  nav {
    margin-top: 10px;
  }

  nav a {
    display: block;
    margin: 8px 0;
  }

  .hero h1 {
    font-size: 2.4rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-text {
    padding-top: 300px;
    text-align: center;
    padding-left: 0;
  }

  .overlay {
    justify-content: center;
    padding: 0 20px;
  }
}

@media (max-width: 480px) {
  .cards {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .inventory-section {
    padding: 20px;
  }

  .card img {
    height: 200px;
  }

  #chatbot {
    width: 90%;
    height: 400px;
    right: 5%;
    bottom: 80px;
  }

  #chat-toggle {
    width: 50px;
    height: 50px;
    font-size: 20px;
    right: 5%;
  }

  .chat-header {
    font-size: 1rem;
  }

  .chat-input input,
  .chat-input button {
    font-size: 14px;
  }
}
