/* --------------------------------------------------
   LIFE LINE ANIMATED TIMELINE SECTION (VERTICAL FLOW)
   -------------------------------------------------- */
#life-line {
    width: 100vw;
    /* Let content define height, but ensure minimum length for the scroll sequence */
    background-color: var(--primary-bg);
    background-image: var(--gradient-bg-dots);
    background-size: 24px 24px;
    background-attachment: fixed;
    position: relative;
    padding-bottom: 200px;
}

.lifeline-container {
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
}

.lifeline-intro {
    padding: 15vh 5% 5vh 5%;
    position: relative;
    z-index: 100;
}

.lifeline-heading {
    font-family: var(--font-heading);
    font-size: clamp(60px, 12vw, 150px);
    color: var(--text-dark);
    line-height: 0.9;
    letter-spacing: -5px;
    font-weight: 500;
    margin: 0;
    text-shadow: 1px 1px 5px var(--rgba-black-05);
}

/* VERTICAL SCROLLING CANVAS WRAPPER */
.lifeline-wrapper {
    width: 100vw;
    height: 4800px;
    /* Arbitrary tall height for the SVG to inhabit */
    position: relative;
}

/* SVG PATH */
.lifeline-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* MILESTONE BLOCKS */
.milestone {
    position: absolute;
    width: 100%;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 
  Snapping layout points for alternating left/right vertical drops.
  Matches the SVG path's turning points roughly.
*/
.m-1999 {
    top: 150px;
}

.m-2016 {
    top: 800px;
}

.m-2019 {
    top: 1600px;
}

.m-2020 {
    top: 2400px;
}

.m-2023 {
    top: 3200px;
}

.m-2025 {
    top: 4000px;
}

/* EMBOSSED BACKGROUND YEAR TXT - DARK EMBOSS FOR WHITE BG */
.huge-year {
    font-family: var(--font-main);
    font-size: clamp(150px, 25vw, 400px);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    color: var(--text-dark);
    text-shadow: 6px 6px 0px var(--rgba-black-20);
    /* Light grey base to blend with white bg */
    /* 
    text-shadow:
        3px 3px 6px var(--rgba-black-15),
        -3px -3px 6px var(--rgba-white-80); */

    z-index: 0;
    pointer-events: none;
    white-space: nowrap;
}

/* FOREGROUND CONTENT */
.milestone-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    z-index: 10;
    width: 100%;
    max-width: 1100px;
    padding: 0 5vw;
}

.m-2016 .milestone-content,
.m-2020 .milestone-content,
.m-2025 .milestone-content {
    flex-direction: row;
}

.m-1999 .milestone-content,
.m-2019 .milestone-content,
.m-2023 .milestone-content {
    flex-direction: row-reverse;
}

.milestone-img {
    width: 300px;
    height: auto;
    border-radius: 12px;
    /* box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1); */
    /* GSAP controlled visibility */
    opacity: 0;
    transform: translateY(50px) scale(0.8);
    will-change: transform, opacity;
    flex-shrink: 0;
}

/* Standard sizing */
.aux-img {
    width: 260px;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.milestone-text {
    font-family: var(--font-paragraph-text);
    font-size: clamp(16px, 1.3vw, 22px);
    color: var(--color-black);
    line-height: 1.5;
    font-weight: 500;
    background: var(--rgba-white-80);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 20px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--rgba-black-05);
    /* GSAP controlled visibility */
    opacity: 0;
    flex: 1;
    max-width: 450px;
}

.m-2016 .milestone-text,
.m-2020 .milestone-text,
.m-2025 .milestone-text {
    text-align: left;
}

.m-1999 .milestone-text,
.m-2019 .milestone-text,
.m-2023 .milestone-text {
    text-align: right;
}



/* TO BE CONTINUED CLOSER */
.to-be-continued {
    position: relative;
    margin-top: 50px;
    font-family: var(--font-main);
    font-size: clamp(40px, 5vw, 80px);
    color: var(--text-dark);
    text-align: center;
    opacity: 0;
}