﻿*, *::before, *::after { box-sizing: border-box; }

  .idx-svcs {
    position: relative;
    padding: 6rem 1.5rem;
    overflow: hidden;
    background-color: #09090b;
    font-family: 'Inter', sans-serif;
  }

  /* Parallax background — matches Lovable bg-fixed (background-attachment: fixed) */
  .idx-svcs-parallax-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://assets.cdn.filesafe.space/EOZVz0IrtMKBTAoomHyp/media/57b9a9cd-a29b-4bec-b3c9-41ad951d26f5.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 0;
  }

  /* AnimatedButton keyframes (available for any animated button in this section) */
  @keyframes idx-btn-transform {
    0%   { transform: translate(-55%); }
    100% { transform: translate(55%); }
  }
  @keyframes idx-btn-opacity {
    0%, 100% { opacity: 0; }
    15%       { opacity: 1; }
    65%       { opacity: 0; }
  }

  .idx-svcs-inner {
    position: relative;
    z-index: 10;
    max-width: 80rem;
    margin: 0 auto;
  }

  .idx-svcs-header {
    text-align: center;
    margin-bottom: 4rem;
  }

  .idx-svcs-h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.03em;
    margin: 0 0 1rem;
  }

  .idx-svcs-sub {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.7);
    max-width: 40rem;
    margin: 0 auto;
    letter-spacing: -0.01em;
  }

  /* Service cards grid */
  .idx-svcs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    perspective: 1500px;
  }

  @media (min-width: 768px) {
    .idx-svcs-grid { grid-template-columns: repeat(2, 1fr); }
  }

  @media (min-width: 1024px) {
    .idx-svcs-grid { grid-template-columns: repeat(3, 1fr); }
  }

  /* 3D card */
  .idx-svc-card {
    position: relative;
    background: rgba(24,24,27,0.8);
    backdrop-filter: blur(16px);
    border-radius: 1rem;
    padding: 1.5rem;
    min-height: 22rem;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(239,68,68,0.5);
    box-shadow: 0 20px 50px -12px rgba(0,0,0,0.6), 0 0 0 1px rgba(239,68,68,0.2), inset 0 1px 0 rgba(255,255,255,0.05);
    transform-style: preserve-3d;
    transition: all 0.7s cubic-bezier(0.175,0.885,0.32,1.275);
    cursor: default;
  }

  .idx-svc-card:hover {
    transform: translateY(-20px) rotateX(8deg) rotateY(-2deg) scale(1.02);
    border-color: rgba(239,68,68,1);
    box-shadow: 0 50px 100px -20px rgba(0,0,0,0.8), 0 30px 60px -15px rgba(239,68,68,0.25), 0 0 0 1px rgba(239,68,68,0.5), inset 0 1px 0 rgba(255,255,255,0.1);
  }

  /* Glossy overlay */
  .idx-svc-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1rem;
    background: linear-gradient(to bottom, rgba(255,255,255,0.1), transparent, transparent);
    opacity: 0.6;
    transition: opacity 0.5s;
    pointer-events: none;
  }
  .idx-svc-card:hover::before { opacity: 1; }

  /* Top shine line */
  .idx-svc-card::after {
    content: '';
    position: absolute;
    inset-x: 0;
    top: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(239,68,68,0.6), transparent);
    transition: all 0.5s;
  }
  .idx-svc-card:hover::after { background: linear-gradient(to right, transparent, rgba(239,68,68,1), transparent); }

  /* Floating shadow under card */
  .idx-svc-glow {
    position: absolute;
    inset-x: 1rem;
    bottom: -1.5rem;
    height: 3rem;
    background: rgba(239,68,68,0.3);
    filter: blur(1.5rem);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.7s;
  }
  .idx-svc-card:hover .idx-svc-glow { opacity: 1; transform: translateY(0.5rem); }

  /* Card header */
  .idx-svc-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
    margin-bottom: 1.5rem;
  }

  .idx-svc-icon-wrap {
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s cubic-bezier(0.175,0.885,0.32,1.275);
  }
  .idx-svc-card:hover .idx-svc-icon-wrap { transform: scale(1.1) rotate(3deg); }

  .idx-svc-icon {
    width: 3rem;
    height: 3rem;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(239,68,68,0.4));
    transition: all 0.5s;
  }
  .idx-svc-card:hover .idx-svc-icon { filter: drop-shadow(0 8px 24px rgba(239,68,68,0.6)); }

  .idx-svc-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.65rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.375rem 0.625rem;
    border-radius: 0.375rem;
  }

  .idx-badge-featured {
    border: 1px solid rgba(239,68,68,0.5);
    background: rgba(239,68,68,0.1);
    color: #f87171;
  }

  .idx-badge-standard {
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.8);
  }

  .idx-svc-badge svg { width: 0.875rem; height: 0.875rem; }

  /* Card body */
  .idx-svc-body {
    position: relative;
    z-index: 1;
    margin-bottom: 1.25rem;
  }

  .idx-svc-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.375rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: -0.02em;
    margin: 0 0 0.375rem;
  }

  .idx-svc-sub {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    letter-spacing: -0.01em;
  }

  /* Divider */
  .idx-svc-div {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(239,68,68,0.3), transparent);
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 1;
  }

  /* Features list */
  .idx-svc-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    flex: 1;
    position: relative;
    z-index: 1;
  }

  .idx-svc-feature {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.75);
  }

  .idx-svc-check {
    width: 1rem;
    height: 1rem;
    color: #ef4444;
    flex-shrink: 0;
    margin-top: 1px;
  }

  /* CTA button */
  .idx-svc-cta {
    position: relative;
    z-index: 1;
  }

  .idx-svc-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 2.5rem;
    padding: 0 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #fff;
    background: linear-gradient(to right, #dc2626, #ef4444, #dc2626);
    background-size: 200% auto;
    border-radius: 9999px;
    text-decoration: none;
    letter-spacing: -0.01em;
    box-shadow: 0 0 40px rgba(239,68,68,0.6), 0 0 0 1px rgba(239,68,68,0.7);
    transition: all 0.3s cubic-bezier(0.175,0.885,0.32,1.275);
  }
  .idx-svc-btn:hover {
    box-shadow: 0 0 50px rgba(239,68,68,0.8), 0 0 0 1px rgba(239,68,68,0.9);
    filter: brightness(1.1);
  }

  .idx-svc-btn-arrow {
    width: 1rem;
    height: 1rem;
    margin-left: 0.5rem;
    transition: transform 0.3s;
  }
  .idx-svc-btn:hover .idx-svc-btn-arrow { transform: translateX(4px); }

  .idx-svcs-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(220,38,38,0.3), transparent);
    margin-top: 4rem;
  }

  @media (max-width: 600px) {
    .idx-svcs { padding: 4rem 1rem; }
    .idx-svc-card:hover { transform: translateY(-8px); }
  }