/* ===== Section 8: Career Timeline ===== */
.ct-timeline { position: relative; max-width: 860px; margin: 0 auto; padding: 6px 0; }
.ct-line { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; transform: translateX(-50%); background: rgba(168,85,247,.15); border-radius: 2px; overflow: hidden; }
.ct-fill { position: absolute; left: 0; top: 0; width: 100%; height: 0; background: linear-gradient(180deg, #8c3cdd, #c084fc); box-shadow: 0 0 12px rgba(168,85,247,.55); transition: height 1.1s cubic-bezier(.4,0,.2,1); }

.ct-stage { position: relative; display: grid; grid-template-columns: 1fr 48px 1fr; align-items: center; gap: 1.5rem; margin-bottom: 2.25rem; }
.ct-stage:last-child { margin-bottom: 0; }

.ct-node { grid-column: 2; justify-self: center; width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(24,18,38,.95); border: 2px solid rgba(168,85,247,.3); color: #b7a4de; z-index: 2; transition: background .5s ease, border-color .5s ease, color .5s ease, box-shadow .5s ease, transform .5s ease; }
.ct-node svg { width: 20px; height: 20px; }
.ct-stage.in .ct-node { background: linear-gradient(135deg, #8c3cdd, #c026d3); border-color: transparent; color: #fff; box-shadow: 0 0 0 6px rgba(140,60,221,.12), 0 8px 22px -6px rgba(140,60,221,.7); transform: scale(1.06); }

.ct-card { max-width: 340px; opacity: 1; transition: opacity .7s ease, transform .7s cubic-bezier(.4,0,.2,1); }
.ct-stage--l .ct-card { grid-column: 1; justify-self: end; text-align: right; }
.ct-stage--r .ct-card { grid-column: 3; justify-self: start; text-align: left; }
/* animation is layered on only when JS marks the timeline (.ct-anim); without JS the cards stay visible */
.ct-anim .ct-stage--l .ct-card { opacity: 0; transform: translateX(30px); }
.ct-anim .ct-stage--r .ct-card { opacity: 0; transform: translateX(-30px); }
.ct-anim .ct-stage.in .ct-card { opacity: 1; transform: translateX(0); }

.ct-role { font-size: 1.05rem; font-weight: 700; color: #fff; }
.ct-desc { font-size: .8rem; color: rgba(226,222,240,.6); margin-top: 2px; }
.ct-ms { display: inline-flex; align-items: center; gap: .4rem; margin-top: .6rem; padding: .35rem .6rem; border-radius: 999px; background: rgba(168,85,247,.1); border: 1px solid rgba(168,85,247,.28); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.ct-stage--l .ct-ms { flex-direction: row-reverse; }
.ct-ms svg { width: 14px; height: 14px; color: #c084fc; flex: 0 0 auto; }
.ct-ms-txt { font-size: .72rem; font-weight: 600; color: #e2dcf0; }
.ct-plus { font-size: .62rem; font-weight: 700; color: #6ee7b7; background: rgba(16,185,129,.14); border: 1px solid rgba(16,185,129,.3); padding: .05rem .35rem; border-radius: 999px; }

@media (max-width: 767px) {
	.ct-line { left: 24px; }
	.ct-stage { grid-template-columns: 48px 1fr; gap: 1rem; align-items: start; margin-bottom: 1.75rem; }
	.ct-node { grid-column: 1; }
	.ct-card { grid-column: 2 !important; justify-self: start !important; text-align: left !important; max-width: none; }
	.ct-stage--l .ct-ms { flex-direction: row; }
}

@media (prefers-reduced-motion: reduce) {
	.ct-node, .ct-card, .ct-fill { transition: none; }
}
