@import url(./animation.css);

:root {
  --default-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Ubuntu, "Helvetica Neue", Helvetica, Arial, "PingFang SC",
    "Hiragino Sans GB", "Microsoft Yahei UI", "Microsoft Yahei",
    "Source Han Sans CN", sans-serif;
}

* {
  font-family: "Poppins", sans-serif;
}

body {
  display: block;
  margin: 0 8px;
}

.main-container {
  overflow: hidden;
}

.main-container,
.main-container * {
  box-sizing: border-box;
}

input,
select,
textarea,
button {
  outline: 0;
}
.main-container {
  /* padding: 0 20px 0 20px; */
  background: #ffffff;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.responsive-button {
  padding: 15px 30px;
  font-size: 16px;
  color: white;
  background-color: #cc2c2c;
  border: none;
  border-radius: 30px;
  cursor: pointer;
}

.responsive-button:hover {
  background-color: #4b4b4b;
  color: white;
}

.subscribe-button-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.subscribe-button {
  color: white;
  background-color: #cc2c2c;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  text-align: center;
  padding: 10px 18px;
  font-size: 12px;
  width: 110px;
}

.subscribe-button:hover {
  background-color: #4b4b4b;
  color: white;
  cursor: pointer;
}

.button-container {
  margin-top: 99px;
}

.mps-logo {
  position: absolute;
  left: 15px;
  z-index: 1000;
  width: 200px;
  height: 87.56px;
  background: url(../assets/images/logo.png) no-repeat center;
  background-size: contain;
}

.social-icons {
  display: flex;
  gap: 10px;
  justify-content: end;
  margin-bottom: 10px;
}

.social-icon {
  width: 30px;
  height: 30px;
  background-size: cover;
}

.facebook {
  background-image: url(../assets/images/3f3defef1e77c8d27268167352163b642925eff1.png);
}

.facebook-white {
  background-image: url(../assets/images/svg/fb-white.svg);
}

.twitter {
  background-image: url(../assets/images/45ec83247a75213b45e2829cd72c75a225c302ce.png);
}

.instagram {
  background-image: url(../assets/images/twitter.png);
}

.instagram-white {
  background-image: url(../assets/images/svg/insta-white.svg);
}

.button {
  display: inline-block;
  padding: 5px 15px;
  border-radius: 30px;
  font-size: 17px;
  font-weight: 500;
  text-decoration: none;
  margin-left: 10px;
}

.call-us {
  color: #000000;
  border: 1px solid #000000;
  background: #ffffff;
}

header .request-quote {
  color: #ffffff;
  background: #cc2c2c;
  position: absolute;
  top: 15px;
  right: 80px;
  z-index: 1000;
  height: 40px;
  border: none;
  cursor: pointer;
  display: flex; /* Center content */
  align-items: center;
  justify-content: center;
}

header .request-quote:hover {
  color: #ffffff;
  background-color: #4b4b4b;
}

@media (max-width: 480px) {
  .mps-logo {
    width: 120px;
  }

  header .request-quote {
    top: 10px;
    right: 65px;
    width: 120px;
    height: 32px;
    font-size: 10px;
  }
}

.toggle-button {
  color: #ffff;
  background-color: #4b4b4b;
  position: fixed;
  top: 15px;
  right: 15px;
  z-index: 1001;
  border: none;
  padding: 5px 15px;
  cursor: pointer;
  font-size: 20px;
}

.close-button {
  position: fixed;
  top: 15px;
  right: 30px;
  z-index: 1001;
  border: none;
  padding: 0;
  width: 20px; /* Set width */
  height: 20px; /* Set height */
  cursor: pointer;
  font-size: 20px;
  display: flex; /* Center content */
  align-items: center;
  justify-content: center;
  background-color: transparent;
}

.navbar {
  position: fixed;
  top: 0;
  right: -100%; /* Move completely off-screen */
  width: 365px; /* Fixed width for all resolutions */
  max-width: 80vw; /* Limit width to 80% of the viewport for smaller screens */
  height: 100%;
  color: white;
  transition: right 0.3s ease-in-out;
  z-index: 1000;
  box-shadow: -2px 0 5px rgba(0, 0, 0, 0.5);
  background: url("../assets/images/navbar-bg.svg") center no-repeat;
  background-size: cover; /* Cover the entire body */
  background-position: center; /* Center the background image */
}

.nav-links ul {
  list-style: none;
  padding: 40px 20px;
  font-size: 17px;
}

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

.nav-links a {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 10px; /* Adjust spacing between icon and text */
}

.nav-links img {
  width: 20px; /* Adjust size of the icons */
  height: 20px;
}

.navbar nav ul {
  list-style: none;
  padding: 10px 10px;
  margin: 0;
}

.navbar nav ul li {
  padding: 15px 30px;
  font-size: 20px;
}

.navbar nav ul li a {
  text-decoration: none;
  color: white;
  display: block;
}

.navbar-social-icons {
  padding: 15px 30px;
  display: flex;
  gap: 10px;
  justify-content: start;
  margin-bottom: 10px;
}

