/* ====================================================
   JOURNEY.CSS — Dấu Mốc | Timeline & Capsule Styles
   ==================================================== */

/* ──────────────────────────────────────────────────
   HERO
────────────────────────────────────────────────── */
#journey-hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 8rem 2rem 4rem;
    overflow: hidden;
}

#journey-hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.04) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    animation: heroPulse 6s ease-in-out infinite;
}

@keyframes heroPulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
    }
}

.journey-eyebrow {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.7rem;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--text-accent);
    opacity: 0.7;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeUp 1s ease forwards 0.4s;
}

.journey-hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(5rem, 16vw, 13rem);
    font-weight: 300;
    line-height: 0.85;
    letter-spacing: -0.04em;
    color: #fff;
    margin-bottom: 2rem;
    opacity: 0;
    animation: luxuryReveal 1.6s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.6s;
}

.journey-hero-title em {
    font-style: italic;
    color: var(--text-accent);
}

.journey-hero-sub {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.9;
    letter-spacing: 0.05em;
    max-width: 520px;
    margin: 0 auto 3rem;
    opacity: 0;
    animation: fadeUp 1s ease forwards 1.4s;
}

.journey-hero-line {
    width: 1px;
    height: 80px;
    background: linear-gradient(to bottom, var(--text-accent), transparent);
    margin: 0 auto;
    opacity: 0;
    animation: fadeUp 1s ease forwards 2s;
}

/* ──────────────────────────────────────────────────
   TIMELINE SPINE & WRAPPER
────────────────────────────────────────────────── */
#timeline-section {
    min-height: auto;
    padding: 8rem 2rem 6rem;
}

.timeline-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0 4rem;
}

.timeline-spine {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom,
            transparent 0%,
            rgba(212, 175, 55, 0.3) 10%,
            rgba(212, 175, 55, 0.3) 90%,
            transparent 100%);
    transform: translateX(-50%);
}

/* ──────────────────────────────────────────────────
   MILESTONE — SHARED
────────────────────────────────────────────────── */
.milestone {
    display: flex;
    align-items: flex-start;
    margin-bottom: 5rem;
    position: relative;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
    gap: 0;
}

.milestone.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── LEFT milestone: card on left, connector on right ── */
.milestone-left {
    flex-direction: row-reverse;
}

.milestone-left .milestone-connector {
    flex-direction: row-reverse;
}

/* ── RIGHT milestone: connector on left of card ── */
.milestone-right {
    flex-direction: row;
}

/* ──────────────────────────────────────────────────
   CONNECTOR (dot + horizontal line)
────────────────────────────────────────────────── */
.milestone-connector {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    z-index: 2;
}

.milestone-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--bg-deep);
    border: 1px solid var(--text-accent);
    flex-shrink: 0;
    position: relative;
    z-index: 3;
}

.dot-now {
    width: 18px;
    height: 18px;
    border: 2px solid var(--text-accent);
    background: rgba(212, 175, 55, 0.15);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.dot-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid rgba(212, 175, 55, 0.4);
    transform: translate(-50%, -50%);
    animation: pulseDot 2.5s ease-out infinite;
}

@keyframes pulseDot {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }

    100% {
        transform: translate(-50%, -50%) scale(2.5);
        opacity: 0;
    }
}

.milestone-line-h {
    width: 60px;
    height: 1px;
    background: linear-gradient(to right, rgba(212, 175, 55, 0.5), rgba(212, 175, 55, 0.05));
    flex-shrink: 0;
}

.milestone-left .milestone-line-h {
    background: linear-gradient(to left, rgba(212, 175, 55, 0.5), rgba(212, 175, 55, 0.05));
}

/* ──────────────────────────────────────────────────
   MILESTONE CARD
────────────────────────────────────────────────── */
.milestone-card {
    background: rgba(255, 255, 255, 0.015);
    border: 0.5px solid rgba(255, 255, 255, 0.07);
    border-radius: 2px;
    padding: 2.5rem 2.8rem;
    max-width: 380px;
    width: 100%;
    position: relative;
    transition: border-color 0.4s ease, background 0.4s ease, transform 0.4s ease;
    overflow: hidden;
}

