* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Roboto", sans-serif;
  scroll-behavior: smooth;
}
body {
  background-color: #f2f3ed;
  /* background-color: #e5e1da; */
}

h1 {
  font-size: 3.5rem;
  font-family: "Poppins";
  margin: 20px 0;
  max-width: 20ch;
}

h2 {
  font-size: 2rem;
}

p {
  line-height: 1.7;
}
/* -----custom scrollbar----- */
/* For WebKit browsers (Chrome, Safari) */
::-webkit-scrollbar {
  width: 15px; /* width of the scrollbar */
}
::-webkit-scrollbar-track {
  background: #f0ebeb; /* color of the track (the area behind the scrollbar) */
}
::-webkit-scrollbar-thumb {
  background: #176b87; /* color of the thumb (the draggable part of the scrollbar) */
  border-radius: 4px;
  border: 1px solid #f0ebeb;
}
::-webkit-scrollbar-thumb:hover {
  background: #2092b8; /* color of the thumb on hover */
}
/* -----custom scrollbar----- */
/* ---------navbar-------------- */
li {
  list-style: none;
}

a {
  text-decoration: none;
  color: black;
}

nav a:hover:not(.action_btn) {
  color: #176b87;
}

header {
  width: 100%;
  position: fixed;
  padding: 0 2rem;
  background-color: #fff;
  z-index: 99;
}

.navbar {
  width: 100%;
  height: 90px;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.2rem;
}

.logo img {
  height: 60px;
}

.navbar .links {
  display: flex;
  gap: 2rem;
}

.links a {
  position: relative;
}
.hover-animation::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: -10px;
  left: 0;
  background-color: #176b87;
  transform-origin: bottom left;
  transition: transform 0.25s ease-out;
  transform: scaleX(0);
}

.hover-animation:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

.navbar .toggle_btn {
  color: #000000;
  font-size: 1.5rem;
  cursor: pointer;
  display: none;
}

.action_btn {
  background-color: #e7ca71;
  color: #000000;
  padding: 0.8rem 1rem;
  border: none;
  outline: none;
  font-size: 1rem;
  /* font-weight: bold; */
  cursor: pointer;
  transition: scale 0.2 ease;
}
.action_btn:hover {
  scale: 1.05;
}
.action_btn:active {
  scale: 0.95;
}
/* ----more services main navbar----- */
.dropdown {
  position: relative;
}

.dropdown-menu {
  max-height: 0;
  overflow: hidden;
  position: absolute;
  top: 200%;
  left: 0;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: max-height 0.5s ease-in-out;
}

.dropdown:hover .dropdown-menu {
  max-height: 500px;
}

.dropdown-menu li {
  padding: 15px;
  width: 200px;
}
/* ----more services main navbar----- */
.dropdown_menu hr {
  margin: 0 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.more-services hr {
  margin: 0 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}
/* ---dropdown menu---- */
.dropdown_menu {
  display: none;
  position: absolute;
  right: 2rem;
  top: 95px;
  max-height: 0;
  width: 300px;
  background-color: #fff;
  /* background: rgba(255, 255, 255, 0.1); */
  /* backdrop-filter: blur(15px); */
  border-radius: 10px;
  overflow: hidden;
  transition: max-height 0.7s ease-in-out;
}

.dropdown_menu.open {
  max-height: 100vh;
}

.dropdown_menu li {
  padding: 0.7rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dropdown_menu a:not(.action_btn):hover {
  color: #176b87;
}

.dropdown_menu .action_btn {
  width: 100%;
  display: flex;
  justify-content: center;
}
/* ----more services sto responsive nav----- */
.dropdown_menu input {
  display: none;
}

.more-services {
  font-size: 0.9rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-in-out;
}
.more-services li {
  padding: 0.2rem 2rem;
}
.dropdown_menu input:checked ~ .more-services {
  max-height: 100vh;
}
.dropdown_menu input:checked ~ label i::before {
  content: "\f068";
}

.dropdown_menu label i {
  font-size: 14px;
  padding-right: 1rem;
}
/* ----more services sto responsive nav----- */
/* ----------responsive navbar----------- */
@media (max-width: 992px) {
  .navbar .links,
  .navbar .action_btn {
    display: none;
  }

  .navbar .toggle_btn {
    display: block;
  }

  .dropdown_menu {
    display: block;
  }
}
@media (max-width: 576px) {
  .dropdown_menu {
    left: 2rem;
    width: unset;
  }
  .navbar .logo a {
    font-size: 1rem;
  }
}
/* ----------responsive navbar----------- */
/* ---------navbar-------------- */

/* ---welcome page --- */
section#welcome-page {
  height: 100vh;
  width: 100%;
}

.contact-btn {
  background-color: #fff;
  border: 3px solid #176b87;
  color: #000000;
  padding: 0.6rem;
  margin-top: 1rem;
  /* border: none; */
  outline: none;
  text-align: center;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: scale 0.2 ease;
}
.contact-btn:hover {
  scale: 1.05;
}
.contact-btn:active {
  scale: 0.95;
}

/* --------slider------------ */
.mySwiper {
  position: relative;
  width: 100%;
  height: 100%;
}

.mySwiper .swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
}

