/* Service Page Specific Layout - "Neon Labs" Style (Light Theme Adaptation) */

:root {
    /* Local Overrides for Light Mode Context to match Main Site */
    --service-bg: var(--color-bg);
    /* White/Slate 50 */
    --service-card-bg: #ffffff;
    /* White */
    --service-text: var(--color-text);
    /* Slate 800 */
    --service-text-muted: var(--color-text-muted);
    /* Slate 500 */
    --service-border: #e2e8f0;
    /* Slate 200 */
    --service-accent: #84CC16;
    /* Lime 500 */

    /* Shadow adjustments for light mode */
    --service-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --service-shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Page Wrapper */
.service-page-wrapper {
    background-color: var(--service-bg);
    color: var(--service-text);
    min-height: 100vh;
    font-family: var(--font-primary);
}

/* Header Overrides */
.service-header {
    padding: 180px 0 80px;
    background: radial-gradient(circle at top center, #f8fafc 0%, #ffffff 60%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Animated Grid Styles */
.animated-grid-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    /* Grid Line Color */
    stroke: rgba(148, 163, 184, 0.2);
    /* Slate 400 with opacity */
    fill: none;
    /* Square Color */
    color: rgba(148, 163, 184, 0.3);
    /* Slate 400 fill */
}

/* Ensure Logo and Text sit above grid */
.service-header .container {
    position: relative;
    z-index: 10;
}

@keyframes grid-pulse {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 0.6;
    }

    100% {
        opacity: 0;
    }
}

.grid-square-anim {
    animation-name: grid-pulse;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

.service-header h1 {
    color: var(--service-text);
    font-size: var(--text-h1);
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.02em;
    font-weight: 300;
    /* Regular weight per main site style */
}

.service-header h1 strong {
    font-weight: 600;
}

.service-header p {
    color: var(--service-text-muted);
    font-size: var(--text-lg);
    max-width: 600px;
    margin: 0 auto;
}

/* Split Layout Section */
.split-layout-section {
    padding: var(--spacing-2xl) 0;
    background: #f8fafc;
    /* Slight contrast for section */
}

.split-layout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: start;
    position: relative;
}

@media (max-width: 968px) {
    .split-layout-grid {
        grid-template-columns: 1fr;
    }
}

/* Left Column: Accordion/List */
.feature-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.feature-item {
    padding: var(--spacing-lg);
    border-left: 3px solid transparent;
    /* Thicker border for visibility */
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.feature-item:hover,
.feature-item.active {
    border-left-color: var(--service-accent);
    opacity: 1;
    background: linear-gradient(90deg, rgba(132, 204, 22, 0.05) 0%, transparent 100%);
}

.feature-item h3 {
    font-size: var(--text-h4);
    color: var(--service-text);
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: center;
    gap: 12px;
}

.feature-item p {
    color: var(--service-text-muted);
    line-height: 1.6;
}

/* Right Column: Visual Display (Sticky) */
.visual-display-wrapper {
    position: sticky;
    top: 120px;
    height: 500px;
    background: var(--service-card-bg);
    border-radius: 24px;
    border: 1px solid var(--service-border);
    overflow: hidden;
    box-shadow: var(--service-shadow);
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-content {
    width: 100%;
    height: 100%;
    position: relative;
}

.visual-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.visual-slide.active {
    opacity: 1;
    z-index: 10;
}

/* Dark Cards (Renamed to Feature Cards for light theme consistency) */
.feature-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.feature-card {
    background: var(--service-card-bg);
    border: 1px solid var(--service-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--service-accent);
    box-shadow: var(--service-shadow-hover);
}

.feature-card h3 {
    color: var(--service-text);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.feature-card p {
    color: var(--service-text-muted);
}

/* Problem Flow Component */
.problem-flow {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.flow-step {
    position: relative;
    padding-left: 16px;
    border-left: 2px solid var(--service-border);
}

.flow-step.outcome {
    border-left-color: var(--service-accent);
    /* Green accent for the result */
    background: linear-gradient(to right, rgba(132, 204, 22, 0.05), transparent);
    border-radius: 0 8px 8px 0;
    padding: 12px 16px;
    /* Added padding for the background */
    margin-top: 4px;
}

.step-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--service-text-muted);
    font-weight: 700;
    margin-bottom: 4px;
}

.flow-step p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--service-text);
}

/* Featured Work Section */
.featured-work-section {
    padding: var(--spacing-2xl) 0;
    background: var(--service-bg);
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.work-card {
    background: #0f172a;
    /* Keep dark background for the 'card' itself per user designs */
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease;
    aspect-ratio: 16/10;
    /* Landscape aspect ratio */
}

.work-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.work-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.work-card:hover img {
    opacity: 1;
}

.work-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 24px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 100%);
    color: white;
}


