/* ========================================
   CloudTalend - Service Pages Shared Styles
   Data | AI | Cloud | Automation | Digital | CRM & ERP
   ======================================== */

/* === Service Hero Section === */
.service-hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 140px 0 80px;
}

.service-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.data-hero .service-hero-bg {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 50%, #0F172A 100%);
}

.ai-hero .service-hero-bg {
    background: linear-gradient(135deg, #0F172A 0%, #1a1a2e 50%, #16213e 100%);
}

.cloud-hero .service-hero-bg {
    background: linear-gradient(135deg, #0F172A 0%, #1e3a5f 50%, #0F172A 100%);
}

.automation-hero .service-hero-bg {
    background: linear-gradient(135deg, #0F172A 0%, #2d1b4e 50%, #0F172A 100%);
}

.digital-hero .service-hero-bg {
    background: linear-gradient(135deg, #0F172A 0%, #1a472a 50%, #0F172A 100%);
}

.crm-erp-hero .service-hero-bg {
    background: linear-gradient(135deg, #0F172A 0%, #3d1f1f 50%, #0F172A 100%);
}

.data-ai-hero .service-hero-bg {
    background: linear-gradient(135deg, #0F172A 0%, #1e293b 40%, #1a1a2e 70%, #0F172A 100%);
}

.hero-particle {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.service-hero .container {
    position: relative;
    z-index: 2;
}

.service-hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.service-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.5rem;
    background: rgba(37, 99, 235, 0.15);
    border: 1px solid rgba(37, 99, 235, 0.3);
    border-radius: var(--radius-full);
    color: var(--color-primary-light);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

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

.service-hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.service-hero-description {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

/* === Service Overview Section === */
.service-overview {
    padding: var(--section-padding);
    background: var(--bg-light);
}

.overview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.overview-content .section-label {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(37, 99, 235, 0.1);
    color: var(--color-primary);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.overview-content .section-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    margin-bottom: 1.5rem;
}

.overview-text {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.overview-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.overview-stat {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--radius-md);
    font-size: 1.25rem;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

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

/* Data Visualization */
.data-visualization {
    background: var(--bg-dark);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.viz-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.viz-dots {
    display: flex;
    gap: 0.5rem;
}

.viz-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.viz-dots span:nth-child(1) { background: #ff5f56; }
.viz-dots span:nth-child(2) { background: #ffbd2e; }
.viz-dots span:nth-child(3) { background: #27c93f; }

.viz-title {
    color: var(--text-light);
    font-size: 0.875rem;
    font-weight: 500;
}

.viz-body {
    padding: 2rem;
}

.pipeline-flow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.pipeline-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.stage-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--radius-lg);
    font-size: 1.5rem;
}

.stage-label {
    color: var(--text-light);
    font-size: 0.875rem;
    font-weight: 500;
}

.pipeline-arrow {
    color: var(--color-primary-light);
    font-size: 1.25rem;
}

.viz-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.metric {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-accent);
}

.metric-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* AI Neural Network Visual */
.ai-visual-large {
    position: relative;
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-brain-center {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 50%;
    color: white;
    font-size: 3rem;
    z-index: 2;
    box-shadow: 0 0 60px rgba(37, 99, 235, 0.5);
}

.ai-neural-network {
    position: absolute;
    width: 100%;
    height: 100%;
}

.neural-node {
    position: absolute;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-dark-light);
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    color: var(--color-primary-light);
    font-size: 1.5rem;
    animation: neuralPulse 3s ease-in-out infinite;
    animation-delay: var(--delay, 0s);
}

.neural-node:nth-child(1) { top: 10%; left: 20%; }
.neural-node:nth-child(2) { top: 10%; right: 20%; }
.neural-node:nth-child(3) { top: 50%; left: 5%; }
.neural-node:nth-child(4) { top: 50%; right: 5%; }
.neural-node:nth-child(5) { bottom: 10%; left: 20%; }
.neural-node:nth-child(6) { bottom: 10%; right: 20%; }

@keyframes neuralPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 20px rgba(37, 99, 235, 0.3); }
    50% { transform: scale(1.1); box-shadow: 0 0 40px rgba(37, 99, 235, 0.6); }
}

.ai-connections {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.connections-svg {
    width: 100%;
    height: 100%;
}

/* Cloud Architecture Visual */
.cloud-visual-large {
    position: relative;
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cloud-center {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 50%;
    color: white;
    font-size: 3.5rem;
    z-index: 2;
    box-shadow: 0 0 60px rgba(37, 99, 235, 0.5);
}

.cloud-orbit {
    position: absolute;
    border: 2px dashed rgba(37, 99, 235, 0.3);
    border-radius: 50%;
    animation: orbitRotate 20s linear infinite;
}

.cloud-orbit-1 {
    width: 200px;
    height: 200px;
    animation-duration: 15s;
}

.cloud-orbit-2 {
    width: 280px;
    height: 280px;
    animation-duration: 25s;
    animation-direction: reverse;
}

.cloud-orbit-3 {
    width: 360px;
    height: 360px;
    animation-duration: 35s;
}

.cloud-node {
    position: absolute;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-dark-light);
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    color: var(--color-primary-light);
    font-size: 1.25rem;
}

@keyframes orbitRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Automation Visual */
.automation-visual {
    position: relative;
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.automation-flow {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    max-width: 500px;
}

.automation-step {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: var(--bg-dark-light);
    border: 1px solid rgba(37, 99, 235, 0.3);
    border-radius: var(--radius-lg);
    position: relative;
}

.automation-step::after {
    content: '';
    position: absolute;
    bottom: -1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 1.5rem;
    background: var(--gradient-primary);
}

.automation-step:last-child::after {
    display: none;
}

.automation-step-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--radius-md);
    font-size: 1rem;
}

.automation-step-text {
    color: var(--text-light);
    font-weight: 500;
}

/* Digital Transformation Visual */
.digital-visual {
    position: relative;
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.digital-ecosystem {
    position: relative;
    width: 350px;
    height: 350px;
}

.digital-hub {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 50%;
    color: white;
    font-size: 2.5rem;
    z-index: 2;
    box-shadow: 0 0 60px rgba(37, 99, 235, 0.5);
}

.digital-node {
    position: absolute;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-dark-light);
    border: 2px solid var(--color-primary);
    border-radius: var(--radius-lg);
    color: var(--color-primary-light);
    font-size: 1.5rem;
    animation: digitalFloat 4s ease-in-out infinite;
}

.digital-node:nth-child(2) { top: 0; left: 50%; transform: translateX(-50%); animation-delay: 0s; }
.digital-node:nth-child(3) { top: 25%; right: 0; animation-delay: 0.5s; }
.digital-node:nth-child(4) { bottom: 25%; right: 0; animation-delay: 1s; }
.digital-node:nth-child(5) { bottom: 0; left: 50%; transform: translateX(-50%); animation-delay: 1.5s; }
.digital-node:nth-child(6) { bottom: 25%; left: 0; animation-delay: 2s; }
.digital-node:nth-child(7) { top: 25%; left: 0; animation-delay: 2.5s; }

@keyframes digitalFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* CRM & ERP Visual */
.crm-erp-visual {
    position: relative;
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.crm-erp-hub {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    width: 100%;
    max-width: 500px;
}

.crm-erp-module {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    background: var(--bg-dark-light);
    border: 1px solid rgba(37, 99, 235, 0.3);
    border-radius: var(--radius-xl);
    text-align: center;
}

.crm-erp-module-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    font-size: 2rem;
}

.crm-erp-module h4 {
    color: var(--text-white);
    font-size: 1.25rem;
}

.crm-erp-module p {
    color: var(--text-light);
    font-size: 0.875rem;
}

.crm-erp-integrations {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 0.5rem;
}

.crm-erp-integrations span {
    padding: 0.25rem 0.75rem;
    background: rgba(37, 99, 235, 0.2);
    color: var(--color-primary-light);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
}

/* === Features Section === */
.service-features-section {
    padding: var(--section-padding);
    background: var(--bg-white);
}

.features-detailed {
    display: flex;
    flex-direction: column;
    gap: 6rem;
}

.feature-detailed {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

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

.feature-detailed.reverse > * {
    direction: ltr;
}

.feature-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon-large {
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    color: white;
    font-size: 5rem;
    box-shadow: var(--shadow-glow);
}

.feature-content h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

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

.feature-list {
    list-style: none;
    margin-bottom: 2rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: var(--text-secondary);
}

.feature-list li i {
    color: var(--color-success);
    font-size: 1rem;
}

/* === Technologies Section === */
.technologies-section {
    padding: var(--section-padding);
    background: var(--bg-light);
}

.technologies-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.tech-category {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.tech-category:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.tech-category h4 {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-primary);
}

.tech-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-item {
    padding: 0.375rem 0.875rem;
    background: rgba(37, 99, 235, 0.1);
    color: var(--color-primary);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition-base);
}

.tech-item:hover {
    background: var(--color-primary);
    color: white;
}

/* === Use Cases Section === */
.use-cases-section {
    padding: var(--section-padding);
    background: var(--bg-white);
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.use-case-card {
    background: var(--bg-white);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-xl);
    padding: 2rem;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.use-case-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.use-case-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--radius-lg);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.use-case-card h4 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.use-case-card p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.use-case-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.875rem;
    transition: gap var(--transition-base);
}

.use-case-link:hover {
    gap: 0.75rem;
}

/* === Process Section === */
.process-section {
    padding: var(--section-padding);
    background: var(--bg-light);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.process-step {
    position: relative;
    padding: 2rem;
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-base);
}

.process-step:hover {
    transform: translateY(-5px);
}

.step-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-primary);
    opacity: 0.2;
    line-height: 1;
    margin-bottom: 1rem;
}

.step-content h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.step-content p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.7;
}

/* === Service CTA Section === */
.service-cta {
    padding: 100px 0;
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    position: relative;
    overflow: hidden;
}

.service-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    color: var(--text-white);
    margin-bottom: 1.5rem;
}

.cta-description {
    color: var(--text-light);
    font-size: 1.125rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* === Responsive Design === */
@media (max-width: 1024px) {
    .overview-grid,
    .feature-detailed,
    .feature-detailed.reverse {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .feature-detailed.reverse {
        direction: ltr;
    }
    
    .technologies-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .use-cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .service-hero {
        min-height: 60vh;
        padding: 120px 0 60px;
    }
    
    .service-hero-title {
        font-size: 2rem;
    }
    
    .overview-stats {
        grid-template-columns: 1fr;
    }
    
    .technologies-grid {
        grid-template-columns: 1fr;
    }
    
    .use-cases-grid {
        grid-template-columns: 1fr;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
    }
    
    .viz-metrics {
        grid-template-columns: 1fr;
    }
    
    .pipeline-flow {
        flex-direction: column;
    }
    
    .pipeline-arrow {
        transform: rotate(90deg);
    }
    
    .feature-icon-large {
        width: 150px;
        height: 150px;
        font-size: 3.5rem;
    }
    
    .ai-visual-large,
    .cloud-visual-large,
    .automation-visual,
    .digital-visual,
    .crm-erp-visual {
        height: 300px;
    }
    
    .crm-erp-hub {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .service-hero-buttons,
    .cta-buttons {
        flex-direction: column;
    }
    
    .service-hero-buttons .btn,
    .cta-buttons .btn {
        width: 100%;
    }
}
