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

body {
    overflow: hidden;
    background-color: #fff;
    font-family: 'Montserrat', sans-serif;
}

.preview-title-top,
.preview-title-bottom {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 400;
    color: #999;
    text-align: center;
    margin: 0;
    padding: 0;
}

.preview-title-top {
    margin-bottom: 20px;
}

.preview-title-bottom {
    margin-top: 20px;
}

.page-12-layout {
    display: flex;
    height: 100vh;
    width: 100%;
    max-width: 100%;
}

/* Sidebar Navigation */
.year-nav {
    width: 250px;
    height: 100%;
    overflow-y: auto;
    padding: 40px;
    border-right: 1px solid #eee;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fff;
    flex-shrink: 0;
}

/* Scrollbar styling for nav */
.year-nav::-webkit-scrollbar {
    width: 4px;
}
.year-nav::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 4px;
}

.nav-item {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    padding: 10px 0;
    cursor: pointer;
    color: #999;
    transition: all 0.3s ease;
    position: relative;
    display: block;
    text-decoration: none;
    user-select: none;
}

.nav-item:hover {
    color: #333;
    padding-left: 10px;
}

.nav-item.active {
    color: #333;
    font-weight: 700;
    font-size: 24px;
    padding-left: 0;
}

.nav-item.past {
    text-decoration: line-through;
}

.nav-item.future {
    color: #e0e0e0;
    pointer-events: none;
}

/* Main Content Area */
.year-preview {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    overflow: hidden;
    padding: 0 40px;
}

.preview-content {
    text-align: center;
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.4s ease;
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    box-sizing: border-box;
    left: 0;
    top: 0;
}

.preview-content.visible {
    pointer-events: auto;
}

.preview-year {
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-year a, .preview-year > span {
    color: #eee;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-flex;
    font-size: min(25vw, 400px);
    font-weight: 700;
    line-height: 1;
    overflow: hidden;
}

.preview-year a:hover {
    color: #333;
    transform: scale(1.05);
}

.preview-year.active-year-text a {
    color: #333; 
}

/* Make non-clickable years (future) look distinct */
.preview-year > span {
    color: #f5f5f5;
    cursor: default;
}

/* Digit Animation Styles */
.digit-slot {
    display: inline-block;
    position: relative;
    height: 1em;
    overflow: hidden;
    width: 0.9ch;
    text-align: center;
}

.digit-strip {
    display: flex;
    flex-direction: column;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.digit {
    height: 1em;
    display: flex;
    align-items: center;
    justify-content: center;
    backface-visibility: hidden;
}

.preview-status {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 10px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .page-12-layout {
        flex-direction: column-reverse;
    }
    
    .year-nav {
        width: auto;
        height: 80px;
        border-right: none;
        border-top: 1px solid #eee;
        padding: 0 20px;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: flex-start;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 20px;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Hide scrollbar for cleaner look */
    .year-nav::-webkit-scrollbar {
        display: none; 
    }
    
    .nav-item {
        white-space: nowrap;
        font-size: 16px;
        padding: 10px 15px;
        background: transparent;
        border-radius: 0;
        flex: 0 0 auto;
    }
    
    .nav-item.active {
        background: transparent;
        color: #333;
        font-weight: 700;
        border-bottom: 2px solid #333;
        padding-left: 15px;
    }

    .year-preview {
        height: calc(100% - 80px);
        padding: 20px;
    }
    
    .preview-year {
        font-size: 20vw;
    }
    
    .preview-title-top,
    .preview-title-bottom {
        font-size: 14px;
    }
    
    .preview-title-top {
        margin-bottom: 15px;
    }
    
    .preview-title-bottom {
        margin-top: 15px;
    }
}

