* {
  margin: 0;
  padding: 0;
  transition: 0.3s linear;
  font-family: "Playfair Display", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important;
}
html,
body {
  overflow-x: hidden;
  scroll-behavior: smooth;
}
:root {
  --text-color: rgb(44, 55, 72);
  --white-color: #fff;
  --main-color: #2e96d6;
}

section {
  padding: 3rem 0rem;
}

p {
  color: #676767;
  font-size: 16px;
  font-weight: 500;
}
.section-title {
  font-size: 45px;
  font-weight: 600;
  line-height: normal;
  color: var(--text-color);
  text-shadow: 0px 3px 4px rgba(0, 0, 0, 0.16);
}

.blue-color {
  color: var(--main-color);
}
.small-heading {
  font-size: 22px;
  font-weight: 500;
  line-height: normal;
  padding: 0;
}

.main-btn {
  display: inline-block;
  width: 12rem;
  text-align: center;
  padding: 1rem;
  background-color: var(--main-color);
  text-decoration: none;
  color: var(--white-color);
  font-weight: 600;
  font-size: 18px;
  border-radius: 5px;
  border: 1px solid var(--main-color);
}

.main-btn:hover {
  background-color: var(--text-color);
  color: var(--white-color);
  border: 1px solid var(--text-color);
}
/* ========= main-section ========== */
.main-section {
  background-image: url(images/main-section-banner.png);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  height: 100vh;
  position: relative;
}

/* ============ nav-bar ============ */
.main-section .navbar {
  position: absolute;
  top: 3%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  background-color: var(--white-color);
  border-radius: 10px;
  z-index: 9999;
}

.main-section .navbar .navbar-brand img {
  max-width: 260px;
}

.main-section .navbar .nav-link {
  color: var(--text-color);
  font-size: 17px;
  font-weight: 600;
  line-height: normal;
  margin: 0 0.5rem;
  text-transform: capitalize;
}
.navbar-toggler:focus,
.navbar-toggler {
  border: none;
  outline: none;
  box-shadow: 0 0 0;
}
.main-section .navbar .nav-link:hover,
.main-section .navbar .nav-link.active {
  color: var(--main-color);
}

/* =========== home-section-content ============== */
.main-section .home-section-content {
  margin-top: 10rem;
}

.main-section .home-section-content .small-heading {
  color: var(--white-color);
  border-radius: 50px;
  margin-left: 1rem;
  animation: animate 2s linear infinite;
}

@keyframes animate {
  0% {
    transform: translateX(0.2rem);
  }
  50% {
    transform: translateX(-0.2rem);
  }
  100% {
    transform: translateX(0.2rem);
  }
}
.main-section .home-section-content .main-section-heading {
  font-size: 65px;
  color: var(--white-color);
  font-weight: 600;
  display: inline-block;
}

.main-section .home-section-content .main-section-heading span {
  display: inline-block;
  opacity: 0; /* Initially hide each word */
  transform: translateX(-100%); /* Move each word off-screen to the left */
  animation: word-animate 0.5s ease-out forwards;
}

.main-section .home-section-content .main-section-heading span:nth-child(1) {
  animation-delay: 0.5s;
}
.main-section .home-section-content .main-section-heading span:nth-child(2) {
  animation-delay: 1s;
}
.main-section .home-section-content .main-section-heading span:nth-child(3) {
  animation-delay: 1.5s; /* Delay for the third word */
}
.main-section .home-section-content .main-section-heading span:nth-child(4) {
  animation-delay: 2s;
}
.main-section .home-section-content .main-section-heading span:nth-child(5) {
  animation-delay: 2.5s;
}