.navbar.navbar-open {
  right: 0; /* Move into view */
}

/* Responsive Styles */
@media (max-width: 768px) {
  .navbar {
    width: 50%; /* Wider navbar for smaller screens */
  }

  .toggle-button {
    font-size: 18px;
    padding: 8px 12px; /* Adjust button size */
  }

  .nav-links ul {
    font-size: 12px;
  }

  .navbar nav ul li {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .navbar {
    width: 75%; /* Take up more space on very small screens */
  }

  .toggle-button {
    font-size: 16px;
    padding: 6px 10px; /* Further adjust button size */
  }

  .nav-links ul {
    font-size: 12px;
  }

  .navbar nav ul li {
    font-size: 15px;
  }
}

.active-link {
  color: #d9083c;
  border-bottom: 2px solid #d9083c;
}

@media (max-width: 1200px) {
  header {
    justify-content: center;
  }
}

@media (max-width: 800px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-container {
    flex-direction: column;
    align-items: flex-start;
    margin-top: 20px;
    width: 100%;
  }

  .button {
    margin-left: 0;
    margin-top: 10px;
  }

  /* nav {
    display: none;
    width: 100%;
  }

  nav.active {
    display: block;
  }

  nav ul {
    gap: 0;
    flex-direction: column;
    align-items: flex-start;
  }

  nav ul li {
    margin: 10px 0;
  }

  .nav-toggle {
    display: block;
    position: absolute;
    top: 40px;
    right: 20px;
  } */
}

.dropdown-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s ease, opacity 0.8s ease;
  z-index: 1;
  border-radius: 5px;
  padding: 0; /* Removed initial padding to avoid affecting animation */
}

.dropdown-content a {
  display: block;
  color: black;
  padding: 8px 12px;
  white-space: nowrap;
}

.show-dropdown {
  max-height: 100%; /* Adjust based on dropdown content size */
  opacity: 1;
  padding: 10px; /* Restore padding when dropdown is visible */
}

.dropdown-icon {
  font-size: 16px;
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.show-dropdown + .dropdown-icon {
  transform: rotate(180deg); /* Rotate the icon when dropdown is open */
}

.dropbtn {
  font-size: 16px;
}

.cover {
  height: 697px;
}

.section-1 {
  width: 100%;
  position: absolute;
  left: 0;
  right: 0;
  padding: 12% 4%; /* Adjust this if needed */
  background-size: cover;
  color: #ffffff;
  font-size: 32px;
  font-weight: 300;
  line-height: 1.5;
  height: 667px;
  z-index: 2;
}

.section-1::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3); /* Dark overlay with 50% opacity */
  z-index: 2; /* Higher than .flex-row-a content but below any added text overlay */
  pointer-events: none; /* Ensures overlay doesn't interfere with clicks */
}

.about-us-cover {
  display: block;
  position: relative;
  font-size: 40px;
  z-index: 30;
}
.bring-vision {
  font-size: 33px;
  display: block;
  position: relative;
  color: #ffffff;
  z-index: 30;
}

@media (max-width: 768px) {
  .section-1 {
    font-size: 4vw; /* Increase font size for smaller screens */
    padding: 25% 5%; /* Adjust padding */
  }

  .about-us-cover {
    font-size: 3vw; /* Adjust font size */
  }

  .bring-vision {
    font-size: 5vw; /* Adjust font size */
  }
}

@media (max-width: 480px) {
  .section-1 {
    font-size: 5vw; /* Increase font size for very small screens */
    padding: 40% 2%; /* Adjust padding */
  }
  .about-us-cover {
    font-size: 4vw; /* Adjust font size */
  }
  .bring-vision {
    font-size: 5vw; /* Adjust font size */
  }
}

.image-group-container {
  margin-top: 100px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto;
  gap: 60px;
  padding: 10px;
}

.image-group-container img {
  border-radius: 15px;
  width: 100%;
  height: 426px;
  object-fit: cover;
}

/* Larger image 2 spanning two columns */
.large {
  grid-column: span 2;
}

