@media (max-width: 768px) {
  .slide p {
    font-size: 1rem;
    padding: 0.3rem 0.6rem;
  }

  .slider-wrapper {
    height: 40vh;
  }
}

@media (max-width: 480px) {
  .slide p {
    font-size: 0.9rem;
    padding: 0.2rem 0.5rem;
  }

  .slider-wrapper {
    height: 30vh;
  }
}

/* General Styles */
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  background-color: #f7f7f7;
  color: #333;
  background-image: url("line of machines.jpg");
}
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(94, 242, 94, 0.7); /* Light green with 70% opacity */
  z-index: -1;
}

/* Header */
/*---header---*/
:root {
  --primary-color: #0056b3; /* Primary Blue from header */
  --footer-bg: #091f3b; /* Darker blue for footer */
  --accent-color: #28a745; /* Green for accents */
}
/* Set a custom font for better aesthetics */
body {
  font-family: "Inter", sans-serif;
  scroll-behavior: smooth;
  background-color: #f0f2f5; /* Example background */
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/*header fixed */

/* Sections */
section {
  padding: 2rem 1rem;
  margin: auto;
  background-color: #fff;
  margin-top: 1rem;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

section h2 {
  color: #0056b3;
  border-bottom: 2px solid #eee;
  padding-bottom: 0.5rem;
}
@media (max-width: 600px) {
  section {
    padding: 1rem 0.3rem;
  }
}

/*video section */

/* Products Section */
.product-list {
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
/* Products List hover  */
/* Style the list item as a container for the effect */
.product-list li {
  overflow: hidden; /* This keeps the image within the container's bounds */
  text-align: center; /* Centers the title and link */
  background: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Style the image in its default state */
.product-list img {
  display: block; /* Ensures the image behaves like a block element */
  width: 100%; /* Makes sure the image fills its container */
  height: auto;
  /* This transition makes the zoom effect smooth */
  transition: transform 0.35s ease-in-out;
}

/* This is the hover effect that zooms the image OUT */
.product-list li:hover img {
  transform: scale(1.25); /* Scales the image down to 92% */
}

.product-list li {
  flex: 0 0 auto;
  padding: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.6);
  padding: 30px;
  width: 200px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
  text-align: center;
}

ul li img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}
ul li h3 {
  font-size: 1.2rem;
  color: #0056b3;
  margin: 0.5rem 0;
}
/* ul li a {
  text-decoration: none;
  color: #0056b3;
  font-weight: bold;
} */
ul li a:hover {
  color: #003d80;
}
/* ul li p {
  margin: 0.5rem 0;
  font-size: 0.9rem;
  color: #555;
} */
/* ul li a {
  display: block;
  padding: 0.5rem;
  color: #0056b3;
  font-weight: bold;
} */
ul li a:visited {
  color: #003d80;
}
ul li a:visited:hover {
  color: #002d5c;
}
ul li a:active {
  color: #002d5c;
}
ul li a:active:hover {
  color: #001f40;
}
ul li a:hover {
  text-decoration: underline;
}

/* --- Responsive Gallery --- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  grid-gap: 16px;
  justify-items: center;
  width: 100%;
  max-width: 1000px;
  margin: auto;
  padding: 1rem 0;
}

.item {
  width: 100%;
  max-width: 250px;
  height: 250px;
  position: relative;
  overflow: visible;
  cursor: pointer;
}

.item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: rotate(0deg); /* Neutralize the container’s tilt */
  border: 2px solid #e54787;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  align-items: center;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 1rem;
  text-align: center;
}
.item:hover .overlay {
  opacity: 1;
}
.item:hover img {
  transform: scale(0.95); /* Slightly zoom and tilt on hover */
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}
@media (max-width: 600px) {
  .gallery {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    grid-gap: 10px;
    padding: 0.5rem 0;
  }
  .item {
    max-width: 140px;
    height: 140px;
  }
}

/* --- Responsive Section Padding --- */
.container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
img {
  max-width: 100%;
  height: auto;
}

/* Testimonials */
.carousel {
  margin-top: 1rem;
  background-color: #eef;
  padding: 1.5rem;
}
.carousel blockquote {
  font-style: italic;
  color: #333;
  margin: 0 0 1rem 0;
}

/* Form */
form {
  background-color: #f0f0f0;
  padding: 2rem;
  border-radius: 10px;
}
input,
textarea {
  width: 100%;
  padding: 0.8rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
}
button {
  background-color: #0056b3;
  color: #fff;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 6px;
  cursor: pointer;
}
button:hover {
  background-color: #003e80;
}

button.absolute {
  position: absolute;

  top: 10px;
  right: 10px;
  background-color: #0056b3; /* Pink background */
  color: rgb(255, 255, 255); /* White text */
  font-weight: bold; /* Bold text */
  padding: 10px 20px; /* Padding for the button */
  border: none; /* No border */
  border-radius: 5px; /* Rounded corners */
  cursor: pointer; /* Pointer cursor on hover */
}
button.absolute:hover {
  background-color: #003e80; /* Darker shade on hover */
}

/* Footer */
/* --- Footer Section --- */
/* --- New Footer Styles --- */
.new-footer {
  background-color: #0d1d2e; /* Dark blue background */
  color: #a9b3c1; /* Light grey text color */
  padding: 50px 0 20px 0;
  font-family: "Segoe UI", sans-serif;
  line-height: 1.7;
}

.new-footer .footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.new-footer .footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* Creates the four columns */
  gap: 30px;
  margin-bottom: 40px;
}

