/* services-overview page styles — extracted from templates/services-overview.html */
/* ============================================================
       PAGE — Services Overview
       ============================================================ */
    .services-overview-page {
        padding-top: 0;
    }

    /* --- Hero Section --- */
    .svc-hero {
        min-height: 60vh;
        min-height: 60dvh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 8rem var(--section-px) 4rem;
        position: relative;
        overflow: hidden;
        background: var(--black);
    }

    .svc-hero::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 70vw;
        height: 70vw;
        max-width: 900px;
        max-height: 900px;
        background: radial-gradient(circle, rgba(56, 87, 173, 0.18) 0%, transparent 65%);
        pointer-events: none;
        z-index: 0;
    }

    .svc-hero-content {
        position: relative;
        z-index: 2;
        max-width: 780px;
    }

    .svc-hero-content a {
        color: var(--light-blue);
        text-decoration: none;
    }

    .svc-hero-content a:hover {
        color: var(--pink) !important;
    }

    .svc-hero h1 {
        font-family: var(--font-body);
        font-weight: 500;
        font-size: var(--h1-size);
        line-height: 1.05;
        letter-spacing: -0.02em;
        color: var(--white);
        margin-bottom: 1.5rem;
    }

    .svc-hero p {
        font-family: var(--font-body);
        font-weight: 300;
        font-size: var(--body-size);
        line-height: 1.7;
        color: rgba(255, 255, 255, 0.65);
        max-width: 600px;
    }

    /* --- Timeline Section --- */
    .svc-timeline {
        position: relative;
        padding: clamp(3rem, 6vw, 6rem) var(--section-px);
        background: var(--black);
    }

    /* Vertical gradient line */
    .svc-timeline::before {
        content: '';
        position: absolute;
        left: 50%;
        top: 0;
        bottom: 0;
        width: 1px;
        background: linear-gradient(180deg, rgba(224,35,135,0.4) 0%, rgba(101,162,210,0.4) 50%, rgba(49,158,199,0.3) 100%);
        z-index: 0;
        transform: translateX(-50%);
    }

    /* --- Pillar Section --- */
    .svc-pillar {
        position: relative;
        z-index: 1;
        display: flex;
        margin-bottom: clamp(4rem, 8vw, 7rem);
        gap: clamp(2rem, 5vw, 4rem);
        align-items: flex-start;
        scroll-margin-top: 4rem;
    }

    .svc-pillar:last-child {
        margin-bottom: 0;
    }

    /* Odd pillars: content on left, empty spacer on right */
    .svc-pillar:nth-child(odd) {
        flex-direction: row;
    }

    /* Even pillars: empty spacer on left, content on right */
    .svc-pillar:nth-child(even) {
        flex-direction: row-reverse;
    }

    .svc-pillar-spacer {
        flex: 0 0 calc(50% - clamp(1rem, 3vw, 2.5rem));
    }

    /* Pillar content block */
    .svc-pillar-content {
        flex: 0 0 calc(50% - clamp(1rem, 3vw, 2.5rem));
        position: relative;
        background: rgba(255, 255, 255, 0.02);
        border: 1px solid rgba(255, 255, 255, 0.06);
        padding: clamp(2rem, 4vw, 3.5rem);
        transition: border-color 0.4s ease;
    }

    .svc-pillar-content::before {
        content: '';
        position: absolute;
        inset: 0;
        background:
            radial-gradient(ellipse at 30% 20%, rgba(224,35,135,0.06) 0%, transparent 60%),
            radial-gradient(ellipse at 70% 70%, rgba(101,162,210,0.06) 0%, transparent 60%);
        pointer-events: none;
        z-index: 0;
    }

    .svc-pillar-content > * {
        position: relative;
        z-index: 1;
    }

    /* Connecting line dot on the timeline */
    .svc-pillar::after {
        content: '';
        position: absolute;
        left: 50%;
        top: 2rem;
        width: 10px;
        height: 10px;
        background: var(--light-blue);
        border-radius: 50%;
        transform: translateX(-50%);
        z-index: 2;
        box-shadow: 0 0 12px rgba(49,158,199,0.5), 0 0 24px rgba(49,158,199,0.25);
    }

    .svc-step-number {
        font-family: var(--font-mono);
        font-size: 2rem;
        color: var(--light-blue);
        opacity: 0.6;
        line-height: 1;
    }

    .svc-pillar-title {
        font-family: var(--font-body);
        font-weight: 500;
        font-size: var(--h2-size);
        color: var(--white);
        line-height: 1.1;
        letter-spacing: -0.01em;
        margin-bottom: 1rem;
    }

    .svc-pillar-desc {
        font-family: var(--font-body);
        font-weight: 300;
        font-size: var(--body-size);
        color: rgba(255, 255, 255, 0.6);
        line-height: 1.65;
        margin-bottom: 2rem;
        max-width: 500px;
    }

    /* --- Capability icon wrapper --- */
    .svc-pillar-head {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        margin-bottom: 1rem;
    }

    .svc-pillar-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 28px;
        height: 28px;
        color: var(--light-blue);
        vertical-align: middle;
        margin-right: 0.5rem;
        flex-shrink: 0;
    }

    .svc-pillar-icon svg {
        width: 100%;
        height: 100%;
        display: block;
    }

    /* --- Pillar Icon Animations --- */
    #pillar-systems .svc-pillar-icon svg {
        animation: gear-rotate 20s linear infinite;
    }

    #pillar-data .svc-pillar-icon svg {
        animation: brain-pulse 2.5s ease-in-out infinite;
    }

    #pillar-web .svc-pillar-icon svg {
        animation: globe-float 3s ease-in-out infinite;
    }

    @keyframes gear-rotate {
        from { transform: rotate(0deg); }
        to { transform: rotate(360deg); }
    }

    @keyframes brain-pulse {
        0%, 100% { transform: scale(1); }
        50% { transform: scale(1.03); }
    }

    @keyframes globe-float {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-3px); }
    }

    /* --- Accordion Sub-services --- */
    .svc-accordion-list {
        display: flex;
        flex-direction: column;
        border-top: 1px solid rgba(101, 162, 210, 0.15);
    }

    .svc-accordion-item {
        border-bottom: 1px solid rgba(101, 162, 210, 0.15);
    }

    .svc-accordion-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 0;
        cursor: pointer;
        background: none;
        border: none;
        color: var(--white);
        width: 100%;
        text-align: left;
        font-family: var(--font-body);
        font-weight: 500;
        font-size: 1rem;
        transition: color 0.3s ease;
    }

    .svc-accordion-header:hover {
        color: var(--pink);
    }

    .svc-accordion-title {
        font-family: var(--font-body);
        font-weight: 500;
        font-size: 1rem;
    }

    .svc-accordion-toggle {
        font-family: var(--font-mono);
        font-size: 1.2rem;
        color: var(--light-blue);
        transition: transform 0.35s ease, color 0.3s ease;
        width: 24px;
        text-align: center;
        flex-shrink: 0;
    }

    .svc-accordion-item.open .svc-accordion-toggle {
        transform: rotate(45deg);
        color: var(--pink);
    }

    .svc-accordion-body {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease, padding 0.4s ease;
        padding: 0 0;
    }

    .svc-accordion-item.open .svc-accordion-body {
        max-height: 300px;
        padding: 0 0 1.25rem 0;
    }

    .svc-accordion-body p {
        font-family: var(--font-body);
        font-weight: 300;
        font-size: 0.9rem;
        color: rgba(255, 255, 255, 0.55);
        line-height: 1.6;
        margin-bottom: 0.75rem;
    }

    .svc-accordion-learn {
        font-family: var(--font-mono);
        font-size: 0.75rem;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--light-blue);
        cursor: pointer;
        transition: color 0.3s ease;
        display: inline-block;
        text-decoration: none;
    }

    .svc-accordion-learn:hover {
        color: var(--pink);
    }

    /* --- CTA Section --- */
    .svc-cta {
        padding: clamp(3rem, 6vw, 5rem) var(--section-px) clamp(4rem, 8vw, 7rem);
        background: var(--black);
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        position: relative;
        overflow: hidden;
    }

    .svc-cta::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 60vw;
        height: 60vw;
        max-width: 700px;
        max-height: 700px;
        background: radial-gradient(circle, rgba(56, 87, 173, 0.08) 0%, transparent 60%);
        pointer-events: none;
    }

    .svc-cta-inner {
        position: relative;
        z-index: 1;
        max-width: 600px;
    }

    .svc-cta h2 {
        font-family: var(--font-body);
        font-weight: 500;
        font-size: var(--h2-size);
        color: var(--white);
        line-height: 1.1;
        letter-spacing: -0.01em;
        margin-bottom: 1rem;
    }

    .svc-cta p {
        font-family: var(--font-body);
        font-weight: 300;
        font-size: var(--body-size);
        color: rgba(255, 255, 255, 0.55);
        line-height: 1.65;
        margin-bottom: 2.5rem;
    }

    /* --- Services Overview: override fade-in for standalone page --- */
    .services-overview-page .fade-in {
        opacity: 1;
        transform: translateY(0);
    }

    /* --- Services-specific responsive --- */
    @media (max-width: 768px) {
        .svc-timeline::before { display: none; }
        .svc-pillar::after { display: none; }
        .svc-pillar { flex-direction: column !important; }
        .svc-pillar-spacer { display: none; }
        .svc-pillar-content { flex: 1 1 auto; }
    }

    /* Reveal services page once all CSS is loaded */
    .services-overview-page { visibility: visible; }
