:root {
  --primary-color: #959cce;
  --primary-light: #d3cfff;
  --light-blue: rgba(114, 191, 233, 14%);
  --white-color: #fff;
  --text-color: #000;
  --shadow: 0 4px 5rem rgba(0, 0, 0, 0.3);
  --transition: all 0.3s ease-in-out;
  --lightgray: #f4f4f4;
  --rounded-radius: 6.25rem;
  --border-radius: 1.25rem;
  --black-color: #000;
  --orange-color: #ee8e1d;
  --section-spacing: 6rem;
  --title-size: 4rem;
  --text-size: 1.25rem;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-size: 1rem;
  font-family: 'Poppins', sans-serif;
  background-color: var(--white-color);
}

img {
  max-width: 100%;
}

.app-container {
  width: 100%;
  max-width: 1520px;
  margin: 0 auto;

  @media screen and (max-width: 1300px) {
    padding: 0 1rem;
  }
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow);

  margin: 1rem 0;
  border-radius: var(--rounded-radius);
  background: var(--white-color);
  /* border: solid 1px red; */
  overflow: hidden;

  @media screen and (max-width: 1024px) {
    flex-direction: column;
    gap: 1rem;
    border-radius: var(--border-radius);
  }

  padding: 0.5rem 2rem;
  .logo {
    width: 100%;
    max-width: 150px;
    /* margin: 1rem auto; */
    display: block;
    margin-top: 0.5rem;
    img {
      width: 100%;
      height: auto;
    }
  }
}

.lang-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  gap: 1rem;
  /* background-color: var(--lightgray); */
  height: 60px;
  font-weight: 300;
  font-size: 0.875rem;

  padding-right: 2rem;
  a {
    text-decoration: none;
    transition: var(--transition);
    color: var(--text-color);
    &:hover {
      opacity: 0.9;
      text-decoration: underline;
    }
  }
}

.store-buttons {
  gap: 1rem;
  display: flex;

  .app-button {
    min-width: 240px;
    border-radius: 1.25rem;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: solid 1px var(--primary-color);
    transition: var(--transition);
    &:hover {
      opacity: 0.9;
    }
    &.apple {
      background-color: var(--primary-color);
    }
    &.google {
      background-color: var(--white-color);
    }
    @media screen and (max-width: 1024px) {
      width: 100%;
    }
  }

  @media screen and (max-width: 1024px) {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
}

.hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin: 2rem 0;

  .hero-content {
    flex: 1;
    padding-bottom: 5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;

    align-items: flex-start;
    gap: 1rem;
    .hero-button {
      background-color: var(--primary-light);
      color: var(--white-color);
      font-weight: 500;
      font-size: 1rem;
      text-align: center;
      min-width: 240px;
      padding: 1rem;
      border-radius: var(--rounded-radius);
    }
    .hero-title {
      font-size: 6rem;
      font-weight: 600;
      margin-bottom: 1rem;
      line-height: 1;
      @media screen and (max-width: 1024px) {
        font-size: 3rem;
      }
    }
    .hero-text {
      font-size: 1.25rem;
      font-weight: 300;
      margin-bottom: 1rem;
      line-height: 1.5;
    }
    @media screen and (max-width: 1024px) {
      align-items: normal;
    }
  }
  .hero-image {
    flex: 1;
    img {
      display: block;
    }
  }
  @media screen and (max-width: 1024px) {
    flex-direction: column;
    padding: 0 1rem;
  }
}

.reviews-container {
  display: flex;
  gap: 11.25rem;
  margin-top: var(--section-spacing);
  .people-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex: 1;
    .people-content {
    }
    .reviews-content {
      display: flex;
      flex-direction: column;
      gap: 1rem;
      /* max-width: ; */
      img {
        max-width: 110px;
      }
    }
  }
  .metrics-container {
    flex: 1;
    display: flex;
    gap: 1rem;

    .metrics-card {
      border-radius: var(--border-radius);
      padding: 3rem 1rem 1rem 1rem;
      background-color: var(--light-blue);
      display: flex;
      flex-direction: column;
      /* gap: 1rem; */
      position: relative;
      justify-content: flex-end;
      /* align-items: center; */
      .metrics-icon {
        position: absolute;
        top: -2.3rem;
        right: 0;
        padding: 0 1rem;
        border: solid 3px var(--white-color);
        background-color: var(--light-blue);
        border-radius: var(--border-radius);

        &.orange {
          background-color: var(--orange-color);
        }
      }
      .metrics-title {
        font-size: 3rem;
        font-weight: 600;
        line-height: 1;
        &.black {
          color: #000;
        }
        &.orange {
          color: var(--orange-color);
        }
      }
      .metrics-text {
        font-style: oblique;
        font-size: 1rem;
        font-weight: 400;
        padding-top: 0.3rem;
      }
    }
    @media screen and (max-width: 1024px) {
      flex-direction: column;
      margin-top: 2rem;
    }
  }
  @media screen and (max-width: 1024px) {
    flex-direction: column;
    gap: 2rem;
  }
}