.new-footer .footer-column h3,
.new-footer .footer-column h4 {
  color: #ffffff;
  font-weight: 600;
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.new-footer .footer-column h4 {
  position: relative;
  padding-bottom: 10px;
}

/* Green underline effect for headings */
.new-footer .footer-column h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30px;
  height: 2px;
  background-color: #28a745; /* Green color */
}

.new-footer .footer-column p {
  margin-bottom: 20px;
}

.new-footer .footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.new-footer .footer-column ul li {
  margin-bottom: 12px;
}

.new-footer .footer-column ul a {
  color: #a9b3c1;
  text-decoration: none;
  transition: all 0.3s ease;
}

.new-footer .footer-column ul a:hover {
  color: #ffffff;
  padding-left: 5px;
}

.new-footer .social-links a {
  color: #a9b3c1;
  margin-right: 15px;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

.new-footer .social-links a:hover {
  color: #28a745; /* Green hover color */
}

/* Contact Details Styling */
.new-footer .contact-details li {
  display: flex;
  align-items: flex-start;
}

.new-footer .contact-details i {
  color: #28a745; /* Green icon color */
  margin-right: 12px;
  font-size: 1rem;
  margin-top: 5px;
  width: 20px;
  text-align: center;
}

/* Footer Bottom Section */
.new-footer .footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid #2a3a4d; /* Separator line */
  font-size: 0.9rem;
}

.new-footer .back-to-top {
  color: #a9b3c1;
  text-decoration: none;
  transition: color 0.3s ease;
}

.new-footer .back-to-top:hover {
  color: #ffffff;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .new-footer .footer-grid {
    grid-template-columns: repeat(2, 1fr); /* Two columns on tablets */
  }
}

@media (max-width: 768px) {
  .new-footer .footer-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
  }

  .new-footer .footer-bottom {
    flex-direction: column;
    gap: 15px;
  }
}

/* Machine image larger .big-machine */
.big-machine {
  max-height: 400px;
}
#gallery {
  padding: 2rem;
  background-color: #f9f9f9;
  text-align: center;
}

/* Sticky button styles */
.sticky-btn-group {
  position: fixed;
  right: 1rem; /* Adjust as needed for spacing from the right edge */
  bottom: 1rem; /* Adjust as needed for spacing from the bottom edge */
  z-index: 999; /* Ensure it stays on top of other content */
  display: flex;
  flex-direction: column; /* Stacks buttons vertically */
  gap: 0.75rem; /* Space between buttons */
}
.sticky-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem; /* Padding inside button */
  border-radius: 9999px; /* Fully rounded */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); /* Soft shadow */
  color: white;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.sticky-btn:hover {
  transform: scale(1.1); /* Pop effect on hover */
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3); /* Stronger shadow on hover */
}
.sticky-btn i {
  font-size: 1.5rem; /* Icon size */
}

/* Specific colors for call and WhatsApp */
.sticky-call-btn {
  background-color: #007bff; /* Blue for call */
}
.sticky-whatsapp-btn {
  background-color: #25d366; /* WhatsApp green */
}

/* Responsive adjustments */
@media (min-width: 768px) {
  .sticky-btn-group {
    right: 2rem;
    bottom: 2rem;
  }
}