@keyframes word-animate {
  0% {
    opacity: 0;
    transform: translateX(-100%);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.main-section .btn-2 {
  background-color: var(--white-color);
  color: var(--text-color);
  border: none;
}
.main-section .btn-2:hover {
  background-color: var(--text-color);
  color: var(--white-color);
}

.main-section .home-social-media {
  position: fixed;
  right: 2%;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8));
  padding: 0.7rem;
  border-radius: 5px;
  z-index: 999;
}
.main-section .home-social-media a {
  display: block;
  line-height: 2.2rem;
  color: var(--white-color);
}
.main-section .home-social-media a:hover {
  color: var(--main-color);
}
/* ============= services-section ============== */
.service-section {
  background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url(images/service-bg.jpeg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
}
.service-section .col-md-6 .card {
  padding: 3rem 2rem;
  border: none;
}

.service-section .col-md-6 h5 {
  font-size: 22px;
  font-weight: 600;
  color: var(--main-color);
}

/* ============ introduction-section  ============== */
.introduction-section .img {
  border-radius: 5px;
  margin-left: 0;
  padding: 0;
  border: none;
  width: auto !important;
}

.introduction-section .img-2 {
  height: 530px;
  object-fit: cover;
  object-position: center;
}
.introduction-section .logo-img {
  width: 45px;
  height: 35px;
  padding: 2px;
  margin-left: 15px;
  border: 1px solid gainsboro;
}
.introduction-section h5 {
  color: black;
  font-size: 18px;
  font-weight: 400;
}
.introduction-section h2 {
  font-size: 35px;
  font-weight: 500;
}

.introduction-section .common-box {
  position: relative;
}

.introduction-section .common-box img {
  width: 60px;
  height: 50px;
  position: absolute;
  top: 0px;
  right: 0px;
  border: 1px solid gainsboro;
  padding: 0.2rem;
}

/* =============== team-section =============== */
.skills-section .card {
  border: none;
  border: 1px solid rgb(220, 220, 220);
  padding: 2rem;
  height: 250px;
}

.skills-section .card h4 {
  color: var(--main-color);
  font-size: 18px;
  font-weight: 600;
}

.contact-us h6,
.skills-section h6 {
  font-size: 16px;
  font-weight: 600;
  text-align: center;
}

/* ============== contact-us ============ */
.contact-us form {
  background-color: var(--main-color);
  border-radius: 5px;
}
.contact-us form input,
.contact-us form textarea {
  width: 100%;
  padding: 0.7rem 0.5rem;
  outline: none;
  box-sizing: 0 0 0;
  font-size: 15px;
  font-weight: 500;
  color: rgb(106, 106, 106);
  border: none;
  border-radius: 3px;
}

.contact-us h6 {
  text-align: left;
  margin-bottom: 1rem;
  color: var(--white-color);
}

.contact-us .detail-info {
  background-color: var(--main-color);
  width: 80%;
  margin: auto;
  margin-top: -8rem;
  border-radius: 20px;
}

.contact-us .detail-info .center-box {
  border-left: 1px solid var(--white-color);
  border-right: 1px solid var(--white-color);
}
.contact-us .detail-info .col-md-4 {
  position: relative;
  padding-top: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.contact-us .icon {
  background-color: var(--main-color);
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  border-radius: 50px;
  position: absolute;
  top: -35px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0 auto 1rem auto;
}

.contact-us .icon img {
  width: 40px;
}

.contact-us .main-btn {
  background-color: var(--text-color);
  border: 1px solid var(--text-color);
}

.contact-us .main-btn:hover {
  background-color: var(--white-color);
  border: 1px solid var(--white-color);
  color: var(--text-color);
}

/* ============ footer ============ */
footer ul li {
  padding: 0.2rem 0rem;
  list-style-type: circle !important;
  color: var(--white-color);
  font-size: 20px;
}

footer ul li a {
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  color: var(--white-color);
  margin-left: 0.6rem;
}

footer ul li a:hover {
  color: var(--main-color);
}

footer .social-media a {
  text-decoration: none;
}

footer .last-row {
  border-top: 1px solid rgb(59, 59, 59);
}

@media (max-width: 768px) {
  .contact-us .detail-info .col-md-4 {
    height: 200px;
    background-color: var(--main-color);
    border-radius: 10px;
  }
  .contact-us .detail-info {
    background-color: transparent;
    margin-top: 0rem;
  }
  .contact-us .detail-info .center-box {
    border-left: 0px solid var(--white-color);
    border-right: 0px solid var(--white-color);
    margin-top: 4rem;
    margin-bottom: 4rem;
  }
  .main-section .home-section-content {
    margin-top: 18rem;
  }
  .main-section .home-section-content .main-section-heading {
    font-size: 40px;
    font-weight: 500;
  }

  .section-title {
    font-size: 30px;
    font-weight: 500;
  }

  .small-heading {
    font-size: 18px;
    font-weight: 500;
  }
  .main-section .navbar {
    width: 90%;
  }
  .btn-2 {
    display: none;
  }

  .introduction-section .img {
    height: auto !important;
  }
  .main-section .navbar .navbar-brand img {
    max-width: 200px;
  }
  .main-section {
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
      url(images/main-section-banner.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position-x: 90%;
    height: 100vh;
    position: relative;
  }
}

#button {
  background-color: var(--main-color);
  width: 50px;
  height: 50px;
  line-height: 50px;
  text-align: center;
  border-radius: 50%;
  position: fixed;
  bottom: 30px;
  right: 30px;
  transition: background-color 1s ease-in-out, opacity 1s ease-in-out,
    transform 1s ease-in-out, visibility 1s ease-in-out;
  opacity: 0;
  visibility: hidden;
  z-index: 1000;
  transform: translateY(100px) scale(0); /* Start from below */
  color: var(--white-color);
  font-size: 25px;
}

#button:hover {
  cursor: pointer;
  background-color: var(--text-color);
}

#button:active {
  background-color: #555;
}

#button.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1); /* Move up and scale to full size */
}
