.commit-timeline {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.commit-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    margin: 1rem 0;
    background: rgba(255, 255, 255, 0.05);
    border-left: 3px solid var(--accent-blue);
    border-radius: 8px;
    transition: all 0.3s ease;
    animation: slideInLeft 0.6s ease-out backwards;
}

.commit-item:nth-child(1) { animation-delay: 0.1s; }
.commit-item:nth-child(2) { animation-delay: 0.2s; }
.commit-item:nth-child(3) { animation-delay: 0.3s; }
.commit-item:nth-child(4) { animation-delay: 0.4s; }
.commit-item:nth-child(5) { animation-delay: 0.5s; }
.commit-item:nth-child(6) { animation-delay: 0.6s; }
.commit-item:nth-child(7) { animation-delay: 0.7s; }
.commit-item:nth-child(8) { animation-delay: 0.8s; }

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.commit-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-left-color: var(--primary-pink);
    transform: translateX(10px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.commit-item.highlight {
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.15), rgba(196, 69, 105, 0.15));
    border-left: 3px solid var(--primary-pink);
    box-shadow: 0 0 30px rgba(255, 107, 157, 0.3);
}

.commit-hash {
    font-family: 'Space Mono', monospace;
    color: var(--accent-blue);
    font-size: 0.9rem;
    min-width: 80px;
    padding: 0.5rem;
    background: rgba(79, 172, 254, 0.1);
    border-radius: 6px;
    text-align: center;
    align-self: flex-start;
    font-weight: 700;
}

.commit-content {
    flex: 1;
}

.commit-message {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--text-light);
    line-height: 1.6;
}

.commit-type {
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.85rem;
    margin-right: 0.5rem;
}

.commit-type.feat {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    color: white;
}

.commit-type.fix {
    background: linear-gradient(135deg, #fa709a, #fee140);
    color: white;
}

.commit-type.chore {
    background: linear-gradient(135deg, #a8edea, #fed6e3);
    color: #333;
}

.commit-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-family: 'Space Mono', monospace;
}

.commit-author {
    font-weight: 600;
}

.commit-date {
    opacity: 0.8;
}

/* Timeline line */
.commit-timeline::before {
    content: '';
    position: absolute;
    left: 50px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(
        to bottom,
        transparent,
        var(--accent-blue) 10%,
        var(--accent-blue) 90%,
        transparent
    );
    opacity: 0.3;
}

/* Responsive */
@media (max-width: 768px) {
    .commit-item {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .commit-hash {
        align-self: flex-start;
        min-width: 70px;
        font-size: 0.8rem;
    }

    .commit-message {
        font-size: 1rem;
    }

    .commit-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .commit-timeline::before {
        display: none;
    }

    .commit-item:hover {
        transform: translateX(5px);
    }
}