/* Service Page Specific Styles */
.service-hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    margin-top: 60px;
    background: var(--bg-primary);
}

.service-hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.animated-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(99, 102, 241, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: grid-move 20s linear infinite;
}

@keyframes grid-move {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

.gradient-sphere {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
}

.sphere-1 {
    width: 500px;
    height: 500px;
    background: var(--accent-gradient);
    top: -250px;
    right: -100px;
    animation: float 15s ease-in-out infinite;
}

.sphere-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #ec4899 0%, #f59e0b 100%);
    bottom: -200px;
    left: -100px;
    animation: float 20s ease-in-out infinite reverse;
}

.service-hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 0;
}

.service-badge {
    display: inline-block;
    background: rgba(255, 107, 53, 0.1);
    color: var(--accent-primary);
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 107, 53, 0.2);
}

.service-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.service-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Benefits Section */
.service-benefits {
    padding: 4rem 0;
    background: var(--bg-secondary);
    position: relative;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.benefit-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 3px;
    background: var(--accent-gradient);
    transition: left var(--transition-base);
}

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

.benefit-card:hover::before {
    left: 0;
}

.benefit-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: rgba(255, 107, 53, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.benefit-icon::after {
    content: '';
    position: absolute;
    inset: -10px;
    background: var(--accent-gradient);
    border-radius: 50%;
    opacity: 0.2;
    filter: blur(20px);
    animation: pulse 2s ease-in-out infinite;
}

.benefit-icon svg {
    color: var(--accent-primary);
    position: relative;
    z-index: 1;
}

.benefit-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.benefit-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

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

.features-showcase {
    margin-top: 4rem;
}

.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 6rem;
}

.feature-row.reverse {
    direction: rtl;
}

.feature-row.reverse .feature-content {
    direction: ltr;
}

.feature-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.feature-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-weight: bold;
}

.feature-visual {
    position: relative;
}

.code-block {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    font-family: 'Courier New', monospace;
    overflow-x: auto;
    position: relative;
}

.code-block::before {
    content: '';
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    gap: 0.5rem;
}

.code-block::before {
    content: '● ● ●';
    color: var(--text-tertiary);
    font-size: 0.75rem;
    letter-spacing: 0.5rem;
}

.code-block code {
    color: var(--accent-primary);
    font-size: 0.875rem;
    line-height: 1.6;
}

.metrics-display {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.metric {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: all var(--transition-base);
}

.metric:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-primary);
}

.metric-value {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}

.metric-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.chart-container {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 1rem;
    height: 300px;
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: 1rem;
    border: 1px solid var(--border-color);
}

.chart-bar {
    width: 60px;
    background: var(--accent-gradient);
    border-radius: 0.5rem 0.5rem 0 0;
    position: relative;
    animation: grow-bar 1s ease-out forwards;
    opacity: 0;
}

.chart-bar.predicted {
    background: linear-gradient(135deg, #ec4899 0%, #f59e0b 100%);
    border: 2px dashed var(--accent-primary);
}

@keyframes grow-bar {
    from {
        height: 0;
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.chart-bar:nth-child(1) { animation-delay: 0.1s; }
.chart-bar:nth-child(2) { animation-delay: 0.2s; }
.chart-bar:nth-child(3) { animation-delay: 0.3s; }
.chart-bar:nth-child(4) { animation-delay: 0.4s; }
.chart-bar:nth-child(5) { animation-delay: 0.5s; }

/* Process Section */
.service-process {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.process-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--accent-primary) 20%, 
        var(--accent-primary) 80%, 
        transparent 100%);
    z-index: 0;
}

.process-step {
    position: relative;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: all var(--transition-base);
}

.process-step:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-primary);
}

.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    box-shadow: var(--shadow-md);
}

.process-step h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.process-step p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Technologies Section */
.service-technologies {
    padding: 4rem 0;
}

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

.tech-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: all var(--transition-base);
    cursor: pointer;
}

.tech-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-primary);
}

.tech-logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    opacity: 0.8;
    transition: all var(--transition-base);
}

.tech-item:hover .tech-logo {
    opacity: 1;
    color: var(--accent-primary);
}

/* Case Studies Section */
.service-case-studies {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

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

.case-study-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    transition: all var(--transition-base);
}

.case-study-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-primary);
}

.case-study-header {
    margin-bottom: 1.5rem;
}

.industry-tag {
    display: inline-block;
    background: rgba(255, 107, 53, 0.1);
    color: var(--accent-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.case-study-header h3 {
    font-size: 1.25rem;
    line-height: 1.4;
}

.case-study-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.case-study-metrics .metric {
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
}

.case-study-metrics .metric-value {
    font-size: 2rem;
}

.case-study-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* CTA Section */
.service-cta {
    padding: 6rem 0;
    background: var(--accent-gradient);
    position: relative;
    overflow: hidden;
}

.service-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: white;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.cta-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.cta-button.large {
    font-size: 1.125rem;
    padding: 1rem 3rem;
    background: white;
    color: var(--accent-primary);
}

.cta-features {
    display: flex;
    gap: 2rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .feature-row,
    .feature-row.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
    }
    
    .process-timeline::before {
        display: none;
    }
}

@media (max-width: 768px) {
    .service-hero-content {
        padding: 2rem 0;
    }
    
    .service-title {
        font-size: 2rem;
    }
    
    .service-description {
        font-size: 1.125rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .metrics-display {
        grid-template-columns: 1fr;
    }
    
    .case-studies-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-features {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .chart-bar {
        width: 40px;
    }
}