/* Main styles */
:root {
  --main-color: #a5e7ed;
  --dark-blue: #023047;
}

main {
  overflow: hidden;
}

/* Hero Section */
.heroSection {
  position: relative;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  .heroContent {
    position: relative;
    width: 100%;
    margin-inline: auto;
    padding: 24px;
    height: 100%;
    .heroTextWrapper {
      color: #fbfbfb;
      display: grid;
      .mainColor {
        color: var(--main-color);
      }
      .heroTextTop {
        h1 {
          font-size: clamp(1.875rem, 0.625rem + 6.25vw, 8.125rem);
          line-height: 1.2;
        }
        .heroTextImage {
          width: 40%;
        }
      }
      .heroTextBottom {
        .expandText {
          font-size: clamp(3.25rem, 2.275rem + 4.88vw, 8.125rem);
          font-weight: 700;
          line-height: 1.1;
          span {
            &:last-of-type {
              font-size: clamp(2rem, 0.775rem + 6.13vw, 8.125rem);
            }
          }
        }
        p {
          opacity: 0.9;
          &:last-of-type {
            font-size: clamp(0.625rem, 0.35rem + 1.38vw, 2rem);
            margin-top: 12px;
          }
        }
      }
    }
    .heroContactLink {
      position: absolute;
      bottom: 88px;
      right: 98px;
      width: 17%;
      transition: transform 0.3s ease;
      .heroContactImage {
        aspect-ratio: 322/333;
        filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.2));
      }
      &:hover {
        transform: translateY(-8px);
      }
    }
  }
  .heroImage {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    img {
      object-fit: cover;
      width: 100%;
      height: 100%;
    }
  }
}

/* Problems Section */
.problemsSection {
  position: relative;
  height: 100dvh;
  > img {
    position: absolute;
    height: 100%;
    z-index: -1;
  }
  .worriesPentagon {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 68.75%;
    margin-inline: auto;
    > figure {
      position: relative;
      display: grid;
      > img {
        position: absolute;
        z-index: 2;
      }
      > div {
        position: absolute;
        z-index: 2;
        padding: 0 6%;
      }
    }
  }
}

.sectionTitle {
  font-size: clamp(1.75rem, 1.5rem + 1.25vw, 2.5rem);
  text-align: center;
  margin-bottom: 48px;
  color: var(--dark-blue);
  position: relative;

  &::after {
    content: "";
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--main-color);
  }
}

/* Achievements Section */
.achievementsSection {
  background-color: #fff;
  padding: 250px 0 80px 0;
  position: relative;
}

.achievementsWrapper {
  max-width: 1280px;
  margin-inline: auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.achievementsTitle {
  font-size: clamp(1.125rem, 0.6rem + 2.63vw, 3.75rem);
  color: #fff;
  background-color: #000;
  padding: 16px 64px;
  margin-bottom: 48px;
  position: relative;
  clip-path: polygon(10% 0%, 100% 0%, 90% 100%, 0% 100%);
}

.achievementsImage {
  width: 100%;
  max-width: 1200px;
}

/* Features Section */
.featuresSection {
  position: relative;
  background-image: url("../images/featuresBg.webp");
  background-size: cover;
  background-position: center;
  padding: 80px 0;
  .featuresWrapper {
    width: 60.8%;
    margin-inline: auto;
    .featuresTitle {
      font-size: clamp(1.125rem, 0.6rem + 2.63vw, 3.75rem);
      color: #fff;
      background-color: #000;
      padding: 16px 64px;
      margin-bottom: 48px;
      position: relative;
      clip-path: polygon(10% 0%, 100% 0%, 90% 100%, 0% 100%);
      width: fit-content;
      margin-inline: auto;
    }

    .featuresList {
      display: flex;
      flex-direction: column;
      gap: 32px;
      margin-inline: auto;
    }
  }
}

.featureItem {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto 1fr;
  gap: 0 24px;
  .featureNumber {
    font-size: clamp(1.75rem, 0.725rem + 5.13vw, 6.875rem);
    font-weight: 900;
    line-height: 1;
    color: #000;
  }
  h3 {
    font-size: clamp(0.625rem, 0.35rem + 1.38vw, 2rem);
    color: #333;
    background-color: #a5e7ed;
    padding: 25px;
  }
  .featureContent {
    grid-column: 2;
    ul {
      background-color: #fff;
      padding: 25px;
      li {
        font-size: clamp(0.5rem, 0.2rem + 1.5vw, 2rem);
        color: #333;
      }
    }
    p {
      color: #333;
      background-color: #fff;
      padding: 25px;
      font-size: clamp(0.5rem, 0.2rem + 1.5vw, 2rem);
    }
    .featureNote {
      color: #666;
      padding: 0 25px 25px;
      font-size: clamp(0.5rem, 0.3rem + 1vw, 1.5rem);
    }
  }
}

/* Cases Section */
.casesSection {
  background-color: #fbfbfb;
  background-image: url("../images/introductionBg.webp");
  background-size: cover;
  background-position: center;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.casesSection .sectionTitle {
  color: #333;
  text-align: center;
  font-size: clamp(1.125rem, 0.7rem + 2.13vw, 3.25rem);
  margin-bottom: 48px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.casesSection .sectionTitle::after {
  display: none;
}

.casesGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, auto);
  gap: 24px;
  margin-top: 48px;
  padding: 0 12.5%;
}

.caseCard {
  background-color: #fbfbfb;
  background-image: linear-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
  background-size: 20px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 3;
  position: relative;
  padding: 4.5% 4.5% 64px;
}

.caseLabel {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);

  img {
    max-width: 120px;
    margin: 0 auto;
  }
}

