/* Services Section (Systems) - Premium Sticky Stack */
.services-section {
    padding: 6rem 0 14rem;
    position: relative;
    background: transparent;
}

.services-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 5rem;
}

.services-header .section-title {
    margin-bottom: 1rem;
}

.services-header .cta-subtitle {
    margin: 0 auto;
    max-width: 580px;
}

.sticky-deck {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.sticky-card {
    position: sticky;
    top: calc(120px + (var(--index) * 22px));
    background: rgba(12, 12, 16, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 28px;
    padding: 3.5rem 4rem;
    box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.5), 0 0 0 0.5px rgba(255,255,255,0.03);
    overflow: hidden;
    display: flex;
    align-items: center;
}

/* Top glow line per card */
.sticky-card::before {
    content: '';
    position: absolute;
    top: 0; left: 10%; width: 80%; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 79, 0, 0.55), transparent);
    border-radius: 1px;
}

.card-content-wrap {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 3rem;
    align-items: center;
    width: 100%;
}

.card-text h3 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin-bottom: 1.2rem;
    line-height: 1.2;
}

.card-text p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.75;
    margin-bottom: 0;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
}

.tech-stack li {
    font-size: 0.85rem;
    padding: 0.5rem 1.1rem;
    background: rgba(255, 79, 0, 0.08);
    border-radius: 100px;
    border: 1px solid rgba(255, 79, 0, 0.18);
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 0.02em;
}

/* Visualization Icon */
.card-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.service-icon-large {
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(255, 79, 0, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed rgba(255, 79, 0, 0.25);
    position: relative;
}

/* Remove the conflicting generic .icon-shape background - these are now SVGs */
.icon-shape {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* SVG stroke animations — renamed to avoid @keyframes conflict with preloader 'spin' */
.svg-pulse { animation: svc-pulse 2.5s ease-in-out infinite; }
.svg-spin  { animation: svc-spin 8s linear infinite; }
.svg-float { animation: svc-float 3.5s ease-in-out infinite alternate; }
.svg-glow  { filter: drop-shadow(0 0 16px rgba(255, 79, 0, 0.7)); animation: svc-glow-breathe 3s ease-in-out infinite; }

@keyframes svc-pulse {
    0%, 100% { transform: scale(0.92); opacity: 0.8; }
    50%       { transform: scale(1.08); opacity: 1; }
}
@keyframes svc-spin  { 100% { transform: rotate(360deg); } }
@keyframes svc-float {
    from { transform: translateY(-12px); }
    to   { transform: translateY(12px); }
}
@keyframes svc-glow-breathe {
    0%, 100% { filter: drop-shadow(0 0 10px rgba(255, 79, 0, 0.5)); }
    50%       { filter: drop-shadow(0 0 28px rgba(255, 79, 0, 0.9)); }
}

/* ── Mobile ──────────────────────────────── */
@media (max-width: 992px) {
    .services-section { padding: 5rem 0 10rem; }

    .card-content-wrap {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .tech-stack { justify-content: center; }

    .service-icon-large {
        width: 140px;
        height: 140px;
        margin: 0 auto;
    }

    .sticky-card {
        padding: 2.5rem 1.75rem;
        top: auto !important;
        position: relative !important;
        border-radius: 20px;
    }
}

@media (max-width: 480px) {
    .sticky-card { padding: 2rem 1.25rem; }
    .card-text h3 { font-size: 1.6rem; }
    .card-text p  { font-size: 1rem; }
}
