/* =============== MAIN =============== */
:root {
  --sec-bg: #f9fafb;
}
section {
  padding: 60px 0;
  scroll-margin-top: 76px; 
}
section h2 {
  text-align: center;
  font-size: 30px;
  margin-bottom: 40px;
  line-height: 44px;
  color: #222;
  font-weight: 400;
}
section:last-child {
  margin-bottom: 30px;
}

/* =============== Hero =============== */
.hero {
  padding: 80px 0 120px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  bottom: -35px;
  background-image: url(/assets/images/circuit.webp);
  background-position: bottom;
  background-repeat: repeat-x;
  opacity: .4;
}
.hero .container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  position: relative;
}
.hero h1 {
  color: var(--color-primary);
  font-size: 36px;
  font-weight: 600;
  margin: 0 auto 18px;
  line-height: 1.6;
  max-width: 350px;
  text-align: center;
}
.hero p {
  font-size: 20px;
  line-height: 1.6;
  color: var(--color-primary);
  max-width: 450px;
  margin: 0 auto;
}
.hero .btn-contact {
  margin: 34px auto 0;
  text-decoration: none;
  align-items: center;
  background-image: linear-gradient(180deg, var(--color-primary), rgba(47, 102, 142, 0.8), #ffffff);
  color: #fff;
  font-size: 18px;
  font-weight: 400;
  padding: 12px 24px;
  border-radius: 50px;
  width: fit-content;
  transition-duration: .3s;
}
.hero .btn-contact:hover {
  background-color: var(--color-primary);
}
@media (width > 768px) {
  .hero {
    padding: 90px 0 120px;
  }
  .hero h1 {
    font-size: 38px;
    max-width: 100%;
    margin-bottom: 20px;
  }
  .hero p {
    font-size: 22px;
    line-height: 1.8;
    max-width: 620px;
  }
  .hero .btn-contact {
    margin-top: 40px;
    font-size: 20px;
    padding: 16px 32px;
  }
}
@media (768px < width < 1024px) {
  .hero::before {
    bottom: -60px;
  }
}
@media (width > 1024px) {
  .hero {
    padding: 120px 0 170px;
  }
  .hero h1 {
    font-size: 50px;
    margin-bottom: 26px;
    line-height: 1.6;
  }
  .hero p {
    font-size: 26px;
    max-width: 750px;
  }
  .hero .btn-contact {
    margin: 52px auto 0;
    font-size: 22px;
    padding: 18px 42px;
  }
}

/* =============== Services =============== */
.services {
  background-color: var(--sec-bg);
}
.services .wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 32px;
  justify-content: center;
}
.services .service {
  max-width: 450px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  background-color: #fff;
  overflow: hidden;
  border-radius: 8px;
  transition-duration: .3s;
}
.service .header-link {
  position: relative;
  text-decoration: none;
}
.service .header-link::after {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  background: #000;
  opacity: .2;
  height: 190px;
  width: 100%;
  transition-duration: .3s;
}
.services .service:hover .header-link::after {
  opacity: .1;
}
.services img {
  display: block;
  height: 190px;
  object-fit: cover;
  width: 100%;
}
.service h3 {
  padding: 10px 0;
  text-align: center;
  text-decoration: none;
  font-weight: 500;
  color: #fff;
  background-color: hsla(205, 34%, 46%, 0.9);
  position: absolute;
  bottom: 0;
  width: 100%;
  z-index: 1;
}
.service .info-wrap {
  padding: 16px 24px 24px;
  border: 1px solid #ccc;
  border-top: none;
  overflow: hidden;
  border-radius: 0 0 8px 8px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.service p {
  line-height: 1.6;
  color: #333;
}
.service .info-link {
  color: rgb(46, 77, 87);
  text-decoration: none;
  transition-duration: .3s;
  margin-top: 12px;
  display: flex;
  align-items: center;
  width: fit-content;
}
.service .info-link:hover {
  opacity: .75;
}
.service .info-link i {
  font-size: 14px;
  margin-inline-start: 5px;
  transition-duration: .3s;
  margin-top: 3px;
}
.service .info-link:hover i {
  margin-inline-start: 8px;
}

/* =============== Clients =============== */
.clients .container {
  -webkit-mask: linear-gradient(90deg, transparent, white 10%, white 90%, transparent);
  mask: linear-gradient(90deg, transparent, white 10%, white 90%, transparent);
  overflow: hidden;
}
.clients .swiper-wrapper {
  transition-timing-function: linear !important;
  align-items: center;
}

/* =============== Why Us =============== */
.why-us {
  background-color: var(--sec-bg);
}
.why-us .wrapper {
  display: grid;
  gap: 44px;
  justify-content: center;
}
.why-us .feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 480px;
}
.why-us img {
  width: 95px;
  color: #333333d2;
}
.why-us h3 {
  font-size: 22px;
  font-weight: 500;
  color: var(--color-primary);
  margin: 20px 0 16px;
}
.why-us p {
  font-size: 16px;
  line-height: 1.6;
  color: #333;
}
@media (width > 768px) {
  .why-us .wrapper {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (width > 1024px) {
  .why-us .wrapper {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* =============== Statistics =============== */
.stats .wrapper {
  display: flex;
  row-gap: 44px;
  flex-wrap: wrap;
}
.stats .box {
  margin: 0 auto;
  text-align: center;
  flex-basis: 50%;
  min-width: 175px;
}
.stats header {
  font-size: 46px;
  margin-bottom: 16px;
}
.stats .num {
  font-weight: 200;
}
.stats h3 {
  font-weight: 500;
  font-size: 22px;
  color: #333;
  line-height: 1.4;
}
.stats .letter {
  color: var(--color-primary);
}
@media (width > 768px) {
  .stats .box {
    flex-basis: 25%;
  }
}

/* =============== Testimonials =============== */
.testimonials {
  background-color: var(--sec-bg);

}
.testimonials-swiper {
  overflow: hidden;
}
.testimonials header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}
.testimonials h2 {
  text-align: start;
  margin-bottom: 0;
}
.testimonials-swiper .nav-arws {
  display: flex;
  gap: 8px;
}
.testimonials-swiper .nav-arws div {
  position: initial;
  height: 36px;
  width: 36px;
  margin-top: initial;
  margin-top: 0;
  border: 1px solid #ccc;
}
.testimonials-swiper .nav-arws svg {
  width: 20px;
  height: 20px;
  color: #333;
}
.testimonial {
  border: 1px solid #f1f1f1;
  background-color: #fefefe;
  padding: 24px;
  display: flex;
  flex-direction: column;
  height: auto;
}
.testimonials h3 {
  margin-bottom: 18px;
  color: var(--color-primary);
  font-size: 22px;
  font-weight: 500;

}
.testimonials .rate {
  margin-bottom: 18px;
}
.testimonials .rate i {
  color: #ffc107;
}
.testimonials p {
  color: #333;
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
}
.testimonials .info {
  display: flex;
  align-items: center;
  gap: 16px;
}
.testimonials .client-avatar {
  width: 65px;
  border-radius: 50%;
  border: 1px solid #eee;
  opacity: .9;
}
.testimonials .name {
  font-weight: 400;
  margin-bottom: 6px;

}
.testimonials .role {
  font-size: 13px;
  color: #666;
}

/* =============== FAQs =============== */
.faq-wrap {
  overflow: hidden;
  border-bottom: 1px solid #c1c1c1;
  max-width: 950px;
  margin: 0 auto;
}
.faq-item + .faq-item .faq-header {
  box-shadow: inset 0 1px 0 #c1c1c1;
}
.faq-header {
  padding: 20px 0;
  background-color: transparent;
  width: 100%;
  border: none;
  text-align: start;
  font-size: 17px;
  cursor: pointer;
  position: relative;
  color: #212529;
  padding-left: 28px;
  line-height: 1.5;
}
.faq-header.active {
  color: var(--color-primary);
}
.faq-header::before,
.faq-header::after {
  content: "";
  position: absolute;
  right: calc(100% - 28px);
  top: 50%;
  width: 14px;
  height: 2px;
  background: #212529;
  border-radius: 1px;
  transform-origin: center;
  transition: transform .35s ease;
}
.faq-header::before {
  transform: translate(-50%, -50%) rotate(0deg);
}
.faq-header::after {
  transform: translate(-50%, -50%) rotate(-90deg);
}
.faq-header.active::after {
  transform: translate(-50%, -50%) rotate(0deg);
}
.faq-header.active::before,
.faq-header.active::after {
  background: var(--color-primary);
}
.faq-body {
  height: 0;
  overflow: hidden;
  transition: height .35s ease;
}
.faq-content {
  padding-bottom: 18px;
  color: #333;
  line-height: 1.5;
}
@media (width > 992px) {
.faq-header {
    font-size: 18px;
  }
}