* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.ser-main-cont {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  width: 80%;
  height: auto;
  align-self: center;
  margin: 40px auto;
  gap: 20px;
}

.ser-h1 {
  font-size: 32px;
  font-weight: 600;
  margin: 20px 10px;
  text-align: center;
  position: relative;
  font-family: "Poppins", sans-serif;
}

.ser-h1::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: #0f4c75;
  border-radius: 3px;
}

.ser-gls-cont {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-self: center;
  max-width: 972px;
  width: 100%;
  height: auto;
  margin: 30px 0;
  gap: 20px;
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease-in-out;
}

.ser-gls-cont.show {
  opacity: 1;
  transform: translateY(0);
}

.ser-gls-img {
  width: 380px;
  height: 340px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.ser-gls-img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.inner-ser-gls-cont {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  max-width: 488px;
  width: 100%;
  padding: 10px;
  border-radius: 12px;
  background: #fff;
  /* transition: transform 0.4s ease, box-shadow 0.4s ease; */
}
/* 
.inner-ser-gls-cont:hover {
  transform: translateY(-8px);
  box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.15);
} */

.ser-gls-title {
  font-size: 26px;
  font-weight: 600;
  color: #0f4c75;
  font-family: "Raleway", sans-serif;
  margin: 10px 0;
  transition: color 0.3s ease;
}

.inner-ser-gls-cont:hover .ser-gls-title {
  color: #1b9aaa;
}

.ser-gls-desc {
  font-family: "Inter", sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: #333;
  margin: 10px 0;
  line-height: 1.6;
  transition: color 0.3s ease;
}

.inner-ser-gls-cont:hover .ser-gls-desc {
  color: #111;
}

/* Responsive */
@media (max-width: 1024px) {
  .ser-gls-img {
    width: 320px;
    height: 280px;
  }

  .ser-gls-title {
    font-size: 24px;
  }

  .ser-gls-desc {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .ser-gls-cont {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .ser-gls-img {
    width: 100%;
    max-width: 400px;
    height: auto;
  }

  .inner-ser-gls-cont {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .ser-h1 {
    font-size: 24px;
  }

  .ser-gls-title {
    font-size: 20px;
  }

  .ser-gls-desc {
    font-size: 15px;
  }
}

/* modern machinery section */
/* Section container */
.mod-sec-cont {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #E9F2F4;
  width: 100%;
  padding: 50px 20px;
}

.mod-sec-h1 {
  font-size: 48px;
  font-weight: 600;
  color: #000;
  margin: 20px 0 10px;
  text-align: center;
  font-family: "Poppins", sans-serif;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 1s ease forwards;
}

.mod-sec-para {
  font-size: 20px;
  font-weight: 400;
  color: #333;
  margin: 0 0 30px;
  max-width: 600px;
  text-align: center;
  font-family: "Inter", sans-serif;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 1s ease 0.3s forwards;
}

/* 🔁 Marquee scrolling container */
.marquee-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
}
.marquee-inner {
  display: flex;
  gap: 30px;
  animation: scrollLeft 10s linear infinite;
}
@keyframes scrollLeft {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.mod-mach-cont {
  flex: 0 0 340px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 1s ease forwards;
}
.mod-mach-cont:nth-child(1) { animation-delay: 0.3s; }
.mod-mach-cont:nth-child(2) { animation-delay: 0.5s; }
.mod-mach-cont:nth-child(3) { animation-delay: 0.7s; }
.mod-mach-cont:nth-child(4) { animation-delay: 0.9s; }
.mod-mach-cont:nth-child(5) { animation-delay: 1.1s; }
.mod-mach-cont:nth-child(6) { animation-delay: 1.3s; }

.mod-img-cont-1,
.mod-img-cont-2 {
  width: 100%;
  height: 385px;
  background-color: #fff;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mod-mach-img-1,
.mod-mach-img-2,
.mod-mach-img-3,
.mod-mach-img-4 {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.mod-mach-info-cont {
  background-color: #CFDF56;
  width: 100%;
  height: 108px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
}

.mod-mach-info-title {
  font-size: 22px;
  font-weight: 600;
  color: #000;
  text-align: center;
  font-family: "Raleway", sans-serif;
  padding: 0 10px;
}

/* ✨ Fade animation */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 📱 Responsive */
@media (max-width: 1200px) {
  .mod-sec-h1 { font-size: 40px; }
  .mod-para { font-size: 18px; }
  .mod-mach-cont { flex: 0 0 300px; }
}
@media (max-width: 992px) {
  .mod-sec-h1 { font-size: 36px; }
  .mod-mach-cont { flex: 0 0 280px; }
}
@media (max-width: 768px) {
  .mod-sec-h1 { font-size: 32px; }
  .mod-sec-para { font-size: 16px; }
  .mod-mach-cont { flex: 0 0 260px; }
}
@media (max-width: 480px) {
  .mod-sec-h1 { font-size: 28px; }
  .mod-sec-para { font-size: 15px; }
  .mod-mach-cont { flex: 0 0 220px; }
}
