/* Process Timeline Section Styles */
.process-section {
    padding: 8rem 0;
    background-color: #f9f9f9;
    position: relative;
    overflow: hidden;
}

.process-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(44, 107, 237, 0.03), rgba(90, 85, 201, 0.03));
    z-index: 0;
}

/* Timeline container */
.process-timeline {
    max-width: 1000px;
    margin: 4rem auto 0;
    position: relative;
    padding: 0 20px;
}

/* Main timeline line */
.process-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 0;
    background: linear-gradient(to bottom, var(--primary-color), var(--deep-purple-color));
    transform: translateX(-50%);
    z-index: 1;
    border-radius: 2px;
    animation: timeline-grow 1.5s ease forwards;
}

@keyframes timeline-grow {
    0% {
        height: 0;
    }
    100% {
        height: calc(100% - 50px);
    }
}

/* Timeline steps */
.timeline-step {
    position: relative;
    margin-bottom: 100px;
    width: 100%;
    display: flex;
    z-index: 2;
}

.timeline-step:last-child {
    margin-bottom: 0;
}

/* Alternating left/right layout */
.timeline-step:nth-child(odd) {
    justify-content: flex-start;
}

.timeline-step:nth-child(even) {
    justify-content: flex-end;
}

/* Step content container */
.timeline-content {
    width: 45%;
    background-color: #fff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.5s ease;
    border-top: 5px solid var(--primary-color);
}

/* Animation classes for AOS */
.timeline-content.aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* Different border colors for each step */
.timeline-step:nth-child(1) .timeline-content {
    border-top-color: var(--primary-color);
}

.timeline-step:nth-child(2) .timeline-content {
    border-top-color: var(--secondary-color);
}

.timeline-step:nth-child(3) .timeline-content {
    border-top-color: var(--purple-color);
}

.timeline-step:nth-child(4) .timeline-content {
    border-top-color: var(--deep-purple-color);
}

/* Arrow pointing to timeline */
.timeline-content::before {
    content: '';
    position: absolute;
    top: 20px;
    width: 20px;
    height: 20px;
    background-color: #fff;
    transform: rotate(45deg);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.08);
    z-index: -1;
}

.timeline-step:nth-child(odd) .timeline-content::before {
    right: -10px;
}

.timeline-step:nth-child(even) .timeline-content::before {
    left: -10px;
}

/* Step number */
.timeline-number {
    position: absolute;
    top: 10px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--deep-purple-color));
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-weight: bold;
    font-size: 1.5rem;
    box-shadow: 0 5px 15px rgba(44, 107, 237, 0.3);
    z-index: 3;
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.3s ease;
}

/* Hover effects */
.timeline-content:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.timeline-content:hover .timeline-number {
    transform: translateX(-50%) scale(1.1);
    box-shadow: 0 8px 20px rgba(44, 107, 237, 0.4);
}

/* Step title and description */
.timeline-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.timeline-description {
    color: var(--text-color);
    line-height: 1.7;
}

/* Step icon */
.timeline-icon {
    margin-bottom: 20px;
    font-size: 2.5rem;
    color: var(--primary-color);
    opacity: 0.8;
}

/* Different icon colors for each step */
.timeline-step:nth-child(1) .timeline-icon {
    color: var(--primary-color);
}

.timeline-step:nth-child(2) .timeline-icon {
    color: var(--secondary-color);
}

.timeline-step:nth-child(3) .timeline-icon {
    color: var(--purple-color);
}

.timeline-step:nth-child(4) .timeline-icon {
    color: var(--deep-purple-color);
}

/* Pulse animation for timeline dots */
.timeline-dot {
    position: absolute;
    top: 20px;
    left: 50%;
    width: 20px;
    height: 20px;
    background-color: #fff;
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.timeline-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    background-color: rgba(44, 107, 237, 0.4);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
    }
    100% {
        width: 40px;
        height: 40px;
        opacity: 0;
    }
}

/* Different dot colors for each step */
.timeline-step:nth-child(1) .timeline-dot {
    border-color: var(--primary-color);
}

.timeline-step:nth-child(1) .timeline-dot::before {
    background-color: rgba(44, 107, 237, 0.4);
}

.timeline-step:nth-child(2) .timeline-dot {
    border-color: var(--secondary-color);
}

.timeline-step:nth-child(2) .timeline-dot::before {
    background-color: rgba(255, 154, 60, 0.4);
}

.timeline-step:nth-child(3) .timeline-dot {
    border-color: var(--purple-color);
}

.timeline-step:nth-child(3) .timeline-dot::before {
    background-color: rgba(169, 77, 171, 0.4);
}

.timeline-step:nth-child(4) .timeline-dot {
    border-color: var(--deep-purple-color);
}

.timeline-step:nth-child(4) .timeline-dot::before {
    background-color: rgba(90, 85, 201, 0.4);
}

