@import "../variables";
@import "../mixin";

/*===== portfolio TWO =====*/

.portfolio-two {
  padding-top: 100px;
  padding-bottom: 100px;

  & .portfolio-menu {
    & button {
      border: none;
      background: none;
      font-size: 16px;
      font-weight: 700;
      color: var(--dark-3);
      line-height: 48px;
      padding: 0 30px;
      position: relative;
      border-radius: 50px;
      overflow: hidden;
      display: inline-block;
      z-index: 5;
      @include transition(0.3s);
      cursor: pointer;
      margin: 0 2px;
      text-transform: uppercase;

      @media #{$md} {
        font-size: 14px;
        padding: 0 26px;
      }

      @media #{$xs} {
        font-size: 14px;
        padding: 0 22px;
        line-height: 42px;
      }

      &::before {
        position: absolute;
        content: "";
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: var(--primary);
        z-index: -1;
        opacity: 0;
        @include transition(0.3s);
      }

      &:hover,
      &.active {
        color: var(--white);

        &::before {
          opacity: 1;
        }
      }
    }
  }

  .hide {
    display: none;
  }

  .show {
    display: block;
  }
}

.portfolio-style-two {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  margin-top: 30px;

  & .portfolio-image {
    & img {
      width: 100%;
      @include transition(0.3s);
    }
  }

  & .portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    @include transition(0.5s);
    background-color: rgba(255, 255, 255, 0.8);
    @include transform(scale(0.95));
    border-radius: 8px;
  }

  & .portfolio-content {
    padding: 16px;
  }

  & .portfolio-icon {
    position: relative;
    display: inline-block;
    margin: 0 20px;

    & a {
      font-size: 48px;
      color: var(--primary);
      position: relative;
      z-index: 5;
      line-height: 50px;
    }
  }

  & .portfolio-text {
    padding-top: 24px;

    @media #{$xs} {
      padding-top: 10px;
    }
  }

  & .portfolio-title {
    & a {
      color: var(--black);
      font-size: 24px;
      line-height: 30px;

      @media #{$lg} {
        font-size: 20px;
      }

      @media #{$xs} {
        font-size: 20px;
      }
    }
  }

  & .text {
    color: var(--black);
    margin-top: 8px;
  }

  &:hover {
    & .portfolio-overlay {
      opacity: 1;
      visibility: visible;
    }
  }
}
