@import url("https://fonts.googleapis.com/css2?family=Urbanist:ital,wght@0,100..900;1,100..900&display=swap");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}
section {
  margin: 50px 0;
}
p {
  line-height: 35px;
}
.container-fluid {
  padding: 0 !important;
}
body,
html {
  background-color: #fff;
  font-family: "Urbanist", sans-serif;
  height: 100%;
  overflow-x: hidden;
}
.header-logo {
  width: 200px;
}
.header-line {
  display: block;
  background-color: black;
  height: 2px;
  width: 55%;
  margin: 0 50px;
}
.navbar .nav-item .nav-link {
  margin: 0 20px;
  color: #000000;
  font-family: Urbanist;
  font-weight: 400;
  font-size: 16px;
  line-height: 100%;
  letter-spacing: 0%;
  text-transform: uppercase;
}
.navbar {
  background-color: #ffffff;
  position: relative;
  top: 15px;
  z-index: 2;
}
.main-hero-section {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

/* Background zoom */
.main-hero-section {
  position: relative;
  height: 100vh;
  overflow: hidden;
}
.main-hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: url("../images/banner.webp") no-repeat center center/cover;
  z-index: 1;
  transform: translateZ(0);
  backface-visibility: hidden;
  will-change: transform;
  transform: scale(1);
  animation: zoomIn 3s ease-out forwards;
}
@keyframes zoomIn {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.1);
  }
}

/* Caption positioning */
.hero-caption {
  position: absolute;
  /* top: 50%;
  left: 50%; */
  transform: translate(15%, -50%);
  color: white;
  text-align: center;
  z-index: 1;
  bottom: -80px;
}

/* Reveal animation */
.reveals-wrapper {
  display: inline-block;
  overflow: hidden;
}

.reveals-text {
  opacity: 0;
  transform: translateY(100%);
  display: inline-block;
  animation: revealUp 1s ease-out forwards;
  font-weight: 400;
  font-size: 64px;
}

.reveals-text:nth-of-type(1) {
  animation-delay: 3s; /* wait for zoom */
}
.reveals-text:nth-of-type(2) {
  animation-delay: 3.4s;
}

@keyframes revealUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* .services-card {
  bottom: -140px;
  right: 120px;
  position: absolute;
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  background-color: rgba(255, 255, 255, 0.51);

  transform: translate(15%, -50%);

  border-radius: 10px;
  padding: 20px 30px;
  width: 400px;
  color: #000;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
} */
.services-card {
  position: absolute;
  bottom: -140px;
  right: 120px;
  z-index: 2;
  /* Replacing heavy blur with lighter one (optional) or remove completely */
  backdrop-filter: blur(8px) saturate(150%);
  -webkit-backdrop-filter: blur(8px) saturate(150%);

  /* Slightly less transparent to reduce rendering artifacts */
  background-color: rgba(255, 255, 255, 0.9);

  transform: translateZ(0) translate(15%, -50%);
  backface-visibility: hidden;
  will-change: transform;
  isolation: isolate; /* Prevents bleed from other layers */

  border-radius: 10px;
  padding: 20px 30px;
  width: 400px;
  color: #000;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);

  -webkit-font-smoothing: antialiased;
}

.services-card .services-link {
  margin-bottom: 20px;
  color: #000;
  text-decoration: none;
}
.services-card .services-link h4 {
  border-bottom: 1px solid #787878;
  padding-bottom: 8px;
}
.service-item {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.service-item img {
  width: 50px;
  height: 30px;
  object-fit: cover;
  margin: 0 15px 5px 0;
}

.service-item span {
  font-size: 16px;
  font-weight: 500;
}
/* Card initial hidden state */
.fade-in-card {
  opacity: 0;
  /* transform: translateY(30px); */
  animation: fadeInUp 1.2s ease-out 3.2s forwards; /* match your caption delay */
}

/* Fade and slide animation */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    /* transform: translateY(30px); */
  }
  100% {
    opacity: 1;
    /* transform: translateY(0); */
  }
}

