/* Workflow Section Styles */

.workflow-section {
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 25%, #16213e 50%, #0f3460 75%, #0a1929 100%);
    position: relative;
    overflow: hidden;
}

.workflow-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 20%, rgba(105, 5, 233, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(124, 1, 221, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(192, 112, 255, 0.04) 0%, transparent 50%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="workflow-pattern" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="%234a5568" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23workflow-pattern)"/></svg>');
    pointer-events: none;
}

/* Section Titles */
.section-title {
    background: linear-gradient(135deg, #6905E9, #7C01DD, #C070FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
    text-shadow: 0 0 30px rgba(105, 5, 233, 0.3);
}

.section-subtitle {
    letter-spacing: 1px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
}

/* Workflow Timeline */
.workflow-timeline {
    position: relative;
    padding: 4rem 0;
    min-height: 600px;
}

.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Timeline Scale */
.timeline-scale {
    position: absolute;
    top: 0;
    left: 2rem;
    right: 2rem;
    height: 100%;
    z-index: 1;
}

.scale-line {
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        rgba(105, 5, 233, 0.2) 0%, 
        rgba(124, 1, 221, 0.4) 25%, 
        rgba(192, 112, 255, 0.4) 50%, 
        rgba(124, 1, 221, 0.4) 75%, 
        rgba(105, 5, 233, 0.2) 100%);
    border-radius: 2px;
    box-shadow: 0 0 20px rgba(105, 5, 233, 0.3);
}

.scale-progress {
    position: absolute;
    top: 80px;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        rgba(105, 5, 233, 0.8) 0%, 
        rgba(124, 1, 221, 1) 50%, 
        rgba(192, 112, 255, 0.8) 100%);
    border-radius: 2px;
    width: 0%;
    animation: progress-flow 3s ease-in-out infinite;
    box-shadow: 0 0 15px rgba(105, 5, 233, 0.6);
}

@keyframes progress-flow {
    0% { width: 0%; }
    50% { width: 100%; }
    100% { width: 0%; }
}

/* Timeline Steps */
.timeline-steps {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.timeline-step {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    padding: 1rem 0;
}

.timeline-step:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-step:nth-child(even) .step-content {
    text-align: right;
}

/* Step Marker */
.step-marker {
    position: relative;
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.marker-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: var(--transition);
    position: relative;
    box-shadow: 0 0 30px rgba(105, 5, 233, 0.3);
}

.marker-icon::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(105, 5, 233, 0.3), rgba(124, 1, 221, 0.3), rgba(192, 112, 255, 0.3));
    z-index: -1;
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { 
        transform: scale(1);
        opacity: 0.7;
    }
    50% { 
        transform: scale(1.1);
        opacity: 1;
    }
}

.marker-number {
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 30px;
    height: 30px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: var(--shadow-medium);
}

/* Step Content */
.step-content {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.step-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(105, 5, 233, 0.05) 0%, 
        rgba(124, 1, 221, 0.03) 50%, 
        rgba(192, 112, 255, 0.05) 100%);
    z-index: -1;
}

.timeline-step:hover .step-content {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
    border-color: rgba(105, 5, 233, 0.3);
}

.timeline-step:hover .marker-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 40px rgba(105, 5, 233, 0.5);
}

/* Step Title and Description */
.step-title {
    color: var(--text-light);
    font-size: 1.75rem;
    font-weight: bold;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.step-description {
    color: var(--text-muted);
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.step-icon-primary {
    background: linear-gradient(135deg, rgba(105, 5, 233, 0.2), rgba(105, 5, 233, 0.1));
    border: 2px solid rgba(105, 5, 233, 0.3);
    color: #6905E9;
}

.step-icon-info {
    background: linear-gradient(135deg, rgba(13, 202, 240, 0.2), rgba(13, 202, 240, 0.1));
    border: 2px solid rgba(13, 202, 240, 0.3);
    color: #0dcaf0;
}

.step-icon-success {
    background: linear-gradient(135deg, rgba(25, 135, 84, 0.2), rgba(25, 135, 84, 0.1));
    border: 2px solid rgba(25, 135, 84, 0.3);
    color: #198754;
}

.step-icon-warning {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.2), rgba(255, 193, 7, 0.1));
    border: 2px solid rgba(255, 193, 7, 0.3);
    color: #ffc107;
}

.step-icon-danger {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.2), rgba(220, 53, 69, 0.1));
    border: 2px solid rgba(220, 53, 69, 0.3);
    color: #dc3545;
}

