@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: #f0faff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 0 0 auto;
}

header {
  z-index: 100;
  box-shadow: 0px 20px 25px rgba(0, 0, 0, 0.3);
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 15px 20px;
  background: #4a98f7;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.nav,
.nav .nav-links {
  display: flex;
  align-items: center;
}

.nav {
  justify-content: space-between;
}

a {
  color: #fff;
  text-decoration: none;
  position: relative;
}

li a::before{
  content: "";
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 3px;
  bottom: 0;
  left: 0;
  background-color: rgb(255, 255, 255);
  transform-origin: bottom left;
  transition: transform 0.5s ease;
}

li a:hover::before{
  transform: scaleX(1);
  transform-origin: bottom left;
}

.nav .logo {
  font-size: 22px;
  font-weight: 500;
}

.nav .nav-links {
  column-gap: 20px;
  list-style: none;
}

.nav .nav-links a {
  transition: all 0.2s linear;
}

.nav.openSearch .nav-links a {
  opacity: 0;
  pointer-events: none;
}

.nav .search-icon {
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}

.nav .search-box {
  position: absolute;
  right: 250px;
  height: 45px;
  max-width: 555px;
  width: 100%;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s linear;
}

.nav.openSearch .search-box {
  opacity: 1;
  pointer-events: auto;
}

.search-box .search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  left: 15px;
  color: #4a98f7;
  transform: translateY(-50%);
}

.search-box input {
  height: 100%;
  width: 100%;
  border: none;
  outline: none;
  border-radius: 6px;
  background-color: #fff;
  padding: 0 15px 0 45px;
}

.nav .navOpenBtn,
.nav .navCloseBtn {
  display: none;
}

main {
  margin-top: 30px;
  position: relative;
  padding: 15px 20px;
  color: #4a98f7;
  padding-top: 50px;
  height: auto;
  width: 100%;
  overflow: hidden;
}

.Welcome {
  display: flex;
  flex-direction: column;
  text-align: center;
  justify-content: center;
  color: white;
  background-color: rgb(255, 255, 255);
  background-image: url('images/half.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  height: 250px;
  width: 100%;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  padding: 10px;
  box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.3);
  margin: 20px auto;
  max-width: 1200px;
}

.Welcome h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  padding-top: 20px;
}

.Welcome p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.slogan {
  display: flex;
}

.showoff {
  width: 100%;
  overflow: hidden;
  margin-top: 20px;
}

.container {
  color: white;
  display: flex;
  flex-direction: row;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 10px;
  width: 100%;
  box-sizing: border-box;
  white-space: nowrap;
  margin: 0 auto;
}

.box {
  width: 20vw;
  height: 30vh;
  background-color: transparent;
  border-radius: 10px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  background-color: #11101d;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
}

.box img {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  top: 0;
  left: 0;
  transition: all ease 3s transform;
}

.box:hover img {
  transform: scale(1.2);
  filter: blur(5px);
  opacity: 0.5;
}

.box h1,
.box p {
  display: none;
  z-index: 10;
  position: relative;
  width: 100%;
  text-align: center;
  color: white;
  padding: 10px;
  margin: 0;
}

.box h1 {
  font-size: 1rem;
  margin-bottom: 10px;
}

.box p {
  font-size: 0.9rem;
  margin-top: 10px;
  word-wrap: break-word;
}

.box:hover p,
.box:hover h1 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.box h1 {
  top: 10%;
  font-size: medium;
  width: 100%;
  background-color: #11101d;
  border-radius: 30px;
}

.box p {
  font-size: smaller;
  width: 100%;
  white-space: normal;
  word-wrap: break-word;
  bottom: 0;
}

footer .contact-us {
  padding: 0;
  margin: 0;
  background: linear-gradient(to right, #4a98f7, #1e3a8a);
  width: 100%;
  height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
}

footer .button {
  border: 2px solid white;
  padding: 10px;
  border-radius: 5px;
  background-color: transparent;
  color: #4a98f7;
  position: relative;
  overflow: hidden;
  transition: background-color ease 0.5s, color ease 0.5s;
  cursor: pointer;
  z-index: 2;
}

footer .button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(255, 255, 255);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
  z-index: -1;
}

footer .button:hover::before {
  transform: translateX(0);
}

footer .button:hover span {
  color: #1e3a8a !important; /* Ensure text color on hover for span */
}

footer {
  background: linear-gradient(to right, #4a98f7, #1e3a8a);
  color: white;
  text-align: center;
  padding: 20px 0;
  width: 100%;
    bottom: 0;
}

.footer-container {
  display: flex;
  justify-content: space-evenly;
  flex-wrap: wrap;
  padding: 20px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin: 5px 0;
}

.footer-links a,
.footer-social a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

.footer-social a {
  display: block;
  margin: 5px 0;
}

.footer-bottom {
  margin-top: 20px;
  font-size: 14px;
}

.Contact {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  margin-bottom: 10px;
  margin-top: 10px;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
}

.Contact h2 {
  text-align: center;
  color: #333;
}

.Contact form {
  display: flex;
  flex-direction: column;
}

.Contact textarea,
.Contact input {
  margin: 10px 0;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.Contact button {
  padding: 10px;
  background-color: #4a98f7;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.Contact .contact-links {
  margin-top: 20px;
  text-align: center;
}

.Contact .call-link,
.Contact .whatsapp-link {
  display: inline-block;
  margin: 10px;
  padding: 10px 20px;
  background-color: #25d366;
  color: white;
  border-radius: 5px;
  text-decoration: none;
}

.Contact .call-link {
  background-color: #007bff;
}

.Contact .call-link:hover,
.Contact .whatsapp-link:hover {
  opacity: 0.8;
}

.contact-page main {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  min-height: calc(100vh - 60px);
}

.contact-page .Contact {
  width: 100%;
  max-width: 600px;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
  margin: 20px;
}

.about-us {
  height: auto;
  overflow-y: hidden;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
}

.about-us ul {
  list-style: none;
}

.services {
  text-align: center;
  padding: 50px 20px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 30px;
  position: relative;
}

.service-btn {
  position: relative;
  border: none;
  padding: 20px;
  color: white;
  font-size: 20px;
  font-weight: bold;
  background-size: cover;
  background-position: center;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 1);
  cursor: pointer;
  transition: transform 0.3s, opacity 0.3s;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  z-index: 2;
}

.service-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.service-btn span {
  position: relative;
  z-index: 2;
}

.service-btn:hover {
  transform: scale(1.05);
  opacity: 0.95;
}

#service-details {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 600px;
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
  display: none;
  z-index: 5;
}

