#services.services-main {
    width: 100%;
    min-height: 100vh;
    padding: 40px 20px 72px;
    background-color: transparent;
}

#services .services-containers {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 1600px;
    margin: 0 auto 48px;
    padding: 0;
}

@media (min-width: 769px) {
    #services.services-main {
        padding-left: 40px;
        padding-right: 40px;
    }

    #services .services-containers {
        padding: 0;
    }
}

/* Services Flowchart Container */
#services .services-rect-container {
    background-color: #f5f5f5;
    min-height: 200px;
    border-radius: 8px;
}

#services .services-flowchart-container {
    background: #f5f5f5;
    padding: 32px 24px 32px 32px;
    border-radius: 8px;
}

/* Services Flowchart Styles */
.services-flowchart {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.services-process-step {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    align-items: center;
    padding-left: 25px;
}

.services-step-number {
    display: none;
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #003a7d 0%, #2d7a3f 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    text-align: center;
}

.services-step-card {
    position: relative;
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 2px;
    padding: 24px 16px 24px 58px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 6px 16px rgba(0, 0, 0, 0.03);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: visible;
    min-height: 100px;
}

.services-step-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08), 0 20px 48px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

/* Circular Icon - Overlapping the card */
.services-step-icon {
    position: absolute;
    left: -25px;
    top: 50%;
    transform: translateY(-50%);
    width: 72px;
    height: 72px;
    border-radius: 2px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 2;
}