.step-icon-secondary {
    background: linear-gradient(135deg, rgba(108, 117, 125, 0.2), rgba(108, 117, 125, 0.1));
    border: 2px solid rgba(108, 117, 125, 0.3);
    color: #6c757d;
}

.workflow-step:hover .step-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-medium);
}

/* Connection Line */
.connection-line {
    position: absolute;
    top: 50%;
    right: -2rem;
    width: 4rem;
    height: 2px;
    background: linear-gradient(90deg, 
        rgba(105, 5, 233, 0.5) 0%, 
        rgba(124, 1, 221, 0.3) 50%, 
        transparent 100%);
    transform: translateY(-50%);
    z-index: 1;
}

.connection-line::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    width: 0;
    height: 0;
    border-left: 8px solid rgba(124, 1, 221, 0.3);
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    transform: translateY(-50%);
}

/* Step Content */
.step-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.step-title {
    color: var(--text-light);
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.step-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

/* Step Features */
.step-features {
    margin-top: 1rem;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: 0.5rem;
    border-radius: 8px;
    transition: var(--transition);
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
}

.feature-item i {
    color: var(--success-color);
    margin-right: 0.5rem;
    font-size: 0.8rem;
}

/* Step Background Effects */
.step-bg-effects {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.step-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(105, 5, 233, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: var(--transition);
}

.workflow-step:hover .step-glow {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.5);
}

.step-particles {
    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"><circle cx="20" cy="20" r="1" fill="%236905E9" opacity="0.3"><animate attributeName="opacity" values="0.3;0.8;0.3" dur="2s" repeatCount="indefinite"/></circle><circle cx="80" cy="30" r="1" fill="%237C01DD" opacity="0.2"><animate attributeName="opacity" values="0.2;0.6;0.2" dur="3s" repeatCount="indefinite"/></circle><circle cx="40" cy="70" r="1" fill="%23C070FF" opacity="0.4"><animate attributeName="opacity" values="0.4;0.7;0.4" dur="2.5s" repeatCount="indefinite"/></circle></svg>');
    opacity: 0;
    transition: var(--transition);
}

.workflow-step:hover .step-particles {
    opacity: 1;
}

/* Process Summary */
.process-summary {
    position: relative;
    z-index: 2;
}

.summary-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    transition: var(--transition);
}

.summary-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.summary-title {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.summary-description {
    color: var(--text-muted);
    line-height: 1.6;
}

.summary-stats {
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    border-radius: 10px;
    transition: var(--transition);
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.stat-number {
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-muted);
    font-weight: 500;
}

/* Workflow CTA */
.workflow-cta {
    position: relative;
    z-index: 2;
}

.cta-content {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 3rem 2rem;
    transition: var(--transition);
}

.cta-content:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.cta-title {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.cta-description {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

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

/* Responsive Design */
@media (max-width: 1200px) {
    .timeline-container {
        padding: 0 1rem;
    }
    
    .timeline-scale {
        left: 1rem;
        right: 1rem;
    }
    
    .timeline-step {
        flex-direction: column !important;
        align-items: center;
        text-align: center;
    }
    
    .timeline-step:nth-child(even) .step-content {
        text-align: center;
    }
    
    .step-marker {
        margin-bottom: 1rem;
    }
}

@media (max-width: 768px) {
    .workflow-timeline {
        padding: 2rem 0;
        min-height: auto;
    }
    
    .timeline-container {
        padding: 0 0.5rem;
    }
    
    .timeline-scale {
        left: 0.5rem;
        right: 0.5rem;
    }
    
    .scale-line {
        height: 3px;
    }
    
    .scale-progress {
        height: 3px;
    }
    
    .step-marker {
        width: 100px;
        height: 100px;
    }
    
    .marker-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .marker-number {
        width: 25px;
        height: 25px;
        font-size: 0.8rem;
    }
    
    .step-content {
        padding: 1.5rem;
    }
    
    .step-title {
        font-size: 1.2rem;
    }
    
    .step-description {
        font-size: 0.9rem;
    }
    
    .feature-list {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 576px) {
    .workflow-section {
        padding: 1.5rem 0;
    }
    
    .timeline-step {
        gap: 1rem;
    }
    
    .step-content {
        padding: 1rem;
    }
    
    .summary-card {
        padding: 1.5rem;
    }
    
    .cta-content {
        padding: 2rem 1rem;
    }
}

/* Animation Delays for Staggered Effect */
.workflow-step-wrapper[data-aos="fade-up"] {
    animation-delay: calc(var(--aos-delay, 0) * 100ms);
}
