:root {
    --bg-color: #fdf6e3;
    /* Warm cream background */
    --text-color: #5d4037;
    /* Soft brown text */
    --accent-color: #ffab91;
    /* Soft coral accent */
    --timeline-line-color: #ffe0b2;
    --card-bg: #ffffff;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    /* Soft shadow */
    --font-main: 'Noto Sans SC', sans-serif;
    --font-display: 'ZCOOL XiaoWei', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3 {
    font-family: var(--font-display);
    font-weight: 400;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 2rem;
    background: radial-gradient(circle at center, #fff9c4 0%, #fdf6e3 70%);
}

.main-title {
    font-size: 2.7rem;
    margin-bottom: 1rem;
    color: #e64a19;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1.2s ease-out forwards;
}

.subtitle {
    font-size: 1.2rem;
    color: #8d6e63;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1.2s ease-out 0.5s forwards;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0;
    animation: fadeIn 1s ease-out 1.5s forwards;
}

.arrow {
    margin-top: 0.5rem;
    animation: bounce 2s infinite;
}

/* Timeline Section */
.timeline-section {
    padding: 4rem 1.5rem;
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    left: 2rem;
    /* Adjusted for mobile layout where content is to the right */
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--timeline-line-color);
    z-index: 0;
}

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
    padding-left: 3rem;
    /* Space for the line and dot */
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-dot {
    position: absolute;
    left: 1.6rem;
    /* Center on the line (2rem left - 0.4rem half-width) */
    top: 0.5rem;
    width: 0.8rem;
    height: 0.8rem;
    background-color: var(--accent-color);
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 0 4px var(--bg-color);
    /* Creates a gap effect */
}

.timeline-date {
    font-size: 0.9rem;
    color: var(--accent-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.timeline-card {
    background-color: var(--card-bg);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.timeline-img-container {
    width: 100%;
    height: 200px;
    background-color: #eee;
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.timeline-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.timeline-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.timeline-location {
    font-size: 0.85rem;
    color: #9e9e9e;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.timeline-text {
    font-size: 1rem;
    line-height: 1.7;
    color: #6d4c41;
}

/* Footer Section */
.footer-section {
    padding: 6rem 2rem;
    text-align: center;
    background-color: #fff3e0;
}

.footer-content h2 {
    font-size: 2rem;
    color: #e64a19;
    margin-bottom: 1rem;
}

/* Animations */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    to {
        opacity: 0.7;
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* Media Carousel */
.timeline-img-container {
    height: 75vw;
    width: 100%;
    background-color: #eee;
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    position: relative;
}

.media-carousel {
    display: flex;
    width: 100%;
    height: 100%;
    overflow-y: hidden;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
}

.media-carousel::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.media-item {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    scroll-snap-align: center;
    position: relative;
}

.media-item img,
.media-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    -webkit-user-drag: none;
    user-select: none;
}

.carousel-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 2;
    pointer-events: none;
}

.indicator-dot {
    width: 6px;
    height: 6px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transition: background-color 0.3s;
}


/* Background Decorations */
.background-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.floating-emoji {
    position: absolute;
    font-size: 2rem;
    opacity: 0;
    animation: floatAndFade 10s linear infinite;
}

@keyframes floatAndFade {
    0% {
        transform: translateY(110vh) translateX(0) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.8;
    }

    90% {
        opacity: 0.8;
    }

    100% {
        transform: translateY(-10vh) translateX(20px) rotate(20deg);
        opacity: 0;
    }
}