.milestone-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 0;
    background: var(--text-accent);
    transition: height 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.milestone.is-visible .milestone-card::before {
    height: 100%;
}

.milestone-card:hover {
    border-color: rgba(212, 175, 55, 0.2);
    background: rgba(212, 175, 55, 0.02);
    transform: translateY(-3px);
}

/* Right-align left milestone card border */
.milestone-left .milestone-card::before {
    left: auto;
    right: 0;
}

/* Period (year label) */
.milestone-period {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 1.2rem;
}

.period-tag {
    font-family: var(--font-body);
    font-size: 0.6rem;
    letter-spacing: 4px;
    color: var(--text-accent);
    opacity: 0.6;
    text-transform: uppercase;
}

.period-year {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.5rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.06);
    line-height: 1;
    letter-spacing: -0.02em;
    margin-top: -0.3rem;
    transition: color 0.4s ease;
}

.milestone-card:hover .period-year {
    color: rgba(212, 175, 55, 0.12);
}

/* Icon */
.milestone-icon-wrap {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(212, 175, 55, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
}

.milestone-icon-wrap i {
    color: var(--text-accent);
    font-size: 0.9rem;
}

/* Title */
.milestone-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 500;
    color: #fff;
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
    line-height: 1.3;
}

/* Story */
.milestone-story {
    font-family: 'Patrick Hand', cursive;
    font-size: 1.15rem;
    color: rgba(245, 245, 245, 0.8);
    line-height: 1.7;
    margin-bottom: 1rem;
    font-weight: normal;
}

.milestone-story em {
    color: rgba(212, 175, 55, 0.8);
    font-style: italic;
}

/* Lesson quote */
.milestone-lesson {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 1rem 1.2rem;
    background: rgba(212, 175, 55, 0.04);
    border-left: 1px solid rgba(212, 175, 55, 0.3);
    margin-bottom: 1.2rem;
    border-radius: 0 2px 2px 0;
}

.milestone-lesson i {
    color: var(--text-accent);
    font-size: 0.6rem;
    margin-top: 0.3rem;
    flex-shrink: 0;
    opacity: 0.6;
}

.milestone-lesson span {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 0.95rem;
    color: rgba(212, 175, 55, 0.75);
    line-height: 1.6;
}

/* Tag */
.milestone-tag {
    font-family: var(--font-body);
    font-size: 0.6rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-secondary);
    opacity: 0.5;
}

/* Diary excerpt — handwritten feel */
.milestone-diary {
    font-family: 'Patrick Hand', cursive;
    font-size: 0.95rem;
    line-height: 1.85;
    color: rgba(245, 245, 245, 0.75);
    background: rgba(212, 175, 55, 0.04);
    border-left: 2px solid rgba(212, 175, 55, 0.35);
    padding: 1rem 1.4rem;
    margin: 0.6rem 0 1.2rem;
    border-radius: 0 4px 4px 0;
    font-style: normal;
    position: relative;
}

.milestone-diary::before {
    content: '"';
    position: absolute;
    top: -0.5rem;
    left: 0.8rem;
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    color: rgba(212, 175, 55, 0.15);
    line-height: 1;
}


/* ── "Now" card special styles ── */
.card-now {
    border-color: rgba(212, 175, 55, 0.2);
    background: rgba(212, 175, 55, 0.03);
}

.now-badge {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.6rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--text-accent);
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    margin-bottom: 1rem;
}

/* ──────────────────────────────────────────────────
   CAPSULE SECTION — "Tôi Đang Ở Đây"
────────────────────────────────────────────────── */
#capsule-section {
    min-height: auto;
    padding: 6rem 2rem 8rem;
}

.capsule-container {
    max-width: 780px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 3rem;
    align-items: start;
}

.capsule-seal {
    position: relative;
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    margin-top: 2rem;
}

