* {
  margin: 0%;
  padding: 0%;
}

nav {
  background-color: black;
  display: flex;
  justify-content: space-between;
  padding: 20px;
  text-align: center;
}

nav h2 {
  color: rgb(232, 29, 29);
  font-family: fantasy;
  font-weight: lighter;
}

nav ul {
  display: flex;
  color: aliceblue;
  list-style: none;
}

nav ul li a {
  color: rgb(193, 197, 200);
  margin-right: 35px;
  font-size: 20px;
  font-family: sans-serif;
  text-decoration: none;
  font-weight: 500;
}

.active {
  color: rgb(232, 29, 29);
}
nav ul li a:hover {
  color: rgb(232, 29, 29);
}

/* End Navbar*/

.top-image img {
  width: 100%;
  margin-bottom: -10px;
  cursor: pointer;
}

/*  Backgroud image Container */
.background-container {
  background-image: url(images/bg-image.jpg);
  background-size: cover;
  background-position: center;
  padding: 50px 20px;
}

.heading-container {
  text-align: center;
  margin-bottom: 40px;
}

.heading-container h1 {
  color: aliceblue;
  margin: 50px;
  font-size: 26px;
  font-family: "Lucida Sans", "Lucida Sans Regular", "Lucida Grande",
    "Lucida Sans Unicode", Geneva, Verdana, sans-serif;
}

/* Items Contain main or iske andar sare items ke div hai */
.main-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.items-container {
  width: 400px;
  background-color: #1c1e1e;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2);
  position: relative; /* Important for stacking child elements */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.items-container:hover {
  box-shadow: 0px 10px 20px rgba(88, 209, 246, 0.5);
}

.items-container img {
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1; /* Image in the background */
  transition: transform 0.3s ease;
  object-fit: contain;
}

.items-container img:hover {
  transform: scale(1.08);
}

.Paragraph-items {
  margin-top: -10px;
  background-color: rgb(43, 39, 39);
  padding: 10px 0px;
  text-align: center;
  z-index: 2; /* Paragraph on top of image */
  position: relative; /* Ensure it's layered properly */
}

.Paragraph-items p {
  margin: 20px;
  color: aliceblue;
  font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande",
    "Lucida Sans", Arial, sans-serif;
}

/* Related Product Cainter items are here stylsh */
.Related-p-container {
  margin-bottom: 80px;
}
.Related-p-container div h1 {
  text-align: center;
  margin: 30px;
  font-size: 26px;
  text-transform: uppercase;
  font-family: "Lucida Sans", "Lucida Sans Regular", "Lucida Grande",
    "Lucida Sans Unicode", Geneva, Verdana, sans-serif;
}

.Related-items {
  display: flex;
  justify-content: space-between;
  overflow: hidden;
  flex-wrap: wrap;
}

.r-items {
  margin: 20px;
  text-align: center;
  padding: 15px;
  transition: box-shadow 0.3s ease-in-out;
}

.r-items img {
  width: 200px;
}
.r-items:hover {
  box-shadow: 0px 0px 0px 1px black;
}

.bottom-bg-img {
  width: 100%;
  overflow: hidden;
  position: relative;
  margin-bottom: -5px;
}

.bottom-bg-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/*  Footer Styles */
footer {
  background-color: #1c1c1c;
  color: #ddd;
  padding: 50px 0;
  font-family: "Arial", sans-serif;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 30px;
}

.footer-brand {
  flex: 1;
}

.footer-logo {
  width: 150px;
  margin-bottom: 10px;
}

.footer-brand p {
  font-size: 16px;
  color: #00d0ff;
}

.footer-links h4,
.footer-social h4 {
  font-size: 18px;
  margin-bottom: 15px;
  color: #f1f1f1;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li {
  margin: 10px 0;
}

.footer-links a {
  text-decoration: none;
  color: #bbb;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #d40000;
}

.footer-social .social-icons a {
  text-decoration: none;
  color: #bbb;
  margin: 0 10px;
  font-size: 24px;
  transition: transform 0.3s ease, color 0.3s ease;
}

.footer-social .social-icons a:hover {
  transform: scale(1.2);
  color: #d40000;
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
}

.footer-bottom p {
  font-size: 14px;
  color: #bbb;
}

@media screen and (max-width: 768px) {
  .footer-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-links,
  .footer-social {
    margin-top: 20px;
  }
}

/* For screens smaller than 768px */
@media screen and (max-width: 768px) {
  /* Navbar adjustments */
  nav {
    padding: 10px;
    flex-direction: column;
    text-align: center;
  }

  nav ul {
    flex-direction: column;
    margin-top: 10px;
  }

  nav ul li a {
    margin-right: 0;
    margin-bottom: 10px;
  }

  /* Heading-container adjustments */
  .heading-container h1 {
    font-size: 22px;
    margin: 20px;
  }

  /* Main container adjustments */
  .main-container {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .items-container {
    width: 90%;
  }

  /* Related products adjustments */
  .Related-items {
    flex-direction: column;
    align-items: center;
  }

  .r-items {
    margin: 15px 0;
    width: 100%;
  }

  /* Footer adjustments */
  .footer-top {
    flex-direction: column;
    text-align: center;
  }

  .footer-brand,
  .footer-links,
  .footer-social {
    margin-bottom: 20px;
  }
}

/* For screens smaller than 480px (mobile view) */
@media screen and (max-width: 480px) {
  nav {
    padding: 10px;
  }

  nav ul li a {
    font-size: 18px;
    margin-right: 15px;
  }

  .heading-container h1 {
    font-size: 20px;
    margin: 15px;
  }

  .main-container {
    padding: 0 10px;
  }

  .items-container {
    width: 100%;
  }

  .footer-top {
    align-items: center;
  }

  .footer-brand p {
    font-size: 14px;
  }
}
