:root {
  /* Light Mode Colors */
  --primary-color: #8B80F9;       /* Lavender/Purple */
  --secondary-color: #7F72E6;     /* Darker Lavender */
  --background-color: #F8F5FF;    /* Soft Lavender White */
  --text-color: #4A4A4A;          /* Dark Gray/Charcoal */
  --card-bg: #FFFFFF;             /* White */
  --footer-bg: #333333;           /* Dark Gray */
  --footer-text: #FFFFFF;         /* White */
  --shadow: 0 8px 20px rgba(0, 0, 0, 0.15); /* Subtle shadow */
  --accent-color: #FFC107;        /* Golden Yellow */
}

body[data-theme="dark"] {
  /* Dark Mode - Beautiful Colors */
  --primary-color: #A39CF2;        /* Lighter Purple */
  --secondary-color: #948EEF;      /* Even Lighter Purple */
  --background-color: #1A1A1A;     /* Very Dark Gray (Almost Black) */
  --text-color: #E0E0E0;           /* Light Gray */
  --card-bg: #2C2C2C;              /* Dark Card Background */
  --footer-bg: #1E1E1E;            /* Dark Footer */
  --footer-text: #E0E0E0;          /* Light Gray */
  --shadow: 0 4px 15px rgba(0, 0, 0, 0.3); /* Stronger Shadow */
  --accent-color: #FFD700;         /* Gold (Brighter Yellow for Accent) */
}
body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease; /* Ensure body also transitions */
}

h1,
h2,
h3 {
  color: var(--text-color);
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: color 0.3s ease;
}

a:hover {
  color: var(--secondary-color);
}

/* Floating Action Button (FAB) */
/* Adjust the FAB container to include the chatbot button */
.fab-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
}

.fab-button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.fab-button:hover {
  background-color: var(--secondary-color);
  transform: translateY(-5px);
}
/* Chatbot Styles */
.chatbot-container {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 300px;
  background-color: var(--card-bg);
  border-radius: 10px;
  box-shadow: var(--shadow);
  display: none;
  flex-direction: column;
  z-index: 1000;
}

.chatbot-container.active {
  display: flex;
}

.chatbot-header {
  background-color: var(--primary-color);
  color: white;
  padding: 10px;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chatbot-header h3 {
  margin: 0;
}

.close-button {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 1.2rem;
}

.chatbot-messages {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
  max-height: 300px;
  border-bottom: 1px solid #ddd;
}

.chatbot-input {
  display: flex;
  padding: 10px;
}

.chatbot-input input {
  flex: 1;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  margin-right: 10px;
}

.chatbot-input button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 5px;
  padding: 10px;
  cursor: pointer;
}

.chatbot-input button:hover {
  background-color: var(--secondary-color);
}

.message {
  margin-bottom: 10px;
  padding: 8px;
  border-radius: 5px;
  max-width: 80%;
}

.message.user {
  background-color: var(--primary-color);
  color: white;
  align-self: flex-end;
}

.message.bot {
  background-color: #f1f1f1;
  color: var(--text-color);
  align-self: flex-start;
}
/* Dark Mode Toggle Button */
.dark-mode-toggle {
  position: fixed;
  bottom: 80px; /* Adjust this value to position the button */
  right: 20px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  padding: 15px;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  z-index: 1000;
}

.dark-mode-toggle:hover {
  background-color: var(--secondary-color);
  transform: translateY(-5px);
}

.dark-mode-toggle i {
  font-size: 1.2rem;
}
/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 80px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  /* Ensure content doesn't overflow */
}

.hero-content {
  width: 50%;
  padding-right: 20px; /* Add some space between text and image */
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  animation: fadeInDown 1s ease;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
}

.cta-button {
  background-color: var(--accent-color);
  color: #333;
  padding: 15px 30px;
  border-radius: 30px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
  background-color: var(--footer-bg);
  color: #FFC107;
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.hero-image {
  width: 40%;
  text-align: right; /* Align the image to the right */
}

.hero-image img {
  width: 100%; /* Make the image responsive */
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); /* Optional: Add a subtle shadow */
}