#service-details h3 {
  margin-bottom: 10px;
  font-size: 24px;
  text-align: center;
}

#service-details p {
  font-size: 18px;
  text-align: center;
}

#close-details {
  margin-top: 10px;
  padding: 10px 15px;
  border: none;
  background: red;
  color: white;
  cursor: pointer;
  border-radius: 5px;
  display: block;
  width: 100%;
  text-align: center;
}

.blurred {
  filter: blur(3px);
  opacity: 0.5;
}

.faq-item{
  background-color: white;
  padding: 30px;
  margin-bottom: 20px;
  border-radius: 10px;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
}

.faq-item a{
  text-decoration: underline;
  color: #007bff;
}

.faq-contact{
  display: flex;
  text-align: center;
  justify-content: center;
  margin-bottom: 30px;
}

.faq-contact a{
  text-decoration: none;
  color: #007bff;
  border: 2px solid #007bff;
  padding: 10px;
  border-radius: 5px;

}

.faq-contact a:hover{
  background-color: #007bff7e;
  color:white;
}

@media screen and (max-width: 1160px) {
  .nav {
    padding: 15px 100px;
  }
  .nav .search-box {
    right: 150px;
  }

  .Welcome {
    padding: 20px;
    height: fit-content;
  }

  .Welcome h2 {
    font-size: 2rem;
  }

  .Welcome p {
    font-size: 1.1rem;
  }
}


@media screen and (max-width: 950px) {
  .nav {
    padding: 15px 50px;
  }
  .nav .search-box {
    right: 100px;
    max-width: 400px;
  }

  .Welcome {
    padding: 15px;
    height: fit-content;
  }

  .Welcome h2 {
    font-size: 1.8rem;
  }

  .Welcome p {
    font-size: 1rem;
  }
}

@media screen and (max-width: 768px) {
  .nav .navOpenBtn,
  .nav .navCloseBtn {
    display: block;
  }
  .nav {
    padding: 15px 20px;
  }
  .nav .nav-links {
    position: fixed;
    top: 0;
    left: -100%;
    height: 100%;
    max-width: 280px;
    width: 100%;
    padding-top: 100px;
    row-gap: 30px;
    flex-direction: column;
    background-color: #11101d;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    z-index: 100;
  }
  .nav.openNav .nav-links {
    left: 0;
  }
  .nav .navOpenBtn {
    color: #fff;
    font-size: 20px;
    cursor: pointer;
  }
  .nav .navCloseBtn {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
  }
  .nav .search-box {
    top: calc(100% + 10px);
    max-width: calc(100% - 20px);
    right: 50%;
    transform: translateX(50%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }
  .welcome,
  .about-us,
  .Contact {
    padding: 10px;
  }
  .showoff,
  .service-grid {
    flex-direction: column;
    align-items: center;
  }
  .box {
    width: 100%;
    margin-top: 20px;
    margin-bottom: 20px;
  }
  .box h1,
  .box p {
    font-size: large;
  }
  .footer-container {
    flex-direction: column;
    align-items: center;
  }
  .Welcome {
    padding: 10px;
    height: fit-content;
  }

  .Welcome h2 {
    font-size: 1.6rem;
  }

  .Welcome p {
    font-size: 0.9rem;
  }

  .box p {
    font-size: 1rem;
  }
}

@media screen and (max-width: 480px) {
  .nav {
    padding: 15px 10px;
  }
  .nav .search-box {
    right: 50%;
    transform: translateX(50%);
    max-width: calc(100% - 20px);
  }
  .nav .nav-links a {
    font-size: 14px;
  }
  .nav .search-box input {
    font-size: 14px;
  }
  .welcome,
  .about-us,
  .Contact {
    padding: 10px;
  }
  .box h1,
  .box p {
    font-size: 12px;
  }
  .footer-links a,
  .footer-social a {
    font-size: 14px;
  }
  .footer-bottom {
    font-size: 12px;
  }
  .Contact h2 {
    font-size: 18px;
  }
  .Contact textarea,
  .Contact input {
    font-size: 14px;
  }
  .Contact button {
    font-size: 14px;
  }
  .service-btn {
    font-size: 16px;
  }
  .service-btn:hover {
    transform: scale(1);
  }
  .Welcome {
    padding: 10px;
    height: fit-content;
  }

  .Welcome h2 {
    font-size: 1.4rem;
  }

  .Welcome p {
    font-size: 0.8rem;
  }

  .box p {
    font-size: 1.2rem;
  }
}