.swiper-text {
  color: #fff;
  z-index: 10;
  width: 100%;
  position: absolute;
  top: 50%;
  left: 0;
  padding: 5vw;
}
/* --------slider---------- */
@media screen and (max-width: 1000px) {
  section#welcome-page {
    flex-direction: column;
  }

  h1 {
    font-size: 1.8em;
  }
  h2 {
    font-size: 1.2rem;
  }
  h3 {
    font-size: 1rem;
  }
  p {
    font-size: 0.9rem;
  }
}
/* ---welcome page --- */

/* ----docanytime---- */
#docanytime {
  padding: 5vw;
  background-color: #ffffff;
}

#docanytime h2 {
  color: #052639;
}
#doc-flex {
  display: flex;
  height: auto;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  gap: 2rem;
}
#docanytime iframe {
  max-width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 20px;
}

@media screen and (max-width: 405px) {
  #docanytime iframe {
    height: 700px !important;
  }
}
@media screen and (max-width: 347px) {
  #docanytime iframe {
    height: 720px !important;
  }
}
@media screen and (max-width: 339px) {
  #docanytime iframe {
    height: 750px !important;
  }
}
@media screen and (max-width: 320px) {
  #docanytime iframe {
    height: 780px !important;
  }
}
/* ----docanytime---- */

/* -----------about------------ */
section#about {
  background-color: #176b87;
}
.about-container {
  padding: 5vw;
}
.about-flex {
  border: 3px solid #fbf9f1;
  padding: 4vw;
  display: flex;
  gap: 2rem;
}
.about-info {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1vw;
  color: #fbf9f1;
}

.about-info li {
  line-height: 1.7;
}
.about-info .fa-circle {
  color: #e7ca71;
  margin-right: 0.7rem;
}
.about-image {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-image img {
  object-fit: cover;
  width: 100%;
  max-width: 550px;
  height: auto;
  /* border-radius: 20px; */
  padding: 0.5rem;
  border: 5px solid white;
}

#about .moto {
  color: #e7ca71;
  font-weight: bold;
  font-size: 1.5rem;
}
@media screen and (max-width: 1000px) {
  .about-flex {
    flex-direction: column-reverse;
  }
  .about-image img {
    max-width: 100%;
  }
}
/* -----------about------------ */

/* ----------reviews---------- */
section#reviews {
  background-color: #fff;
  padding: 5vw;
  color: #052639;
}
.reviews-flex {
  display: flex;
  width: 95%;
  padding: 2vw 0;
  gap: 2rem;
  margin: auto;
}

.reviews-info {
  width: 40%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}

.reviews-info img {
  width: 20px;
}
.reviews-info a {
  text-decoration: underline;
}
.top-reviews {
  margin: auto;
  width: 50%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.mySwiper2 {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.mySwiper2 .swiper-slide {
  padding: 2rem;
  background-color: #f2f3ed;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.mySwiper2 .swiper-slide hr {
  margin: 1rem 0;
  border: 1px solid #176b87;
}

@media screen and (max-width: 1210px) {
  .reviews-flex {
    flex-direction: column;
  }
  .reviews-info {
    width: 100%;
  }
  .top-reviews {
    width: 100%;
  }
}
/* ----------reviews---------- */

/* ----------services---------- */
#services {
  width: 100%;
  padding: 5vw;
  color: #052639;
}
#services h2 {
  text-align: center;
  padding-bottom: 5vw;
}

.services-list {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  flex-wrap: wrap;
}

.card {
  margin: 2vh;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 400px;
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease-in-out;
}

.card:hover {
  transform: scale(1.1);
}

.card img {
  width: 100%;
  object-fit: cover;
  height: auto;
  aspect-ratio: 3/2;
}

.card h3 {
  text-align: center;
  padding: 20px;
}

.additionalServices {
  position: absolute;
  display: flex;
  flex-direction: column;
  top: 0;
  max-height: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  overflow: hidden;
  transition: max-height 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border-bottom: 2px solid #f0ebeb;
}
.additionalServices a {
  align-self: center;
}
.expanded {
  max-height: 500px;
}

.additionalServices p {
  padding: 10px 10px 0px;
  font-size: 0.9rem;
}

.card button {
  background-color: transparent;
  border: none;
  padding-bottom: 1rem;
}
.additionalServices a {
  margin: 10px auto;
}

@media screen and (max-width: 375px) {
  .additionalServices p {
    line-height: 1;
  }
}
/* ----------services---------- */

