@import "./variables.module.scss";

.projectContainer {
  min-height: 100dvh;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  .projectMain {
    width: 75%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: $white;
    font-family: $font;
    margin: 8rem auto 6rem auto;
    .mainImage {
      width: 250px;
      height: 140px;
      border-radius: 20px;
      object-fit: cover;
      object-position: center;
      margin: 0 0 1rem 0;

      @media (min-width: 768px) {
        width: 350px;
        height: 200px;
      }
      @media (min-width: 1024px) {
        width: 500px;
        height: 280px;
        margin: 0;
      }
      @media (min-width: 1280px) {
        width: 75%;
        max-width: 700px;
        height: 450px;
      }
    }
    .textContent {
      display: grid;
      place-items: center;

      h1 {
        color: white;
        font-weight: bold;
        margin-bottom: 1rem;
        text-align: center;
        font-size: 2.5rem;
        @media (min-width: 768px) {
          font-size: 4rem;
        }
        @media (min-width: 1280px) {
          font-size: 6rem;
        }
      }
      p {
        line-height: 40px;
        font-size: 1rem;
        margin: 1rem 0;
        width: 100%;
        max-width: 600px;
        @media (min-width: 768px) {
          font-size: 1.375rem;
        }
      }
    }
    .comparisonContainer {
      width: 100%;
      text-align: center;
      display: flex;
      justify-content: center;
      margin: 1rem;
      gap: 1rem;
      align-items: center;
      flex-wrap: wrap;
      @media (min-width: 768px) {
        gap: 2rem;
      }
      .imageCompare {
        padding: 0;
        @media (min-width: 768px) {
          padding: 1rem;
        }
        img {
          width: 100%;
          height: min-content;
          border-radius: 20px;
          @media (min-width: 768px) {
            width: 75%;
          }
        }

        h2 {
          margin-top: 1rem;
          font-weight: bold;
          font-size: 1.25rem;
        }
      }
    }
    .pageNavigation {
      button {
        position: fixed;
        bottom: 5%;
        cursor: pointer;
        margin: 0 1rem;
        width: 100px;
        height: 50px;
        border-radius: 15px;
        border: none;
        outline: none;
        background: snow;
        font-weight: 700;
        font-family: $font;
        font-size: 0.875rem;
        display: flex;
        justify-content: center;
        align-items: center;
        transition: 150ms transform ease;
        will-change: transform;
        @media (min-width: 768px) {
          top: 50%;
          bottom: unset;
          width: 125px;
          font-size: 1rem;
        }
        &:hover {
          transform: scale(1.1);
        }
        &:focus {
          transform: scale(1.1);
        }
        &:active {
          transform: scale(0.9);
        }
      }
      .previousBtn {
        left: 5%;

        &:disabled {
          filter: brightness(0.5);
        }
        .prevArrow {
          margin-right: 0.375rem;
          @media (min-width: 768px) {
            margin-right: 0.5rem;
          }
        }
      }
      .nextBtn {
        right: 5%;

        &:disabled {
          filter: brightness(0.5);
        }

        .nextArrow {
          margin-left: 0.375rem;
          @media (min-width: 768px) {
            margin-left: 0.5rem;
          }
        }
      }
    }
    .bottomLinks {
      width: 100%;
      max-width: 600px;
      .projectLinks {
        width: 100%;
        display: flex;
        gap: 1rem;
        justify-content: center;
        @media (min-width: 768px) {
          justify-content: start;
        }
        .projectBtn {
          display: flex;
          justify-content: center;
          align-items: center;
          text-decoration: none;
          color: $black;
          padding: 0;
          cursor: pointer;
          width: 100%;
          height: 50px;
          border-radius: 15px;
          border: none;
          outline: none;
          background: snow;
          font-weight: 700;
          font-family: $font;
          font-size: 0.875rem;
          transition: 150ms transform ease;
          will-change: transform;
          @media (min-width: 768px) {
            font-size: 1rem;
          }
          &:hover {
            transform: scale(1.05);
          }
          &:focus {
            transform: scale(1.05);
          }
          &:active {
            transform: scale(0.9);
          }
        }
      }

      .projectBack {
        text-align: center;
        color: $white;
        text-decoration: none;
        font-family: $font;
        margin: 2rem auto;
        cursor: pointer;
        display: flex;
        justify-content: center;
        align-items: center;
        svg {
          margin-right: 4px;
          transition: transform 0.3s ease;
        }
        &:hover {
          svg {
            transform: translateX(-2px);
          }
        }
        &:focus {
          svg {
            transform: translateX(-2px);
          }
        }
      }
    }
  }
}