.seal-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(212, 175, 55, 0.25);
    animation: rotateSeal 20s linear infinite;
}

.seal-ring::before {
    content: '· D A U · M O C · 2 0 2 6 ·';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    text-align: center;
    font-size: 0.35rem;
    letter-spacing: 2px;
    color: var(--text-accent);
    opacity: 0.4;
    transform: translate(-50%, -50%);
    white-space: nowrap;
}

@keyframes rotateSeal {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.seal-inner {
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.04);
    border: 0.5px solid rgba(212, 175, 55, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.seal-inner i {
    color: var(--text-accent);
    font-size: 1.2rem;
    opacity: 0.7;
}

.capsule-body {
    background: rgba(255, 255, 255, 0.015);
    border: 0.5px solid rgba(255, 255, 255, 0.07);
    padding: 3rem 3.5rem;
    position: relative;
    border-radius: 2px;
}

.capsule-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, var(--text-accent), transparent);
    opacity: 0.4;
}

.capsule-address {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.1rem;
    color: rgba(212, 175, 55, 0.6);
    margin-bottom: 2.5rem;
    letter-spacing: 0.05em;
}

.capsule-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem 3rem;
    margin-bottom: 2.5rem;
}

.capsule-item {
    border-left: 1px solid rgba(212, 175, 55, 0.2);
    padding-left: 1.2rem;
}

.capsule-label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.6rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-accent);
    opacity: 0.7;
    margin-bottom: 0.6rem;
}

.capsule-item p {
    font-family: 'Patrick Hand', cursive;
    font-size: 1.1rem;
    color: rgba(245, 245, 245, 0.85);
    line-height: 1.6;
    font-weight: normal;
}

.capsule-sign {
    font-family: 'Patrick Hand', cursive;
    font-size: 1.1rem;
    color: rgba(212, 175, 55, 0.5);
    text-align: right;
    margin-top: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ──────────────────────────────────────────────────
   QUOTE SECTION
────────────────────────────────────────────────── */
#quote-section {
    min-height: 40vh;
    padding: 4rem 2rem;
}

.quote-container {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.quote-icon {
    font-size: 1.5rem;
    color: var(--text-accent);
    opacity: 0.3;
    display: block;
    margin-bottom: 2rem;
}

.quote-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-style: italic;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
}

.quote-author {
    font-size: 0.75rem;
    letter-spacing: 4px;
    color: var(--text-accent);
    opacity: 0.5;
    text-transform: uppercase;
}

/* ──────────────────────────────────────────────────
   FOOTER
────────────────────────────────────────────────── */
footer {
    padding: 4rem 3rem;
    border-top: 0.5px solid var(--glass-border);
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-content p {
    color: var(--text-secondary);
    font-size: 0.8rem;
    letter-spacing: 2px;
}

.back-home {
    color: var(--text-accent);
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.back-home:hover {
    opacity: 1;
}

/* ──────────────────────────────────────────────────
   ANIMATIONS
────────────────────────────────────────────────── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 0.7;
        transform: translateY(0);
    }
}

/* ──────────────────────────────────────────────────
   RESPONSIVE
────────────────────────────────────────────────── */
@media (max-width: 800px) {
    .timeline-spine {
        left: 20px;
    }

    .milestone,
    .milestone-left {
        flex-direction: column !important;
        padding-left: 50px;
    }

    .milestone-connector {
        position: absolute;
        left: 0;
        top: 0;
        flex-direction: column !important;
        align-items: center;
    }

    .milestone-line-h,
    .milestone-left .milestone-line-h {
        width: 1px;
        height: 30px;
        background: linear-gradient(to bottom, rgba(212, 175, 55, 0.4), transparent) !important;
    }

    .milestone-card {
        max-width: 100%;
    }

    .capsule-container {
        grid-template-columns: 1fr;
    }

    .capsule-seal {
        margin: 0 auto;
    }

    .capsule-grid {
        grid-template-columns: 1fr;
    }

    .capsule-body {
        padding: 2rem;
    }
}