@import url("https://fonts.googleapis.com/css2?family=Fraunces:wght@400;500;600;700&family=Manrope:wght@400;500;600;700&display=swap");
/*GLOBAL RESET*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Fraunces", serif;
}
html {
  font-size: 62.5%;
}

/*REUSABLE COMPONENTS*/
.btn {
  width: 13.3rem;
  height: 5.5rem;
  background-color: #44ffa1;
  color: #24053e;
  border: none;
  font-size: 1.6rem;
  font-weight: 600;
  transition: all 0.3s;
}
.btn:hover {
  background-color: #24053e;
  border: 1px solid #44ffa1;
  color: #44ffa1;
}
.link {
  text-decoration: none;
  color: #fff;
  font-size: 1.6rem;
  font-weight: 500;
  border-bottom: 2px solid #44ffa1;
  padding-bottom: 4px;
  transition: all 0.3s;
}
.link:hover {
  color: #44ffa1;
}
.container {
  max-width: 37.5rem;
}
.margin-auto {
  margin: 0 auto;
}
.centered-text {
  text-align: center;
}

/*HEADER SECTION*/
header {
  position: relative;
  height: 48.1rem;
  overflow: hidden;
  background-color: #fcf8ff;
}
header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #24053e;
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
  transform: scaleX(3);
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2.4rem 1.2rem;
  margin-bottom: 3.2rem;
  z-index: 1;
  position: relative;
}

.header-content {
  z-index: 1;
  position: relative;
}
.main-heading {
  font-size: 4rem;
  color: #fff;
  margin-bottom: 4rem;
  font-family: "Manrope", sans-serif;
}
.underline {
  position: relative;
}

.underline::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translate(-50%);
  width: 15rem;
  height: 3px;
  background-color: #44ffa1;
  display: block;
}
.header-img {
  max-width: 32rem;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 50%);
}

.pattern {
  height: 0;
  visibility: hidden;
}

.header-image-relative-pos {
  position: relative;
  z-index: 1;
}

/*SERVICES SECTION*/
.services-section {
  height: 107rem;
  overflow: hidden;
  position: relative;
  display: flex;

  margin-bottom: 8rem;
}
.services-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fcf8ff;
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
  transform: scaleX(5);
}

.services {
  margin-top: 8rem;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
}

.services-box {
  max-width: 34.3rem;
  z-index: 1;
  padding: 2.4rem;
}
.number-box {
  width: 4.8rem;
  height: 4.8rem;
  border: 1px solid #584d62;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2.4rem;
}
.number {
  font-size: 2rem;
  color: #24053e;
}
.secondary-header {
  font-size: 2.4rem;
  color: #24053e;
  margin-bottom: 1.6rem;
  font-family: "Manrope", sans-serif;
}
.services-text {
  font-size: 1.6rem;
  color: #24053e;
}

/*FOUNDER SECTION*/
.founder-section {
  margin-bottom: 4.8rem;
}
.founder {
  margin-top: 4.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.founder-img {
  max-width: 28.1rem;
}
.founder-content {
  max-width: 34.3rem;
  height: 37.5rem;
  background-color: #24053e;
  margin-top: -5rem;
  text-align: center;
  padding: 3.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
}
.founder-header {
  font-size: 3.2rem;
  color: #fff;
}
.founder-text {
  font-size: 1.6rem;
  color: #fff;
}
.founder .btn {
  width: 20rem;
}
/*FOOTER*/
footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.4rem;
  margin-bottom: 4.8rem;
}
.social-media-links {
  display: flex;
  gap: 2.4rem;
}

/*Tablet*/
@media (max-width: 92rem) and (min-width: 42rem) {
  .container {
    max-width: 76.8rem;
  }

  /*HEADER SECTION*/
  header {
    height: 54rem;
  }
  header::before {
    transform: scaleX(3);
  }
  .main-heading {
    font-size: 6rem;
  }
  .header-img {
    max-width: 51.4rem;
  }
  .header-content {
    max-width: 57.3rem;
    position: relative;
  }
  .underline::after {
    width: 22rem;
    transform: translate(-40%);
  }
  .pattern {
    position: absolute;
  }
  .pattern-right {
    visibility: visible;
    height: 21.5rem;
    max-width: 27rem;
    top: 50%;
    left: 0;
    transform: translate(-50%, -50%);
  }
  .pattern-left {
    visibility: visible;
    height: 11.2rem;
    max-width: 14.1rem;
    top: 50%;
    right: 0;
    transform: translate(50%, -50%);
  }
  /*SERVICES SECTION*/
  .services-section {
    height: 92rem;
  }
  .services {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .services-box {
    display: grid;
    gap: 2.4rem;
    grid-template-columns: auto 1fr 1fr;
    grid-template-rows: repeat(2, auto, 1fr);
    max-width: 57.3rem;
  }
  .number-box {
    grid-column: 1;
    grid-row: 2;
    display: inline-flex;
  }
  .secondary-header {
    grid-column: 2 / -1;
  }
  .services-text {
    grid-column: 2 / -1;
  }
  /*FOUNDER SECTION*/
  .founder {
    flex-direction: row;
  }

  .founder-img {
    align-self: flex-start;
    position: relative;
  }
  .founder-content {
    max-width: 51.4rem;
    align-self: flex-end;
    margin-top: 15rem;
    margin-left: -10rem;
    z-index: 1;
    position: relative;
  }
  .pattern-founder {
    height: 13.7rem;
    max-width: 17.3rem;
    z-index: 2;
    position: absolute;
    bottom: 0;
    right: 0;
    transform: translateY(50%);
    visibility: visible;
  }
}
/*DESKTOP*/
@media (min-width: 93rem) {
  .container {
    /* max-width: 144rem; */
    max-width: 160rem;
  }
  header {
    height: 73rem;
  }
  header::before {
    transform: scaleX(2);
  }
  .main-heading {
    font-size: 6rem;
    margin-bottom: 4.8rem;
  }
  .header-img {
    max-width: 76.7rem;
  }
  .header-content {
    max-width: 63.5rem;
  }
  .underline::after {
    width: 25rem;
    transform: translate(-30%);
  }
  .pattern {
    position: absolute;
  }
  .pattern-right {
    height: 21.5rem;
    max-width: 27rem;
    visibility: visible;
    top: 0;
    left: 0;
    transform: translate(-50%, 50%);
  }
  .pattern-left {
    height: 11.2rem;
    max-width: 14.1rem;
    visibility: visible;
    top: 50%;
    right: 0;
    transform: translate(50%, -50%);
  }
  .services-section {
    display: flex;
    align-items: center;
  }
  .services-section::before {
    transform: scaleX(3);
  }

  .services {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2.8rem;
  }
  .number-box {
    margin-bottom: 5.2rem;
  }
  .secondary-header {
    font-size: 2.4rem;
    margin-bottom: 4.8rem;
  }
  .founder-section {
    margin-bottom: 10rem;
  }
  .founder {
    flex-direction: row;
    align-items: flex-start;
  }
  .founder-img {
    max-width: 47.7rem;
  }
  .founder-content {
    max-width: 73rem;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 5rem;

    margin-top: 20rem;
    margin-left: -10rem;
  }
  .founder-text {
    text-align: left;
    margin-bottom: 4.8rem;
    font-size: 1.8rem;
  }
  .founder-header {
    margin-bottom: 3.2rem;
    font-size: 4.8rem;
  }
}
