/*==================================================
                WEDDING JOURNEY
==================================================*/

.timeline-section {
    position: relative;
    overflow: hidden;
    background: var(--burgundy-dark);
    color: var(--champagne);
    padding: clamp(80px,8vh,120px) 24px;
}


/*==================================================
                BACKGROUND
==================================================*/

.timeline-bg {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: "Cormorant Garamond",serif;
    font-size: clamp(22rem,45vw,48rem);
    font-weight: 300;
    color: rgba(255,255,255,.03);
    user-select: none;
    pointer-events: none;
}


/*==================================================
                HEADER
==================================================*/

.timeline-header {
    position: relative;
    z-index: 2;
    width: min(900px,100%);
    margin: auto;
    text-align: center;
}

.section-subtitle {
    display: block;
    font-family: "Montserrat",sans-serif;
    font-size: .78rem;
    letter-spacing: .35em;
    text-transform: uppercase;
    opacity: .8;
    margin-bottom: 18px;
}

.timeline-header h2 {
    font-size: clamp(3rem,5vw,5rem);
    font-weight: 300;
    letter-spacing: .08em;
}

.timeline-divider {
    width: 70px;
    height: 1px;
    margin: 28px auto;
    background: #b78a52;
}

.timeline-header p {
    max-width: 620px;
    margin: auto;
    line-height: 1.8;
    font-style: italic;
    opacity: .8;
}

/*==================================================
                JOURNEY CONTAINER
==================================================*/

    /* CENTER LINE */

.timeline::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    transform: translateX(-50%);
    background: linear-gradient( to bottom, rgba(183,138,82,.15), #b78a52 20%, #ead6d2 50%, #b78a52 80%, rgba(183,138,82,.15) );
    overflow: hidden;
}

.timeline::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 180px;
    top: -180px;
    background: linear-gradient( transparent, rgba(255,245,220,.9), transparent );
    filter: blur(6px);
    animation: timelineGlow 8s linear infinite;
}


/*==================================================
                INVITATION CARD
==================================================*/
.journey-event {
    position: relative;
    margin: 0 auto 90px;
    width: min(470px,100%);
    text-align: center;
    z-index: 2;
    background: linear-gradient( 180deg, rgba(255,255,255,.07), rgba(255,255,255,.03) );
    border: 1px solid rgba(183,138,82,.35);
    border-radius: 26px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 60px 55px;
    box-shadow: 0 22px 50px rgba(0,0,0,.32), inset 0 1px rgba(255,255,255,.08);
    transition: box-shadow .45s ease, border-color .45s ease;
}
    .journey-event.show {
        opacity: 1;
        transform: translateY(0);
    }

    .journey-event::before {
        content: "";
        position: absolute;
        top: 50%;
        width: 22px;
        height: 22px;
        border-radius: 50%;
        background: #ead6d2;
        border: 4px solid var(--burgundy-dark);
        box-shadow: 0 0 0 2px #b78a52, 0 0 18px rgba(212,175,55,.25);
        z-index: 5;
    }

    .timeline .journey-event:nth-of-type(odd)::before {
        right: -52px;
        transform: translateY(-50%);
    }

    .timeline .journey-event:nth-of-type(even)::before {
        left: -52px;
        transform: translateY(-50%);
    }

.timeline .journey-event::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 28px;
    height: 2px;
    background: #b78a52;
    transform: translateY(-50%);
}

.journey-event:hover::after {
    box-shadow: 0 0 10px #d4af37, 0 0 18px rgba(212,175,55,.7);
}

.timeline .journey-event:nth-of-type(odd)::after {
    right: -30px;
}

.timeline .journey-event:nth-of-type(even)::after {
    left: -30px;
}

.journey-event:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: #d4af37;
    box-shadow: 0 24px 60px rgba(0,0,0,.45), 0 0 35px rgba(212,175,55,.20);
}


.chapter {
    display: block;
    font-family: "Cormorant Garamond",serif;
    font-size: 2rem;
    color: #d4af37;
    margin-bottom: 20px;
}

.journey-event h3 {
    font-size: 2.35rem;
    font-weight: 300;
    letter-spacing: .05em;
    margin-bottom: 16px;
}

.journey-event time {
    display: block;
    font-family: "Montserrat",sans-serif;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: #d4af37;
    margin-bottom: 20px;
}

.journey-event p {
    max-width: 340px;
    margin: auto;
    line-height: 1.8;
    opacity: .85;
    font-style: italic;
}

.journey-ending {
    text-align: center;
    margin-top: 120px;
}

.ending-heart {
    font-size: 2rem;
    color: #d4af37;
    margin-bottom: 18px;
}

.journey-ending h2 {
    font-size: clamp(3rem,5vw,4.5rem);
    font-weight: 300;
    margin-bottom: 20px;
}

.journey-ending p {
    max-width: 500px;
    margin: auto;
    line-height: 1.8;
    opacity: .8;
}

/*==================================================
        AUTOMATIC LEFT / RIGHT TIMELINE
==================================================*/

.timeline {
    position: relative;
    width: min(980px,100%);
    margin: 60px auto 0;
    padding: 0 40px;
}

    .timeline .journey-event:nth-of-type(odd) {
        margin-right: auto;
        margin-left: 0;
    }

    .timeline .journey-event:nth-of-type(even) {
        margin-left: auto;
        margin-right: 0;
    }

@keyframes timelineGlow {
    from {
        top: -180px;
    }

    to {
        top: 100%;
    }
}

.timeline .journey-event::before {
    animation: pearlGlow 5s ease-in-out infinite;
}

@keyframes pearlGlow {

    0%,100% {
        transform: translateY(-50%) scale(1);
        box-shadow: 0 0 0 rgba(234,214,210,0), 0 0 8px rgba(234,214,210,.35);
    }

    50% {
        transform: translateY(-50%) scale(1.08);
        box-shadow: 0 0 12px rgba(255,245,230,.9), 0 0 25px rgba(183,138,82,.6);
    }
}

.journey-event::before {
    transition: transform .4s ease, box-shadow .4s ease;
}

.journey-event:hover::before {
    transform: translateY(-50%) scale(1.18);
    box-shadow: 0 0 18px rgba(255,255,255,.9), 0 0 35px rgba(212,175,55,.8);
}

/* ==========================================
   SCROLL REVEAL
========================================== */

.reveal {
    opacity: 0;
    transform: translateY(70px);
    transition: opacity 1.2s ease, transform 1.2s ease;
}

    .reveal.show {
        opacity: 1;
        transform: translateY(0);
    }
    