@use '@vizality' as vz;

// @todo Fix him at varying resolutions and rename class
.vz-dashboard-home-cta {
  position: relative;
  width: 100%;
  min-height: 400px;
  height: 40vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  &-icon-wrapper {
    &.vz-icon-wrapper {
      min-width: 400px;
      width: 40vh;
      height: auto;
      position: absolute;
      right: 10%;
      bottom: -10%;
      color: #fff;
      @media (max-width: 1750px) {
        display: none;
      }
    }
  }
  &-overlay-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    // Fixes a rendering bug with a line showing through behind the wave divider when hovering
    // over the feature cards that utilize transforms.
    height: calc(100% - 1px);
    background: url(https://i.imgur.com/fIIzj3q.png);
    background-attachment: fixed;
    background-position: center;
    background-size: 150%;
    animation: backgroundPositionMoveDiagonal 100s ease infinite;
  }
  &-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    overflow: hidden;
    background-size: 400% 400%;
    animation: backgroundPositionMoveDiagonal 15s ease infinite;
    opacity: .9;
  }
  &-content {
    max-width: 800px;
    // About the height of the wave divider
    margin: -100px 0 0 5%;
    z-index: 1;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeShortSlideInFromTop .15s forwards;
    &-icon-wrapper {
      &.vz-icon-wrapper {
        width: 200px;
        flex: 1 0 auto;
        margin-right: 40px;
        border-radius: 50%;
        background: vz.color('white', 0.1);
        padding-top: 200px;
        height: 0;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        @at-root {
          @media (max-width: 1200px) {
            & {
              display: none;
            }
          }
        }
      }
    }
    &-icon {
      margin-left: 5px;
      height: 70%;
      width: 70%;
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      // stroke-width: 5px;
      color: vz.color('white');
      // stroke: vz.color('white');
      path {
        // stroke-dasharray: 150;
        // animation: strokeSVG 0.3s ease-in forwards, fillSVG 0.1s 0.2s ease-in forwards;
        // stroke-width: 5;
      }
    }
    &-header {
      font-size: 54px;
      font-weight: 700;
      color: vz.color('white');
    }
    &-description {
      font-size: 20px;
      line-height: 1.2;
      margin-top: 10px;
      color: vz.color('white');
      opacity: .9;
    }
    &-buttons-wrapper {
      display: flex;
      margin-top: 30px;
    }
    &-button {
      height: 40px;
      background: vz.color('white')!important;
      transition: transform 0.3s, box-shadow 0.3s;
      border-radius: 1000px;
      // contents
      > div {
        padding: 0 15px;
        font-size: 18px;
      }
      &:hover {
        box-shadow: 0 0 50px vz.color('white', 0.3);
        transform: translateY(-2px);
      }
      &:active {
        transform: translateY(0);
      }
    }
  }
}
