/* Services Pages Styles */

/* Font Variables */
:root {
    --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Typography for Services Pages */
.service-hero h1, .service-hero h2, .service-hero h3 {
    font-family: var(--font-heading);
}

.service-hero p, .service-hero span, .service-hero div {
    font-family: var(--font-body);
}

/* Service Cards */
.service-card h3, .service-card h4 {
    font-family: var(--font-heading);
}

.service-card p, .service-card span {
    font-family: var(--font-body);
}

/* Form Elements */
.form-group label, .form-group input, .form-group select, .form-group textarea {
    font-family: var(--font-body);
}

/* Service Hero Section */
.service-hero {
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

.service-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="%23e2e8f0" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.service-hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.service-hero-text {
    max-width: 600px;
}

.service-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.service-badge i {
    font-size: 1.1rem;
}

.service-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.service-hero p {
    font-size: 1.2rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
}

.hero-stats .stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #3b82f6;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.service-hero-visual {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 2rem;
}

/* Service Features Section */
.service-features {
    padding: 6rem 0;
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border-color: #3b82f6;
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon i {
    font-size: 2rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
    text-align: left;
}

.feature-card p {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-align: left;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.feature-list li {
    padding: 0.5rem 0;
    color: #64748b;
    font-size: 0.9rem;
}

/* Service Pricing Section */
.service-pricing {
    padding: 6rem 0;
    background: #f8fafc;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.pricing-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 2px solid #e2e8f0;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.pricing-card.featured {
    border-color: #3b82f6;
    transform: scale(1.05);
}

.pricing-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.pricing-header {
    padding: 2rem;
    text-align: center;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
}

.pricing-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}

.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
}

.currency {
    font-size: 1.2rem;
    color: #64748b;
}

.amount {
    font-size: 3rem;
    font-weight: 700;
    color: #3b82f6;
}

.period {
    font-size: 1rem;
    color: #64748b;
}

.pricing-features {
    padding: 2rem;
}

.pricing-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pricing-features li {
    padding: 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #64748b;
    border-bottom: 1px solid #f1f5f9;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features i {
    color: #10b981;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
    margin: 1rem 2rem 2rem;
}

/* Chatbot Demo Styles */
.chatbot-demo {
    max-width: 400px;
    width: 100%;
}

.chat-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.chat-header {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.chat-avatar {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-avatar i {
    font-size: 1.5rem;
}

.chat-info h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.status {
    font-size: 0.8rem;
    opacity: 0.9;
}

.status.online::before {
    content: '●';
    color: #10b981;
    margin-right: 0.25rem;
}

.chat-messages {
    padding: 1.5rem;
    height: 300px;
    overflow-y: auto;
    background: #f8fafc;
}

.message {
    margin-bottom: 1rem;
}

.widget-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.message-content {
    background: white;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 0.5rem;
}

.user-message .message-content {
    background: #3b82f6;
    color: white;
    margin-left: 2rem;
}

.bot-message .message-content {
    background: white;
    margin-right: 2rem;
}

.message-time {
    font-size: 0.8rem;
    color: #64748b;
    text-align: right;
}

.user-message .message-time {
    text-align: right;
}

.bot-message .message-time {
    text-align: left;
}

.chat-input {
    padding: 1rem;
    background: white;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 0.75rem;
}

.chat-input input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9rem;
}

.chat-input button {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.chat-input button:hover {
    background: #1d4ed8;
}

/* Pipeline Dashboard Styles */
.pipeline-dashboard {
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    max-width: 600px;
    width: 100%;
}

.dashboard-header {
    background: linear-gradient(135deg, #1e293b, #334155);
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-header h4 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dashboard-stats {
    display: flex;
    gap: 1.5rem;
}

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

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.pipeline-stages {
    display: flex;
    overflow-x: auto;
    padding: 1.5rem;
    gap: 1rem;
    background: #f8fafc;
}

.stage {
    min-width: 200px;
    background: white;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.stage-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f1f5f9;
}

.stage-header h5 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
}

.stage-count {
    background: #3b82f6;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.deal {
    background: #f8fafc;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    border-left: 4px solid #e2e8f0;
    transition: all 0.3s ease;
}

.deal:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.deal.high-value {
    border-left-color: #10b981;
}

.deal.medium-value {
    border-left-color: #fbbf24;
}

.deal.closed {
    border-left-color: #3b82f6;
    background: #eff6ff;
}

.deal-company {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.deal-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #059669;
    margin-bottom: 0.25rem;
}

.deal-score {
    font-size: 0.8rem;
    color: #64748b;
}

/* Analytics Dashboard Styles */
.analytics-dashboard {
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    max-width: 600px;
    width: 100%;
}

.dashboard-controls select {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    padding: 0.5rem;
    font-size: 0.9rem;
}

.dashboard-widgets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 1.5rem;
    background: #f8fafc;
}

.widget {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(20px);
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.widget:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.widget-header h5 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #64748b;
}

.widget-header i {
    color: #3b82f6;
    font-size: 1.2rem;
}

.kpi-value {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.kpi-change {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.kpi-change.positive {
    color: #10b981;
}

.kpi-change.negative {
    color: #ef4444;
}

.mini-chart {
    display: flex;
    align-items: end;
    gap: 3px;
    height: 40px;
}

/* Benefits Visual Chart */
.benefits-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--space-8);
    background: linear-gradient(135deg, var(--primary-50), var(--accent-50));
    border-radius: var(--radius-xl);
    margin-top: var(--space-8);
}

.benefits-chart {
    display: flex;
    align-items: end;
    gap: var(--space-6);
    height: 200px;
    padding: var(--space-6);
}

.chart-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
    flex: 1;
}

.chart-bar {
    background: linear-gradient(to top, var(--primary-500), var(--accent-500));
    width: 40px;
    border-radius: var(--radius-lg);
    opacity: 0;
    transform: scaleY(0);
    transform-origin: bottom;
    transition: all 0.8s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 20px;
}

.chart-bar.animate {
    opacity: 1;
    transform: scaleY(1);
}

.chart-value {
    position: absolute;
    top: -30px;
    font-weight: 700;
    font-size: var(--text-sm);
    color: var(--primary-600);
    background: white;
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-sm);
    white-space: nowrap;
}

.chart-label {
    font-size: var(--text-sm);
    color: var(--neutral-600);
    text-align: center;
    font-weight: 500;
    margin-top: var(--space-2);
}

/* Animation for chart bars */
@keyframes chartGrow {
    from {
        transform: scaleY(0);
        opacity: 0;
    }
    to {
        transform: scaleY(1);
        opacity: 1;
    }
}

.chart-bar.animate {
    animation: chartGrow 0.8s ease-out forwards;
}

/* Fix button alignment in pricing cards */
.pricing-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pricing-card .pricing-features {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pricing-card .pricing-features ul {
    flex: 1;
}

.pricing-card .btn-full {
    margin-top: auto;
    width: 100%;
    text-align: center;
    justify-content: center;
    display: flex;
    align-items: center;
    padding: var(--space-4) var(--space-6);
    border-radius: var(--radius-lg);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-normal);
}

.pricing-card .btn-full:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.conversion-rate {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.rate-circle {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rate-fill {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: conic-gradient(#3b82f6 0deg, #3b82f6 var(--percentage, 0%), #e2e8f0 var(--percentage, 0%), #e2e8f0 360deg);
    transition: all 1s ease;
}

.rate-text {
    position: relative;
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
    z-index: 1;
}

.conversion-trend {
    text-align: center;
    font-size: 0.8rem;
    color: #10b981;
    font-weight: 600;
}

.prediction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f5f9;
}

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

.prediction-label {
    font-size: 0.9rem;
    color: #64748b;
}

.prediction-value {
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
}

.prediction-value.low {
    background: #dcfce7;
    color: #166534;
}

.prediction-value.high {
    background: #dbeafe;
    color: #1d4ed8;
}

.prediction-value:not(.low):not(.high) {
    background: #f1f5f9;
    color: #475569;
}

/* Analytics Types Section */
.analytics-types {
    padding: 6rem 0;
    background: white;
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.analytics-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.analytics-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border-color: #3b82f6;
}

.analytics-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.analytics-icon i {
    font-size: 2rem;
    color: white;
}

.analytics-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}

.analytics-card p {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.analytics-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.analytics-features li {
    padding: 0.5rem 0;
    color: #64748b;
    font-size: 0.9rem;
    position: relative;
    padding-left: 1.5rem;
}

.analytics-features li::before {
    content: '•';
    color: #3b82f6;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .service-hero {
        padding: 6rem 0 3rem;
    }
    
    .service-hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .analytics-dashboard {
        max-width: 100%;
    }
    
    .dashboard-widgets {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }
    
    .analytics-grid {
        grid-template-columns: 1fr;
    }
    
    .widget {
        padding: 1rem;
    }
    
    .kpi-value {
        font-size: 1.5rem;
    }
    
    .service-hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        justify-content: center;
        gap: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .pipeline-stages {
        flex-direction: column;
    }
    
    .stage {
        min-width: auto;
    }
}