/* CTA Section Update */
.service-cta {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    /* Keep dark CTA for contrast at end of page */
    padding: 100px 0;
    text-align: center;
    color: white;
}

/* Overrides for generic elements cleaning */
.service-page-wrapper .navbar {
    background: rgba(255, 255, 255, 0.8) !important;
    border-bottom: 1px solid var(--service-border);
}

.service-page-wrapper .nav-links a {
    color: var(--service-text-muted);
}

.service-page-wrapper .nav-links a:hover {
    color: var(--service-text);
}

/* =========================================
   ROI Calculator Section
   ========================================= */
.roi-calculator-section {
    padding: 80px 0;
    background: #fff;
    border-top: 1px solid var(--service-border);
}

.roi-calculator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

@media (max-width: 968px) {
    .roi-calculator-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Left Text Column */
.roi-text-column h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--service-text);
}

.roi-text-column p {
    font-size: 1.1rem;
    color: var(--service-text-muted);
    line-height: 1.6;
    margin-bottom: 30px;
}

.roi-benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.roi-benefits-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.05rem;
    color: var(--service-text);
    font-weight: 500;
}

.roi-benefits-list li svg {
    color: var(--service-accent);
    width: 24px;
    height: 24px;
}

/* Right Calculator Card */
.roi-calculator-card {
    background: #f8fafc;
    border: 1px solid var(--service-border);
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--service-shadow);
}

.roi-input-group {
    margin-bottom: 25px;
}

.roi-input-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--service-text);
}

.roi-input-value {
    color: var(--service-accent);
    font-weight: 700;
}

/* Custom Range Slider Styling */
.roi-range-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    outline: none;
    opacity: 0.9;
    transition: opacity .2s;
}

.roi-range-slider:hover {
    opacity: 1;
}

.roi-range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: var(--service-accent);
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 3px solid #fff;
}

.roi-range-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: var(--service-accent);
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 3px solid #fff;
}

/* Result Display */
.roi-result-display {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e2e8f0;
    text-align: center;
}

.roi-result-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--service-text-muted);
    font-weight: 600;
    margin-bottom: 5px;
}

.roi-savings-value {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--service-text);
    line-height: 1;
}

.roi-savings-period {
    font-size: 0.9rem;
    color: var(--service-text-muted);
    margin-top: 5px;
}

/* =========================================
   Redesigned ROI Stats Section (Glassmorphism)
   ========================================= */
.roi-section-container {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 24px;
    padding: 80px 40px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.2);
}

/* Subtle background glow */
.roi-bg-glow {
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(132, 204, 22, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.roi-content-wrapper {
    position: relative;
    z-index: 1;
}

.roi-section-title {
    color: white;
    margin-bottom: 50px;
    font-size: 2rem;
    font-weight: 300;
}

.roi-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.roi-stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px 20px;
    transition: transform 0.3s ease, background 0.3s ease;
    backdrop-filter: blur(10px);
}

.roi-stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.roi-number {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.02em;
}

/* Accent color override for numbers if needed, class: .text-accent */
.roi-number.text-accent {
    background: linear-gradient(135deg, var(--service-accent) 0%, #a3e635 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.roi-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
    letter-spacing: 0.01em;
}

@media (max-width: 768px) {
    .roi-section-container {
        padding: 60px 20px;
    }

    .roi-number {
        font-size: 3rem;
    }

    /* Feature Card Grid - Horizontal Carousel on Mobile */
    .feature-card-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 1rem;
        margin: 0 -1rem;
        padding-left: 1rem;
        padding-right: 1rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .feature-card-grid::-webkit-scrollbar {
        display: none;
    }

    .feature-card-grid .feature-card {
        scroll-snap-align: start;
        flex: 0 0 85%;
        min-width: 85%;
    }

    /* Work Grid - Horizontal Carousel */
    .work-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 1rem;
        margin: 0 -1rem;
        padding-left: 1rem;
        padding-right: 1rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .work-grid::-webkit-scrollbar {
        display: none;
    }

    .work-grid .work-card {
        scroll-snap-align: start;
        flex: 0 0 85%;
        min-width: 85%;
    }

    /* Split Layout - Stack on Mobile */
    .split-layout-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .visual-display-wrapper {
        position: relative;
        top: 0;
        height: 400px;
    }

    /* ROI Stats Grid - 2 Column on Mobile */
    .roi-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .roi-stat-card {
        padding: 30px 15px;
    }
}