/* -----------contact------------ */
#contact {
  min-height: calc(100vh - 90px);
}
.contact-flex {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 5vw auto;
  width: 95%;
}
.contact-img {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.contact-img img {
  width: 100%;
  height: auto;
  object-fit: cover;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  height: 100%;
  color: #052639;
}

.contact-info i {
  color: #176b87;
}

@media screen and (max-width: 1000px) {
  .contact-flex {
    flex-direction: column;
  }
}

/* -----------contact------------ */
/* ------footer------- */
footer {
  background-color: #176b87;
  color: #f0ebeb;
  width: 100%;
  height: auto;
  padding-top: 1rem;
  margin: auto;
  font-size: 0.94rem;
}

#footer-flex {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  margin-bottom: 3rem;
}
.footer-links {
  text-align: center;
}
footer h4 {
  margin-top: 0.5rem;
}
footer a {
  color: #f0ebeb;
}
footer li {
  margin: 0.7rem 0;
}
footer #btn {
  margin-top: 1rem;
  transition: scale 0.2 ease;
}
#btn:hover {
  scale: 1.05;
}
#btn:active {
  scale: 0.95;
}

#footer-yoltlabs {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

#yoltlabs a:hover {
  color: #e7ca71;
}
@media screen and (max-width: 900px) {
  #footer-flex {
    flex-direction: column;
  }
  #footer-yoltlabs {
    flex-direction: column;
  }
  footer div {
    margin-top: 1.5rem;
  }
}
/* ------footer------- */

/* ---back to top--- */
#myBtn {
  display: none;
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 99;
  border: none;
  outline: none;
  background-color: transparent;
  color: #052639;
  cursor: pointer;
}
/* ---back to top--- */

/* -------classes for animation--------- */
.slide-in-bottom-welcome {
  -webkit-animation: slide-in-bottom-welcome 1s
    cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
  animation: slide-in-bottom-welcome 1s cubic-bezier(0.25, 0.46, 0.45, 0.94)
    both;
}
.slide-in-bottom-navbar {
  -webkit-animation: slide-in-bottom-navbar 1s
    cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
  animation: slide-in-bottom-navbar 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}
.slide-in-bottom {
  -webkit-animation: slide-in-bottom 1s cubic-bezier(0.25, 0.46, 0.45, 0.94)
    both;
  animation: slide-in-bottom 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}
.swing-in-top-fwd {
  -webkit-animation: swing-in-top-fwd 2.5s
    cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
  animation: swing-in-top-fwd 2.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

@-webkit-keyframes slide-in-bottom-welcome {
  0% {
    -webkit-transform: translateY(0);
    transform: translateY(0%);
    opacity: 0;
  }
  100% {
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    opacity: 1;
  }
}
@keyframes slide-in-bottom-welcome {
  0% {
    -webkit-transform: translateY(0);
    transform: translateY(0%);
    opacity: 0;
  }
  100% {
    -webkit-transform: translateY(0);
    transform: translateY(-50%);
    opacity: 1;
  }
}

@-webkit-keyframes slide-in-bottom-navbar {
  0% {
    -webkit-transform: translateY(30px);
    transform: translateY(30px);
    height: 120px;
    opacity: 0;
  }
  100% {
    -webkit-transform: translateY(0px);
    transform: translateY(0px);
    height: 90px;
    opacity: 1;
  }
}
@keyframes slide-in-bottom-navbar {
  0% {
    -webkit-transform: translateY(30px);
    transform: translateY(30px);
    height: 120px;
    opacity: 0;
  }
  100% {
    -webkit-transform: translateY(0);
    transform: translateY(0);
    height: 90px;
    opacity: 1;
  }
}

@-webkit-keyframes slide-in-bottom {
  0% {
    -webkit-transform: translateY(50px);
    transform: translateY(50px);
    opacity: 0;
  }
  100% {
    -webkit-transform: translateY(0px);
    transform: translateY(0px);
    opacity: 1;
  }
}
@keyframes slide-in-bottom {
  0% {
    -webkit-transform: translateY(50px);
    transform: translateY(50px);
    opacity: 0;
  }
  100% {
    -webkit-transform: translateY(0);
    transform: translateY(0);
    opacity: 1;
  }
}

@-webkit-keyframes swing-in-top-fwd {
  0% {
    -webkit-transform: rotateX(-100deg);
    transform: rotateX(-100deg);
    -webkit-transform-origin: top;
    transform-origin: top;
    opacity: 0;
  }
  100% {
    -webkit-transform: rotateX(0deg);
    transform: rotateX(0deg);
    -webkit-transform-origin: top;
    transform-origin: top;
    opacity: 1;
  }
}
@keyframes swing-in-top-fwd {
  0% {
    -webkit-transform: rotateX(-100deg);
    transform: rotateX(-100deg);
    -webkit-transform-origin: top;
    transform-origin: top;
    opacity: 0;
  }
  100% {
    -webkit-transform: rotateX(0deg);
    transform: rotateX(0deg);
    -webkit-transform-origin: top;
    transform-origin: top;
    opacity: 1;
  }
}
