.timeline-section {
    position: relative;
    overflow: hidden;
    padding: 140px 0 160px;
    background:
            radial-gradient(circle at 50% 35%, rgba(203, 166, 87, 0.12), transparent 34%),
            linear-gradient(180deg, #050505 0%, #0b0b0b 52%, #050505 100%);
}

.timeline-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
            radial-gradient(circle at 25% 30%, rgba(203, 166, 87, 0.10), transparent 28%),
            radial-gradient(circle at 75% 65%, rgba(255, 225, 150, 0.06), transparent 30%);
    pointer-events: none;
}

.timeline-head {
    position: relative;
    z-index: 2;
    max-width: 850px;
    margin: 0 auto 100px;
    text-align: center;
}

.timeline-road {
    position: relative;
    z-index: 2;
    width: min(1100px, 94vw);
    height: 560px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    left: 5%;
    right: 5%;
    top: 50%;
    height: 1px;
    background: linear-gradient(
            90deg,
            transparent,
            rgba(203, 166, 87, 0.2),
            rgba(203, 166, 87, 0.8),
            rgba(203, 166, 87, 0.2),
            transparent
    );
    box-shadow: 0 0 24px rgba(203, 166, 87, 0.45);
}

.timeline-line::before,
.timeline-line::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #f3d48a;
    box-shadow: 0 0 18px rgba(243, 212, 138, 0.9);
    transform: translateY(-50%);
}

.timeline-line::before {
    left: 0;
}

.timeline-line::after {
    right: 0;
}

.timeline-item {
    position: absolute;
    width: 250px;
    padding: 28px;
    background: rgba(8, 8, 8, 0.82);
    border: 1px solid rgba(203, 166, 87, 0.28);
    box-shadow:
            0 0 32px rgba(0,0,0,0.55),
            inset 0 0 24px rgba(203, 166, 87, 0.05);
    backdrop-filter: blur(10px);
    transition: 0.4s ease;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: 50%;
    width: 1px;
    height: 54px;
    background: linear-gradient(
            180deg,
            rgba(203,166,87,0.9),
            transparent
    );
    transform: translateX(-50%);
}

.timeline-item::after {
    content: "";
    position: absolute;
    left: 50%;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #050505;
    border: 1px solid rgba(243, 212, 138, 0.9);
    box-shadow: 0 0 18px rgba(203, 166, 87, 0.75);
    transform: translateX(-50%);
}

.timeline-item:hover {
    transform: translateY(-8px);
    border-color: rgba(203, 166, 87, 0.68);
    box-shadow:
            0 0 46px rgba(203, 166, 87, 0.16),
            inset 0 0 30px rgba(203, 166, 87, 0.08);
}

.timeline-item-1 {
    left: 2%;
    top: 25px;
}

.timeline-item-2 {
    left: 28%;
    bottom: 25px;
}

.timeline-item-3 {
    right: 28%;
    top: 25px;
}

.timeline-item-4 {
    right: 2%;
    bottom: 25px;
}

.timeline-item-1::before,
.timeline-item-3::before {
    bottom: -54px;
}

.timeline-item-1::after,
.timeline-item-3::after {
    bottom: -63px;
}

.timeline-item-2::before,
.timeline-item-4::before {
    top: -54px;
    background: linear-gradient(
            0deg,
            rgba(203,166,87,0.9),
            transparent
    );
}

.timeline-item-2::after,
.timeline-item-4::after {
    top: -63px;
}

.timeline-year {
    margin-bottom: 16px;
    color: #cba657;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.14em;
}

.timeline-item p {
    margin: 0;
    color: rgba(255,255,255,0.7);
    font-size: 15px;
    line-height: 1.7;
}

@media (max-width: 900px) {

    .timeline-section {
        padding: 100px 0 120px;
    }

    .timeline-head {
        margin-bottom: 60px;
    }

    .timeline-road {
        height: auto;
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 28px;
    }

    .timeline-line {
        display: none;
    }

    .timeline-item {
        position: relative;
        width: 100%;
        left: auto;
        right: auto;
        top: auto;
        bottom: auto;
    }

    .timeline-item::before,
    .timeline-item::after {
        display: none;
    }
}