/* Timeline */
.timeline {
    position: relative;
    padding-left: 2.5rem;
    max-width: 50rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(212, 175, 55, 0.2);
}

.timeline-item {
    position: relative;
    padding-bottom: 2.5rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -2.5rem;
    top: 0.4rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d4af37;
    border: 2px solid #1a1a2e;
    transform: translateX(-5px);
    z-index: 1;
}

.timeline-marker.current {
    background: #4ade80;
    box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.25);
}

.timeline-content {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.timeline-content:hover {
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.06);
    transform: translateX(4px);
}

/* Logo */
.timeline-logo {
    width: 80px;
    height: 80px;
    min-width: 80px;
    object-fit: cover;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.15);
    display: block;
    flex-shrink: 0;
}

.timeline-text {
    flex: 1;
    min-width: 0;
}

.timeline-date {
    display: block;
    font-size: 0.8em;
    font-weight: 600;
    color: #999;
    letter-spacing: 0.03em;
    margin-bottom: 0.3rem;
}

.timeline-text h3 {
    font-size: 1.1em;
    font-weight: 700;
    color: #e0e0e0;
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.timeline-org {
    display: block;
    font-size: 0.9em;
    font-weight: 600;
    color: #d4af37;
    text-decoration: none;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    transition: border-color 0.2s;
    margin-bottom: 0.15rem;
    width: fit-content;
}

.timeline-org:hover {
    border-bottom-color: #d4af37;
}

.timeline-org-text {
    display: block;
    font-size: 0.9em;
    font-weight: 600;
    color: #d4af37;
    margin-bottom: 0.15rem;
}

.timeline-location {
    display: block;
    font-size: 0.8em;
    color: #888;
    margin-bottom: 0.4rem;
}

.timeline-status {
    display: inline-block;
    font-size: 0.75em;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    letter-spacing: 0.03em;
}

.status-current {
    background: rgba(212, 175, 55, 0.15);
    color: #d4af37;
}

.timeline-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    display: inline-block;
    font-size: 0.75em;
    font-weight: 500;
    padding: 0.2rem 0.65rem;
    border-radius: 4px;
    background: rgba(70, 130, 220, 0.1);
    color: #4682dc;
}

.btn-outline {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.4rem 1rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8em;
    font-weight: 500;
    color: #d4af37;
    text-decoration: none;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 4px;
    transition: all 0.2s;
}

.btn-outline:hover {
    background: #d4af37;
    color: #0a0a0a;
    border-color: #d4af37;
}

/* Certificates Section */
.certificates-section {
    margin-top: 4rem;
}

.certificates-section h2 {
    font-size: 1.5em;
}

/* Responsive */
@media (max-width: 980px) {
    .timeline {
        max-width: 100%;
    }
}

@media (max-width: 736px) {
    .timeline {
        padding-left: 2rem;
    }

    .timeline-marker {
        left: -2rem;
    }

    .timeline-content {
        padding: 1.25rem;
        gap: 1rem;
    }

    .timeline-logo {
        width: 64px;
        height: 64px;
        min-width: 64px;
    }

    .timeline-text h3 {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .timeline {
        padding-left: 1.5rem;
    }

    .timeline-marker {
        left: -1.5rem;
        width: 10px;
        height: 10px;
    }

    .timeline-content {
        padding: 1rem;
        gap: 0.75rem;
    }

    .timeline-logo {
        width: 56px;
        height: 56px;
        min-width: 56px;
        border-radius: 8px;
    }

    .timeline-text h3 {
        font-size: 0.95em;
    }

    .timeline-date {
        font-size: 0.75em;
    }

    .timeline-org,
    .timeline-org-text {
        font-size: 0.85em;
    }

    .timeline-location {
        font-size: 0.75em;
    }
}

@media (max-width: 360px) {
    .timeline {
        padding-left: 1rem;
    }

    .timeline-marker {
        left: -1rem;
        width: 8px;
        height: 8px;
    }

    .timeline-content {
        padding: 0.85rem;
        gap: 0.6rem;
    }

    .timeline-logo {
        width: 48px;
        height: 48px;
        min-width: 48px;
    }

    .timeline-text h3 {
        font-size: 0.9em;
    }
}
