@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700;900&display=swap');

* {
    font-family: 'Inter', sans-serif;
}

body {
    margin: 0;
    padding: 0;
}

.grid-background {
    background-image: 
        linear-gradient(rgba(99, 102, 241, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridScroll 20s linear infinite;
}

@keyframes gridScroll {
    0% { background-position: 0 0; }
    100% { background-position: 50px 50px; }
}

.timeline-container {
    position: relative;
    padding: 60px 0;
}

.timeline-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1f2937 0%, #374151 50%, #1f2937 100%);
    transform: translateY(-50%);
}

.timeline-progress {
    position: absolute;
    top: 50%;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #6366f1, #06b6d4);
    transform: translateY(-50%);
    transition: width 0.5s ease;
}

.timeline-nodes {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.timeline-node {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.timeline-node:hover {
    transform: scale(1.1);
}

.node-pulse {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.4), transparent);
    animation: pulse 2s infinite;
}

.timeline-node.active .node-pulse {
    background: radial-gradient(circle, rgba(99, 102, 241, 0.8), transparent);
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.2); }
}

.node-content {
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, #1f2937, #374151);
    border: 3px solid #4b5563;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.timeline-node.active .node-content {
    background: linear-gradient(135deg, #6366f1, #06b6d4);
    border-color: #06b6d4;
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.6);
}

.timeline-node.complete .node-content {
    background: linear-gradient(135deg, #4b5563, #6b7280);
    border-color: #9ca3af;
}

.milestone-card {
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.8), rgba(17, 24, 39, 0.9));
    border: 2px solid #374151;
    border-radius: 1rem;
    padding: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.milestone-card:hover {
    border-color: #6366f1;
    transform: translateY(-4px);
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.3);
}

.milestone-card.expanded {
    border-color: #06b6d4;
    box-shadow: 0 10px 40px rgba(6, 182, 212, 0.4);
}

.milestone-card.special {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(6, 182, 212, 0.2));
    border-color: #ef4444;
    position: relative;
    overflow: hidden;
}

.milestone-card.special::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, #ef4444, #6366f1, #06b6d4, #ef4444);
    background-size: 300% 300%;
    animation: gradientShift 3s ease infinite;
    opacity: 0.3;
    z-index: -1;
    border-radius: 1rem;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.sparkle-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.sparkle {
    position: absolute;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 0; transform: scale(0) rotate(0deg); }
    50% { opacity: 1; transform: scale(1) rotate(180deg); }
}

.stat-card {
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.8), rgba(17, 24, 39, 0.9));
    border: 2px solid #374151;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: #6366f1;
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.ticker {
    padding: 0 2rem;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fadeIn {
    animation: fadeIn 0.3s ease;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    animation: confettiFall 3s linear forwards;
}

@keyframes confettiFall {
    0% { transform: translateY(-10vh) rotate(0deg); opacity: 1; }
    100% { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}

@media (max-width: 768px) {
    .timeline-nodes {
        flex-direction: column;
        gap: 40px;
    }

    .timeline-line {
        top: 0;
        bottom: 0;
        left: 50%;
        width: 4px;
        height: auto;
        transform: translateX(-50%);
    }

    .timeline-progress {
        top: 0;
        left: 50%;
        width: 4px;
        height: var(--progress-height, 0%);
        transform: translateX(-50%);
    }

    .node-content {
        width: 70px;
        height: 70px;
    }

    .timeline-node {
        width: 70px;
        height: 70px;
    }
}