/* Horizontal Timeline Styling */
.timeline-horizontal {
    margin-top: 3rem;
    padding: 2rem 0;
}

.timeline-container {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 280px;
}

.timeline-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    z-index: 3;
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
    transition: all 0.4s ease;
}

.timeline-number::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.timeline-item:hover .timeline-number {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(255, 107, 53, 0.4);
}

.timeline-item:hover .timeline-number::before {
    opacity: 0.3;
}

.timeline-content {
    background: white;
    border-radius: 20px;
    padding: 2rem 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid #f0f0f0;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.timeline-item:hover .timeline-content::before {
    transform: scaleX(1);
}

.timeline-item:hover .timeline-content {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border-color: #ff6b35;
}

.timeline-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff6b35;
    font-size: 1.3rem;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
    border: 2px solid #f0f0f0;
}

.timeline-item:hover .timeline-icon {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    transform: scale(1.1) rotate(5deg);
    border-color: #ff6b35;
}

.timeline-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.timeline-item:hover .timeline-content h3 {
    color: #ff6b35;
}

.timeline-content p {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    flex-grow: 1;
}

.timeline-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: auto;
}

.feature-tag {
    background: #f8f9fa;
    color: #6c757d;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 600;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.timeline-item:hover .feature-tag {
    background: rgba(255, 107, 53, 0.1);
    color: #ff6b35;
    border-color: #ff6b35;
    transform: translateY(-2px);
}

.timeline-connector {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #e9ecef 0%, #ff6b35 50%, #e9ecef 100%);
    z-index: 1;
    transform: translateY(-50%);
    border-radius: 2px;
}

.timeline-connector::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #ff6b35, #f7931e);
    border-radius: 2px;
    animation: progressLine 3s ease-in-out infinite;
}

@keyframes progressLine {
    0%, 100% { width: 0; }
    50% { width: 100%; }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .timeline-container {
        flex-wrap: wrap;
        gap: 2rem;
    }
    
    .timeline-item {
        flex: 1 1 calc(50% - 1rem);
        min-width: 250px;
    }
    
    .timeline-connector {
        display: none;
    }
}

@media (max-width: 768px) {
    .timeline-container {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }
    
    .timeline-item {
        max-width: 100%;
        width: 100%;
    }
    
    .timeline-content {
        padding: 1.5rem;
    }
    
    .timeline-number {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
    
    .timeline-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .timeline-content h3 {
        font-size: 1.1rem;
    }
}

/* Animation for timeline items */
.timeline-item {
    opacity: 0;
    animation: fadeInScale 0.8s ease forwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.4s; }
.timeline-item:nth-child(5) { animation-delay: 0.6s; }
.timeline-item:nth-child(7) { animation-delay: 0.8s; }

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(30px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}