@import url('./reset.css');
@import url('./main.css');

/* Start Welcome */

.welcome__content {
  width: 100% !important;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}
.welcome__content p:nth-of-type(2) {
  height: calc(50rem / 16);
}
@media (min-width: 576px) {
  .welcome__content p:nth-of-type(2) {
    height: calc(100rem / 16);
  }
}
.welcome__content p:first-of-type,
.welcome__content p:nth-of-type(2),
.welcome__content span {
  font-size: var(--font-h1);
  font-weight: 700;
  color: var(--text-color);
  text-wrap: nowrap;
}

.welcome__content p:last-of-type {
  color: var(--text-color);
  opacity: 0.8;
  max-width: calc(700rem / 16);
  margin: auto;
}

.welcome__content a {
  padding: calc(15rem / 16) calc(40rem / 16);
}

#word {
  display: inline-block;
}

.letter {
  color: var(--sec-color) !important;
  display: inline-block;
  border-bottom: 3px solid var(--sec-color); /* underline for each letter */
  animation: smoothPop 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

@keyframes smoothPop {
  from {
    opacity: 0;
    transform: translateX(-6px);
    border-bottom-width: 0; /* start with no underline */
  }
  to {
    opacity: 1;
    transform: translateX(0);
    border-bottom-width: 3px; /* full underline */
  }
}

.welcome__statistics {
  padding-bottom: calc(50rem / 16);
  color: var(--text-color);
}

.numbers p:first-of-type {
  font-size: var(--font-h4);
  font-weight: 700;
}
.numbers p:last-of-type {
  font-weight: 700;
}

/* End Welcome */

/* Start About */
.about .about__card {
  max-width: calc(900rem / 16);
  box-shadow: 0px 1.5px 17.2px 5.26px #00000026;
  border-radius: calc(30rem / 16);
}

.about .about__card--more {
  background-color: #f3f4f9;
}

.about .about__card--more .navigate {
  background-color: var(--text-color);
  color: var(--primary-color);
}

.about .card__content {
  flex-basis: 0;
  flex-grow: 1;
}
.about .about__image {
  position: relative;
}
.about .rec {
  width: calc(150rem / 16);
  height: calc(150rem / 16);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.4;
  border-radius: calc(30rem / 16);
}
.about img {
  width: calc(300rem / 16);
}
/* End About */

/* Start Mission */
.mission {
  background-color: #f6f9fc;
}
.mission .mission__content {
  max-width: calc(750rem / 16);
  padding: calc(50rem / 16);
}
.mission .vission__content {
  max-width: calc(900rem / 16);
  padding: calc(50rem / 16);
}
.mission p {
  line-height: calc(30rem / 16);
}
/* End Mission */

/* Start Partners */
.partners .swiper {
  /* GPU acceleration for smooth scrolling */
  transform: translateZ(0);
  will-change: transform;
  backface-visibility: hidden;
  perspective: 1000px;
}

.partners .swiper-wrapper {
  /* Optimize for smooth transitions */
  transform: translateZ(0);
  will-change: transform;
  transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.partners .swiper-slide {
  /* Hardware acceleration for slides */
  transform: translateZ(0);
  will-change: transform;
  backface-visibility: hidden;
}

.partners img {
  width: calc(80rem / 16);
  opacity: 0.5;
  transition: all 0.3s ease-in-out;
  cursor: pointer;
  /* GPU acceleration */
  transform: translateZ(0);
  will-change: opacity, transform;
}
.partners img:hover {
  opacity: 1;
}
/* End Partners */

/* Start Reasons */
.reasons .content p:first-of-type {
  font-weight: 700;
  font-size: var(--font-medium);
}
.reasons .content p:last-of-type {
  font-size: var(--font-small);
  color: var(--muted-color);
  line-height: calc(25rem / 16);
}
.reasons .content span {
  color: var(--primary-color);
  font-weight: 700;
  font-size: var(--font-medium);
}
/* End Reasons */

/* Start Services */
.services {
  display: block;
}
.services .container > span {
  display: block;
  width: fit-content;
  margin: auto;
  background-color: var(--sec-color);
  font-size: var(--font-medium);
  font-weight: 500;
  padding: calc(5rem / 16);
  border-radius: calc(10rem / 16);
}
.services .container > p {
  display: block;
  width: fit-content;
  margin: auto;
  font-size: var(--font-medium);
  span {
    font-size: var(--font-medium);
    color: var(--sec-color);
  }
}
.services .services__container div {
  height: calc(440rem / 16);
  width: calc(350rem / 16);
  position: relative;
}
.services .services__container div div {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: end;
  padding: calc(30rem / 16);
  border-radius: calc(30rem / 16);
}
.services .services__container div:hover div:first-of-type {
  display: none;
}
.services .services__container div:hover div:last-of-type {
  display: flex;
}
.services .services__container div div:first-of-type {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 0%,
    #f2f2ff 77.66%
  );
  box-shadow: 0px 4px 14.2px 6px #090af033;
}
.services .services__container div div:last-of-type {
  display: none;
  background: linear-gradient(
    180deg,
    rgba(9, 10, 240, 0) -18.14%,
    #090af0 77.66%
  );
  color: var(--text-color);
}
.services .services__container div div:last-of-type span {
  /* margin-left: calc(-60rem / 16); */
}
.services .services__container div div:last-of-type a {
  display: inline-block;
  text-decoration: none;
  margin-bottom: calc(8rem / 16);
}
.services .services__container div div:last-of-type > a {
  color: var(--primary-color);
  background-color: var(--text-color);
}
/* End Services */

/* Start Tech */
.tech .swiper {
  /* GPU acceleration for smooth scrolling */
  transform: translateZ(0);
  will-change: transform;
  backface-visibility: hidden;
  perspective: 1000px;
}

.tech .swiper-wrapper {
  /* Optimize for smooth transitions */
  transform: translateZ(0);
  will-change: transform;
  transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.tech .swiper-slide {
  /* Hardware acceleration for slides */
  transform: translateZ(0);
  will-change: transform;
  backface-visibility: hidden;
}

.tech .tech-item {
  width: calc(90rem / 16);
  height: calc(90rem / 16);
  border-radius: calc(10rem / 16);
  box-shadow: 0px 1.15px 8.04px 1.15px #00000033;
  display: grid;
  place-items: center;
  transition: all 0.3s ease-in-out;
  cursor: pointer;
  /* GPU acceleration */
  transform: translateZ(0);
  will-change: transform, box-shadow;
}
.tech img {
  width: calc(50rem / 16);
  filter: grayscale(100%);
  opacity: 0.5;
  transition: all 0.3s ease-in-out;
  /* GPU acceleration */
  transform: translateZ(0);
  will-change: filter, opacity;
}
.tech .tech-item:hover {
  box-shadow: 0px 1.15px 8.6px 4px #1293ec66;
}
.tech .tech-item:hover img {
  filter: grayscale(0%);
  opacity: 1;
}
/* End Tech */

/* Responsive Welcome Section */
@media (max-width: 768px) {
  .welcome__statistics img {
    width: calc(20rem / 16);
  }
  .welcome__statistics .numbers p:last-of-type {
    font-size: var(--font-mini);
  }
}

@media (max-width: 576px) {
  .welcome__content p:first-of-type {
    font-size: var(--font-h3);
  }
  .welcome__content p:nth-of-type(2),
  .welcome__content span {
    font-size: var(--font-h4);
  }

  .numbers p:last-of-type {
    font-size: var(--font-mini);
  }
}

/* Responsive About Section */
@media (max-width: 992px) {
  .about .about__card {
    flex-direction: column;
    text-align: center;
    max-width: 90%;
  }

  .about .about__image {
    order: -1;
    margin-bottom: calc(20rem / 16);
  }

  .about img {
    width: calc(250rem / 16);
  }

  .about .rec {
    width: calc(120rem / 16);
    height: calc(120rem / 16);
  }
}

@media (max-width: 576px) {
  .about .about__card {
    padding: calc(20rem / 16) !important;
    margin: 0 calc(20rem / 16);
  }

  .about img {
    width: calc(200rem / 16);
  }

  .about .rec {
    width: calc(100rem / 16);
    height: calc(100rem / 16);
  }

  .about .section__title {
    font-size: var(--font-h4);
  }
}

/* Responsive Mission Section */
@media (max-width: 992px) {
  .mission__container img {
    max-width: calc(250rem / 16);
    min-height: calc(600rem / 16);
    margin-bottom: calc(30rem / 16);
  }

  .mission__container > div:last-child {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .mission__container img {
    display: none;
  }
}

/* Responsive Services Section */
@media (max-width: 992px) {
  .services {
    display: none;
  }
}

/* Responsive Reasons Section */
@media (max-width: 768px) {
  .reasons .row {
    flex-direction: column;
  }

  .reasons .col-6 {
    width: 100%;
    margin-bottom: calc(30rem / 16);
  }

  .reasons .d-flex {
    flex-direction: column;
    text-align: center;
    align-items: center !important;
  }

  .reasons .d-flex img {
    margin-bottom: calc(15rem / 16);
  }
}

@media (max-width: 576px) {
  .reasons .container {
    padding: 0 calc(20rem / 16);
  }

  .reasons .col-6 {
    margin-bottom: calc(20rem / 16);
  }
}

/* Responsive Partners Section */
@media (max-width: 768px) {
  .partners .container {
    padding: 0 calc(20rem / 16);
  }

  .partners .section__header {
    text-align: center;
    padding: 0 calc(20rem / 16);
  }

  .partners img {
    width: calc(60rem / 16);
  }
}

@media (max-width: 576px) {
  .partners img {
    width: calc(50rem / 16);
  }
}

/* Responsive Tech Section */
@media (max-width: 768px) {
  .tech .container {
    padding: 0 calc(20rem / 16);
  }

  .tech .section__header {
    text-align: center;
    padding: 0 calc(20rem / 16);
  }

  .tech .tech-item {
    width: calc(70rem / 16);
    height: calc(70rem / 16);
  }

  .tech img {
    width: calc(35rem / 16);
  }
}

@media (max-width: 576px) {
  .tech .tech-item {
    width: calc(60rem / 16);
    height: calc(60rem / 16);
  }

  .tech img {
    width: calc(30rem / 16);
  }
}

/* General Responsive Improvements */
@media (max-width: 768px) {
  .section-padding {
    margin: calc(60rem / 16) 0;
  }

  .section__header {
    font-size: var(--font-h3);
    padding: 0 calc(20rem / 16);
  }

  .section__header span {
    font-size: var(--font-h3);
  }
}

@media (max-width: 576px) {
  .section-padding {
    margin: calc(40rem / 16) 0;
  }

  .section__header {
    font-size: var(--font-h4);
  }

  .section__header span {
    font-size: var(--font-h4);
  }

  body.menu-open {
    overflow: hidden;
  }
}
