/* Interactive Process Timeline Styles */

.process-timeline-section {
    background: var(--bg-light);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
    /* Android optimization */
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

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

.timeline-header {
    text-align: center;
    margin-bottom: 4rem;
}

.timeline-header h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.timeline-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.timeline-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.timeline-filter {
    padding: 0.5rem 1rem;
    border: 2px solid var(--highlight-color);
    background: transparent;
    color: var(--highlight-color);
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    /* Mobile optimization */
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
}

.timeline-filter.active,
.timeline-filter:hover {
    background: var(--highlight-color);
    color: white;
}

/* Timeline Visualization */
.timeline-wrapper {
    position: relative;
    margin-top: 3rem;
}

.timeline-track {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 2rem 0;
    min-height: 120px;
}

.timeline-track::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #e1e5e9 0%, var(--highlight-color) 100%);
    border-radius: 2px;
    z-index: 1;
}

.timeline-progress {
    position: absolute;
    top: 50%;
    left: 0;
    height: 4px;
    background: var(--highlight-color);
    border-radius: 2px;
    transform: translateY(-50%);
    transition: width 1s ease;
    z-index: 2;
}

/* Timeline Phases */
.timeline-phase {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    z-index: 3;
    transition: all 0.3s ease;
    flex: 1;
    max-width: 150px;
    min-height: 140px;
    justify-content: flex-end;
}

.timeline-phase:hover {
    transform: translateY(-5px);
}

.timeline-phase.active {
    transform: translateY(-8px);
}

.phase-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    background: white;
    border: 3px solid var(--bg-section);
}

.timeline-phase.completed .phase-icon {
    background: var(--highlight-color);
    color: white;
    border-color: var(--highlight-color);
}

.timeline-phase.active .phase-icon {
    box-shadow: 0 6px 20px rgba(233, 69, 96, 0.3);
    border-width: 4px;
}

.phase-title {
    font-weight: 600;
    color: var(--primary-color);
    text-align: center;
    font-size: 0.9rem;
    max-width: 120px;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    min-height: 2.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phase-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 3.4rem;
    justify-content: center;
}

.phase-duration {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    min-height: 1rem;
    line-height: 1;
}

