html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Montserrat", sans-serif;
}
h1 {
  font-family: "Montserrat", sans-serif;
}
h2 {
  font-size: 36px;
  transition: font-size 0.3s ease, color 0.3s ease;
}

h2:hover {
  font-size: 38px;
}
p {
  font-family: "Montserrat", sans-serif;
}
p:hover {
  transform: scale(1.1);
  transition: 0.5s;
}
.nav {
  overflow: hidden;
  display: flex;
  background-color: #d81e0a;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease;
  font-family: "Montserrat", sans-serif;
}

.nav:hover {
  background-color: #c71506;
}

.nav img {
  width: 194px;
  height: 154px;
  margin-left: 5%;
  transition: transform 0.5s ease;
}

.nav img:hover {
  transform: scale(1.1);
}

.nav ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: flex-end;
  margin-right: 5%;
}

.nav ul li {
  font-size: 24px;
  margin: 0 10px;
  transition: transform 0.3s ease;
}

.nav ul li:hover {
  transform: translateY(-3px);
}

.nav ul li a {
  display: block;
  color: #ffffff;
  text-align: center;
  padding: 14px 20px;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s, color 0.3s;
}

.nav ul li a:hover {
  background-color: #fff;
  color: #d81e0a;
}

.Hero {
  position: relative;
  text-align: center;
  background-image: url(https://cdn.glitch.global/b8637f49-241d-4a51-bfb6-14e595f62363/test.png?v=1723045578923);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  margin-bottom: 5%;
  transition: background-position 0.5s ease;
}

.Hero:hover {
  background-position: bottom;
}

.Hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.Hero h1 {
  margin: 0;
  font-size: 80px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 80px;
  position: relative;
  z-index: 2;
  transition: transform 0.5s ease, color 0.3s ease;
}

.Hero h1:hover {
  transform: scale(1.05);
}
.Hero h3 {
  margin-top: 50px; /* Adjust spacing between h1 and h3 */
  font-family: "Ubuntu", sans-serif;
  font-size: 36px; /* Smaller font size for the motto */
  font-weight: 400;
  position: relative;
  z-index: 2;
  color: #ccc; /* Slightly lighter color for the motto */
  text-transform: none; /* No uppercase transformation */
}
.about {
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.6;
  color: #333;
  transition: background-color 0.3s ease;
  max-width: 500px;
  margin-bottom: 5%;
}

.mission {
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.6;
  color: #333;
  margin-bottom: 5%;
  transition: background-color 0.3s ease;
  max-width: 500px;
}

.choose-section {
  display: flex;
  justify-content: center;
  gap: 5%;
  margin-bottom: 5%;
}

.choose-section > div {
  flex: 1;
  max-width: 500px;
}

.choose-img-div {
  margin-top: 40px;
}

.choose-img-div img {
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
}

.choose-img-div img:hover {
  transform: scale(1.05);
}

.choose-p-div {
  line-height: 1.6;
  font-size: 18px;
}

.services-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 5%;
}

.services-section h2 {
  margin-bottom: 3%;
}
.address {
  max-width: 400px;
  font-size: 16px;
  line-height: 1.5;
}
.services-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  justify-items: center;
  padding: 0;
  margin: 0;
  list-style: none;
}

.services-list li {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px;
  box-sizing: border-box;
  height: 150px;
  max-width: 150px;
  transition: transform 0.3s ease;
}

.services-list li:hover {
  transform: translateY(-5px);
}

.services-list span {
  display: block;
}

.services-list i {
  font-size: 38px;
  margin: 25px 0px;
}

.container {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-bottom: 5%;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.grid-item {
  position: relative;
}

.grid-item img {
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
}

.grid-item img:hover {
  transform: scale(1.05);
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  color: #fff;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 0.3s ease;
  padding: 20px;
  box-sizing: border-box;
}

.grid-item:hover .overlay p {
  opacity: 1;
}

.grid-item:hover .overlay {
  background: rgba(0, 0, 0, 0.7);
  transition: background 0.5s ease;
}

.overlay p {
  margin: 0;
  font-size: 16px;
  opacity: 0;
}

.bottom-text {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  padding: 10px;
  background: rgba(0, 0, 0, 0.5);
  font-size: 18px;
  text-align: center;
  opacity: 1;
}

footer {
  background: #d81e0a;
  color: #fff;
  padding: 40px 20px;
}

.footer-content {
  display: flex;
  justify-content: space-around;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.footer-section {
  margin: 20px;
  min-width: 200px;
  transition: transform 0.3s ease;
}

.footer-section h3 {
  margin-top: 0;
  font-size: 20px;
  margin-bottom: 5%;
}

.footer-section p,
.footer-section ul {
  margin: 5px 0;
}

.footer-section ul {
  list-style-type: none;
  padding: 0;
}

.footer-section ul li {
  margin: 5px 0;
}

.footer-section ul li a {
  color: #fff;
  text-decoration: none;
}

.footer-section ul li a:hover {
  text-decoration: underline;
}

/* .social-links a {
    display: inline-block;
    margin-right: 25px;
    text-decoration: none;
    color: #fff;
    transition: transform 0.3s ease;
}

.social-links i {
    font-size: 18px;
} */

.footer-bottom {
  margin-top: 20px;
  border-top: 1px solid white;
  padding-top: 20px;
  font-size: 14px;
  text-align: center;
}

.footer-bottom a {
  color: #fff;
  text-decoration: none;
  margin: 0 5px;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

@media (max-width: 1200px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  p:hover {
    transform: scale(1);
  }
  .nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav ul {
    flex-direction: column;
    width: 100%;
    margin-left: 5%;
  }

  .nav ul li {
    margin: 10px 0;
  }

  .Hero h1 {
    font-size: 60px;
    line-height: 60px;
  }

  .about {
    flex-direction: column;
    padding: 15px;
  }
  .mission {
    padding: 15px;
  }

  .choose-section {
    flex-direction: column;
    padding: 15px;
  }

  .services-list {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
    align-items: center;
  }

  .footer-section {
    max-width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .Hero h1 {
    font-size: 40px;
    line-height: 40px;
  }

  .nav img {
    width: 150px;
    height: 120px;
  }

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

  .about h2,
  .mission h2 .services-section h2 {
    font-size: 28px;
  }

  .choose-img-div img {
    width: 100%;
  }

  .footer-section h3 {
    font-size: 18px;
  }

  .footer-bottom {
    font-size: 12px;
  }
}
