/* General Body Styles */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  background-color: #f9fafb;
  color: #374151;
  margin: 0;
  line-height: 1.6;
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
}
.text-center{
  text-align: center !important;
}
/* Container */
.container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Header & Navigation */
header {
  background-color: #fff;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 50;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* padding-top: 1rem;
    padding-bottom: 1rem; */
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.header-logo {
  width: 8rem;
  height: auto;
}

.nav-links {
  display: none;
  align-items: center;
}

.nav-links a {
  color: #4b5563;
  font-weight: 500;
  transition: color 0.3s;
  margin: 0 1rem;
}

.nav-links a:hover {
  color: #2563eb;
}

.mobile-menu-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: #374151;
}

.mobile-menu-button:focus {
  outline: none;
}

.mobile-menu {
  display: none;
  background-color: #fff;
  border-top: 1px solid #e5e7eb;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 0.75rem 0;
  color: #4b5563;
  font-weight: 500;
}

/* --- Mobile Menu --- */

.mobile-dropdown-menu {
  display: none;
  flex-direction: column;
  margin-top: 0.5rem;
}

.mobile-dropdown.active .mobile-dropdown-menu {
  display: flex;
}

.mobile-dropdown-toggle {
  background: none;
  border: none;
  font-size: 1rem;
  color: #333;
  text-align: left;
  width: 100%;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  color: #fff;
  text-align: center;
  transition: transform 0.2s, background-color 0.2s;
  border: none;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
}

.text-white {
  color: #ffffff !important;
}

.btn-primary {
  background-color: #2563eb;
  color: #ffffff !important;
}
.btn-primary:hover {
  background-color: #1d4ed8;
}

.btn-secondary {
  background-color: #374151;
}
.btn-secondary:hover {
  background-color: #1f2937;
}

.btn.text-sm {
  font-size: 0.875rem;
  padding: 0.6rem 1.2rem;
}

.w-full {
  width: 100%;
}
.mt-2 {
  margin-top: 0.5rem;
}

.floating-icons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* chat icon */
.chat-icon {
  /* position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000; */
  display: flex;
  flex-direction: row-reverse !important;
  align-items: center;
  gap: 10px;
  padding: 0;

  cursor: pointer;
}

.chat-icon p {
  display: none;
  margin: 0;
  width: 100%;
}

.chat-icon p img {
  width: auto;
  height: 30px;
}

.chat-icon img {
  width: auto;
  height: 60px;
  border-radius: 50%;
  /* border: 2px solid #ffffff; */
}

/* Hero Section */
.hero-section {
  color: #fff;
  /* padding: 5rem 0; */
  padding: 0;
  text-align: center;
  /* background-image: linear-gradient(rgba(0, 20, 60, 0.7), rgba(0, 20, 60, 0.7)), url('https://placehold.co/1920x1080/00143c/ffffff?text=Hydraulic+Systems'); */
  background-size: cover;
  background-position: center;
  /* width: 100%; */

  /* object-fit: contain; */
}

.hero-section img {
  width: 100%;
  object-fit: contain;
}
/* .hero-section h1 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 1rem 0;
} */

/* .hero-section p {
    font-size: 1.125rem;
    max-width: 48rem;
    margin: 0 auto 2rem auto;
} */

/* .hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
} */

/* --- Banner Slider (Corrected CSS) --- */
.slider {
  position: relative;
  width: 100%;
  overflow: hidden; /* This is crucial for the slide effect */
}

.slides {
  display: flex;
  width: 100%;
}

.slide {
  min-width: 100%;
  /* Removed opacity and display properties that were causing conflict */
}

/* Sections */
section {
  padding: 2rem 0;
}

.bg-white {
  background-color: #fff;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 0.5rem 0;
  text-align: center;
}

.section-subtitle {
  font-size: 1.125rem;
  color: #4b5563;
  /* margin-bottom: 3rem; */
  text-align: center;
  /* max-width: 48rem; */
  max-width: 60rem;
  /* margin: auto; */
  margin-left: auto;
  margin-right: auto;
}

/* About Section */
.about-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}

.about-image img {
  border-radius: 0.5rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  width: 100%;
  display: block;
}

.about-text p {
  margin: 0 0 1rem 0;
}

.about-text ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.about-text li {
  display: flex;
  align-items: flex-start;
  margin-top: 0.75rem;
  gap: 0.75rem;
}

.about-text li svg {
  flex-shrink: 0;
  color: #2563eb;
  margin-top: 0.25rem;
  width: 1.25rem;
  height: 1.25rem;
}

/* Industries Section */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  /* display: flex;
    flex-wrap: wrap;
    justify-content: center; */

  /* display: flex;
    flex-wrap: wrap; */
  gap: 1.5rem;
  text-align: center;
}

.card {
  background-color: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s, transform 0.3s;
  overflow: hidden;
}

.card:hover {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: translateY(-5px);
}

.industry-card {
  padding: 2rem;

  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
}

.industry-card img {
  flex: 1;

  width: auto;
  /* height: 100rem; */
  min-height: 5rem;
  max-height: 10rem;
  object-fit: contain;
}

