/*
This is the complete CSS file with all the requested changes.
Please replace the entire contents of your existing styles.css file with this code.
*/

/* RESET & GLOBAL SETTINGS */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  font-family: 'Poppins', sans-serif;
  background-color: #f4f4f4;
  color: #333;
  line-height: 1.7;
  overflow-x: hidden;
  width: 100vw;
  max-width: 100vw;
  overscroll-behavior-x: none;
}

body::-webkit-scrollbar {
  width: 0;
  background: transparent;
}

.container,
section,
header,
nav,
footer,
.product-card,
.contact-locate-container {
  max-width: 100vw;
  overflow-x: hidden;
}

img,
iframe,
input,
textarea,
select,
div,
section,
header,
footer,
nav,
main {
  max-width: 100%;
  overflow-x: hidden;
}

html {
  overflow-x: clip;
}

/* NAVIGATION */
nav {
  overflow: visible !important;
  background: #001e42;
  padding: 10px 5%;
  position: relative;
  z-index: 1000;
}

#nav-container {
  overflow: visible !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

#nav-logo {
  height: 90px;
}

.navbar-nav {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.nav-item {
  position: relative;
}

.nav-item a,
.nav-item .dropdown-toggle {
  color: #fff;
  text-decoration: none;
  padding: 15px;
  font-weight: 500;
  display: block;
}

.nav-item a:hover,
.nav-item .dropdown-toggle:hover {
  background: #fff;
  color: #001e42;
  border-radius: 5px;
}

/* Dropdown */
.nav-item.dropdown:hover .dropdown-menu,
.nav-item.dropdown.active .dropdown-menu {
  display: block;
}

.dropdown-toggle {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #001e42;
  list-style: none;
  padding: 0;
  margin: 0;
  border-radius: 0 0 5px 5px;
  min-width: 180px;
  z-index: 9999;
  white-space: nowrap;
}

.dropdown-menu li a {
  padding: 12px 20px;
  color: #fff;
  text-decoration: none;
  font-weight: 400;
  display: block;
}

.dropdown-menu li a:hover {
  background-color: #f4f4f4;
}

/* HERO */
header.hero {
  position: relative;
  height: 600px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
}

/* Carousel Slides */
.hero-carousel,
.hero-text-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

/* Dimming Overlay for Readability */
/* Text on top of carousel */
.hero-text-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 2;
  padding: 0 5%;
}

.text-box {
  background: rgba(0, 0, 0, 0.6);
  padding: 50px 120px; /* Adjust padding as needed */
  border-radius: 10px;
  max-width: 900px; /* Make the div smaller */
  width: 100%;
  text-align: center;
  color: #fff; /* Set a darker text color for readability */
}

/* Text on top of carousel */
.hero-text-overlay {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  
  padding: 0 5%;
}

.hero-text-overlay h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.hero-text-overlay p {
  letter-spacing: 1px;
  font-size: 1.2rem;
}

/* SECTIONS */
section {
  padding: 50px 5%;
  background: #fff;
}

section:nth-of-type(even),
#contact-locate {
  background: #f9f9f9;
}

/* INDIAMART BAR */
.indiamart-bar {
  background: #005f9e;
  color: #fff;
  text-align: center;
  padding: 8px;
  font-size: 0.9rem;
}

.indiamart-bar a {
  color: #fff;
  text-decoration: none;
}


#services .service {
  margin-bottom: 10px;
}

#services h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

#services .service h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #001e42;
}

#services .service p {
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
}


#about {
  margin-top: 0;
}

#about h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

/* CONTACT SECTION */
#contact-locate h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
}

.contact-locate-container {
  display: flex;
  gap: 40px;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
}

.contact-form {
  flex: 1;
  max-width: 500px;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  box-sizing: border-box;
}

.contact-form input,
.contact-form textarea {
  margin: 10px 0;
  padding: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
  width: 100%;
  font-size: 0.95rem;
}