/* About Us Section */
.about-us {
  padding: 80px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.about-image {
  width: 40%;
}

.about-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.about-content {
  width: 55%;
}

.about-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.about-content p {
  margin-bottom: 1rem;
}

/* Services Section */
.services {
  padding: 80px 20px;
  text-align: center;
}

.services h2 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
}

.service-cards {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
}

.card {
  width: 30%;
  box-sizing: border-box;
  padding: 20px;
  background-color: var(--card-bg);
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 30px;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.card img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 10px;
}

.card h3 {
  margin-bottom: 10px;
  font-size: 1.5rem;
}

/* Featured Products Section */
.featured-products {
  padding: 80px 20px;
  text-align: center;
  background-color: var(--background-color);
}

.featured-products h2 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
}

.product-carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.carousel-inner {
  display: flex;
  transition: transform 0.5s ease;
  width: 100%;
  padding-bottom: 20px;
}

.product {
  flex: 0 0 33.33%;
  box-sizing: border-box;
  padding: 20px;
  text-align: center;
  background-color: var(--card-bg);
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin: 0 10px;
  position: relative;
}

.product:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.product img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 10px;
  transition: transform 0.3s ease;
}

.product:hover img {
  transform: scale(1.05);
}

.product h3 {
  margin-bottom: 10px;
  font-size: 1.5rem;
  color: var(--text-color);
}

.product p {
  margin-bottom: 10px;
  color: var(--text-color);
}

.product-rating {
  color: #FFD700; /* Gold color for stars */
  margin-bottom: 10px;
}

.product-rating i {
  margin: 0 2px;
}

.product-price {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.product-price .original-price {
  text-decoration: line-through;
  color: #888;
  margin-right: 10px;
}

.buy-button {
  background-color: var(--primary-color);
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-right: 10px;
}

.buy-button:hover {
  background-color: var(--secondary-color);
}

.quick-view-button {
  background-color: var(--accent-color);
  color: #333;
  padding: 10px 20px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.quick-view-button:hover {
  background-color: #FFD700;
}

.product-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: var(--accent-color);
  color: #333;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: bold;
}

.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  z-index: 2;
  border-radius: 50%;
  font-size: 1.2rem;
  transition: background-color 0.3s ease;
}

.carousel-control:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

/* Testimonials Section */
.testimonials {
  padding: 80px 20px;
  text-align: center;
  background-color: var(--background-color);
}

.testimonials h2 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
}

.testimonial-cards {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
}

.testimonial {
  width: 30%;
  box-sizing: border-box;
  padding: 20px;
  background-color: var(--card-bg);
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 30px;
}

.testimonial:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.testimonial p {
  margin-bottom: 10px;
}

.testimonial .author {
  font-style: italic;
  color: #888;
}

/* Blog Section */
.blog {
  padding: 80px 20px;
  text-align: center;
}

.blog h2 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
}

.blog-posts {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
}

.post {
  width: 30%;
  box-sizing: border-box;
  padding: 20px;
  background-color: var(--card-bg);
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 30px;
}

.post:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.post img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 10px;
}

.post h3 {
  margin-bottom: 10px;
  font-size: 1.5rem;
}

.post p {
  margin-bottom: 15px;
}

/* Newsletter Section */
.newsletter {
  padding: 80px 20px;
  text-align: center;
  background-color: var(--primary-color);
  color: white;
}

.newsletter h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

.newsletter-form {
  display: flex;
  justify-content: center;
}

.newsletter-form input {
  padding: 15px;
  border: none;
  border-radius: 30px 0 0 30px;
  width: 300px;
  font-size: 1rem;
}