.services-step-icon::before {
    content: '';
    position: absolute;
    inset: 4px;
    border-radius: 2px;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.services-step-icon svg {
    width: 28px;
    height: 28px;
    stroke-width: 1.8;
}

.services-step-content {
    flex: 1;
    min-width: 0;
    padding-right: 16px;
}

.services-step-content h3 {
    font-size: 1.0625rem;
    font-weight: 700;
    color: #0a0a0a;
    margin: 0 0 8px 0;
    letter-spacing: -0.01em;
}

.services-step-content p {
    font-size: 0.9rem;
    line-height: 1.55;
    color: #666;
    margin: 0;
}

/* Accent Bars */
.services-accent-bar {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    border-radius: 0 2px 2px 0;
    transition: width 0.25s ease;
}

.services-step-card:hover .services-accent-bar {
    width: 7px;
}

.services-accent-1 {
    background: linear-gradient(180deg, #003a7d 0%, #0052a3 100%);
}

.services-accent-2 {
    background: linear-gradient(180deg, #0066b3 0%, #0088dd 100%);
}

.services-accent-3 {
    background: linear-gradient(180deg, #0088dd 0%, #1a9e6d 100%);
}

.services-accent-4 {
    background: linear-gradient(180deg, #1a9e6d 0%, #2d7a3f 100%);
}

.services-accent-5 {
    background: linear-gradient(180deg, #2d7a3f 0%, #4a9e5f 100%);
}

.services-accent-6 {
    background: linear-gradient(180deg, #4a9e5f 0%, #6ab67e 100%);
}

.services-accent-7 {
    background: linear-gradient(180deg, #6ab67e 0%, #8ace9e 100%);
}

.services-accent-8 {
    background: linear-gradient(180deg, #8ace9e 0%, #ace6bd 100%);
}

/* Step Icon Colors */
.services-process-step:nth-child(1) .services-step-icon svg {
    stroke: #003a7d;
}

.services-process-step:nth-child(2) .services-step-icon svg {
    stroke: #0066b3;
}

.services-process-step:nth-child(3) .services-step-icon svg {
    stroke: #0088dd;
}

.services-process-step:nth-child(4) .services-step-icon svg {
    stroke: #1a9e6d;
}

.services-process-step:nth-child(5) .services-step-icon svg {
    stroke: #2d7a3f;
}

.services-process-step:nth-child(6) .services-step-icon svg {
    stroke: #4a9e5f;
}

.services-process-step:nth-child(7) .services-step-icon svg {
    stroke: #6ab67e;
}

.services-process-step:nth-child(8) .services-step-icon svg {
    stroke: #8ace9e;
}

/* Connecting Lines */
.services-step-line {
    position: absolute;
    left: 0;
    top: 100%;
    height: 24px;
    width: 2px;
    background: linear-gradient(180deg, rgba(0, 58, 125, 0.12) 0%, rgba(45, 122, 63, 0.12) 100%);
}

.services-process-step:last-child .services-step-line {
    display: none;
}

/* Tablet & Desktop Adjustments */
@media (min-width: 640px) {
    #services .services-flowchart-container {
        padding: 32px 16px;
    }

    .services-flowchart {
        gap: 32px;
    }

    .services-process-step {
        grid-template-columns: 60px 1fr;
        gap: 50px;
        padding-left: 0;
    }

    .services-step-number {
        display: block;
        font-size: 2rem;
    }

    .services-step-card {
        padding: 28px 24px 28px 80px;
        min-height: 110px;
    }

    .services-step-icon {
        width: 80px;
        height: 80px;
        left: -35px;
    }

    .services-step-icon svg {
        width: 32px;
        height: 32px;
    }

    .services-step-content h3 {
        font-size: 1.125rem;
        margin-bottom: 10px;
    }

    .services-step-content p {
        font-size: 0.9375rem;
        line-height: 1.6;
    }

    .services-step-line {
        height: 32px;
        left: 30px;
    }
}

@media (min-width: 769px) {
    #services .services-flowchart-container {
        padding: 40px 20px;
    }

    .services-step-card {
        padding: 32px 28px 32px 88px;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .services-step-card:hover {
        transform: none;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    }

    .services-step-card:hover .services-accent-bar {
        width: 5px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {

    .services-step-card,
    .services-accent-bar {
        transition: none !important;
    }

    .services-step-card:hover {
        transform: none;
    }
}

#services .services-rect-container.services-cards-slot {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 20px;
    padding: 20px;
    min-height: 0;
    align-items: stretch;
}

#services .services-rect-container.services-cards-slot .category-card-wrapper {
    height: 100%;
}

@media (min-width: 640px) {
    #services .services-rect-container.services-cards-slot {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 769px) {
    #services .services-containers {
        grid-template-columns: 1fr 1fr;
        padding: 0 20px;
        gap: 64px;
    }
}

/* Restrict vertical stacking to tablets (769px - 1200px) */
@media (min-width: 769px) and (max-width: 1200px) {

    #services .services-flowchart-container,
    #services .services-rect-container.services-cards-slot {
        grid-column: 1 / -1;
    }
}


#services .services-layout {
    max-width: 1600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
}

/* Independent containers: flowchart and cards are fully separate, no shared layout logic */
#services .services-flowchart-container {
    display: flex;
    flex-direction: column;
}

#services .services-cards-container {
    display: block;
}

#services .services-content {
    display: flex;
    flex-direction: column;
}

#services .services-header {
    text-align: center;
    margin-bottom: 32px;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
}

.services-subtitle {
    display: block;
    color: #374151;
    font-size: 1.25rem;
    font-weight: 500;
    max-width: 800px;
    margin: 12px auto 0;
    line-height: 1.6;
}

#services .svc-heading {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 0;
    background: linear-gradient(90deg, #003a7d 0%, #2d7a3f 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    letter-spacing: -0.03em;
    padding-bottom: 0.08em;
}

/* Services flowchart: tighten left-column card gaps only */
#services .process-flowchart-inline {
    --services-flow-gap: 37px;
}

#services .process-flowchart-inline .process-steps-container {
    gap: var(--services-flow-gap);
}

#services .svc-value-statement {
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.7;
    margin-bottom: 16px;
    color: #1a1a1a;
    letter-spacing: -0.01em;
    text-align: left;
}

#services .svc-value-statement em,
#services .svc-description em {
    font-style: normal;
    font-weight: 700;
    background: linear-gradient(90deg, #003a7d 0%, #2d7a3f 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    padding: 0.1em 0;
}

/* Services Description */
#services .svc-description {
    font-size: 1rem;
    font-weight: 500;
    color: #1a1a1a;
    line-height: 1.8;
    margin-bottom: 28px;
}