@media (max-width: 768px) {
  .image-group-container {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .large {
    grid-column: span 1;
  }
}

@media (max-width: 480px) {
  .image-group-container {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .large {
    grid-column: span 1;
  }
}

.footer {
  width: 100%;
  background: url("../assets/images/footer-bg.png") center no-repeat;
}
.footer .footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 3.5rem;
  padding: 60px;
}
.footer-row .footer-col h4 {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 400;
}

ul {
  padding: 0;
}

.footer-col .links {
  margin-top: 20px;
}
.footer-col .links li {
  list-style: none;
  margin-bottom: 10px;
}
.footer-col .links li a {
  text-decoration: none;
  color: #fff;
}
.footer-col .links li a:hover {
  color: #fff;
}
.footer-col p {
  margin: 20px 0;
  color: #bfbfbf;
  max-width: 300px;
}
.footer-col form {
  display: flex;
  gap: 5px;
}
.footer-col input {
  height: 40px;
  border-radius: 6px;
  background: none;
  width: 100%;
  outline: none;
  border: 1px solid #7489c6;
  caret-color: #fff;
  color: #fff;
  padding-left: 10px;
}
.footer-col input::placeholder {
  color: #ccc;
}
.footer-col form button {
  color: white;
  background-color: #cc2c2c;
  outline: none;
  border: none;
  padding: 10px 15px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: 0.2s ease;
}
.footer-col form button:hover {
  background: #cecccc;
  color: #000000;
}
@media (max-width: 768px) {
  .footer {
    position: relative;
    bottom: 0;
    left: 0;
    transform: none;
    width: 100%;
    border-radius: 0;
  }
  .footer .footer-row {
    padding: 20px;
    gap: 1rem;
  }
  .footer-col form {
    display: block;
  }
  .footer-col form :where(input, button) {
    width: 100%;
  }
  .footer-col form button {
    margin: 10px 0 0 0;
  }
}

.card {
  background-color: rgba(255, 255, 255, 0.4); /* Transparent background */
  border-radius: 15px;
  padding: 2rem;
  max-width: 400px;
  width: 100%;
  text-align: left;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.card h2 {
  font-weight: normal;
  font-size: 16px;
  color: #0a142f;
  margin-bottom: 1rem;
}

.card .input-group {
  position: relative;
  margin-bottom: 10px;
}

.card input[type="email"] {
  width: 100%;
  padding: 0.8rem;
  padding-left: 1rem;
  font-size: 14px;
  border-radius: 25px;
  outline: none;
  color: #ffffff;
  background-color: #696969;
}

.card p {
  font-size: 12px;
  color: rgb(56, 56, 56);
  line-height: 1.5;
}

/* Responsive */
@media (min-width: 480px) {
  .card {
    max-width: 400px;
  }
}

.grid-boxes-wrapper {
  height: 737px;
}

.grid-boxes-main {
  position: absolute;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center; /* Center horizontally */
  align-items: center; /* Center vertically */
  min-height: 86vh; /* Full height of the viewport */
  background-image: url("../assets/images/eb6f893c9ae5c3df2d1d5177e082e925973217e1.png");
  background-size: cover; /* Cover the entire body */
  background-position: center; /* Center the background image */
  overflow: hidden; /* Prevent scrolling if the content overflows */
  margin-bottom: 68.7px;
}

.why-choose-us-boxes {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 equal columns */
  grid-template-rows: repeat(2, 1fr); /* 2 equal rows */
  gap: 30px; /* Gap between boxes */
  max-width: 1200px; /* Optional: set a max width */
  padding: 10px; /* Optional: padding around the grid */
}

.grid-box {
  flex-direction: column;
  background-color: #fff;
  color: #5c5c5c;
  display: flex;
  font-size: 24px;
  border-radius: 8px;
  width: 360px; /* Full width of the container */
  height: 303px;
  padding: 35px 0 0 28px;
}

.grid-box:hover {
  background-color: #000000;
  color: white;
}

.box-black {
  background-color: transparent !important;
  color: #ffffff;
}

.grid-box h1,
.grid-box h2 {
  margin: unset;
}

.grid-box h2 {
  color: #cc2c2c;
}

.grid-box h3 {
  margin: unset;
  font-size: 24px;
}

.grid-box p {
  padding-right: 28px;
  font-size: 17px;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .grid-boxes-wrapper {
    height: 1075px;
  }
  .why-choose-us-boxes {
    grid-template-columns: repeat(2, 1fr); /* 2 columns on medium screens */
  }
}

@media (max-width: 768px) {
  .grid-boxes-wrapper {
    height: 2100px;
  }

  .why-choose-us-boxes {
    grid-template-columns: 1fr; /* 1 column on small screens */
  }

  .grid-box {
    width: 100%; /* Make boxes full-width on small screens */
  }
}

@media (max-width: 480px) {
  .grid-boxes-wrapper {
    height: 1900px;
  }

  .grid-box {
    font-size: 18px; /* Adjust font size for smaller screens */
    height: auto; /* Let the height be flexible */
    padding: 20px; /* Add some padding */
  }

  .grid-box h3 {
    font-size: 20px;
  }

  .grid-box p {
    font-size: 16px;
  }
}

.success-message {
  color: green;
  margin-top: 10px;
}

.error-message {
  color: #a10000;
  margin-bottom: 10px;
  font-size: 12px;
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
  z-index: 1000;
}

.modal.hidden {
  display: none;
}

.modal-container {
  display: flex; /* Flexbox for centering */
  justify-content: center; /* Center horizontally */
  align-items: center; /* Center vertically */
}

.modal-content {
  margin-top: 350px;
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  max-width: 90%; /* Ensure responsiveness */
  width: 400px; /* Default width */
  box-sizing: border-box;
  position: relative; /* Ensure no unintended positioning effects */
}

.modal-content p {
  margin: 0 0 10px;
}

.hide-modal {
  background-color: #cc2c2c;
}


.hidden {
  display: none;
}

#loadingSpinner {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.spinner-content {
  position: relative;
  margin-top: 350px;
}

.spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 2s linear infinite;
}

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