/* =================================
LOVE STORY
==================================== */
.story-section {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    text-align: center;
    background:
        linear-gradient(
            rgba(248,242,240,.88),
            rgba(244,234,231,.90)
        ),
        url("storybg.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.story-section::before {
    content:"";
    position:absolute;
    inset:0;
    background:
        linear-gradient(
            rgba(255,255,255,.18),
            rgba(255,255,255,.08)
        );
    z-index:0;
}

.story-section .container {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

/* =================================
SECTION HEADING
==================================== */
.story-section .section-subtitle {
    margin-top: 35px;
    display:block;
    margin-bottom:10px;
    font-family:"Pinyon Script", cursive;
    font-size:3rem;
    font-weight:400;
    line-height:1;
    color:var(--gold);
}

.story-section .section-title {
    margin:0;
    font-family:"Cinzel", serif;
    font-size:2.2rem;
    font-weight:600;
    line-height:1.2;
    color:var(--primary);
}

.story-section .section-description {
    max-width:520px;
    margin:
        18px auto
        0;
    font-family:"Montserrat", sans-serif;
    font-size:.95rem;
    line-height:1.9;
    color:var(--text-light);
}

.timeline {
  position: relative;
  margin-top: 3rem;
  padding-left: 2.6rem;
  padding-bottom: 70px;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 2%;
    bottom: 0;
    left: .85rem;
    width: 2px;
    background:
        linear-gradient(
            to bottom,
            rgba(193,154,107,.15),
            rgba(193,154,107,.65),
            rgba(193,154,107,.15)
        );
    border-radius: 999px;
    transform-origin: top;
    transform: scaleY(0);
    transition:
        transform 1.3s cubic-bezier(.22,1,.36,1);
    z-index: 0;
}

.timeline.show::before {
    transform: scaleY(1);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  text-align: left;
}

.timeline-item::before {
    content: "";
    position: absolute;
    top: 28px;
    left: -25px;
    width: 0;
    height: 1.5px;
    background: linear-gradient(
        to right,
        rgba(193,154,107,0.75),
        rgba(193,154,107,0.15)
    );
    z-index: 1;
    transition:
        width 0.45s ease 0.15s;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-year{
    position: absolute;
    left: -3rem;
    top: 2%;
    width: 42px;
    height: 42px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    font-family: "Montserrat", sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: #fff;
    background:
        radial-gradient(
            circle at 30% 25%,
            rgba(255,255,255,.20),
            transparent 45%
        ),
        linear-gradient(
            180deg,
            #b37b86 0%,
            #9e6672 100%
        );
    border: 1px solid rgba(255,255,255,.30);
    box-shadow:
        0 10px 25px rgba(158,102,114,0.25),
        inset 0 1px 1px rgba(255,255,255,.35);
    z-index: 3;
    opacity: 0;
    transform: 
        scale(.6)
        rotate(-8deg);
    transition:
        opacity .65s cubic-bezier(.22,1,.36,1),
        transform .65s cubic-bezier(.22,1,.36,1),
        box-shadow .35s ease;
}

.timeline-item.show::before {
    width: 42px;
}

.timeline-item.show .timeline-year {
    opacity:1;
    transform:
        scale(1)
        rotate(0deg);
}

.timeline-content {
    position: relative;
    overflow: hidden;
    margin-left: .5rem;
    padding: 22px 20px;
    border-radius: 28px;
    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,.92),
            rgba(255,255,255,.82)
        );
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border:1px solid rgba(193, 154, 107, 0.65);
    box-shadow:
        0 16px 35px rgba(0,0,0,.08),
        inset 0 1px 0 rgba(255,255,255,.65);
    opacity: 0;
    transform:
        translateX(35px);
    transition:
        opacity .75s cubic-bezier(.22,1,.36,1),
        transform .75s cubic-bezier(.22,1,.36,1),
        box-shadow .35s ease;
    z-index: 2;
}

.timeline-item.show .timeline-content {
    opacity: 1;
    transform:
        translateX(0);
}

.timeline-year::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 14px;
    width: 18px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .35);
    filter: blur(2px);
}

.timeline-year::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px solid rgba(193, 154, 107, .45);
    pointer-events: none;
}

.timeline-content::before{
    content:"";
    position:absolute;
    top:0;
    left:0;
    right:0;
    height:40%;
    background:
        linear-gradient(
            to bottom,
            rgba(255,255,255,.30),
            rgba(255,255,255,.08),
            transparent
        );
    pointer-events:none;
}

.timeline-content::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, .12);
    pointer-events: none;
}

.timeline-item:hover .timeline-content{
    transform:
        translateX(0)
        translateY(-4px);
    box-shadow:
        0 22px 45px rgba(0,0,0,.12),
        inset 0 1px 0 rgba(255,255,255,.75);
}

.timeline-item:hover .timeline-year{
    transform:
        translateY(-3px)
        scale(1.05)
        rotate(0deg);
    box-shadow:
        0 18px 36px rgba(158,102,114,.38),
        inset 0 1px 2px rgba(255,255,255,.45);
}

.timeline-content h3 {
    margin-bottom: 12px;
    font-family: "Cinzel", serif;
    font-size: 1.45rem;
    font-weight: 600;
    color: var(--primary);
}

.timeline-content p {
  color: rgba(95,74,74,.92);
  line-height: 1.8;
}

.timeline-content>* {
    position: relative;
    z-index: 2;
}

/* =================================
TIMELINE CONTENT STAGGER
==================================== */
.timeline-title,
.timeline-description {
    opacity: 0;
    transform: translateY(16px);
    transition:
        opacity .55s ease,
        transform .55s ease;
}

/* Judul muncul lebih dulu */
.timeline-item.show .timeline-title {
    opacity: 1;
    transform: translateY(0);
    transition-delay: .35s;
}

/* Isi muncul setelah judul */
.timeline-item.show .timeline-description {
    opacity: 1;
    transform: translateY(0);
    transition-delay: .55s;
}