﻿/* Create this file as: wwwroot/css/timeline.css */

/* Process Timeline Section */
.process-timeline {
    padding: 100px 0;
    background: white;
    position: relative;
    overflow: hidden;
}

    .process-timeline::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: radial-gradient(circle at 10% 20%, rgba(111, 66, 193, 0.03) 0%, transparent 50%), radial-gradient(circle at 90% 80%, rgba(214, 51, 132, 0.03) 0%, transparent 50%);
        z-index: 1;
    }

    .process-timeline .container {
        position: relative;
        z-index: 2;
    }

.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding-top: 40px;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, #6f42c1, #d63384);
    transform: translateX(-50%);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(111, 66, 193, 0.3);
}

.timeline-step {
    display: flex;
    align-items: center;
    margin-bottom: 100px;
    position: relative;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s ease;
}

    .timeline-step:nth-child(even) {
        flex-direction: row-reverse;
    }

    .timeline-step:last-child {
        margin-bottom: 0;
    }

.timeline-content {
    flex: 1;
    padding: 0 60px;
}

.timeline-image {
    flex: 1;
    text-align: center;
    padding: 0 20px;
}

.image-container {
    position: relative;
    display: inline-block;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
    min-width: 350px;
    min-height: 250px;
}

    .image-container:hover {
        transform: scale(1.05) rotate(2deg);
        box-shadow: 0 30px 80px rgba(111, 66, 193, 0.25);
    }

    .image-container img {
        width: 350px;
        height: 250px;
        object-fit: cover;
        display: block;
        transition: all 0.4s ease;
    }

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(111, 66, 193, 0.8), rgba(214, 51, 132, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
}

    .image-overlay i {
        font-size: 3rem;
        color: white;
        transform: scale(0.5);
        transition: all 0.4s ease;
    }

.image-container:hover .image-overlay {
    opacity: 1;
}

    .image-container:hover .image-overlay i {
        transform: scale(1);
    }

.timeline-number {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #6f42c1, #d63384);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    box-shadow: 0 10px 30px rgba(111, 66, 193, 0.4);
    border: 4px solid white;
    z-index: 10;
    transition: all 0.4s ease;
}

.timeline-step:hover .timeline-number {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 15px 40px rgba(111, 66, 193, 0.6);
}

.step-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #343a40;
    margin-bottom: 20px;
    line-height: 1.2;
}

.step-description {
    color: #495057;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 25px;
}

.step-features {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.feature-badge {
    background: linear-gradient(135deg, rgba(111, 66, 193, 0.1), rgba(214, 51, 132, 0.1));
    color: #6f42c1;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(111, 66, 193, 0.2);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

    .feature-badge:hover {
        background: linear-gradient(135deg, #6f42c1, #d63384);
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(111, 66, 193, 0.3);
    }

    .feature-badge i {
        font-size: 0.8rem;
    }

/* Timeline CTA Section */
.timeline-cta {
    text-align: center;
    margin-top: 80px;
    padding: 60px 40px;
    background: linear-gradient(135deg, #6f42c1, #d63384);
    border-radius: 20px;
    color: white;
    position: relative;
    overflow: hidden;
}

    .timeline-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: shimmer 4s ease-in-out infinite;
    }

    .timeline-cta h3 {
        font-size: 2.5rem;
        font-weight: 700;
        margin-bottom: 15px;
        position: relative;
        z-index: 2;
    }

    .timeline-cta p {
        font-size: 1.2rem;
        margin-bottom: 30px;
        opacity: 0.9;
        position: relative;
        z-index: 2;
    }

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.cta-button {
    padding: 16px 35px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

    .cta-button.primary {
        background: white;
        color: #6f42c1;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    }

        .cta-button.primary:hover {
            background: #f8f9fa;
            transform: translateY(-3px);
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
            color: #6f42c1;
        }

    .cta-button.secondary {
        background: transparent;
        color: white;
        border: 2px solid white;
    }

        .cta-button.secondary:hover {
            background: white;
            color: #6f42c1;
            transform: translateY(-3px);
        }

/* Image Fallback Styles */
.image-fallback {
    width: 350px;
    height: 250px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 2px dashed #6f42c1;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #6f42c1;
    font-weight: 600;
}

    .image-fallback p {
        margin-top: 15px;
        font-size: 1.1rem;
    }

/* Responsive Design */
@media (max-width: 992px) {
    .timeline-step {
        flex-direction: column !important;
        text-align: center;
        margin-bottom: 80px;
    }

    .timeline-content,
    .timeline-image {
        padding: 20px;
        flex: none;
    }

    .timeline-content {
        order: 2;
    }

    .timeline-image {
        order: 1;
        margin-bottom: 30px;
    }

    .timeline-line {
        display: none;
    }

    .timeline-number {
        position: static;
        transform: none;
        margin: 0 auto 30px;
    }

    .step-title {
        font-size: 1.8rem;
    }

    .image-container img {
        width: 300px;
        height: 200px;
    }

    .image-container,
    .image-fallback {
        min-width: 300px;
        min-height: 200px;
    }
}

@media (max-width: 768px) {
    .process-timeline {
        padding: 60px 0;
    }

    .timeline-container {
        padding-top: 20px;
    }

    .timeline-step {
        margin-bottom: 60px;
    }

    .step-title {
        font-size: 1.6rem;
    }

    .step-description {
        font-size: 1rem;
    }

    .image-container img {
        width: 280px;
        height: 180px;
    }

    .image-container,
    .image-fallback {
        min-width: 280px;
        min-height: 180px;
    }

    .timeline-cta {
        padding: 40px 20px;
        margin-top: 60px;
    }

        .timeline-cta h3 {
            font-size: 2rem;
        }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .feature-badge {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    .timeline-content {
        padding: 10px;
    }

    .step-features {
        justify-content: center;
    }

    .image-container img {
        width: 250px;
        height: 160px;
    }

    .image-container,
    .image-fallback {
        min-width: 250px;
        min-height: 160px;
    }
}

/* Animation for shimmer effect */
@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}
