/* Solutions 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 Solutions Pages */
.solution-hero h1, .solution-hero h2, .solution-hero h3 {
    font-family: var(--font-heading);
}

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

/* Manufacturing Page Typography */
.manufacturing-hero h1, .manufacturing-hero h2, .manufacturing-hero h3 {
    font-family: var(--font-heading);
}

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

/* ROI Calculator Typography */
.calculator-title, .calculator-heading {
    font-family: var(--font-heading);
}

.calculator-text, .calculator-description {
    font-family: var(--font-body);
}

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

/* Results and Output */
.results-title, .results-heading {
    font-family: var(--font-heading);
}

.results-text, .results-content {
    font-family: var(--font-body);
}

/* Solution Hero Section */
.solution-hero {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    padding: 8rem 0 6rem;
    position: relative;
    overflow: hidden;
}

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

.solution-hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
    min-height: 500px;
}

.hero-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 2rem;
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: white;
}

.hero-text p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
    opacity: 1;
}

.industry-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

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

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

.hero-stats .stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Manufacturing Hero Image - Image Only */
.solution-hero .hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.hero-image-section {
    width: 100%;
    max-width: 600px;
    height: 400px;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.3);
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-image-section {
        width: 100%;
        max-width: 100%;
        height: 300px;
    }
}



/* Industry Challenges Section */
.industry-challenges {
    padding: 6rem 0;
    background: #f8fafc;
}

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

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

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

.challenge-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.challenge-icon i {
    font-size: 1.5rem;
    color: white;
}

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

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

.challenge-impact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #fef2f2;
    border-radius: 8px;
    border-left: 4px solid #ef4444;
}

.impact-label {
    font-weight: 500;
    color: #7f1d1d;
}

.impact-value {
    font-weight: 600;
    color: #dc2626;
}

/* AI Solutions Section */
.ai-solutions {
    padding: 6rem 0;
    background: white;
}

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

.solution-item {
    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;
}

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

.solution-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;
}

.solution-icon i {
    font-size: 1.8rem;
    color: white;
}

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

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

.solution-features ul {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

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

.solution-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

.solution-benefit {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border-radius: 12px;
    margin-top: 1.5rem;
}

.benefit-metric {
    font-size: 2rem;
    font-weight: 700;
    color: #059669;
}

.benefit-desc {
    font-size: 0.9rem;
    color: #065f46;
    font-weight: 500;
}

/* Implementation Process */
.implementation-process {
    padding: 6rem 0;
    background: #f8fafc;
}

.process-timeline {
    margin-top: 3rem;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #3b82f6, #1d4ed8);
}

.process-step {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.step-content {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    flex: 1;
}

.step-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}

.step-content p {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.step-duration {
    font-size: 0.9rem;
    color: #3b82f6;
    font-weight: 500;
    background: #eff6ff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: inline-block;
}

/* Success Story Section */
.success-story {
    padding: 6rem 0;
    background: linear-gradient(135deg, #1e293b, #334155);
    color: white;
}

.story-header {
    text-align: center;
    margin-bottom: 3rem;
}

.story-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.story-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.metric-card {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.metric-value {
    font-size: 3rem;
    font-weight: 700;
    color: #fbbf24;
    display: block;
    margin-bottom: 0.5rem;
}

.metric-label {
    font-size: 1rem;
    opacity: 0.9;
}

.testimonial {
    font-size: 1.2rem;
    line-height: 1.6;
    text-align: center;
    font-style: italic;
    margin: 3rem 0;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.testimonial cite {
    display: block;
    margin-top: 1rem;
    font-size: 1rem;
    color: #fbbf24;
    font-style: normal;
    font-weight: 500;
}

.story-cta {
    text-align: center;
    margin-top: 2rem;
}

/* Enhanced ROI Calculator */
.roi-calculator {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.calculator-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.calculator-inputs {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.input-section {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.input-section h3 {
    color: #1f2937;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3b82f6;
}

.input-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group label {
    font-weight: 600;
    color: #374151;
    font-size: 0.9rem;
}

.input-group input {
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f9fafb;
}

.input-group input:focus {
    outline: none;
    border-color: #3b82f6;
    background: white;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.input-group input[type="range"] {
    background: #e5e7eb;
    height: 6px;
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.input-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #3b82f6;
    border-radius: 50%;
    cursor: pointer;
}

.input-hint {
    font-size: 0.8rem;
    color: #6b7280;
    font-style: italic;
}

.range-value {
    font-weight: 700;
    color: #3b82f6;
    font-size: 1.1rem;
}

.calculator-results {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.results-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #e5e7eb;
}

.results-header h3 {
    color: #1f2937;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.roi-summary {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 1rem;
}

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

.roi-label {
    display: block;
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.roi-value {
    font-size: 2.5rem;
    font-weight: 700;
}

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

.timeline-label {
    display: block;
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.timeline-value {
    font-size: 1.5rem;
    font-weight: 700;
}

.results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.result-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.result-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.result-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
}

.result-card.savings::before {
    background: linear-gradient(90deg, #10b981, #059669);
}

.result-card.annual::before {
    background: linear-gradient(90deg, #f59e0b, #d97706);
}

.result-card.roi::before {
    background: linear-gradient(90deg, #8b5cf6, #7c3aed);
}

.result-icon {
    width: 40px;
    height: 40px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.result-card.savings .result-icon {
    background: rgba(16, 185, 129, 0.1);
}

.result-card.annual .result-icon {
    background: rgba(245, 158, 11, 0.1);
}

.result-card.roi .result-icon {
    background: rgba(139, 92, 246, 0.1);
}

.result-icon i {
    font-size: 1.2rem;
    color: #3b82f6;
}

.result-card.savings .result-icon i {
    color: #10b981;
}

.result-card.annual .result-icon i {
    color: #f59e0b;
}

.result-card.roi .result-icon i {
    color: #8b5cf6;
}

.result-content h4 {
    color: #1f2937;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.result-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #059669;
    margin-bottom: 0.75rem;
}

.result-breakdown {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.result-breakdown span {
    font-size: 0.8rem;
    color: #6b7280;
    padding: 0.25rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.result-breakdown span:last-child {
    border-bottom: none;
}

.calculator-cta {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.calculator-cta p {
    color: #6b7280;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    .solution-hero {
        padding: 6rem 0 4rem;
    }
    
    .solution-hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        min-height: auto;
    }
    
    .hero-text {
        text-align: center;
        padding-right: 0;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .smart-factory {
        padding: 1.5rem;
        max-width: 100%;
    }
    
    .production-line {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .machine {
        width: 100%;
        max-width: 200px;
    }
    
    .conveyor-belt {
        margin: 1rem 0;
        justify-content: center;
    }
    
    .ai-control-center {
        position: static;
        transform: none;
        margin: 1rem auto;
        text-align: center;
        top: auto;
        right: auto;
    }
    
    .factory-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stat-card {
        width: 100%;
    }
    
    .data-streams {
        display: none;
    }
    
    .hero-text p {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .visual-icon {
        font-size: 3rem;
        margin-bottom: 1.5rem;
    }
    
    .automation-flow {
        gap: 1.5rem;
        padding-left: 0;
        justify-content: flex-start;
    }
    
    .flow-item {
        width: 180px;
        padding: 1.5rem 1rem;
    }
    
    .flow-item i {
        font-size: 2rem;
    }
    
    .flow-item span {
        font-size: 1rem;
    }
    
    .challenges-grid,
    .solutions-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .calculator-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
    }
    
    .story-metrics {
        grid-template-columns: repeat(2, 1fr);
    }
}