.middle-content-container {
  width: 100%;
  background-color: var(--primary-color);
  display: flex;
  border-radius: var(--border-radius);
  margin-top: var(--section-spacing);

  .middle-content-image {
    max-width: 40%;
    img {
      display: block;
      width: 100%;
    }
    @media screen and (max-width: 1024px) {
      max-width: 100%;
    }
  }
  .middle-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--white-color);
    padding-right: 1rem;

    .middle-content-title {
      font-size: 3.125rem;
      font-weight: 600;
      line-height: 1;
      margin-bottom: 1.3rem;
      @media screen and (max-width: 1024px) {
        /* font-size: 2rem; */
        margin-top: 1.5rem;
      }
    }
    .middle-content-text {
      font-size: 1.25rem;
      font-weight: 200;
      line-height: 1.5;
      /* margin-bottom: 1rem; */

      @media screen and (max-width: 1024px) {
        font-size: 1rem;
        margin-top: 1rem;
      }
    }
  }
  @media screen and (max-width: 1024px) {
    flex-direction: column;
    padding: 0 1rem 2rem 1rem;
  }
}

.thumbs-section {
  margin-top: var(--section-spacing);
  .thumbs-content {
    display: flex;
    align-items: center;
    div {
      flex: 1;
      justify-content: space-between;
      gap: 2rem;
    }
    @media screen and (max-width: 1024px) {
      flex-direction: column;
    }
  }
  .thumbs-images {
    display: grid;
    gap: var(--section-spacing);
    grid-template-columns: repeat(3, 1fr);
    /* grid-auto-rows: 3; */
    margin-top: var(--section-spacing);
    img {
      width: 100%;
      height: auto;

      &:nth-child(2) {
        margin-top: 12rem;
        @media screen and (max-width: 1024px) {
          margin-top: 0;
        }
      }
    }
    @media screen and (max-width: 1024px) {
      grid-template-columns: repeat(1, 1fr);
    }
  }
}

.app-feature-section {
  margin-top: var(--section-spacing);
  display: grid;

  gap: 2rem;
  align-items: center;

  grid-template-columns: 35% 1fr 25%;

  .app-feature-image {
    img {
      display: block;
      width: 100%;
    }
  }
  .app-feature-mini-text {
    position: relative;
    .mini-icon {
      position: absolute;
      top: 0;
      left: 0;
    }
    padding-left: 8rem;
    .mini-title {
      font-size: 1rem;
      font-weight: 600;
      color: var(--primary-color);
    }
    .mini-text {
      font-size: 0.875rem;
      font-weight: 300;
      color: var(--black-color);
    }
  }
  @media screen and (max-width: 1024px) {
    grid-template-columns: 1fr;
  }
}

.disorders-container {
  margin-top: var(--section-spacing);
  display: flex;
  flex-direction: column;
  gap: 2rem;
  .disorders-content {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
  }
  .title {
    /* margin-bottom: var(--section-spacing); */
    text-align: right;
    max-width: 50%;
    @media screen and (max-width: 1024px) {
      max-width: 100%;
    }
  }
  .disorders-images {
    display: flex;
    margin-top: 2rem;
    gap: var(--section-spacing);
    align-items: center;
    justify-content: space-between;
    div {
      flex: 1;
    }
    img {
      display: block;
      max-width: 100%;
    }
    @media screen and (max-width: 1024px) {
      flex-direction: column;
    }
  }
}

.cta-section {
  margin-top: var(--section-spacing);
  display: flex;
  gap: 2rem;
  height: 250px;

  .cta-content {
    flex: 0 0 1.5;
    @media screen and (max-width: 1024px) {
      flex: 1;
    }
  }
  .cta-buttons {
    height: 100%;
    .store-buttons {
      height: 100%;
    }
    a {
      height: 100%;
    }
    @media screen and (max-width: 1024px) {
      flex: 1;
    }
  }
  @media screen and (max-width: 1024px) {
    flex-direction: column;
    height: auto;
  }
}

footer {
  margin-top: var(--section-spacing);
  background: var(--black-color);
  padding: 2rem;
  display: flex;

  align-items: center;
  justify-content: space-between;
  font-size: 1rem;
  color: var(--white-color);
  a {
    color: var(--white-color);
    text-decoration: none;
  }
  .copy {
    font-size: 0.75rem;
  }
}

section {
  transition: all 0.6s ease;
  opacity: 0;
}
.fade-up {
  transform: translateY(40px);
}

.fade-left {
  transform: translateX(-40px);
}

.fade-scale {
  transform: scale(0.9);
}

.animate {
  opacity: 1;
  transform: none;
}

.title {
  font-weight: 600;
  color: var(--black-color);
  font-size: var(--title-size);
  margin-bottom: 1rem;
  line-height: 1.1;

  @media screen and (max-width: 1024px) {
    font-size: 2rem;
  }
}
.text {
  font-weight: 300;
  color: var(--black-color);
  font-size: var(--text-size);
  line-height: 1.5;

  @media screen and (max-width: 1024px) {
    font-size: 1rem;
  }
}
