/*--------------------------------------------------------------
# Services Section
--------------------------------------------------------------*/
section.services {
  .tabs-header {
    margin-bottom: 80px;

    @media (max-width: 768px) {
      margin-bottom: 60px;
    }

    .nav-tabs {
      border: none;
      justify-content: center;
      gap: 0;
      background: var(--surface-color);
      border-radius: 8px;
      padding: 8px;
      box-shadow: 0 2px 20px color-mix(in srgb, var(--default-color), transparent 94%);

      @media (max-width: 768px) {
        flex-direction: column;
        gap: 4px;
      }

      .nav-item {
        flex: 1;
        cursor: pointer;

        @media (max-width: 768px) {
          flex: none;
          width: 100%;
        }
      }

      .nav-link {
        border: none;
        background: transparent;
        padding: 0;
        border-radius: 6px;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;

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

          .tab-content-preview {
            .tab-number {
              color: var(--contrast-color);
              background: color-mix(in srgb, var(--contrast-color), transparent 85%);
            }

            .tab-text {
              h6,
              small {
                color: var(--contrast-color);
              }
            }
          }
        }

        &:hover:not(.active) {
          background: color-mix(in srgb, var(--accent-color), transparent 95%);

          .tab-content-preview {
            .tab-number {
              background: color-mix(in srgb, var(--accent-color), transparent 85%);
              color: var(--accent-color);
            }
          }
        }

        .tab-content-preview {
          display: flex;
          align-items: center;
          gap: 16px;
          padding: 20px 24px;

          @media (max-width: 768px) {
            padding: 16px 20px;
            gap: 12px;
          }

          .tab-number {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: color-mix(in srgb, var(--default-color), transparent 92%);
            color: color-mix(in srgb, var(--default-color), transparent 30%);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 13px;
            font-weight: 600;
            transition: all 0.3s ease;
            flex-shrink: 0;

            @media (max-width: 768px) {
              width: 32px;
              height: 32px;
              font-size: 12px;
            }
          }

          .tab-text {
            text-align: left;

            @media (max-width: 768px) {
              flex: 1;
            }

            h6 {
              margin: 0 0 2px 0;
              font-size: 14px;
              font-weight: 500;
              color: var(--heading-color);
              transition: all 0.3s ease;

              @media (max-width: 768px) {
                font-size: 13px;
              }
            }

            small {
              font-size: 11px;
              color: color-mix(in srgb, var(--default-color), transparent 40%);
              transition: all 0.3s ease;
              display: block;
              line-height: 1;
            }
          }
        }
      }
    }
  }

   .tab-content {
    .tab-pane {
      animation: fadeInContent 0.5s ease-in-out;
    }

    .content-area {
      position: relative;
      max-width: 44rem;
      padding: clamp(1.8rem, 1.5rem + 0.6vw, 2.4rem)
               clamp(2.4rem, 2rem + 1vw, 3rem);
      margin-left: -0.25rem; // tiny optical adjustment
      background: color-mix(in srgb, var(--surface-color), transparent 75%);
      border-radius: 1.5rem;
      box-shadow: 0 18px 40px color-mix(in srgb, #000000, transparent 88%);
      border: 1px solid color-mix(in srgb, var(--default-color), transparent 88%);
      backdrop-filter: blur(4px);
      padding-right: clamp(2.6rem, 2.1rem + 1.1vw, 3.2rem);

      @media (max-width: 992px) {
        max-width: 100%;
        margin: 0 0 3rem 0;
        padding: clamp(1.6rem, 1.4rem + 0.5vw, 2rem);
      }

      // badge + typography from before
      .content-badge {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        background: color-mix(in srgb, var(--accent-color), transparent 92%);
        color: var(--accent-color);
        padding: 0.5rem 1rem;
        border-radius: 999px;
        font-size: clamp(0.7rem, 0.66rem + 0.1vw, 0.8rem);
        font-weight: 500;
        margin-bottom: 1.5rem;

        i {
          font-size: 0.9rem;
        }
      }

      h3 {
        font-size: clamp(2.1rem, 1.7rem + 0.6vw, 2.7rem);
        font-weight: 700;
        line-height: 1.15;
        letter-spacing: -0.03em;
        margin-bottom: clamp(1.4rem, 1.2rem + 0.5vw, 1.9rem);
        max-width: 24ch;
      }

      p {
        font-size: clamp(1.05rem, 1rem + 0.2vw, 1.15rem);
        line-height: 1.8;
        color: color-mix(in srgb, var(--default-color), transparent 12%);
        margin-bottom: clamp(1.7rem, 1.5rem + 0.6vw, 2.3rem);
        max-width: 38rem;
      }

          .highlight-stats {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: clamp(2.2rem, 1.8rem + 1vw, 3.2rem);
        padding: clamp(0.9rem, 0.8rem + 0.2vw, 1.1rem)
                 clamp(1.4rem, 1.2rem + 0.4vw, 1.9rem);
        margin-top: clamp(0.9rem, 0.8rem + 0.2vw, 1.1rem);
        margin-bottom: clamp(1.9rem, 1.7rem + 0.6vw, 2.5rem);
        border-radius: 999px;
        background: color-mix(in srgb, var(--surface-color), transparent 68%);
        border: 1px solid color-mix(in srgb, var(--default-color), transparent 82%);
        box-shadow: 0 10px 28px color-mix(in srgb, #000000, transparent 90%);

        @media (max-width: 576px) {
          flex-direction: column;
          align-items: flex-start;
          gap: 0.9rem;
          border-radius: 1.1rem;
        }

        .stat-item {
          .stat-value {
            display: block;
            font-size: clamp(2rem, 1.8rem + 0.4vw, 2.3rem);
            font-weight: 600;
            font-family: "Paytone One", system-ui, -apple-system,
              BlinkMacSystemFont, "Segoe UI", sans-serif;
            color: var(--accent-color);
            line-height: 1.05;
            margin-bottom: 0.15rem;
          }

          .stat-label {
            font-size: clamp(0.7rem, 0.68rem + 0.12vw, 0.8rem);
            color: color-mix(in srgb, var(--default-color), transparent 35%);
            text-transform: uppercase;
            letter-spacing: 0.09em;
          }
        }
      }

            .feature-points {
        margin-bottom: clamp(1.9rem, 1.7rem + 0.6vw, 2.4rem);
        display: grid;
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
        column-gap: clamp(1.8rem, 1.4rem + 0.8vw, 2.6rem);
        row-gap: 0.75rem;

        @media (max-width: 768px) {
          grid-template-columns: minmax(0, 1fr);
        }

        .point-item {
          display: flex;
          align-items: flex-start;
          gap: 0.75rem;

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

          i {
            font-size: 0.85rem;
            color: var(--accent-color);
            margin-top: 0.25rem;
            flex-shrink: 0;
          }

          span {
            font-size: clamp(0.98rem, 0.95rem + 0.15vw, 1.05rem);
            line-height: 1.75;
            color: color-mix(in srgb, var(--default-color), transparent 10%);
          }
        }
      }

      .explore-link {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        color: var(--accent-color);
        text-decoration: none;
        font-size: clamp(0.9rem, 0.88rem + 0.12vw, 1rem);
        font-weight: 500;
        transition: all 0.3s ease;

        &:hover {
          gap: 0.75rem;
          color: var(--accent-color);

          i {
            transform: translate(2px, -2px);
          }
        }

        i {
          font-size: 1rem;
          transition: all 0.3s ease;
        }
      }
    }
    .visual-content {
      position: relative;
      padding-left: 40px;

      @media (max-width: 992px) {
        padding-left: 0;
      }

      img {
        width: 100%;
        border-radius: 8px;
      }

      .floating-element {
        position: absolute;
        bottom: 20px;
        right: 20px;

        @media (max-width: 768px) {
          bottom: 15px;
          right: 15px;
        }

        .floating-card {
          background: var(--surface-color);
          backdrop-filter: blur(10px);
          border-radius: 12px;
          padding: 16px 20px;
          display: flex;
          align-items: center;
          gap: 12px;
          box-shadow: 0 8px 30px color-mix(in srgb, var(--default-color), transparent 85%);
          border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
          animation: floatAnimation 3s ease-in-out infinite;

          @media (max-width: 768px) {
            padding: 12px 16px;
            gap: 10px;
          }

          i {
            font-size: 20px;
            color: var(--accent-color);

            @media (max-width: 768px) {
              font-size: 18px;
            }
          }

          .card-info {
            span {
              display: block;
              font-size: 10px;
              color: color-mix(in srgb, var(--default-color), transparent 40%);
              text-transform: uppercase;
              letter-spacing: 0.5px;
              margin-bottom: 2px;
            }

            strong {
              display: block;
              font-size: 13px;
              font-weight: 600;
              color: var(--heading-color);

              @media (max-width: 768px) {
                font-size: 12px;
              }
            }
          }
        }
      }
    }
  }

  @keyframes fadeInContent {
    from {
      opacity: 0;
      transform: translateY(20px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes floatAnimation {
    0%,
    100% {
      transform: translateY(0px);
    }

    50% {
      transform: translateY(-8px);
    }
  }
}

/* Services buttons: emulate Hero/About CTA set */
section.services {
  .services-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center; /* centered like your About */
    margin-top: clamp(1rem, 0.8rem + 0.6vw, 1.4rem);
    flex-wrap: wrap;
    text-align: center; /* keeps wrapped lines centered */
  }

  .services-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: var(--accent-color);
    color: var(--contrast-color);

    padding: clamp(0.85rem, 1.1rem, 1rem) clamp(1.75rem, 2.5rem, 2.25rem);
    font-size: 1rem;
    font-weight: 600;

    border-radius: 0.6rem;
    text-decoration: none;
    transition: all 0.25s ease;

    box-shadow: 0 0.25rem 0.9375rem
      color-mix(in srgb, var(--accent-color), transparent 60%);

    &:hover {
      background: color-mix(in srgb, var(--accent-color), black 10%);
      transform: translateY(-0.125rem);
      box-shadow: 0 0.5rem 1.5625rem
        color-mix(in srgb, var(--accent-color), transparent 40%);
      color: var(--contrast-color);
      text-decoration: none;
    }
  }

  .services-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;

    padding: 0.85rem 1.1rem;
    border-radius: 0.6rem;

    font-weight: 700;
    font-size: 1rem;

    color: var(--heading-color);
    text-decoration: none;

    background: color-mix(in srgb, var(--surface-alt), transparent 12%);
    border: 1px solid color-mix(in srgb, var(--accent-alt), transparent 55%);
    backdrop-filter: blur(0.5rem);

    transition: all 0.25s ease;

    i {
      font-size: 1.15rem;
      color: var(--accent-alt);
    }

    &:hover {
      transform: translateY(-0.125rem);
      border-color: color-mix(in srgb, var(--accent-alt), transparent 35%);
      color: var(--heading-color);
      text-decoration: none;
    }
  }

  @media (max-width: 768px) {
    .services-actions {
      flex-direction: column;
      align-items: center;
      gap: 0.85rem;
    }
  }
}

/* Services: force the right-side image to be square + cover */
section.services {
  .tab-content {
    .visual-content {
      position: relative;

      /* Optional: reduce the left offset so the image feels bigger */
      padding-left: clamp(0rem, 2.5vw, 2.5rem);

      @media (max-width: 992px) {
        padding-left: 0;
      }

      /* The image becomes a square frame and crops nicely */
      > img {
        display: block;
        width: 100%;
        max-width: 100%;

        aspect-ratio: 1 / 1;   /* <-- makes it square */
        height: auto;

        object-fit: cover;      /* <-- fills the square */
        object-position: center; /* tweak if you need (e.g. 55% 25%) */

        border-radius: 0.75rem; /* matches your rounded look */
      }
    }
  }
}