/* Custom animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0,0,0);
    }
    40%, 43% {
        transform: translate3d(0, -8px, 0);
    }
    70% {
        transform: translate3d(0, -4px, 0);
    }
    90% {
        transform: translate3d(0, -2px, 0);
    }
}

/* Smooth scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #374151;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #EF4444, #F59E0B, #10B981);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #DC2626, #D97706, #059669);
}

/* Timeline animations */
.roadmap-item {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.roadmap-item.animate-fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* Timeline node animations */
.roadmap-item .rounded-full {
    transition: all 0.3s ease;
}

.roadmap-item:hover .rounded-full {
    transform: scale(1.2);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

/* Card hover effects */
.roadmap-item .bg-gray-800\/90 {
    transition: all 0.3s ease;
}

.roadmap-item:hover .bg-gray-800\/90 {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Status-specific animations */
.roadmap-item .bg-green-500 {
    animation: pulse 2s infinite;
}

.roadmap-item .bg-yellow-500 {
    animation: bounce 2s infinite;
}

/* Responsive design */
@media (max-width: 1024px) {
    .roadmap-item {
        flex-direction: column !important;
        align-items: center !important;
    }
    
    .roadmap-item .w-5\/12 {
        width: 80% !important;
        margin: 0 auto !important;
        padding: 0 !important;
    }
    
    .roadmap-item .pr-8,
    .roadmap-item .pl-8 {
        padding: 0 !important;
    }
    
    .roadmap-item .absolute.left-1\/2 {
        left: 50% !important;
    }
}

@media (max-width: 768px) {
    .roadmap-item .w-5\/12 {
        width: 90% !important;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .roadmap-item .text-2xl {
        font-size: 1.5rem;
    }
    
    .roadmap-item .text-lg {
        font-size: 1rem;
    }
}

@media (max-width: 640px) {
    .roadmap-item .w-5\/12 {
        width: 95% !important;
    }
    
    .roadmap-item .p-8 {
        padding: 1.5rem;
    }
    
    .roadmap-item .space-y-6 {
        gap: 1rem;
    }
}

/* Timeline line gradient animation */
.roadmap-item:nth-child(odd) .bg-gradient-to-b::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom, transparent, rgba(59, 130, 246, 0.3));
    animation: pulse 3s infinite;
}

.roadmap-item:nth-child(even) .bg-gradient-to-b::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, transparent, rgba(59, 130, 246, 0.3));
    animation: pulse 3s infinite;
}