.contact-form button {
  background: #001e42;
  color: #fff;
  padding: 15px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.contact-form button:hover {
  background: #005f9e;
}

/* PHONE FIELD */
.phone-field {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.phone-field select,
.phone-field input {
  flex: 1;
  padding: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 0.95rem;
  background-color: #fff;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.phone-field select {
  background-image: url('data:image/svg+xml;utf8,<svg fill="%23333" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
  padding-right: 40px;
}

/* MAP */
.map-container {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  height: 350px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* PRODUCTS */
#products {
  padding: 20px 5%;
  background: #f4f4f4;
}

#products h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.product-card {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.product-card.reverse {
  flex-direction: row-reverse;
}

.product-image img {
  width: 300px;
  height: 300px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.product-description {
  flex: 1;
  padding: 0 40px;
  min-width: 250px;
}

.product-description h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.product-description p {
  line-height: 1.6;
}

/* FOOTER */
footer {
  background: #001e42;
  color: #fff;
  text-align: center;
  padding: 20px 5%;
}

footer img {
  height: 70px;
  margin-bottom: 10px;
}

/* FLOATING BUTTONS */
.indiamart-float,
.whatsapp-float {
  position: fixed;
  width: 55px;
  height: 55px;
  right: 20px;
  color: #fff;
  border-radius: 50px;
  text-align: center;
  font-size: 28px;
  box-shadow: 2px 2px 3px #999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
  z-index: 101;
}

.indiamart-float {
  bottom: 160px;
  background-color: #005f9e;
}

.indiamart-float:hover {
  background-color: #0073cf;
}

.whatsapp-float {
  bottom: 90px;
  background-color: #25d366;
  font-size: 30px;
}

/* COMPANY SUMMARY */
#company-summary {
  background-color: #fff;
  text-align: center;
  padding: 20px 5% 40px;
}

#company-summary h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.counter-container {
  display: flex;
  justify-content: space-evenly;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
}

.counter-box {
  flex: 1 1 200px;
  max-width: 220px;
  text-align: center;
}

.counter {
  font-size: 3.5rem;
  color: #001e42;
  font-weight: 700;
  position: relative;
}

.counter::after {
  content: "+";
  font-weight: 500;
  color: #001e42;
  font-size: 0.8em;
  position: relative;
  top: -0.2em;
}

.counter-box p {
  margin-top: 10px;
  font-size: 1.2rem;
  color: #333;
}

.counter-box .subtext {
  font-size: 0.95rem;
  color: #777;
  margin-top: 5px;
  font-style: italic;
}

/* Loading Overlay and Spinner */
#loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  /* Dimming effect */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  /* Ensure it's on top of other content */
  visibility: hidden;
  /* Hide by default */
  opacity: 0;
  transition: visibility 0s, opacity 0.3s linear;
}

#loading-overlay.show {
  visibility: visible;
  opacity: 1;
}

.loader {
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top: 4px solid #fff;
  /* Spinner color */
  width: 40px;
  height: 40px;
  -webkit-animation: spin 1s linear infinite;
  /* For older browsers */
  animation: spin 1s linear infinite;
}

@-webkit-keyframes spin {
  0% {
    -webkit-transform: rotate(0deg);
  }

  100% {
    -webkit-transform: rotate(360deg);
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Desktop Styles for Product Cards */
@media (min-width: 768px) {
  .product-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    /* Adjust spacing between cards */
  }

  .product-card {
    flex: 1 1 23%;
    /* Allows up to 4 cards in a row with a small gap */
    max-width: 23%;
    /* Ensures no more than 4 cards */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
  }

  /* Resetting the reverse layout for desktop */
  .product-card.reverse {
    flex-direction: column;
  }

  .product-card .product-image,
  .product-card .product-description {
    width: 100%;
  }
}

/* RESPONSIVE STYLES */
@media (max-width: 768px) {
  .product-card,
  .product-card.reverse {
    flex-direction: column;
    text-align: center;
    background: #fff;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }

  .product-image img {
    width: 100%;
    max-width: 300px;
    margin-bottom: 20px;
  }

  .product-description {
    padding: 0;
    width: 100%;
  }

  .phone-field {
    flex-direction: column;
    align-items: stretch;
  }

  .phone-field select,
  .phone-field input {
    width: 100%;
  }

  #nav-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .navbar-nav {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .nav-item {
    width: 100%;
  }

  .nav-item a,
  .dropdown-toggle {
    padding: 10px 0;
    margin: 3px 0;
    width: 100%;
    border-radius: 0;
  }

  .contact-locate-container {
    flex-direction: column;
    align-items: stretch;
  }

  .map-container {
    width: 100%;
    height: 300px;
  }

  .contact-form {
    width: 100%;
  }

  .counter-container {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .counter-box {
    max-width: 250px;
  }

  .counter {
    font-size: 2.8rem;
  }

  .counter-box p {
    font-size: 1rem;
  }

  .indiamart-float {
    bottom: 160px;
  }

  .whatsapp-float {
    bottom: 90px;
  }
}