@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap");
:root {
  --light-violet: #666ca3;
  --dark-violet: #13183f;
  --gray: #83869a;
  --dark-pink: #f74780;
  --light-pink: #ffa7c3;
  --white: #ffffff;
}

/*GLOBAL RESET*/
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}
body {
  font-family: "Plus Jakarta Sans", sans-serif;
  overflow-x: hidden;
  background: linear-gradient(to bottom, #ffffff 0%, #f0f1ff 100%);
}
html {
  font-size: 62.5%;
}

/*RE-USABLE COMPONENTS */
.conteiner {
  max-width: 34.3rem;
  margin: 0 auto;
}
.flex-conteiner {
  display: flex;
}
.flex-container-space {
  justify-content: space-between;
  align-items: center;
}
.responsive-flex-conteiner {
  flex-direction: column;
  gap: 3.2rem;
}
.flex-wrap {
  flex-wrap: wrap;
}
.img {
  max-width: 100%;
}
.margin-bottom {
  margin-bottom: 3.2rem;
}

.margin-top {
  margin-top: 3.2rem;
}
.main-heading {
  font-size: 4rem;
  color: var(--dark-violet);
}
.secondary-header {
  font-size: 2rem;
  font-weight: 900;
  color: var(--dark-violet);
}
.services-card:first-child .secondary-header {
  color: var(--white);
}
.text {
  font-size: 1.6rem;
  line-height: 1.8;
  color: var(--gray);
}
.btn {
  padding: 1.2rem 2.4rem;
  border: none;
  border-radius: 2.4rem;
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--white);
  transition: all 0.3s;
}

.btn-top-nav:hover {
  background-color: var(--light-violet);
}
.btn-header:hover {
  opacity: 0.5;
}
.btn-bottom-nav {
  background: linear-gradient(#4851ff, #f02aa6);
  transition: all 0.3s;
}
.btn-bottom-nav:hover {
  opacity: 0.5;
}
.link:link,
.link:visited {
  font-size: 1.8rem;
  text-decoration: none;
  color: var(--dark-pink);
  transition: all 0.3s;
}
.link:hover,
.link:active {
  opacity: 0.5;
}
.footer {
  width: 100%;
}

/*HEADER*/
.logo {
  max-width: 8.9rem;
}
.btn-top-nav {
  background-color: var(--dark-violet);
}
.btn-header {
  align-self: flex-start;
  background: linear-gradient(#ff6f48, #f02aa6);
}

.header-img-box {
  background: url(assets/image-hero-mobile.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
  width: 100%;
  height: 34rem;
}

/*SERVICES SECTION*/
.services-card {
  width: 34.3rem;
  padding: 4.8rem 2.4rem;
  background-color: var(--white);
  border-radius: 2.4rem;
  position: relative;
}
.services-card:first-child {
  background: linear-gradient(to bottom, #ff6f48, #f02aa6);
  height: 12rem;
  color: var(--white);
  padding-top: 3.2rem;
}
.services-icon {
  position: absolute;
  top: 0;
  transform: translate(0, -50%);
}
.services-section {
  align-items: center;
  gap: 5.2rem;
}

.footer {
  background-color: var(--dark-violet);
  padding: 2.4rem 0;
}

/*TABLET*/
@media (min-width: 768px) {
  .conteiner {
    max-width: 68.9rem;
  }

  .responsive-flex-conteiner {
    flex-direction: row;
    column-gap: 2.4rem;
    row-gap: 5.2rem;
  }
  .flex-wrap {
    flex-wrap: wrap;
  }
  .header-text-box {
    flex-direction: column;
    width: 50%;
    margin-top: 2.4rem;
  }
  .header-section {
    position: relative;
  }
  .header-img-box {
    position: absolute;
    right: -30rem;
    top: -18rem;
    z-index: -1;
    background: url(assets/image-hero-tablet.png);
    background-position: left;
    height: 64rem;
    width: 64rem;
  }
  .margin-bottom-section {
    margin-bottom: 15em;
  }
  .margin-bottom {
    margin-bottom: 8.2rem;
  }
  .services-card {
    display: flex;
    flex-direction: column;
    gap: 3.2rem;
    max-width: 33rem;
  }
  .services-card:first-child {
    height: 25.9rem;
    padding-top: 5.2rem 1.2rem 0 1.2rem;
  }
}

@media (min-width: 1080px) {
  .conteiner {
    max-width: 80rem;
  }
  .main-nav {
    padding-right: 10rem;
  }
  .header-img-box {
    right: -20rem;
  }
}

/*DESKTOP*/
@media (min-width: 1200px) {
  .conteiner {
    max-width: 111rem;
  }
  .secondary-header {
    font-size: 2.4rem;
  }
  .header-img-box {
    background: url(assets/image-hero-desktop.png);
    width: 99.1rem;
    height: 93.6rem;
    right: -50rem;
    top: -35rem;
  }
  .margin-bottom-section {
    margin-bottom: 35rem;
  }
  .main-heading {
    font-size: 5.6rem;
  }
  .text {
    font-size: 1.8rem;
  }
  .services-card {
    width: 35rem;
  }
  .services-section.responsive-flex-conteiner {
    display: grid;
    grid-template-columns: 35rem 35rem 35rem;
    align-items: center;
    justify-content: center;
  }
  .services-card:first-child {
    height: 32.2rem;
    font-size: 5rem;
    padding: 4.8rem 3.2rem;
  }
  .services-card {
    height: 34.6rem;
  }
  .services-section.responsive-flex-conteiner {
    column-gap: 5.2rem;
    row-gap: 8.2rem;
  }
  .footer {
    width: 100%;
  }
}
