// main: ../main.scss
/*--------------------------------------------------------------
# Service Details Section
--------------------------------------------------------------*/
.service-details {
  .swiper-wrapper {
    height: auto !important;
  }

  .service-header {
    margin-bottom: 40px;

    h1 {
      font-size: 36px;
      font-weight: 700;
      margin-bottom: 20px;
      position: relative;

      &:after {
        content: "";
        position: absolute;
        bottom: -12px;
        left: 0;
        width: 80px;
        height: 4px;
        background: var(--accent-color);
      }
    }

    .service-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 20px;
      margin-bottom: 20px;
      margin-top: 25px;

      span {
        display: flex;
        align-items: center;
        font-size: 15px;
        color: color-mix(in srgb, var(--default-color), transparent 30%);

        i {
          color: var(--accent-color);
          margin-right: 8px;
          font-size: 16px;
        }
      }
    }

    .lead {
      font-size: 18px;
      line-height: 1.7;
      color: color-mix(in srgb, var(--default-color), transparent 15%);
    }
  }

  .service-tabs {
    margin-bottom: 50px;

    .nav-tabs {
      border-bottom: 2px solid color-mix(in srgb, var(--heading-color), transparent 90%);
      margin-bottom: 30px;

      .nav-item {
        margin-right: 5px;
      }

      .nav-link {
        border: none;
        border-radius: 0;
        padding: 12px 20px;
        font-weight: 600;
        color: color-mix(in srgb, var(--heading-color), transparent 30%);
        position: relative;
        transition: all 0.3s;
        display: flex;
        align-items: center;

        i {
          margin-right: 8px;
          font-size: 18px;
        }

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

        &:hover {
          color: var(--heading-color);
          background-color: transparent;

          &:after {
            width: 30%;
          }
        }

        &.active {
          color: var(--accent-color);
          background-color: transparent;

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

    .tab-content {
      .content-block {
        h3 {
          font-size: 24px;
          margin-bottom: 20px;
          font-weight: 700;
        }

        p {
          color: color-mix(in srgb, var(--default-color), transparent 20%);
          margin-bottom: 15px;
          line-height: 1.7;
        }
      }

      img {
        border-radius: 10px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
      }

      .process-timeline {
        position: relative;
        padding-left: 30px;

        &:before {
          content: '';
          position: absolute;
          top: 10px;
          bottom: 10px;
          left: 15px;
          width: 2px;
          background: color-mix(in srgb, var(--accent-color), transparent 80%);
        }

        .timeline-item {
          position: relative;
          padding-bottom: 35px;

          &:last-child {
            padding-bottom: 0;
          }

          .timeline-marker {
            position: absolute;
            left: -30px;
            top: -5px;
            width: 32px;
            height: 32px;
            background-color: var(--accent-color);
            color: var(--contrast-color);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 14px;
            z-index: 2;
          }

          .timeline-content {
            padding-left: 10px;
            ;

            h4 {
              font-size: 20px;
              font-weight: 700;
              margin-bottom: 10px;
            }

            p {
              color: color-mix(in srgb, var(--default-color), transparent 20%);
              line-height: 1.6;
            }
          }
        }
      }

      .benefit-card {
        background-color: var(--surface-color);
        border-radius: 12px;
        padding: 30px;
        transition: all 0.3s ease;
        height: 100%;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.04);
        position: relative;
        overflow: hidden;

        &:before {
          content: '';
          position: absolute;
          bottom: 0;
          left: 0;
          width: 100%;
          height: 3px;
          background: var(--accent-color);
          transform: scaleX(0);
          transform-origin: right;
          transition: transform 0.5s ease;
        }

        &:hover {
          transform: translateY(-8px);
          box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);

          &:before {
            transform: scaleX(1);
            transform-origin: left;
          }

          .benefit-icon {
            transform: rotateY(180deg);
            background-color: var(--accent-color);

            i {
              color: var(--contrast-color);
            }
          }
        }

        .benefit-icon {
          width: 60px;
          height: 60px;
          border-radius: 12px;
          background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
          display: flex;
          align-items: center;
          justify-content: center;
          margin-bottom: 20px;
          transition: all 0.5s ease;

          i {
            font-size: 28px;
            color: var(--accent-color);
            transition: all 0.5s ease;
          }
        }

        h4 {
          font-size: 18px;
          font-weight: 700;
          margin-bottom: 12px;
        }

        p {
          color: color-mix(in srgb, var(--default-color), transparent 20%);
          margin-bottom: 0;
        }
      }
    }
  }

  .service-gallery {
    h3 {
      font-size: 26px;
      margin-bottom: 25px;
      font-weight: 700;
    }

    .service-details-slider {
      margin-bottom: 40px;
      padding-bottom: 40px;

      .portfolio-item {
        position: relative;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);

        &:hover {
          .portfolio-info {
            opacity: 1;
            transform: translateY(0);
          }
        }

        img {
          border-radius: 12px;
          transition: all 0.4s ease;
        }

        .portfolio-info {
          position: absolute;
          bottom: 0;
          left: 0;
          right: 0;
          background: linear-gradient(0deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);
          padding: 30px 20px 20px;
          opacity: 0;
          transform: translateY(20px);
          transition: all 0.3s ease;
          border-bottom-left-radius: 12px;
          border-bottom-right-radius: 12px;

          h5 {
            color: var(--contrast-color);
            font-weight: 700;
            margin-bottom: 5px;
          }

          p {
            color: color-mix(in srgb, var(--contrast-color), transparent 20%);
            margin: 0;
            font-size: 14px;
          }
        }
      }

      .swiper-pagination {
        padding-top: 5px;
        bottom: 0;

        .swiper-pagination-bullet {
          width: 10px;
          height: 10px;
          background-color: color-mix(in srgb, var(--accent-color), transparent 70%);
          opacity: 1;

          &.swiper-pagination-bullet-active {
            width: 25px;
            border-radius: 5px;
            background-color: var(--accent-color);
          }
        }
      }
    }
  }

  .service-sidebar {
    position: sticky;
    top: 100px;

    .action-card {
      background: linear-gradient(135deg, var(--accent-color) 0%, color-mix(in srgb, var(--accent-color), black 20%) 100%);
      border-radius: 15px;
      padding: 35px 30px;
      color: var(--contrast-color);
      margin-bottom: 30px;
      position: relative;
      overflow: hidden;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
      text-align: center;

      &:before {
        content: "";
        position: absolute;
        top: -50px;
        right: -50px;
        width: 100px;
        height: 100px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.1);
        z-index: 1;
      }

      &:after {
        content: "";
        position: absolute;
        bottom: -40px;
        left: -40px;
        width: 80px;
        height: 80px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.08);
        z-index: 1;
      }

      h3 {
        color: var(--contrast-color);
        font-size: 24px;
        font-weight: 700;
        margin-bottom: 15px;
      }

      p {
        margin-bottom: 25px;
        opacity: 0.9;
      }

      .btn-primary {
        background-color: var(--contrast-color);
        color: var(--accent-color);
        border: none;
        border-radius: 8px;
        padding: 12px 25px;
        font-weight: 600;
        display: inline-block;
        transition: all 0.3s ease;

        &:hover {
          transform: translateY(-3px);
          box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
        }
      }

      .guarantee {
        display: block;
        margin-top: 20px;
        font-size: 14px;
        opacity: 0.8;

        i {
          margin-right: 5px;
        }
      }
    }

    .service-features-list {
      background-color: var(--surface-color);
      border-radius: 15px;
      padding: 30px;
      margin-bottom: 30px;
      box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);

      h4 {
        font-size: 20px;
        font-weight: 700;
        margin-bottom: 25px;
        padding-bottom: 15px;
        border-bottom: 2px solid color-mix(in srgb, var(--heading-color), transparent 90%);
      }

      ul {
        list-style: none;
        padding: 0;
        margin: 0;

        li {
          display: flex;
          align-items: flex-start;
          margin-bottom: 25px;

          &:last-child {
            margin-bottom: 0;
          }

          i {
            flex-shrink: 0;
            background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
            color: var(--accent-color);
            width: 42px;
            height: 42px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            margin-right: 15px;
          }

          div {
            flex: 1;

            h5 {
              font-size: 16px;
              font-weight: 700;
              margin-bottom: 5px;
            }

            p {
              color: color-mix(in srgb, var(--default-color), transparent 25%);
              margin: 0;
              font-size: 14px;
            }
          }
        }
      }
    }

    .testimonial-card {
      background-color: var(--surface-color);
      border-radius: 15px;
      padding: 30px;
      margin-bottom: 30px;
      box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);

      .testimonial-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;

        i {
          font-size: 36px;
          color: var(--accent-color);
          opacity: 0.3;
        }

        .rating {
          display: flex;

          i {
            color: #FFD700;
            font-size: 16px;
            opacity: 1;
            margin-left: 2px;
          }
        }
      }

      .testimonial-text {
        font-style: italic;
        line-height: 1.7;
        margin-bottom: 20px;
        color: color-mix(in srgb, var(--default-color), transparent 15%);
      }

      .client-info {
        display: flex;
        align-items: center;

        .client-image {
          width: 50px;
          height: 50px;
          border-radius: 50%;
          object-fit: cover;
          margin-right: 15px;
        }

        .client-details {
          h5 {
            font-size: 16px;
            font-weight: 700;
            margin: 0 0 5px;
          }

          span {
            font-size: 14px;
            color: color-mix(in srgb, var(--default-color), transparent 30%);
          }
        }
      }
    }

    .contact-info {
      background-color: var(--surface-color);
      border-radius: 15px;
      padding: 30px;
      box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);

      h4 {
        font-size: 20px;
        font-weight: 700;
        margin-bottom: 25px;
      }

      .contact-method {
        display: flex;
        align-items: flex-start;
        margin-bottom: 20px;

        &:last-child {
          margin-bottom: 0;
        }

        i {
          flex-shrink: 0;
          width: 40px;
          height: 40px;
          border-radius: 50%;
          background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
          color: var(--accent-color);
          display: flex;
          align-items: center;
          justify-content: center;
          font-size: 18px;
          margin-right: 15px;
        }

        div {
          flex: 1;

          span {
            display: block;
            font-size: 14px;
            color: color-mix(in srgb, var(--default-color), transparent 30%);
            margin-bottom: 5px;
          }

          p {
            margin: 0;
            font-weight: 600;
            color: var(--heading-color);
          }
        }
      }
    }
  }

  @media (max-width: 991px) {
    .service-sidebar {
      position: relative;
      top: 0;
      margin-bottom: 40px;
    }

    .service-header {
      h1 {
        font-size: 30px;
      }
    }
  }

  @media (max-width: 767px) {
    .service-tabs {
      .nav-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;

        .nav-link {
          white-space: nowrap;
          padding: 10px 15px;
          font-size: 14px;

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

    .service-header {
      h1 {
        font-size: 26px;
      }

      .service-meta {
        gap: 15px;

        span {
          font-size: 14px;
        }
      }

      .lead {
        font-size: 16px;
      }
    }
  }
}