/* Pillar Styling - Premium Service Blocks */
#services .svc-pillars {
    margin-top: 8px;
}

#services .svc-pillar {
    padding: 24px 0;
    border-bottom: 1px solid rgba(0, 58, 125, 0.08);
    transition: padding-left 0.15s ease-out;
    position: relative;
}

#services .svc-pillar:first-child {
    border-top: 1px solid rgba(0, 58, 125, 0.08);
}

#services .svc-pillar::before {
    display: none;
}

#services .svc-pillar:hover {
    padding-left: 0;
}

#services .svc-pillar:hover::before {
    display: none;
}

#services .svc-pillar h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #003a7d 0%, #2d7a3f 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.01em;
    padding: 0.1em 0;
}

#services .svc-pillar p {
    font-size: 0.9375rem;
    color: #4a4a4a;
    line-height: 1.7;
}

/* Services Description - Improved Readability */
#services .svc-description {
    font-size: 1rem;
    font-weight: 400;
    color: #444;
    line-height: 1.7;
    margin-bottom: 28px;
}

/* Services CTA Button */
#services .services-cta {
    margin-top: 28px;
    display: flex;
    justify-content: center;
    align-items: center;
    grid-column: 1 / -1;
    text-align: center;
}

#services .btn-contact-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 44px;
    background: linear-gradient(135deg, #003a7d 0%, #2d7a3f 100%);
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 700;
    border-radius: 2px;
    text-decoration: none;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        filter 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(0, 58, 125, 0.2);
    width: fit-content;
}

#services .btn-contact-more:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 58, 125, 0.3);
}

.flowchart-cta {
    margin-top: 48px;
    display: flex;
    justify-content: center;
    width: 100%;
}

#services .btn-contact-more svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

#services .btn-contact-more:hover svg {
    transform: translateX(3px);
}

/* Image Grid Container */
#services .services-images-container .project-grid-4 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

/* 2×2 grid from 640px viewport (tablet / mid-size) */
@media (min-width: 640px) {
    #services .services-images-container .project-grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

/* --- Project Rectangle Card (Services Specific) - Premium Cards --- */
#services .project-rect {
    background: #ffffff;
    border-radius: 2px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 6px 16px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 300px;
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#services .project-rect:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08), 0 20px 48px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

#services .project-rect-visual {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f8f8f8;
    border-radius: 0;
}

#services .project-rect-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease-out;
}

#services .project-rect:hover .project-rect-visual img {
    transform: scale(1.05);
}

#services .project-rect-body {
    padding: 20px 24px 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

#services .project-rect h2 {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--primary-blue);
    transition: color 0.3s ease;
    letter-spacing: -0.01em;
}

#services .project-rect:hover h2 {
    color: var(--primary-green);
}

#services .project-rect-meta {
    font-size: 0.8125rem;
    color: #888;
    font-weight: 500;
}

/* Project card link styling */
#services .project-rect-link {
    text-decoration: none;
    display: block;
    height: 100%;
}

/* Desktop Enhancements (969px+) */
@media (min-width: 969px) {
    #services.services-main {
        padding: 64px 40px 88px;
    }

    #services .services-layout {
        grid-template-columns: 1fr 1fr;
        gap: 48px;
        align-items: start;
    }

    #services .svc-heading {
        font-size: 3rem;
    }

    #services .services-header {
        margin-bottom: 32px;
    }

    #services .svc-value-statement {
        font-size: 1.25rem;
    }

    #services .process-flowchart-inline {
        --services-flow-gap: 48px;
    }

    #services .services-images-container .project-grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    #services .project-rect-visual {
        height: 180px;
    }

    #services .svc-pillar {
        padding: 24px 0;
    }

    #services .svc-pillar h3 {
        font-size: 1.0625rem;
    }
}