/* Phase Details Panel */
.phase-details {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-top: 3rem;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.phase-details.active {
    opacity: 1;
    transform: translateY(0);
}

.phase-details-header {
    background: var(--gradient-primary);
    color: white;
    padding: 2rem;
    text-align: center;
}

.phase-details-header h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.phase-details-header p {
    opacity: 0.9;
    font-size: 1.1rem;
}

.phase-details-content {
    padding: 2rem;
}

.phase-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.phase-content-section {
    background: var(--bg-section);
    padding: 1.5rem;
    border-radius: 10px;
}

.phase-content-section h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.phase-content-section ul {
    list-style: none;
    padding: 0;
}

.phase-content-section li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e1e5e9;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.phase-content-section li::before {
    content: '✓';
    color: var(--highlight-color);
    font-weight: 600;
}

.phase-content-section li:last-child {
    border-bottom: none;
}

/* Risk Section */
.risks-section {
    margin-top: 2rem;
}

.risk-item {
    background: white;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.risk-title {
    font-weight: 600;
    color: #e74c3c;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.risk-title::before {
    content: '⚠️';
}

.risk-mitigation {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.risk-mitigation::before {
    content: '→ ';
    color: var(--highlight-color);
    font-weight: 600;
}

/* Testimonial Section */
.phase-testimonial {
    background: var(--gradient-accent);
    color: white;
    padding: 2rem;
    border-radius: 10px;
    margin-top: 2rem;
    text-align: center;
    position: relative;
}

.phase-testimonial::before {
    content: '"';
    font-size: 4rem;
    position: absolute;
    top: -10px;
    left: 1rem;
    opacity: 0.3;
    font-family: serif;
}

.testimonial-quote {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.testimonial-author {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.testimonial-details {
    font-size: 0.9rem;
    opacity: 0.9;
}

.testimonial-roi {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: inline-block;
    margin-top: 1rem;
    font-weight: 600;
}

/* Navigation Controls */
.timeline-navigation {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.timeline-nav-btn {
    padding: 0.75rem 2rem;
    border: 2px solid var(--highlight-color);
    background: transparent;
    color: var(--highlight-color);
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.timeline-nav-btn:hover,
.timeline-nav-btn:disabled {
    background: var(--highlight-color);
    color: white;
}

.timeline-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Mobile Responsive - Tablet and Mobile */
@media (max-width: 768px) {
    .timeline-container {
        padding: 0 1rem;
    }
    
    .timeline-header {
        margin-bottom: 2rem;
    }
    
    .timeline-header h2 {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }
    
    .timeline-header p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .timeline-controls {
        gap: 0.5rem;
        justify-content: center;
    }
    
    .timeline-filter {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
        border-radius: 15px;
    }
    
    .timeline-track {
        flex-direction: column;
        gap: 1.5rem;
        padding: 2rem 0;
        align-items: stretch;
    }
    
    .timeline-track::before {
        width: 3px;
        height: 100%;
        top: 0;
        left: 2rem;
        transform: none;
        background: linear-gradient(180deg, #e1e5e9 0%, var(--highlight-color) 100%);
    }
    
    .timeline-progress {
        width: 3px !important;
        height: var(--progress-height, 0%);
        left: 2rem;
        top: 0;
        transform: none;
        background: var(--highlight-color);
    }
    
    .timeline-phase {
        width: 100%;
        flex-direction: row;
        text-align: left;
        background: white;
        padding: 1.25rem;
        border-radius: 12px;
        box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
        margin-left: 1rem;
        min-height: auto;
        justify-content: flex-start;
        position: relative;
        border-left: 4px solid var(--bg-section);
        transition: all 0.3s ease;
    }
    
    .timeline-phase:hover {
        transform: translateX(5px);
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
    }
    
    .timeline-phase.active {
        transform: translateX(8px);
        border-left-color: var(--highlight-color);
        background: linear-gradient(135deg, white, rgba(233, 69, 96, 0.02));
    }
    
    .phase-icon {
        margin-right: 1rem;
        margin-bottom: 0;
        width: 48px;
        height: 48px;
        font-size: 1.1rem;
        flex-shrink: 0;
        border-width: 2px;
    }
    
    .phase-info {
        flex: 1;
        min-height: auto;
        justify-content: flex-start;
    }
    
    .phase-title {
        max-width: none;
        text-align: left;
        margin-bottom: 0.25rem;
        min-height: auto;
        font-size: 0.95rem;
        line-height: 1.3;
        font-weight: 600;
    }
    
    .phase-duration {
        text-align: left;
        min-height: auto;
        font-size: 0.8rem;
        opacity: 0.8;
    }
    
    .phase-content-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .phase-details-header,
    .phase-details-content {
        padding: 1.25rem;
    }
    
    .phase-details-header h3 {
        font-size: 1.6rem;
    }
    
    .timeline-navigation {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        margin-top: 1.5rem;
    }
    
    .timeline-nav-btn {
        width: 100%;
        max-width: 280px;
        padding: 0.9rem 1.5rem;
        font-size: 0.95rem;
        border-radius: 20px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
}

/* Small Mobile - Android Phones */
@media (max-width: 480px) {
    .timeline-container {
        padding: 0 0.75rem;
    }
    
    .timeline-header {
        margin-bottom: 1.5rem;
    }
    
    .timeline-header h2 {
        font-size: 1.75rem;
        line-height: 1.2;
    }
    
    .timeline-header p {
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
    }
    
    .timeline-controls {
        flex-wrap: wrap;
        gap: 0.4rem;
    }
    
    .timeline-filter {
        padding: 0.35rem 0.7rem;
        font-size: 0.8rem;
        border-radius: 12px;
        min-width: auto;
    }
    
    .timeline-autoplay-toggle {
        width: 100%;
        margin-top: 0.5rem;
    }
    
    .timeline-track {
        gap: 1.25rem;
        padding: 1.5rem 0;
    }
    
    .timeline-track::before {
        left: 1.5rem;
    }
    
    .timeline-progress {
        left: 1.5rem;
    }
    
    .timeline-phase {
        margin-left: 0.5rem;
        padding: 1rem;
        border-radius: 10px;
        min-height: 70px;
    }
    
    .phase-icon {
        width: 42px;
        height: 42px;
        font-size: 1rem;
        margin-right: 0.8rem;
    }
    
    .phase-title {
        font-size: 0.9rem;
        line-height: 1.25;
        margin-bottom: 0.2rem;
    }
    
    .phase-duration {
        font-size: 0.75rem;
    }
    
    .phase-details {
        margin-top: 2rem;
    }
    
    .phase-details-header {
        padding: 1rem;
    }
    
    .phase-details-header h3 {
        font-size: 1.4rem;
        line-height: 1.3;
    }
    
    .phase-details-header p {
        font-size: 0.95rem;
        line-height: 1.4;
    }
    
    .phase-details-content {
        padding: 1rem;
    }
    
    .phase-content-section {
        padding: 0.9rem;
        border-radius: 8px;
        margin-bottom: 0.75rem;
    }
    
    .phase-content-section h4 {
        font-size: 0.95rem;
        margin-bottom: 0.75rem;
    }
    
    .phase-content-section li {
        padding: 0.4rem 0;
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    .risks-section {
        margin-top: 1.5rem;
    }
    
    .risk-item {
        padding: 0.8rem;
        margin-bottom: 0.75rem;
        border-radius: 6px;
    }
    
    .risk-title {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
    }
    
    .risk-mitigation {
        font-size: 0.8rem;
        line-height: 1.4;
    }
    
    .phase-testimonial {
        padding: 1.25rem;
        margin-top: 1.5rem;
        border-radius: 8px;
    }
    
    .testimonial-quote {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 0.9rem;
    }
    
    .testimonial-author {
        font-size: 0.9rem;
        margin-bottom: 0.2rem;
    }
    
    .testimonial-details {
        font-size: 0.8rem;
    }
    
    .testimonial-roi {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
        margin-top: 0.8rem;
    }
    
    .timeline-navigation {
        margin-top: 1.25rem;
        gap: 0.6rem;
    }
    
    .timeline-nav-btn {
        padding: 0.8rem 1.25rem;
        font-size: 0.9rem;
        max-width: 260px;
        border-radius: 18px;
    }
}

/* Android-specific optimizations */
@media screen and (max-width: 768px) and (-webkit-min-device-pixel-ratio: 2) {
    .timeline-phase {
        -webkit-tap-highlight-color: rgba(233, 69, 96, 0.1);
        tap-highlight-color: rgba(233, 69, 96, 0.1);
    }
    
    .timeline-filter {
        -webkit-tap-highlight-color: rgba(233, 69, 96, 0.1);
        tap-highlight-color: rgba(233, 69, 96, 0.1);
    }
    
    .timeline-nav-btn {
        -webkit-tap-highlight-color: rgba(233, 69, 96, 0.1);
        tap-highlight-color: rgba(233, 69, 96, 0.1);
    }
}
}