﻿/* ===== INDIVIDUAL SERVICE PAGE STYLES ===== */

/* Service Page Hero */
.service-page-hero {
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    position: relative;
    overflow: hidden;
}

    .service-page-hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(59,130,246,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
        opacity: 0.3;
    }

.service-hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.service-breadcrumb {
    font-size: 0.9rem;
    margin-bottom: 2rem;
    color: #cbd5e1;
}

    .service-breadcrumb a {
        color: #3b82f6;
        text-decoration: none;
    }

        .service-breadcrumb a:hover {
            text-decoration: underline;
        }

.service-icon-hero {
    font-size: 5rem;
    margin-bottom: 2rem;
    animation: pulse 2s ease-in-out infinite;
}

.service-hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.service-hero-content > p {
    font-size: 1.3rem;
    color: #cbd5e1;
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

    .hero-stats .stat {
        text-align: center;
    }

    .hero-stats .stat-number {
        font-size: 3rem;
        font-weight: 800;
        color: #3b82f6;
        margin-bottom: 0.5rem;
    }

    .hero-stats .stat-label {
        color: #cbd5e1;
        font-size: 0.9rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Key Benefits */
.key-benefits {
    padding: 6rem 0;
    background: #f8fafc;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.benefit-card {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

    .benefit-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(45deg, #3b82f6, #8b5cf6);
    }

    .benefit-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    }

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.benefit-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
}

.benefit-card p {
    color: #64748b;
    line-height: 1.6;
}

/* How It Works */
.how-it-works {
    padding: 6rem 0;
    background: white;
}

.process-steps {
    margin-top: 4rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.step {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    background: #f8fafc;
    border-radius: 20px;
    position: relative;
}

    .step::after {
        content: '';
        position: absolute;
        bottom: -1.5rem;
        left: 50%;
        transform: translateX(-50%);
        width: 2px;
        height: 3rem;
        background: linear-gradient(45deg, #3b82f6, #8b5cf6);
    }

    .step:last-child::after {
        display: none;
    }

.step-number {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #3b82f6, #8b5cf6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    color: white;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.step-content p {
    color: #64748b;
    line-height: 1.6;
}

/* Use Cases */
.use-cases {
    padding: 6rem 0;
    background: #f8fafc;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.use-case {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
}

    .use-case:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    }

.use-case-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.use-case h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
}

.use-case p {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.use-case-benefit {
    background: linear-gradient(45deg, #3b82f6, #8b5cf6);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
}

/* Interactive Demo */
.interactive-demo {
    padding: 6rem 0;
    background: white;
}

.demo-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.demo-text h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 1.5rem;
}

.demo-text > p {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.demo-features {
    margin-bottom: 2rem;
}

.demo-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #374151;
}

.demo-feature-icon {
    font-size: 1.5rem;
}

.demo-visual {
    background: #f8fafc;
    border-radius: 20px;
    padding: 3rem;
}

/* Technology Stack for Tech-focused services */
.technology-stack {
    padding: 6rem 0;
    background: white;
}

.tech-stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.tech-item {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

    .tech-item:hover {
        border-color: #3b82f6;
        transform: translateY(-5px);
    }

.tech-item-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.tech-item h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.tech-item p {
    color: #64748b;
    font-size: 0.9rem;
}

/* Results Section */
.results-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    color: white;
    text-align: center;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.result-item {
    text-align: center;
}

.result-number {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    opacity: 0;
    animation: countUp 2s ease-out forwards;
}

.result-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

@keyframes countUp {
    to {
        opacity: 1;
    }
}

/* Pricing Section */
.pricing-section {
    padding: 6rem 0;
    background: #f8fafc;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-card {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    text-align: center;
}

    .pricing-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    }

    .pricing-card.featured {
        border: 2px solid #3b82f6;
        transform: scale(1.05);
    }

        .pricing-card.featured:hover {
            transform: scale(1.05) translateY(-10px);
        }

.pricing-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(45deg, #3b82f6, #8b5cf6);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.pricing-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
}

.price {
    margin-bottom: 2rem;
}

    .price .currency {
        font-size: 1.5rem;
        color: #64748b;
    }

    .price .amount {
        font-size: 3rem;
        font-weight: 800;
        color: #1e293b;
    }

    .price .period {
        font-size: 1rem;
        color: #64748b;
    }

    .price .custom {
        font-size: 2rem;
        font-weight: 800;
        color: #1e293b;
    }

.pricing-features {
    margin-bottom: 2rem;
    text-align: left;
}

    .pricing-features .feature {
        padding: 0.5rem 0;
        color: #374151;
        border-bottom: 1px solid #f1f5f9;
    }

        .pricing-features .feature:last-child {
            border-bottom: none;
        }

.pricing-button {
    background: linear-gradient(45deg, #3b82f6, #8b5cf6);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
    width: 100%;
}

    .pricing-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
        color: white;
    }

/* FAQ Section */
.faq-section {
    padding: 6rem 0;
    background: white;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.faq-item {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 15px;
    border-left: 4px solid #3b82f6;
}

    .faq-item h4 {
        font-size: 1.1rem;
        font-weight: 700;
        color: #1e293b;
        margin-bottom: 1rem;
    }

    .faq-item p {
        color: #64748b;
        line-height: 1.6;
        margin: 0;
    }

/* Final CTA */
.final-cta {
    padding: 6rem 0;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    text-align: center;
}

    .final-cta .cta-content h2 {
        font-size: 3rem;
        font-weight: 800;
        color: white;
        margin-bottom: 1rem;
    }

    .final-cta .cta-content p {
        font-size: 1.25rem;
        color: #cbd5e1;
        margin-bottom: 2rem;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }

    .final-cta .cta-buttons {
        display: flex;
        gap: 1rem;
        justify-content: center;
        flex-wrap: wrap;
    }

/* Demo Specific Styles */

/* Workflow Demo */
.workflow-demo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.workflow-node {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    min-width: 120px;
    transition: all 0.3s ease;
    animation: slideInUp 0.6s ease forwards;
}

    .workflow-node:hover {
        border-color: #3b82f6;
        transform: scale(1.05);
    }

.node-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.node-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
}

.workflow-arrow {
    font-size: 1.5rem;
    color: #3b82f6;
    font-weight: bold;
}

.demo-stats {
    display: flex;
    justify-content: space-around;
    gap: 1rem;
}

.demo-stat {
    text-align: center;
}

.demo-stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: #3b82f6;
    margin-bottom: 0.25rem;
}

.demo-stat-label {
    font-size: 0.8rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Analytics Dashboard Demo */
.analytics-dashboard {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    border: 2px solid #e2e8f0;
    max-width: 500px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

    .dashboard-header h4 {
        color: #1e293b;
        font-weight: 700;
        margin: 0;
    }

.dashboard-controls {
    display: flex;
    gap: 0.5rem;
}

.control {
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f1f5f9;
    color: #64748b;
}

    .control.active {
        background: #3b82f6;
        color: white;
    }

.forecast-chart {
    margin-bottom: 2rem;
}

.chart-area {
    height: 150px;
    background: linear-gradient(to bottom, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 10px;
    position: relative;
    margin-bottom: 1rem;
    overflow: hidden;
}

.data-line {
    position: absolute;
    height: 3px;
    border-radius: 2px;
    top: 50%;
    transform: translateY(-50%);
    animation: drawLine 2s ease-out forwards;
}

    .data-line.historical {
        background: #3b82f6;
        width: 60%;
        left: 10%;
    }

    .data-line.prediction {
        background: #8b5cf6;
        width: 30%;
        left: 60%;
        border-style: dashed;
    }

.confidence-band {
    position: absolute;
    background: rgba(139, 92, 246, 0.2);
    width: 30%;
    height: 60px;
    left: 60%;
    top: 20%;
    border-radius: 4px;
    animation: fadeIn 2s ease-out 1s forwards;
    opacity: 0;
}

.chart-legend {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #64748b;
}

.legend-color {
    width: 12px;
    height: 3px;
    border-radius: 2px;
}

    .legend-color.historical {
        background: #3b82f6;
    }

    .legend-color.prediction {
        background: #8b5cf6;
    }

    .legend-color.confidence {
        background: rgba(139, 92, 246, 0.4);
        height: 8px;
    }

.forecast-metrics {
    display: flex;
    justify-content: space-around;
    gap: 1rem;
}

.metric {
    text-align: center;
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.metric-label {
    font-size: 0.7rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Image Analysis Demo */
.image-analysis-demo {
    max-width: 400px;
}

.demo-image-container {
    position: relative;
    background: #f8fafc;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    border: 2px solid #e2e8f0;
}

.demo-image {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.analysis-overlay {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.detection-box {
    background: rgba(59, 130, 246, 0.9);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    animation: slideInRight 0.5s ease-out forwards;
}

    .detection-box:nth-child(1) {
        animation-delay: 0.5s;
    }

    .detection-box:nth-child(2) {
        animation-delay: 1s;
    }

    .detection-box:nth-child(3) {
        animation-delay: 1.5s;
    }

.analysis-results {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.result-category h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.result-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

    .result-list .result-item {
        font-size: 0.75rem;
        color: #64748b;
        padding: 0.25rem 0;
    }

/* Chatbot Demo */
.chatbot-demo {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-width: 400px;
}

.chat-header {
    background: linear-gradient(45deg, #3b82f6, #8b5cf6);
    color: white;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.chat-name {
    font-weight: 700;
    font-size: 1rem;
}

.chat-status {
    font-size: 0.8rem;
    opacity: 0.9;
}

.chat-conversation {
    padding: 1rem;
    max-height: 300px;
    overflow-y: auto;
}

.message {
    margin-bottom: 1rem;
}

    .message.bot .message-bubble {
        background: #f1f5f9;
        color: #1e293b;
        margin-right: 2rem;
    }

    .message.user .message-bubble {
        background: linear-gradient(45deg, #3b82f6, #8b5cf6);
        color: white;
        margin-left: 2rem;
        text-align: right;
    }

.message-bubble {
    padding: 0.75rem 1rem;
    border-radius: 15px;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    animation: messageSlideIn 0.5s ease-out;
}

.message-analysis {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
    font-size: 0.7rem;
}

.analysis-tag {
    background: #e2e8f0;
    color: #64748b;
    padding: 0.15rem 0.4rem;
    border-radius: 8px;
    font-weight: 500;
}

.chat-metrics {
    background: #f8fafc;
    padding: 1rem;
    display: flex;
    justify-content: space-around;
    border-top: 1px solid #e2e8f0;
}

    .chat-metrics .metric {
        text-align: center;
    }

    .chat-metrics .metric-value {
        font-size: 1.2rem;
        font-weight: 700;
        color: #3b82f6;
        margin-bottom: 0.25rem;
    }

    .chat-metrics .metric-label {
        font-size: 0.7rem;
        color: #64748b;
        text-transform: uppercase;
    }

/* Animations */
@keyframes drawLine {
    from {
        width: 0;
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation Enhancements */
.pricing-card.featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(45deg, #3b82f6, #8b5cf6);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    z-index: -1;
}

.workflow-node:nth-child(1) {
    animation-delay: 0.1s;
}

.workflow-node:nth-child(3) {
    animation-delay: 0.3s;
}

.workflow-node:nth-child(5) {
    animation-delay: 0.5s;
}

.workflow-node:nth-child(7) {
    animation-delay: 0.7s;
}

/* Responsive Design for Service Pages */
@media (max-width: 1024px) {
    .service-hero-content h1 {
        font-size: 3rem;
    }

    .hero-stats {
        gap: 2rem;
    }

    .demo-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .workflow-demo {
        flex-direction: column;
        gap: 1rem;
    }

    .workflow-arrow {
        transform: rotate(90deg);
    }
}

@media (max-width: 768px) {
    .service-page-hero {
        padding: 6rem 0 3rem;
    }

    .service-hero-content h1 {
        font-size: 2.5rem;
    }

    .service-icon-hero {
        font-size: 4rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .benefit-card {
        padding: 2rem;
    }

    .process-steps {
        gap: 2rem;
    }

    .step {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

        .step::after {
            display: none;
        }

    .use-cases-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .pricing-card.featured {
        transform: none;
    }

        .pricing-card.featured:hover {
            transform: translateY(-10px);
        }

    .faq-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .demo-visual {
        padding: 2rem;
    }

    .demo-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .service-hero-content h1 {
        font-size: 2rem;
    }

    .hero-stats .stat-number {
        font-size: 2.5rem;
    }

    .benefit-card,
    .use-case,
    .pricing-card {
        padding: 1.5rem;
    }

    .demo-content {
        gap: 2rem;
    }

    .workflow-node {
        min-width: 100px;
        padding: 1rem;
    }

    .node-icon {
        font-size: 1.5rem;
    }

    .final-cta .cta-content h2 {
        font-size: 2rem;
    }

    .analytics-dashboard,
    .chatbot-demo {
        max-width: 100%;
    }

    .demo-image-container {
        padding: 1.5rem;
    }

    .analysis-results {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .forecast-metrics {
        flex-direction: column;
        gap: 1rem;
    }

    .chat-metrics {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .message.bot .message-bubble {
        margin-right: 1rem;
    }

    .message.user .message-bubble {
        margin-left: 1rem;
    }
}
