/* General Body and Layout */
body {
  font-family: Arial, sans-serif;
  background-color: #f4f4f4;
  margin: 0;
  padding: 0;
  animation: fadeInBackground 1.5s ease-in-out;
}

.container {
  max-width: 1200px;
  margin: auto;
}

/* Navbar */
.navbar {
  padding: 1rem 0;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar:hover {
  background-color: #0056b3;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
}

.nav-item {
  transition: transform 0.3s ease, color 0.3s ease;
}

.nav-item:hover {
  transform: translateY(-5px);
  color: #ff5722;
}

/* Hero Section */
header {
  background-color: #f8f9fa;
  padding: 80px 0;
  color: #333;
  text-align: center;
  animation: fadeInUp 1.5s ease-out;
}

header h1 {
  font-size: 3rem;
  font-weight: 600;
  margin-bottom: 20px;
}

header p {
  font-size: 1.25rem;
  color: #6c757d;
  margin-bottom: 30px;
}

header .btn {
  font-size: 1.125rem;
  padding: 12px 25px;
  background-color: #007bff;
  color: white;
  border-radius: 5px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

header .btn:hover {
  background-color: #0056b3;
  transform: scale(1.05);
}

/* Product Section */
section {
  margin-top: 3rem;
  margin-bottom: 3rem;
  text-align: center;
  animation: fadeIn 2s ease-out;
}

section h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  transition: transform 0.3s ease, color 0.3s ease;
}

section p {
  font-size: 1rem;
  color: #6c757d;
}

section .col-md-4 {
  margin-bottom: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

section .col-md-4:hover {
  transform: translateY(-10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

section .col-md-4 h3 {
  color: #007bff;
}

/* Footer */
footer {
  background-color: #007bff;
  color: white;
  padding: 30px 0;
  text-align: center;
  animation: fadeIn 2s ease-out;
}

footer h5,
footer h6 {
  font-weight: 600;
}

footer a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
}

footer a:hover {
  color: #f0f0f0;
  text-decoration: underline;
  transform: translateY(-2px);
}

footer hr {
  border-color: rgba(255, 255, 255, 0.2);
}

/* Chatbot */
#chatBtn {
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  position: fixed;
  width: 60px;
  height: 60px;
  font-size: 24px;
  border-radius: 50%;
  background-color: #ff0000;
  color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease, transform 0.3s ease;
}

#chatBtn:hover {
  background-color: #e60000;
  transform: scale(1.1);
}

.chat-box {
  display: none;
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 320px;
  max-height: 400px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  overflow: hidden;
  transition: all 0.3s ease;
  animation: fadeInChatbox 0.5s ease-out;
}

#chatMessages {
  height: 200px;
  overflow-y: auto;
  padding: 10px;
  border-bottom: 1px solid #ddd;
}

#userInput {
  font-size: 1rem;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#userInput:focus {
  border-color: #007bff;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
  outline: none;
}

.chat-box .btn {
  font-size: 1rem;
  border-radius: 4px;
}

/* Animations */
@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInChatbox {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInBackground {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  header h1 {
    font-size: 2.5rem;
  }

  header p {
    font-size: 1rem;
  }

  section h3 {
    font-size: 1.25rem;
  }

  footer {
    padding: 2rem 0;
  }

  footer .container {
    text-align: center;
  }

  .chat-box {
    width: 100%;
    bottom: 70px;
  }

  #chatBtn {
    right: 10px;
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
}

/* Ensure container is centered in the footer */
footer .container {
  text-align: left;
}

@media (max-width: 576px) {
  .navbar-collapse {
    margin-top: 10px;
  }
}