.industry-card h3 {
  flex: 1;

  font-weight: 700;
  font-size: 1.125rem;
  margin: 0;
}

.industry-card svg {
  color: #2563eb;
  margin-bottom: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  display: inline-block;
}

/* Products Section */
.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.product-card {
  cursor: pointer;
}

.product-card img {
  width: 100%;
  height: 12rem;
  /* object-fit: cover; */
  object-fit: contain;
  display: block;
}

.product-card h3 {
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0 0 0.5rem 0;
  color: #1f2937;
}

.product-card p {
  font-size: 0.875rem;
  margin: 0;
  color: #4b5563;
}

.product-card .card-content {
  padding: 1.5rem;
}

/* Advantage Section */
.advantage-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;

  /* added later */
  /* justify-content: center;
    margin: auto; */
}

.advantage-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  text-align: left;
  /* justify-content: center; */
}

.advantage-icon {
  /* background-color: #DBEAFE; */
  color: #2563eb;
  border-radius: 9999px;
  /* padding: 0.75rem; */
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.advantage-icon img {
  width: 4rem;
  height: 4rem;
}

.advantage-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.advantage-item h3 {
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0 0 0.25rem 0;
}

.advantage-item p {
  margin: 0;
  color: #4b5563;
}

/* Mission & Vision Section */
.mission-vision-section {
  background-color: #1f2937;
  color: #fff;
}
.mission-vision-content {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  text-align: center;
}
.mission {
  padding-bottom: 2rem;
  border-bottom: 2px solid #ed6a24;
}
.mission-vision-content h3 {
  font-size: 1.875rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
}
.mission-vision-content p {
  font-size: 1.125rem;
  color: #d1d5db;
  margin: 0;
}

/* CTA Section */
.cta-section {
  text-align: center;
}
.cta-section .btn {
  font-size: 1.125rem;
}
.cta-section p {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

/* Footer */
footer {
  background-color: #111827;
  /* background-color: #253675; */
  color: #fff;
  padding: 3rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.footer-grid h3,
.footer-grid h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
}

.footer-grid p,
.footer-grid ul {
  color: #9ca3af;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.95rem;
}

.footer-grid ul li {
  margin-bottom: 0.5rem;
}

.footer-grid a {
  color: #9ca3af;
  transition: color 0.3s;
}
.footer-grid a:hover {
  color: #fff;
}

.footer-logo {
  /* filter: drop-shadow(1px 1px 1px #ffffff); */
  filter: grayscale(100%) invert(100%);
  width: 10rem;
  height: auto;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.footer-contact-item svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.footer-social {
  display: flex;
  gap: 1rem;
}
.footer-social a svg {
  width: 1.5rem;
  height: 1.5rem;
}

.footer-icons {
  width: auto;
  max-width: 2rem;
  height: 2rem;
  object-fit: contain;
  filter: grayscale(100%) invert(100%);
}

.footer-bottom {
  border-top: 1px solid #1f2937;
  margin-top: 2rem;
  padding-top: 1.5rem;
  text-align: center;
  color: #6b7280;
}

/* Responsive Media Queries */
@media (min-width: 768px) {
  .header-logo {
    width: 15rem;
    height: auto;
  }

  .nav-links {
    display: flex;
  }

  /* --- Dropdown Menu (Desktop) --- */
.dropdown {
  position: relative;
}
.dropdown a{
    cursor: pointer;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 30%;
  left: -100%;
  min-width: 250px;
  background: white;
  border: 1px solid #eee;
  border-radius: 8px;
  list-style: none;
  padding: 0.5rem 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  z-index: 999;
}

.dropdown-menu li {
  padding: 0;
}

.dropdown-menu a {
  display: block;
  padding: 0.5rem 1rem;
  color: #333;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

  .mobile-menu-button {
    display: none;
  }
  .mobile-menu {
    display: none !important;
  }

  .chat-icon p {
    display: flex;
    align-items: center;
    padding: 1rem;
    background-color: #ffffff;
    border-radius: 50px 50px 0px 50px;
  }

  /* .hero-section {
        padding: 8rem 0;
    }
    .hero-section h1 {
        font-size: 3.75rem;
    }
    .hero-section p {
        font-size: 1.25rem;
    } */
  section {
    padding: 4rem 0;
  }
  .section-title {
    font-size: 2.25rem;
  }
  .about-content {
    flex-direction: row;
  }
  .about-image,
  .about-text {
    width: 50%;
  }
  .industries-grid {
    /* grid-template-columns: repeat(3, 1fr); */
    display: flex;
    justify-content: center;
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .advantage-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .mission-vision-content {
    flex-direction: row;
    /* text-align: left; */
    text-align: center;
  }
  .mission-vision-content > div {
    width: 50%;
  }
  .mission {
    padding-right: 2rem;
    border-right: 2px solid #ed6a24;
    border-bottom: none;
    padding-bottom: 0rem;
  }
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1024px) {
  .industries-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .advantage-grid {
    grid-template-columns: repeat(3, 1fr);
    /* text-align: center; */
    /* grid-template-columns: repeat(2, 1fr); */
  }
}

@media (min-width: 1280px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
