/* ===== EXPERIENCE ===== */
.experience { background: var(--bg-primary); }
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 30px; top: 0; bottom: 0;
    width: 2px;
    background: var(--border);
}
.timeline-item {
    position: relative;
    padding-left: 7rem;
    margin-bottom: 3.5rem;
}
.timeline-item::before {
    content: '';
    position: absolute;
    top: 1.8rem; 
    left: 22px; top: 2.2rem;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: var(--accent);
    border: 3px solid var(--bg-primary);
    box-shadow: 0 0 0 3px var(--accent);
    z-index: 1;
}

/* Card container */
.tl-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: border-color 0.25s, transform 0.2s;
}
.tl-card:hover {
    border-color: rgba(232, 80, 58, 0.4);
    transform: translateY(-2px);
}

/* Grid: text | photo */
.tl-card-inner {
    display: grid;
    grid-template-columns: 1fr 26rem;
}
.tl-card-inner.no-photo {
    grid-template-columns: 1fr;
}

/* Text Column */
.tl-body {
    padding: 2.2rem 2.4rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.tl-meta {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}
.tl-logo {
    width: 4rem; height: 4rem;
    object-fit: contain;
    border-radius: 10px;
    border: 1px solid var(--border);
    padding: 0.4rem;
    background: rgba(255,255,255,0.04);
    flex-shrink: 0;
}
.tl-date {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-secondary);
    margin-bottom: 0.2rem;
}
.tl-company {
    font-size: 1.4rem;
    color: var(--accent);
    font-weight: 600;
}
.timeline-item h3 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 0;
}
.timeline-item p {
    font-size: 1.45rem;
    color: var(--text-secondary);
    text-transform: none;
    line-height: 1.7;
    margin: 0;
}
.tl-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.2rem;
}
.tl-skills span {
    font-size: 1.1rem;
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    background: rgba(240, 160, 48, 0.1);
    color: var(--accent-secondary);
    font-weight: 600;
}

/* Photo Column */
.tl-photo {
    position: relative;
    overflow: hidden;
    border-left: 1px solid var(--border);
    min-height: 22rem;
}
.tl-photo img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.tl-card:hover .tl-photo img { transform: scale(1.04); }
.tl-photo-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.15);
}

/* Responsive */
@media (max-width: 768px) {
    .tl-card-inner { grid-template-columns: 1fr; }
    .tl-photo {
        border-left: none;
        border-top: 1px solid var(--border);
        min-height: 18rem;
    }
}