@media (min-width: 1201px) {
    #services .services-layout {
        grid-template-columns: 1fr 1fr;
        gap: 64px;
    }

    #services .svc-heading {
        font-size: 3rem;
    }

    #services .process-flowchart-inline {
        --services-flow-gap: 52px;
    }

    #services .svc-pillar:hover {
        padding-left: 0;
    }

    #services .project-rect-visual {
        height: 200px;
    }
}

/* --- Schemes Marquee Section - Enterprise Styling --- */
.schemes-marquee-section {
    width: 100%;
    margin-top: 56px;
    padding: 56px 0 88px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.01) 0%, transparent 100%);
    border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.marquee-section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.08;
    margin-bottom: 44px;
    background: linear-gradient(90deg, var(--primary-blue) 0%, var(--primary-green) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    padding: 0.1em 20px;
    letter-spacing: -0.03em;
}

.marquee-wrapper {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 20px 0;
}

.marquee-track {
    display: flex;
    width: fit-content;
    animation: marquee-scroll 65s linear infinite;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.marquee-item {
    display: flex;
    align-items: center;
    padding: 0 56px;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-blue);
    position: relative;
    letter-spacing: -0.01em;
    transition: color 0.15s ease-out;
    cursor: default;
}

.marquee-item:hover {
    color: var(--primary-green);
}

.marquee-item .marquee-text {
    display: inline-block;
    transition: transform 0.15s ease-out;
    will-change: transform;
}

.marquee-item:hover .marquee-text {
    transform: scale(1.05);
}

/* Non-clickable scheme items use muted text color */
.schemes-marquee-section .marquee-item:not(a) {
    color: #000;
}

.schemes-marquee-section .marquee-item:not(a):hover {
    color: #000;
}

.marquee-item::after {
    content: "•";
    position: absolute;
    right: 0;
    color: var(--primary-green);
    font-size: 28px;
    opacity: 1;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Pause on hover for readability */
.marquee-track:hover {
    animation-play-state: paused;
}

/* Responsive adjustments */
@media (max-width: 968px) {
    .schemes-marquee-section {
        margin-top: 48px;
        padding: 48px 0 72px;
    }

    .marquee-section-title {
        font-size: 1.5rem;
        margin-bottom: 36px;
    }

    .marquee-item {
        padding: 0 40px;
        font-size: 1rem;
    }
}

/* Desktop sizing for marquee title */
@media (min-width: 969px) {
    .marquee-section-title {
        font-size: 3rem;
    }

    .marquee-item {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    #services.services-main {
        padding: 32px 16px 56px;
    }

    #services .svc-heading {
        font-size: 2.25rem;
    }

    #services .services-header {
        margin-bottom: 40px;
    }

    #services .svc-value-statement {
        font-size: 1.0625rem;
    }

    .schemes-marquee-section {
        margin-top: 40px;
        padding: 40px 0 56px;
    }

    .marquee-section-title {
        font-size: 1.25rem;
        margin-bottom: 28px;
    }

    .marquee-item {
        padding: 0 28px;
        font-size: 0.875rem;
    }

    .marquee-item::after {
        font-size: 20px;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    #services .svc-pillar:hover {
        padding-left: 0;
    }

    #services .svc-pillar:hover::before {
        height: 0;
    }

    #services .project-rect:hover {
        transform: none;
    }

    #services .project-rect:hover .project-rect-visual img {
        transform: none;
    }

    #services .btn-contact-more:hover {
        transform: none;
    }

    #services .btn-contact-more:hover svg {
        transform: none;
    }

    .marquee-item:hover {
        transform: none;
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .marquee-track {
        animation: none;
    }

    #services .svc-pillar,
    #services .svc-pillar::before,
    #services .project-rect,
    #services .project-rect-visual img,
    #services .btn-contact-more,
    #services .btn-contact-more svg,
    .marquee-item {
        transition: none !important;
        will-change: auto !important;
    }

    #services .project-rect:hover .project-rect-visual img {
        transform: none;
    }
}

/* GPU acceleration for interactive elements */

/* Focus states for accessibility */
#services .btn-contact-more:focus-visible,
#services .project-rect-link:focus-visible {
    outline: 2px solid #003a7d;
    outline-offset: 4px;
}