* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

header {
  width: 100%;
  height: var(--header-height);
  animation: blurNav linear both;
  animation-timeline: scroll(root block);
  animation-range: 0 200px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;

  .header__container {
    max-width: var(--max-width);
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;

    .header__logo {
      display: flex;
      align-items: center;
      gap: 10px;

      img {
        width: 50px;
        height: auto;
        object-fit: contain;
      }

      span {
        color: var(--color-primary);
      }
    }

    .header__nav {
      .header__nav-list {
        display: flex;
        gap: 1rem;

        .header__nav-item {
          font-weight: bold;

          a {
            transition: color 0.3s ease;

            &:hover {
              color: var(--color-primary);
            }

            @media (width <= 560px) {
              font-size: 0.7rem;
            }
          }
        }
      }
    }

    @media (width <= 560px) {
      flex-direction: column;
      justify-content: center;
      gap: 0.3rem;

      .header__logo {
        img {
          width: 30px;
        }

        h1 {
          font-size: 1.2rem;
        }
      }
    }
  }
}

.hero__container {
  width: 100%;
  height: 100dvh;
  overflow: hidden;

  .hero__content {
    width: 98%;
    height: calc(100% - (var(--header-height) + 1rem));
    background-color: var(--color-accent);
    margin: var(--header-height) auto 0 auto;
    border-radius: 5rem;
    color: var(--color-black);
    padding: 1rem;

    .hero__content-grid {
      width: 100%;
      max-width: var(--max-width);
      height: 100%;
      margin: 0 auto;
      display: flex;
      justify-content: space-between;
      align-items: center;

      .hero__text {
        width: clamp(300px, 70%, 700px);
        display: flex;
        flex-direction: column;
        gap: 1rem;

        .hero__title {
          font-size: clamp(1rem, 4vw, 4rem);
        }

        .hero__description {
          font-size: clamp(0.6rem, 1.5vw, 2rem);
        }

        .hero__button {
          background-color: var(--color-black);
          color: var(--color-text);
          border-radius: 1rem;

          &:hover {
            background-color: var(--color-primary);
            box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
            color: var(--color-black);
          }
        }
      }

      .hero__image {
        img {
          width: clamp(200px, 100%, 600px);
          height: auto;
          object-fit: contain;
          rotate: 15deg;
        }
      }

      @media (width <= 560px) {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 1rem;

        .hero__text {
          align-items: center;

          .hero__title {
            font-size: clamp(1rem, 8vw, 3rem);
          }

          .hero__description {
            font-size: clamp(0.6rem, 3vw, 1.5rem);
          }

          /* .hero__button {
            font-size: clamp(0.6rem, 3vw, 1.5rem);
          } */
        }

        .hero__image {
          img {
            width: 200px;
          }
        }
      }
    }
  }
}

main {
  .about__container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;

    .about__content {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 1rem;

      .about__images {
        height: 100%;
        flex: 1 1 0;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        gap: 1rem;
        position: relative;

        .about__image-left {
          align-self: flex-start;
        }

        .about__image-right {
          align-self: flex-end;
        }

        .about__blob {
          position: absolute;
          top: 0;
          left: 0;
          right: 0;
          bottom: 0;
          margin: auto;
          width: clamp(200px, 100%, 600px);
          z-index: -1;
          /* opacity: 0.7; */
        }

        .about__image {
          img {
            width: clamp(150px, 100%, 300px);
            height: 350px;
            border-radius: 1rem;
            object-fit: cover;
            object-position: center;
          }
        }
      }

      .about__text {
        flex: 1 1 0;
        display: flex;
        flex-direction: column;
        gap: 1rem;

        .about__button {
          background-color: var(--color-primary);
          color: var(--color-black);
          border-radius: 1rem;

          &:hover {
            background-color: var(--color-black);
            box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
            color: var(--color-text);
          }
        }
      }

      @media (width <= 560px) {
        flex-direction: column-reverse;

        .about__text {
          text-align: center;
          align-items: center;
        }
      }
    }
  }

  .services__container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
    justify-content: center;

    .services__header {
      h3 {
        font-weight: normal;
      }
    }

    .services__content {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 1rem;

      .services__items {
        flex: 1 1 0;
        display: flex;
        flex-direction: column;
        gap: 1rem;
        text-align: left;

        .services__item {
          padding: 1rem;
          border-radius: 1rem;
          box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
          transition: transform 0.3s ease, box-shadow 0.3s ease;

          &:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 12px rgba(242, 142, 61, 0.2);
          }

          img {
            width: 50px;
            height: 50px;
            object-fit: contain;
            margin-bottom: 0.5rem;
          }

          .services__item-title {
            font-weight: bold;
            margin-bottom: 0.5rem;
          }

          .services__item-description {
            font-size: 0.9rem;
            line-height: 1.4;
          }
        }
      }
    }
  }

  .categories__container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
    justify-content: center;

    .categories__header {
      h3 {
        font-weight: normal;
      }
    }

    .categories__content {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 1rem;

      .categories__item {
        width: 100%;
        height: 300px;
        position: relative;
        display: grid;
        place-items: center;
        cursor: pointer;

        .categories__item--text {
          color: var(--color-white);
          display: flex;
          flex-direction: column;
          gap: 0.5rem;
          transition: color 0.3s ease;
        }

        img {
          width: 100%;
          height: 100%;
          object-fit: cover;
          object-position: center;
          border-radius: 1rem;
          position: absolute;
          top: 0;
          left: 0;
          z-index: -1;
          filter: blur(2px);
          opacity: 0.5;
          transition: filter 0.3s ease, opacity 0.3s ease;
        }

        &:hover {
          .categories__item--text {
            color: transparent;
          }

          img {
            filter: blur(0);
            opacity: 1;
          }
        }
      }
    }
  }
}

footer {
  width: 100%;
  height: var(--footer-height);
  background-color: var(--color-footer);

  .footer__corner {
    width: 100%;
    height: 40px;
    background-color: var(--color-background);
    border-radius: 0 0 5rem 5rem;
  }

  .footer__content {
    width: 90%;
    height: calc(100% - 40px);
    margin: 0 auto;
    display: grid;
    place-items: center;
    font-size: clamp(0.7rem, 1.5vw, 0.9rem);
    text-align: center;

    a {
      font-weight: bold;
      transition: color 0.3s ease;

      &:hover {
        color: var(--color-primary);
      }
    }
  }
}

@keyframes blurNav {
  from {
    background-color: transparent;
    backdrop-filter: blur(0);
  }
  to {
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }
}
