/* Specific styles for this landing page */
.service-hero {
    padding: 140px 0 100px;
    background: radial-gradient(circle at 30% 50%, #2c3e50, #000000);
    position: relative;
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    align-items: center;
    width: 100vw;
    max-width: 100vw;
    left: 50%;
    margin-left: -50vw;
    text-align: center;
    color: white;
}

.service-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 24px;
    color: white;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.service-hero p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.6;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: #f9fafb;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
    gap: 40px;
    margin-top: 40px;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #2563eb;
    color: white;
    border-radius: 12px;
    font-size: 1.75rem;
    margin-bottom: 20px;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #1f2937;
}

.text-center {
    text-align: center;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: #111827;
    text-align: center;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #4b5563;
    max-width: 700px;
    margin: 0 auto 3rem;
    text-align: center;
}

/* Why Pixlnexs List */
.why-list {
    list-style: none;
    padding: 0;
    max-width: 800px;
    margin: 0 auto;
}

.why-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.why-item i {
    color: #10b981;
    margin-right: 15px;
    font-size: 1.2rem;
    margin-top: 4px;
}

.why-item span {
    font-size: 1.1rem;
    color: #374151;
}

/* Industries Grid */
.industry-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid #2563eb;
}

.industry-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #111827;
}

/* FAQ Styles */
.faq-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #e5e7eb;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
}

.faq-question {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0;
    color: #111827;
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-body {
    padding-bottom: 20px;
    color: #4b5563;
    line-height: 1.6;
}

.faq-icon {
    color: #2563eb;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.cta-button {
    display: inline-block;
    background-color: #2563eb;
    color: white;
    font-weight: 600;
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #1d4ed8;
}

/* CTA Section Styles */
.new-cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    text-align: center;
    color: white;
}

.new-cta-section h3 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: white;
}

.new-cta-section p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto 40px;
}

.new-cta-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto 40px;
}

.btn-cta-link {
    display: inline-block;
    background-color: white;
    color: #2563eb;
    font-weight: 700;
    padding: 16px 40px;
    border-radius: 100px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-cta-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
    color: #2563eb;
    background-color: white;
    /* Ensure background stays white */
}

.hero-image-container {
    margin-top: 50px;
    position: relative;
    z-index: 10;
    animation: fadeInUp 0.8s ease-out;
}

.hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.2);
    max-height: 500px;
    object-fit: cover;
}

/* Comparison Slider Styles (Integrated into Hero) */
.comparison-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    cursor: col-resize;
}

.layer-bottom,
.layer-top {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    overflow: hidden;
}

.layer-bottom {
    width: 100%;
    z-index: 1;
}

.layer-top {
    width: 50%;
    /* Initial slider pos */
    z-index: 2;
    border-right: 2px solid rgba(255, 255, 255, 0.8);
}

.fixed-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    /* Match hero full width */
    height: 100%;
    /* Align content exactly as parent */
}

.comparison-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border: 2px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    z-index: 10;
    pointer-events: none;
}

.slider-handle i {
    color: white;
    font-size: 1rem;
}

.service-hero .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    max-width: 95vw;
    /* Much wider container */
    padding: 0 20px;
    margin: 0 auto;
    height: 100%;
    position: relative;
    z-index: 5;
}

.hero-text-column {
    flex: 0 0 45%;
    /* Give text a bit more room */
    min-width: 500px;
    padding-right: 0;
    text-align: left;
    color: white;
}

.hero-text-column h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.1;
    /* white-space: pre-line; Removed to let width handle it */
}

.hero-text-column p {
    font-size: 1.15rem;
    /* Slightly smaller to fit 3 lines */
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.85);
    max-width: 100%;
    /* Use full available width */
    line-height: 1.5;
}

.hero-slider-column {
    flex: 1;
    /* Slider takes all remaining space (approx 60%) */
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.comparison-container {
    position: relative;
    width: 100%;
    /* Aspect ratio 16:9 is good, but if content is wide, it might get too tall. 
       Let's try a slightly wider ratio or just 100% width relative to column */
    aspect-ratio: 16 / 9;
    height: auto;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    cursor: col-resize;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.comparison-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    user-select: none;
    -webkit-user-drag: none;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
    border-right: 2px solid rgba(255, 255, 255, 0.8);
}

.slider-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border: 2px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    z-index: 10;
    pointer-events: none;
    transition: transform 0.1s;
}

.slider-handle:active {
    transform: translate(-50%, -50%) scale(1.1);
}

.slider-handle i {
    color: white;
    font-size: 1rem;
}

.label-badge {
    position: absolute;
    bottom: 20px;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    pointer-events: none;
    z-index: 5;
}

@media (max-width: 992px) {
    .service-hero {
        padding: 100px 0 60px 0;
        /* Reduced padding for mobile */
        min-height: auto;
    }

    .service-hero .container {
        flex-direction: column;
        text-align: center;
        /* padding-top: 100px; Remove this, handled by section padding */
        gap: 40px;
    }

    .hero-text-column {
        flex: auto;
        /* Allow auto scaling */
        width: 100%;
        min-width: 0;
        /* Reset min-width */
        padding-right: 0;
        margin-bottom: 0;
        text-align: center;
    }

    .hero-text-column h1 {
        font-size: 2.2rem;
        /* Much smaller for mobile */
        line-height: 1.2;
    }

    .hero-text-column p {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .hero-slider-column {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Refactored from 3d-product-modeling.ejs */
.intro-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.intro-text {
    font-size: 1.1rem;
    color: #4b5563;
    margin-bottom: 20px;
}

.label-badge-right {
    right: 20px;
}

.label-badge-left {
    left: 20px;
}

.why-pixlnexs-card {
    background: linear-gradient(to right, #2563eb, #1e40af);
    border-radius: 16px;
    padding: 50px;
    color: white;
}

.why-pixlnexs-content {
    max-width: 800px;
    margin: 0 auto;
}

.why-pixlnexs-title {
    color: white;
    margin-bottom: 20px;
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
}

.why-pixlnexs-subtitle {
    color: #bfdbfe;
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 40px;
}

.why-pixlnexs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.why-pixlnexs-item {
    display: flex;
    align-items: flex-start;
}

.why-pixlnexs-icon {
    color: #60a5fa;
    margin-right: 15px;
    font-size: 1.5rem;
    margin-top: 2px;
}
.industry-card-green {
    border-left-color: #10b981;
}