/* button */
.know-more-btn {
  width: 160px;
  display: flex;
  align-items: center;
  background: #f1efef;
  justify-content: space-evenly;
  border-radius: 8px;
  padding: 10px 15px;
  text-decoration: none;
  color: #000;
  font-weight: 500;
  font-size: 16px;
  border: none;
  overflow: hidden;
  float: inline-end;
}

.know-more-btn .text {
  margin-right: 10px;
  color: #000;
}

.arrow-container {
  position: relative;
  background-color: #1e3162;
  border-radius: 6px;
  width: 40px;
  height: 40px;
  overflow: hidden;
}

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: white;
  transition: transform 0.3s ease;
}

.arrow.first {
  left: 50%;
  transform: translate(-50%, -50%);
}

.arrow.second {
  left: -100%;
}

.know-more-btn:hover .arrow.first {
  transform: translate(150%, -50%); /* move out to right */
}

.know-more-btn:hover .arrow.second {
  transform: translate(320%, -50%); /* move in from left */
}
/* how we work */
h3 {
  font-weight: 600;
  font-size: 20px;
  margin-bottom: 30px;
  color: #11351e;
}

.steps-list {
  list-style: none;
  padding: 0;
}

.step-item {
  padding: 20px 0;
  position: relative;
  color: #000;
  transition: all 0.3s ease;
}

.step-item .label {
  position: relative;
  z-index: 2;
  font-size: 18px;
}

.progress-bar-line {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 85%;
  background-color: #eee;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background-color: #11351e;
  transition: width linear;
}

/* .step-item.active .label {
  font-weight: bold;
  color: #11351e;
} */

.image-wrapper {
  position: relative;
}

.work-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

.step-description {
  position: absolute;
  top: 70px;
  right: 110px;
  background-color: #e5ecfa;
  padding: 20px;
  border-radius: 10px;
  max-width: 250px;
  font-size: 16px;
  line-height: 1.7;
  height: 220px;
}

@media (max-width: 768px) {
  .step-description {
    position: static;
    margin-top: 15px;
    max-width: 100%;
  }
}

/* what-we-provide */
.what-we-provide {
  padding: 50px 0;
  background: url(../images/what_we_provide_bg.webp);
  height: 80vh;
}
.nav-tabs {
  margin-top: 50px;
  border-bottom: 1px solid #787878;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 40px 50px;
}
.product-grid p::before {
  content: "•";
  margin-right: 20px;
  margin-left: 20px;
}
.product-grid p {
  display: flex;
  padding: 5px 10px;
  width: 250px;
  background-color: #1b316d;
  border-radius: 5px;
  color: #fff;
}
.nav-tabs .nav-link {
  background: transparent;
  border: none;
  color: #000;
  /* text-transform: uppercase; */
}
.nav-tabs .nav-link.active {
  background-color: transparent;
  color: #000;
  font-weight: 700;
  border-bottom: 2px solid #000;
}

/* why-choose */
.why-choose .content {
  margin-top: 110px;
}

/* contact */
input::placeholder,
textarea::placeholder {
  color: #000000;
  font-size: 16px;
}
input,
textarea {
  border: none;
  width: 100%;
  background-color: transparent;
  padding: 8px 22px;
  color: #000;
  font-size: 14px;
  border-bottom: 1px solid #000000;
  display: block;
  margin: 15px auto;
  /* border-radius: 10px; */
}
input:focus-visible,
textarea:focus-visible {
  outline: none;
}
.contact-form #contact .form-group label.error {
  color: red;
  margin-top: 5px;
  margin-bottom: 0;
  font-weight: 500;
  font-size: 13px;
}
.contact .contact-form #error,
.contact .contact-form #success {
  display: none;
  float: left;
}
.contact .contact-form #error {
  background: red;
  color: #fff;
}
.contact .contact-form #success {
  background: green;
  color: #fff;
}
.contact .contact-form .alert {
  border: none;
  border-radius: 0;
  padding: 20px 30px;
}
.contact {
  /* padding: 50px; */
  /* background-color: #f2f2f2; */
  /* width: 85%; */
  /* margin: 0 auto; */
  /* border-radius: 20px; */
}
.submit-btn {
  background-color: #284161;
  border-radius: 22px;
  width: 140px;
  margin-top: 50px !important;
  color: #fff;
  margin: 20px auto;
  display: block;
}
.submit-btn:hover {
  background-color: #395983;
  color: #fff;
}
#section-contact {
  background-color: #d5dcef;
  padding: 50px 0;
}
#footer {
  background-color: #1b316d;
  border-bottom: 5px solid #eab818;
}

