 /* ============================================================
     SERVICES SECTION — design tokens
     Palette is built for a dark, technical AI/automation identity:
     - bg: near-black, blue-tinted (not pure #000 → feels engineered, not flat)
     - accent: "signal blue" — reads as data / pipeline / signal
     - accent-2: warm amber — the "output" / result color, used sparingly
     Typography: Space Grotesk (display, geometric/technical) +
     Inter (body) + JetBrains Mono (labels — echoes the tech-pill tags
     already used on the Skills section of the live site).
  ============================================================ */
 :root {
     --bg: #0A0E14;
     --surface: #10141C;
     --surface-2: #151B26;
     --border: #232938;
     --border-hover: #3A4560;
     --text: #E7ECF5;
     --text-muted: #8B93A6;
     --accent: #6E8BFF;
     --accent-soft: rgba(110, 139, 255, 0.12);
     --accent-glow: rgba(110, 139, 255, 0.35);
     --accent-2: #FFB454;
     --accent-2-soft: rgba(255, 180, 84, 0.12);
     --radius: 14px;
     --font-display: 'Space Grotesk', sans-serif;
     --font-body: 'Inter', sans-serif;
     --font-mono: 'JetBrains Mono', monospace;
 }

 * {
     box-sizing: border-box;
 }

 .services {
     background: var(--bg);
     color: var(--text);
     font-family: var(--font-body);
     padding: 120px 8vw 100px;
     position: relative;
     overflow: hidden;
 }

 /* faint ambient grid — signals "systems/automation" without shouting */
 .services::before {
     content: "";
     position: absolute;
     inset: 0;
     background-image:
         linear-gradient(var(--border) 1px, transparent 1px),
         linear-gradient(90deg, var(--border) 1px, transparent 1px);
     background-size: 64px 64px;
     opacity: 0.08;
     mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 0%, transparent 70%);
     pointer-events: none;
 }

 .services__header {
     max-width: 640px;
     margin: 0 auto 88px;
     text-align: center;
     position: relative;
     z-index: 1;
 }

 .services__eyebrow {
     display: inline-flex;
     align-items: center;
     gap: 8px;
     font-family: var(--font-mono);
     font-size: 13px;
     letter-spacing: 0.08em;
     color: var(--accent);
     background: var(--accent-soft);
     border: 1px solid rgba(110, 139, 255, 0.25);
     padding: 6px 14px;
     border-radius: 100px;
     margin-bottom: 22px;
 }

 .services__eyebrow::before {
     content: "";
     width: 6px;
     height: 6px;
     border-radius: 50%;
     background: var(--accent);
     box-shadow: 0 0 8px var(--accent-glow);
 }

 .services__header h2 {
     font-family: var(--font-display);
     font-size: clamp(32px, 4.5vw, 48px);
     font-weight: 600;
     line-height: 1.15;
     margin: 0 0 16px;
     letter-spacing: -0.01em;
 }

 .services__header h2 span {
     color: var(--accent);
 }

 .services__header p {
     color: var(--text-muted);
     font-size: 16px;
     line-height: 1.7;
     margin: 0;
 }

 /* ============================================================
     PIPELINE — the signature element.
     Six services rendered as connected stages, mirroring the
     agent/automation pipelines (n8n, multi-agent workflows) this
     freelancer actually builds. A signal travels the line on loop.
  ============================================================ */
 .pipeline {
     position: relative;
     max-width: 1240px;
     margin: 0 auto;
     z-index: 1;
 }

 .pipeline__track {
     position: absolute;
     left: 39px;
     top: 0;
     bottom: 0;
     width: 2px;
     background: linear-gradient(180deg, transparent, var(--border) 8%, var(--border) 92%, transparent);
 }

 .pipeline__track::after {
     content: "";
     position: absolute;
     left: 50%;
     top: 0;
     width: 6px;
     height: 80px;
     margin-left: -2px;
     border-radius: 4px;
     background: linear-gradient(180deg, transparent, var(--accent), var(--accent-2), transparent);
     filter: blur(1px);
     animation: signal-flow 5.5s linear infinite;
 }

 @keyframes signal-flow {
     0% {
         top: -80px;
         opacity: 0;
     }

     8% {
         opacity: 1;
     }

     92% {
         opacity: 1;
     }

     100% {
         top: 100%;
         opacity: 0;
     }
 }

 .service-row {
     position: relative;
     display: grid;
     grid-template-columns: 80px 1fr;
     gap: 0 32px;
     margin-bottom: 28px;
 }

 .service-row__node {
     position: relative;
     display: flex;
     align-items: flex-start;
     justify-content: center;
     padding-top: 34px;
 }

 .service-row__node .dot {
     width: 14px;
     height: 14px;
     border-radius: 50%;
     background: var(--surface);
     border: 2px solid var(--accent);
     box-shadow: 0 0 0 5px var(--bg), 0 0 16px 2px var(--accent-glow);
     z-index: 2;
     transition: transform .3s ease, box-shadow .3s ease;
 }

 .service-row:hover .dot {
     transform: scale(1.25);
     box-shadow: 0 0 0 5px var(--bg), 0 0 22px 6px var(--accent-glow);
 }

 .service-card {
     background: linear-gradient(180deg, var(--surface-2), var(--surface));
     border: 1px solid var(--border);
     border-radius: var(--radius);
     padding: 32px 34px;
     display: grid;
     grid-template-columns: 1fr auto;
     gap: 20px 32px;
     align-items: start;
     transition: border-color .3s ease, transform .3s ease, box-shadow .3s ease;
 }

 .service-row:hover .service-card {
     border-color: var(--border-hover);
     transform: translateX(6px);
     box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.6);
 }

 .service-card__index {
     font-family: var(--font-mono);
     font-size: 12px;
     color: var(--accent);
     letter-spacing: 0.06em;
     display: block;
     margin-bottom: 10px;
 }

 .service-card__title {
     font-family: var(--font-display);
     font-size: 21px;
     font-weight: 600;
     margin: 0 0 10px;
     letter-spacing: -0.01em;
 }

 .service-card__desc {
     color: var(--text-muted);
     font-size: 14.5px;
     line-height: 1.7;
     margin: 0 0 18px;
     max-width: 56ch;
 }

 .service-card__tags {
     display: flex;
     flex-wrap: wrap;
     gap: 8px;
 }

 .service-card__tags span {
     font-family: var(--font-mono);
     font-size: 11.5px;
     color: var(--text-muted);
     background: var(--bg);
     border: 1px solid var(--border);
     padding: 5px 10px;
     border-radius: 6px;
 }

 .service-card__meta {
     text-align: right;
     white-space: nowrap;
     padding-top: 2px;
 }

 .service-card__meta .label {
     display: block;
     font-family: var(--font-mono);
     font-size: 11px;
     color: var(--text-muted);
     text-transform: uppercase;
     letter-spacing: 0.08em;
     margin-bottom: 6px;
 }

 .service-card__meta .value {
     display: block;
     font-family: var(--font-display);
     font-size: 16px;
     font-weight: 600;
     color: var(--accent-2);
 }

 /* CTA */
 .services__cta {
     max-width: 1240px;
     margin: 72px auto 0;
     padding: 36px 40px;
     border-radius: var(--radius);
     background: linear-gradient(120deg, var(--accent-soft), var(--accent-2-soft));
     border: 1px solid var(--border-hover);
     display: flex;
     align-items: center;
     justify-content: space-between;
     gap: 24px;
     flex-wrap: wrap;
     position: relative;
     z-index: 1;
 }

 .services__cta p {
     margin: 0;
     font-size: 15px;
     color: var(--text-muted);
 }

 .services__cta strong {
     color: var(--text);
     font-family: var(--font-display);
     font-size: 18px;
 }

 .services__cta a {
     font-family: var(--font-mono);
     font-size: 13.5px;
     color: var(--bg);
     background: var(--accent);
     padding: 12px 22px;
     border-radius: 100px;
     text-decoration: none;
     font-weight: 500;
     transition: background .25s ease, transform .25s ease;
     white-space: nowrap;
 }

 .services__cta a:hover {
     background: var(--accent-2);
     transform: translateY(-2px);
 }

 /* focus visibility for keyboard nav */
 .services a:focus-visible,
 .service-card:focus-visible {
     outline: 2px solid var(--accent);
     outline-offset: 3px;
 }

 /* ---- responsive ---- */
 @media (max-width: 760px) {
     .services {
         padding: 80px 6vw 70px;
     }

     .pipeline__track {
         left: 19px;
     }

     .service-row {
         grid-template-columns: 40px 1fr;
         gap: 0 16px;
         margin-bottom: 20px;
     }

     .service-row__node {
         padding-top: 26px;
     }

     .service-card {
         grid-template-columns: 1fr;
         padding: 24px;
     }

     .service-card__meta {
         text-align: left;
     }

     .services__cta {
         flex-direction: column;
         align-items: flex-start;
         text-align: left;
     }
 }

 @media (prefers-reduced-motion: reduce) {
     .pipeline__track::after {
         animation: none;
         display: none;
     }

     .service-card,
     .dot {
         transition: none;
     }
 }