
/* ==========================
   PREMIUM TIMELINE
========================== */

.timeline{
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 30px 0;
}

/* Vertical glowing line */
.timeline::before{
    content: "";
    position: absolute;
    left: 42px;
    top: 0;
    bottom: 0;
    width: 3px;
    border-radius: 20px;
    background: linear-gradient(
        to bottom,
        #ffb347,
        #ff7a18,
        #ffd700,
        #ff7a18
    );
    box-shadow:
        0 0 15px rgba(255,122,24,.5),
        0 0 30px rgba(255,215,0,.3);
}

/* Timeline Card */
.timeline-item{
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 25px;
    padding: 24px;
    margin-left: 20px;

    background: rgba(255,255,255,.06);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    border: 1px solid rgba(255,255,255,.12);
    border-radius: 22px;

    transition: all .45s ease;

    overflow: hidden;
}

/* Animated Glow Layer */
.timeline-item::before{
    content: "";
    position: absolute;
    inset: 0;
    background:
    linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,.12),
        transparent
    );

    transform: translateX(-100%);
    transition: .8s;
}

.timeline-item:hover::before{
    transform: translateX(100%);
}

/* Hover Effect */
.timeline-item:hover{
    transform: translateY(-6px) scale(1.02);

    border-color: rgba(255,215,0,.35);

    box-shadow:
        0 15px 40px rgba(0,0,0,.25),
        0 0 25px rgba(255,215,0,.15);
}

/* Time Badge */
.timeline-time{
    min-width: 70px;
    height: 70px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 15px;
    font-weight: 700;

    border-radius: 20px;

    background:
        linear-gradient(
            135deg,
            #ffb347,
            #ff7a18
        );

    box-shadow:
        0 10px 25px rgba(255,122,24,.4),
        0 0 20px rgba(255,122,24,.35);

    position: relative;
    z-index: 2;
}

/* Timeline Dot */
.timeline-time::after{
    content: "";
    position: absolute;
    right: -28px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ffd700;
    border: 3px solid #111;
    box-shadow:
        0 0 15px #ffd700,
        0 0 30px #ffd700;
}

/* Heading */
.timeline-item h4{
    margin: 0 0 8px;
    font-size: 1.15rem;
    font-weight: 700; 
}

/* Description */
.timeline-item .muted{
    margin: 0;
    line-height: 1.7;
    color: rgba(0, 0, 0, 0.75);
}

/* Active Glow Animation */
.timeline-item:nth-child(odd){
    animation: floatCard 6s ease-in-out infinite;
}

@keyframes floatCard{
    0%{
        transform: translateY(0);
    }
    50%{
        transform: translateY(-4px);
    }
    100%{
        transform: translateY(0);
    }
}

/* Mobile */
@media(max-width:768px){

    .timeline::before{
        left: 32px;
    }

    .timeline-item{
        gap: 18px;
        padding: 18px;
        margin-left: 0;
    }

    .timeline-time{
        min-width: 55px;
        height: 55px;
        font-size: 13px;
    }

    .timeline-time::after{
        right: -23px;
        width: 12px;
        height: 12px;
    }

    .timeline-item h4{
        font-size: 1rem;
    }
}