.footer {
  color: #d4ebf2; /* light text */
  padding: 40px 20px 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
}

.footer-logo-slogan {
  flex: 1 1 300px;
  margin-bottom: 20px;
}

.footer-logo-slogan img {
  width: 80px;
  margin-top: 20px;
}

.footer-logo-slogan h2 {
  font-size: 39px;
  font-weight: 300;
  line-height: 1.4;
  color: #eaf7ff;
}
.copyright-wrapper {
  flex: 0 1 400px !important;
}
.footer-section {
  flex: 0 1 250px;
  margin-bottom: 20px;
}

.footer-section h4 {
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 15px;
  color: #ffffff;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section li {
  margin-bottom: 8px;
  font-size: 15px;
  color: #e0e0e0;
}

.footer-section li a {
  color: inherit;
  text-decoration: none;
}

.copyright {
  width: 100%;

  /* text-align: right; */
  padding-top: 57px;
  font-size: 12px;
  color: #bbb;
}
hr {
  background-color: red;
  height: 2px;
  display: block;
}

@media only screen and (max-width: 768px) {
  .header-line {
    display: none;
  }
  .hero-caption {
    transform: translate(0%, -100%);

    /* top: 240px; */
  }
  .reveals-text {
    font-size: 40px;
  }
  .main-hero-section {
    height: 70vh;
  }
  .services-card {
    display: none;
  }
  .what-we-provide {
    height: max-content;
  }
  .nav-tabs {
    justify-content: center;
  }
  .product-grid {
    justify-items: center;
  }
  .why-choose img {
    margin: 0 auto;
    display: block;
  }
  .why-choose .content {
    margin-top: 10px;
  }
  .footer {
    text-align: center;
    justify-content: center;
  }
}
@media (min-width: 769px) and (max-width: 992px) {
  .header-logo {
    width: 100%;
  }
  .hero-caption {
    transform: translate(10%, -50%);
    top: 40%;
    bottom: auto;
  }
  .nav-tabs {
    justify-content: space-evenly;
  }

  .why-choose img {
    margin: 0 auto;
    display: block;
  }
  .why-choose .content {
    margin-top: 10px;
  }
  .footer-section {
    flex: 0 1 175px;
  }
  .footer-logo-slogan h2 {
    font-size: 28px;
  }
}
#back-to-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #ff9800;
  color: #fff;
  font-size: 24px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  position: fixed;
  bottom: 30px;
  right: 30px;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease, visibility 0.5s ease,
    background-color 0.3s ease;
  z-index: 1000;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

#back-to-top:hover {
  background-color: #333;
  cursor: pointer;
}

#back-to-top:active {
  background-color: #555;
}

#back-to-top.show {
  opacity: 1;
  visibility: visible;
}
.fade-up {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease-out;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

#about {
  margin: 100px 0;
}
.g-recaptcha {
  margin: 30px 0;
}

@media (min-width: 993px) and (max-width: 1400px) {
  .reveals-text {
    font-size: 50px;
  }
  .services-card {
    right: 70px;
    width: 350px;
  }
  .step-description {
    top: 15px;

    max-width: 250px;
  }
  .what-we-provide {
    height: max-content;
  }
}

@media only screen and (max-width: 1200px) {
  .footer {
    display: block;
    text-align: center;
  }
}