/* Minimalist Process Slider Styles for Mobile */
.process-slider-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: auto;
    min-height: 70vh;
    max-height: 80vh;
    background-color: #f5f7fa;
    display: flex;
    flex-direction: column;
    padding-top: 20px;
}

.process-slider {
    display: flex;
    width: 100%;
    flex: 1;
    transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.process-slide {
    min-width: 100%;
    flex: 0 0 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 30px;
}

.process-slide .timeline-step {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Clean content styling for mobile */
.process-slide .timeline-content {
    width: 100%;
    margin: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    opacity: 1;
    transform: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: auto;
}

.process-slide .timeline-content::before {
    display: none;
}

/* Process step icon */
.process-slide .process-icon {
    margin-bottom: 20px;
    font-size: 2.5rem;
    border-radius: 50%;
    width: 70px;
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 25px;
}

/* Different icon colors for each step */
.process-slide:nth-child(1) .process-icon {
    color: white;
    background-color: var(--primary-color);
}

.process-slide:nth-child(2) .process-icon {
    color: white;
    background-color: var(--secondary-color);
}

.process-slide:nth-child(3) .process-icon {
    color: white;
    background-color: var(--purple-color);
}

.process-slide:nth-child(4) .process-icon {
    color: white;
    background-color: var(--deep-purple-color);
}

/* Style for the title in mobile view */
.process-slide .timeline-title {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin: 0 0 20px;
    font-weight: 600;
    text-align: center;
    display: none; /* Hide title as per the image */
}

/* Style for the description in mobile view */
.process-slide .timeline-description {
    color: #555;
    line-height: 1.8;
    font-size: 1.1rem;
    text-align: center;
    max-width: 600px;
}

/* Bottom navigation controls */
.process-slider-nav {
    width: 100%;
    padding: 20px 20px 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.process-nav-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 20px;
}

.process-prev,
.process-next {
    background-color: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    width: 50px;
    height: 50px;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.process-prev:hover,
.process-next:hover,
.process-prev:focus,
.process-next:focus {
    background-color: var(--primary-color);
    color: white;
}

.process-dots {
    display: flex;
    justify-content: center;
    margin: 0 auto;
}

.process-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ddd;
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.process-dot.active {
    background-color: var(--primary-color);
    width: 30px;
    border-radius: 5px;
}

/* Step counter */
.process-counter {
    font-size: 1rem;
    color: #888;
    margin: 15px 0;
    text-align: right;
    width: 100%;
    padding-right: 20px;
}

/* Progress bar */
.process-progress {
    position: absolute;
    bottom: 40px;
    left: 20px;
    right: 20px;
    height: 6px;
    background-color: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
}

.process-progress-bar {
    height: 100%;
    background-color: var(--primary-color);
    width: 0;
    transition: width 0.4s ease;
}

/* Bottom navigation bar */
.mobile-nav-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: white;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #777;
    font-size: 0.8rem;
}

.mobile-nav-item.active {
    color: var(--primary-color);
}

.mobile-nav-item i {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

/* Responsive styles */
@media screen and (max-width: 992px) and (min-width: 769px) {
    .process-timeline::before {
        left: 30px;
    }
    
    .timeline-step {
        justify-content: flex-start;
        margin-bottom: 70px;
    }
    
    .timeline-content {
        width: calc(100% - 80px);
        margin-left: 80px;
    }
    
    .timeline-step:nth-child(even) .timeline-content::before,
    .timeline-step:nth-child(odd) .timeline-content::before {
        left: -10px;
        right: auto;
    }
    
    .timeline-dot {
        left: 30px;
    }
    
    .timeline-number {
        left: 30px;
    }
}

@media screen and (max-width: 768px) {
    /* Hide the timeline line on mobile */
    .process-timeline::before {
        display: none;
    }
    
    /* Adjust spacing for mobile slider view */
    .process-section {
        padding: 4rem 0;
    }
    
    .timeline-content {
        padding: 20px;
        width: 100%;
        margin: 0;
        text-align: center;
    }
    
    .timeline-title {
        font-size: 1.3rem;
    }
    
    .timeline-icon {
        font-size: 2rem;
    }
    
    /* Center the timeline number on mobile */
    .timeline-number {
        left: 50%;
        transform: translateX(-50%);
    }
    
    /* Center the timeline dot on mobile */
    .timeline-dot {
        left: 50%;
        transform: translateX(-50%);
    }
    
    /* Remove the arrow pointing to timeline */
    .timeline-content::before {
        display: none;
    }
}

@media screen and (max-width: 576px) {
    .process-section {
        padding: 3rem 0;
    }
    
    .timeline-content {
        padding: 15px;
    }
    
    .timeline-title {
        font-size: 1.2rem;
    }
    
    .timeline-icon {
        font-size: 1.8rem;
    }
}