.caseTitle {
  color: #0ca5b2;
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.5rem);
  text-align: center;
  font-weight: bold;
  line-height: 1.5;
  padding: 16px 0 0 0;
  margin-bottom: 16px;
}

.caseImage {
  width: 100%;
  height: 200px;
  overflow: hidden;
  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
  }
}

.caseInfo {
  display: grid;
  gap: 16px 0;
  padding: 16px;
  .roleBox {
    display: grid;
    gap: 4px 0;
  }
}

.caseRole,
.caseSubRole {
  color: #0ca5b2;
  background-color: #fbfbfb;
  padding: 4px 8px;
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.5rem);
  font-weight: bold;
  text-align: center;
}

.caseDescription {
  text-align: left;
  font-weight: bold;
  line-height: 1.6;
  color: #333;
}

.caseHighlight {
  color: #ff0000;
  font-weight: bold;
}

.caseNote {
  color: #333;
  font-weight: bold;
  .highlight-marker {
    background: linear-gradient(transparent 65%, #ffff57 65%);
    padding: 0.1em 0;
  }
}

/* Industries Section */
.industriesSection {
  padding: 80px 0;
  background-color: #fbfbfb;
  .sectionTitle {
    color: #333;
    text-align: center;
    font-size: clamp(1.25rem, 0.85rem + 2vw, 3.25rem);
    margin-bottom: 48px;
    &::after {
      display: none;
    }
  }
}

.industriesImages {
  display: flex;
  justify-content: center;
  gap: 32px;
  max-width: 1000px;
  margin-inline: auto;
  padding: 0 24px;
  figure {
    text-align: center;
  }
}

/* Pricing Section */
.pricingSection {
  background-image: url("../images/featuresBg.webp");
  background-size: cover;
  background-position: center;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
  .sectionContainer {
    display: grid;
    justify-content: center;
    gap: 40px 0;
    width: 60.625%;
    margin-inline: auto;
    color: #333;
    .pricingTitle {
      font-size: clamp(1.25rem, 0.85rem + 2vw, 3.25rem);
      text-align: center;
    }
    .pricingSubtitle {
      font-size: clamp(1.25rem, 1.1rem + 0.75vw, 1.75rem);
      text-align: center;
    }
  }
}

/* Comparison Section */
.comparisonSection {
  background: linear-gradient(248.94deg, #12c7d7 2.52%, #a5e7ed 90.59%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
  .sectionContainer {
    width: 90%;
    margin-inline: auto;
  }
}

.comparisonTitle {
  color: #333;
  text-align: center;
  font-size: clamp(1.25rem, 0.85rem + 2vw, 3.25rem);
  margin-bottom: 48px;
}

.comparisonImage {
  margin-inline: auto;
  text-align: center;
}

.comparisonImage img {
  width: 100%;
  height: auto;
}

/* Process Section */
.processSection {
  padding: 80px 0;
  background-color: #fbfbfb;
  position: relative;
  overflow: hidden;
  .sectionContainer {
    width: 75%;
    margin-inline: auto;
    .processTitle {
      color: #333;
      text-align: center;
      font-size: clamp(1.25rem, 0.85rem + 2vw, 3.25rem);
      margin-bottom: 48px;
    }
    .flowArrow {
      margin-inline: auto;
      margin-bottom: 48px;
      text-align: center;
    }
    .flowImages {
      display: grid;
      grid-template-columns: repeat(5, 1fr auto) 1fr;
      gap: 0 16px;
      padding: 0 24px;
      .arrow {
        align-self: center;
        color: #333;
        font-size: clamp(0.75rem, 0.6rem + 0.75vw, 1.5rem);
      }
    }
  }
}

/* Contact Section */
.contactSection {
  padding: 80px 0;
  background-color: #a5e7ed;
  position: relative;
  overflow: hidden;
}

.contactTitle {
  color: #333;
  text-align: center;
  font-size: clamp(1.25rem, 0.85rem + 2vw, 3.25rem);
  margin-bottom: 48px;
}

.contactImages {
  display: flex;
  justify-content: center;
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}

.contactImage {
  text-align: center;
  transition: transform 0.3s ease;
}

.contactImage:hover {
  transform: scale(1.05);
}

.contactImage p {
  font-size: clamp(1.125rem, 1rem + 0.625vw, 1.5rem);
  font-weight: bold;
  color: #333;
  margin-bottom: 16px;
}

.contactImage figure {
  border-radius: 100px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Media queries */
@media (width < 768px) {
  .heroSection {
    .heroContent {
      padding: 0;
      .heroTextWrapper {
        text-align: center;
        margin-top: 0;
        height: 85dvh;
        align-content: space-between;
        .heroTextTop {
          padding: 16px;
          .heroTextImage {
            width: 100%;
            padding: 0 16px;
          }
        }
        .heroTextBottom {
          padding: 10px;
          .expandText {
            line-height: 0.9;
            span {
              width: 100%;
            }
          }
          p {
            &:last-of-type {
              margin-inline-start: 2rem;
              text-align: left;
              > span {
                display: inline-block;
              }
            }
          }
        }
      }
      .heroContactLink {
        bottom: -20px;
        right: 0;
        z-index: 2;
        width: 24%;
      }
    }
  }

  .problemsSection {
    min-height: 764px;
    > img {
      height: 100%;
    }
    .worriesPentagon {
      width: 100%;
      > figure {
        display: grid;
        height: 100%;
        > img {
          height: 100%;
          object-fit: cover;
          filter: brightness(0.2);
        }
        > div {
          padding: 0 6%;
          picture {
            img {
              width: 80%;
              margin-inline: auto;
            }
          }
        }
      }
    }
  }

  .achievementsSection {
    padding: 32px 0;
    .achievementsWrapper {
      padding: 0 16px;
      .achievementsTitle {
        padding: 6px 30px;
        margin-bottom: 32px;
      }
    }
  }

  .featuresSection {
    padding: 20px 0;
    .featuresWrapper {
      width: 94%;
      .featuresTitle {
        padding: 6px 30px;
        margin-bottom: 32px;
      }
      .featuresList {
        .featureItem {
          gap: 0 8px;
          h3 {
            padding: 8px;
          }
          .featureContent {
            ul {
              padding: 8px;
            }
            p {
              &:first-of-type {
                padding: 8px 8px 0;
              }
              &:last-of-type {
                padding: 0 8px 8px;
              }
            }
          }
        }
      }
    }
  }

  .casesSection {
    padding: 0;
    .sectionContainer {
      padding: 28px 38px 60px;
      .casesGrid {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 0;
      }
    }
  }

  .industriesSection {
    padding: 54px 0;
  }
  .industriesImages {
    flex-wrap: wrap;
    gap: 24px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .pricingSection {
    padding: 52px 0;
    .sectionContainer {
      width: 100%;
      gap: 12px 0;
      .pricingTitle {
        margin-bottom: 0;
        span {
          display: inline-block;
        }
      }
      .pricingImage {
        width: 100%;
      }
      .pricingSubtitle {
        padding: 0 36px;
      }
      .costImage {
        padding: 0 22px;
      }
    }
  }

  .comparisonSection {
    padding: 32px 0;
  }

  .comparisonTitle {
    margin-bottom: 32px;
  }

  .comparisonImage {
    padding: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .comparisonImage img {
    width: 1000px;
    max-width: none;
  }

  .processSection {
    padding: 60px 0;
    .sectionContainer {
      width: 90%;
      .processTitle {
        margin-bottom: 20px;
      }
      .flowArrow {
        padding: 0 16px;
        margin-bottom: 24px;
      }
      .flowImages {
        display: grid;
        grid-template-columns: repeat(3, 1fr auto);
        gap: 10px;
        padding: 0;
        figure {
          img {
            width: 100%;
            height: auto;
          }
        }
      }
    }
  }

  .contactSection {
    padding: 60px 0;
  }

  .contactImages {
    flex-direction: column;
    gap: 24px;
  }

  .contactImage figure {
    max-width: 300px;
    margin: 0 auto;
  }
}
