// Define color variables
$primary-color: #5abac6;
$secondary-color: #5e5e5e;
$tertiary-color: #707070;
$white-color: #ffffff;
$grey-color: grey;

// UspSection styling
section.UspSection {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 80px;
  margin-top: 100px;

  .title {
    position: relative;
    height: 40px;
    display: flex;
    justify-content: center;
    width: 100%;

    &::before {
      content: "";
      width: 80%;
      height: 1px;
      background: $grey-color;
      position: absolute;
      top: 15px;
    }

    h1 {
      font-size: 24px;
      color: $secondary-color;
      width: 320px;
      text-align: center;
      position: relative;
      background-color: $white-color;
    }
  }

  .usp {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 70px;

    .uspBox {
      max-width: 215px;
      width: 100%;
      display: flex;
      justify-content: center;
      align-items: center;
      flex-direction: column;
      gap: 20px;
      margin-top: 80px;

      i.mainIcon {
        width: 80px;
        height: 80px;
        border: 1px solid $primary-color;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: $primary-color;
        font-size: 20px;
        transition: 0.5s ease;

        &:hover {
          color: $white-color;
          background-color: $primary-color;
          border: 1px solid $primary-color;
          animation: iconShake 1.2s;
        }
      }

      .texts {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 15px;
        text-align: center;

        h1 {
          font-size: 18px;
          color: $secondary-color;
        }

        p {
          line-height: 25px;
          font-size: 14px;
          color: $tertiary-color;
        }

        a {
          text-decoration: none;
          color: $primary-color;
          font-weight: bold;
          transition: 0.3s ease;

          i {
            font-size: 12px;
          }

          &:hover {
            color: $secondary-color;
          }
        }
      }
    }
  }
}

// Keyframes for icon shake animation
@keyframes iconShake {
  0% {
    transform: rotate(15deg);
  }
  25% {
    transform: rotate(-15deg);
  }
  50% {
    transform: rotate(10deg);
  }
  75% {
    transform: rotate(-10deg);
  }
  100% {
    transform: rotate(0deg);
  }
}
