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

/* Body Styles */
body {
  font-family: Arial, sans-serif;
  background-color: #f7f7f7;
}

/* Header Styles */
header {
  background-image: url("../img/hero.jpg");
  background-size: cover;
  background-position: center;
  color: black;
  padding: 0;
  text-align: center;
  height: 100vh; /* Full viewport height */
  padding-bottom: 70px; /* Adjusted for mobile */
}

/* Navigation Styles */
nav {
  background-color: transparent;
  padding: 20px 0;
  width: 100%;
}

nav ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  text-align: center;
}

nav ul li {
  display: inline-block;
  margin-right: 20px;
}

nav ul li:last-child {
  margin-right: 0;
}

nav ul li a {
  color: black;
  text-decoration: none;
  padding: 10px 20px;
  display: block;
}

nav ul li a img {
  width: 120px; /* Adjust logo width */
  height: auto;
  vertical-align: middle;
  display: inline-block;
}

/* Heading Styles */
header h1 {
  font-family: "Georgia", serif;
  font-size: 3.5em;
  margin-bottom: 20px;
  padding-top: 100px;
  color: black;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Button Styles */
.btn {
  display: inline-block;
  background-color: #000;
  color: white;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s ease;
  margin-top: 20px;
  font-size: 1.2em;
}

.btn:hover {
  background-color: #fff;
  color: #000;
}

/* Product Section Styles */
.product-section {
  padding: 50px 0;
}

.product-section h2 {
  font-size: 2em;
  margin-bottom: 20px;
  text-align: center;
  color: black;
}

/* Footer Styles */
footer {
  background-color: #333;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  margin-top: 0;
  font-family: "Arial", sans-serif; /* Use a clean, readable font */
}

/* Footer Content */
.footer-left,
.footer-right {
  flex: 0 0 auto;
}

.footer-left img {
  width: 100px;
  height: auto;
}

.footer-right img {
  width: 75px;
  height: auto;
  margin-right: 20px;
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  flex: 1;
  font-family: "Georgia", serif;
}

.footer-content p {
  margin-bottom: 10px;
}

/* White Icon Styling */
.white-icon {
  filter: brightness(0);
  width: 30px;
  height: 30px;
}

/* Fancy Box Styling */
.fancy-box {
  background-color: rgba(255, 255, 255, 0.8);
  padding: 20px 40px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  display: inline-block;
  margin: 30px auto;
  text-align: center;
  font-family: "Cursive", serif;
  font-size: 2em;
  color: #333;
  font-weight: 300;
}

.fancy-box h2 {
  margin: 0;
  font-family: "Great Vibes", cursive;
  font-size: 1.5em;
  font-weight: 300;
}

/* Media Queries */
@media (max-width: 1024px) {
  header h1 {
    font-size: 3em;
  }

  .btn {
    font-size: 1.1em;
  }

  .product-section h2 {
    font-size: 2.2em;
  }
  .fancy-box {
    padding: 15px 30px;
    font-size: 1.7em;
  }

  .fancy-box h2 {
    font-size: 1.4em;
  }
}

@media (max-width: 768px) {
  nav ul {
    text-align: center; /* Center-align the navigation items */
    padding: 0; /* Remove default padding */
  }

  nav ul li {
    display: inline-block; /* Display list items in a row */
    margin: 5px; /* Adjust margin between items */
  }

  nav ul li a {
    padding: 8px 15px; /* Adjust padding for smaller devices */
    font-size: 0.9em; /* Adjust font size */
  }

  nav ul li a img {
    width: 100px; /* Adjust logo size */
    height: auto; /* Maintain aspect ratio */
  }

  header {
    padding-bottom: 120px; /* Adjust padding to avoid overlap */
  }

  /* Ensure the logo is on top and others are in a row */
  nav {
    display: flex;
    flex-direction: column; /* Stack items vertically */
    align-items: center; /* Center-align the items */
    width: 100%; /* Full width */
  }

  nav ul {
    margin-top: 10px; /* Add margin to separate logo from other items */
  }

  header h1 {
    font-size: 2.5em;
    padding-top: 50px;
  }

  .btn {
    font-size: 1em;
    padding: 10px 20px;
  }

  .product-section h2 {
    font-size: 2em;
  }
  .fancy-box {
    padding: 15px 30px;
    font-size: 1.5em;
  }

  .fancy-box h2 {
    font-size: 1.2em;
  }
  .footer-left img {
    width: 80px; /* Resize the logo in the footer on tablets and smaller devices */
  }

  .footer-right img {
    width: 60px; /* Resize the other image in the footer on tablets and smaller devices */
  }
}

@media (max-width: 480px) {
  nav ul li a img {
    width: 80px; /* Further reduce logo size for very small screens */
  }

  nav ul li a {
    padding: 6px 12px; /* Further adjust padding */
    font-size: 0.9em; /* Further adjust font size */
  }

  header {
    padding-bottom: 150px; /* Further adjust padding to avoid overlap */
  }
  header h1 {
    font-size: 2em;
    padding-top: 30px;
  }

  .btn {
    font-size: 0.9em;
    padding: 8px 16px;
  }

  .product-section {
    padding: 30px 10px;
  }

  .product-section h2 {
    font-size: 1.8em;
  }
  .fancy-box {
    padding: 10px 20px;
    font-size: 1.5em;
  }

  .fancy-box h2 {
    font-size: 1em;
  }
  .footer-left img {
    width: 60px; /* Further resize for smaller mobile devices */
  }

  .footer-right img {
    width: 50px; /* Further resize for smaller mobile devices */
  }
}