.newsletter-form button {
  background-color: var(--accent-color);
  color: #333;
  padding: 15px 30px;
  border: none;
  border-radius: 0 30px 30px 0;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.newsletter-form button:hover {
  background-color: var(--secondary-color);
  color: white;
}

/* Footer */
footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 40px 20px;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  /* Stack on smaller screens */
  align-items: center;
  /* Center content */
  gap: 20px;
  /* Space between sections */
}

.footer-section h3 {
  margin-bottom: 10px;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section li {
  margin-bottom: 5px;
}

.footer-section a {
  color: var(--footer-text);
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--primary-color);
}

.social-links a {
  color: var(--primary-color);
  margin: 0 10px;
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.social-links a:hover {
  color: var(--accent-color);
  transform: translateY(-5px);
}

.footer-bottom {
  margin-top: 20px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  /* Lighter text for copyright */
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  padding: 15px;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  display: none;
  z-index: 999;
  /* Ensure it's above other content */
}

.back-to-top:hover {
  background-color: var(--secondary-color);
  transform: translateY(-5px);
}

/* Navigation Bar */
.navbar {
  background-color: var(--footer-bg);
  padding: 15px 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.navbar-logo {
  color: var(--accent-color);
  /* Accent color for logo */
  font-size: 1.8rem;
  font-weight: bold;
  text-decoration: none;
}

.navbar-menu {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}

.navbar-menu li {
  margin-left: 20px;
}

.navbar-menu a {
  color: white;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.navbar-menu a:hover {
  color: var(--primary-color);
}

/* Mobile Menu Toggle */
.navbar-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.bar {
  height: 3px;
  width: 25px;
  background-color: white;
  margin: 4px 0;
  transition: 0.4s;
}

/* Animations */
@keyframes fadeIn {
  from {
      opacity: 0;
  }

  to {
      opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
      transform: translateX(-100%);
  }

  to {
      transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
      transform: translateX(100%);
  }

  to {
      transform: translateX(0);
  }
}

/* Hover Effects */
.card:hover,
.product:hover,
.testimonial:hover,
.post:hover {
  transform: translateY(-5px);
  /* Slightly lift on hover */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Add responsive design */
@media (max-width: 768px) {

  .about-us {
      flex-direction: column;
      text-align: center;
  }

  .about-content,
  .about-image {
      width: 100%;
  }

  .about-image {
      margin-top: 20px;
  }

  .service-cards,
  .testimonial-cards,
  .blog-posts {
      flex-direction: column;
      align-items: center;
  }

  .card,
  .testimonial,
  .post {
      width: 80%;
  }

  .product {
      width: 90%;
      /* Or adjust as needed */
  }

  .newsletter-form {
      flex-direction: column;
      align-items: center;
  }

  .newsletter-form input {
      width: 90%;
      margin-bottom: 10px;
  }

  .footer-content {
      text-align: center;
  }

  .hero {
      flex-direction: column;
      text-align: center;
      padding: 60px 20px;
  }

  .hero-content,
  .hero-image {
      width: 100%;
      padding: 0;
  }

  .hero-image {
      margin-top: 20px;
  }

  .hero h1 {
      font-size: 2.5rem;
  }

  .hero p {
      font-size: 1.1rem;
  }
}

/* Carousel Styles (Adjustments for Responsiveness) */
@media (max-width: 768px) {
  .product-carousel {
      overflow: visible;
      /* Allow the carousel to overflow horizontally on smaller screens */
  }

  .carousel-inner {
      width: auto;
      /* Allow the carousel to adjust its width */
      flex-wrap: nowrap;
      /* Prevent wrapping of the items */
      transform: translateX(0);
      padding-bottom: 20px;
      /* Add space at the bottom if needed */
  }

  .product {
      flex: 0 0 80%;
      /* Adjust width for smaller screens */
      margin: 0 10px;
      /* Add some spacing between the items */
  }

  .carousel-control {
      display: none;
      /* Hide the controls on small screens or adjust placement */
  }
}

.color{
  color: white;
}