// main: ../main.scss
/*--------------------------------------------------------------
# Services 2 Section
--------------------------------------------------------------*/
.services-2 {
  padding-top: 61px;
  padding-bottom: 60px;

  .service-card {
    background: var(--surface-color);
    border-radius: 20px;
    padding: 48px 36px;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px color-mix(in srgb, var(--default-color), transparent 92%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid color-mix(in srgb, var(--accent-color), transparent 90%);

    &:hover {
      transform: translateY(-12px) scale(1.02);
      box-shadow: 0 25px 60px color-mix(in srgb, var(--accent-color), transparent 80%);
      border-color: var(--accent-color);

      .card-gradient {
        opacity: 1;
      }

      .icon-wrapper {
        transform: rotate(360deg) scale(1.1);
        background: linear-gradient(135deg, var(--accent-color) 0%, color-mix(in srgb, var(--accent-color), var(--heading-color) 40%) 100%);
      }

      .service-number {
        transform: scale(1.2);
        color: var(--accent-color);
      }

      .read-more {
        gap: 12px;

        i {
          transform: translateX(4px);
        }
      }
    }

    .card-gradient {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: linear-gradient(135deg, color-mix(in srgb, var(--accent-color), transparent 95%) 0%, transparent 60%);
      opacity: 0;
      transition: opacity 0.4s ease;
      pointer-events: none;
    }

    .service-number {
      position: absolute;
      top: 24px;
      right: 28px;
      font-size: 72px;
      font-weight: 800;
      color: color-mix(in srgb, var(--default-color), transparent 95%);
      line-height: 1;
      transition: all 0.4s ease;
    }

    .icon-wrapper {
      width: 90px;
      height: 90px;
      background: linear-gradient(135deg, color-mix(in srgb, var(--accent-color), transparent 10%) 0%, var(--accent-color) 100%);
      border-radius: 20px;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 28px;
      position: relative;
      z-index: 1;
      transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
      box-shadow: 0 8px 24px color-mix(in srgb, var(--accent-color), transparent 70%);

      i {
        font-size: 42px;
        color: var(--contrast-color);
      }
    }

    h3 {
      font-size: 26px;
      font-weight: 700;
      margin-bottom: 18px;
      position: relative;
      z-index: 1;
      color: var(--heading-color);
    }

    p {
      font-size: 15px;
      line-height: 1.8;
      color: color-mix(in srgb, var(--default-color), transparent 25%);
      margin-bottom: 28px;
      flex-grow: 1;
      position: relative;
      z-index: 1;
    }

    .read-more {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      color: var(--heading-color);
      text-decoration: none;
      font-weight: 600;
      font-size: 16px;
      transition: all 0.3s ease;
      position: relative;
      z-index: 1;

      span {
        position: relative;

        &::after {
          content: '';
          position: absolute;
          bottom: -2px;
          left: 0;
          width: 0;
          height: 2px;
          background: var(--accent-color);
          transition: width 0.3s ease;
        }
      }

      i {
        font-size: 22px;
        transition: transform 0.3s ease;
      }

      &:hover {
        color: var(--accent-color);

        span::after {
          width: 100%;
        }
      }
    }

    @media (max-width: 768px) {
      padding: 36px 28px;

      .service-number {
        font-size: 56px;
        top: 20px;
        right: 24px;
      }

      .icon-wrapper {
        width: 72px;
        height: 72px;
        margin-bottom: 24px;

        i {
          font-size: 34px;
        }
      }

      h3 {
        font-size: 22px;
        margin-bottom: 14px;
      }

      p {
        font-size: 14px;
        margin-bottom: 24px;
      }

      .read-more {
        font-size: 15px;

        i {
          font-size: 20px;
        }
      }
    }
  }
}