/* Biography Timeline Widget Styles */

* {
    box-sizing: border-box;
}

.bio-timeline-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.bio-timeline-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.bio-timeline-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
    z-index: 1;
}

.bio-timeline-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.bio-timeline-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.8s ease-in-out;
}

.bio-timeline-slide.active .bio-timeline-background {
    transform: scale(1);
}

.bio-timeline-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 1;
}

.bio-timeline-content-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    z-index: 2;
    max-width: 1600px;
    margin: 0 auto;
}
/* Left Side - Content */
.bio-timeline-left {
    flex: 1;
    max-width: 100%;
    padding-right: 60px;
    padding-top: 180px;
    opacity: 0;
    transform: translateY(60px);
    transition: all 0.8s ease-in-out 0.3s;
}

.bio-timeline-slide.active .bio-timeline-left {
    opacity: 1;
    transform: translateY(0);
}

/* Slide animations for content */
.bio-timeline-left.slide-down {
    animation: slideContentDown 0.8s ease-in-out 0.3s forwards;
}

.bio-timeline-left.slide-up {
    animation: slideContentUp 0.8s ease-in-out 0.3s forwards;
}

@keyframes slideContentDown {
    0% {
        opacity: 0;
        transform: translateY(-60px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideContentUp {
    0% {
        opacity: 0;
        transform: translateY(60px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.bio-timeline-content {
    color: #ffffff;
}

.bio-timeline-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin: 0 0 30px 0;
    line-height: 1.2;
    color: #ffffff;
}

.bio-timeline-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-top: 20px;
    max-height: calc(100vh - 250px);
    overflow-y: auto;
    padding-right: 10px;
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
    transition: scrollbar-color 0.3s ease;
}

.bio-timeline-text:hover {
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

/* Webkit Scrollbar Styling */
.bio-timeline-text::-webkit-scrollbar {
    width: 6px;
}

.bio-timeline-text::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 10px;
}

.bio-timeline-text::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 10px;
    transition: background 0.3s ease;
}

.bio-timeline-text:hover::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
}

.bio-timeline-text::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.bio-timeline-text p {
    margin-bottom: 15px;
    color: #ffffff;
}

/* Right Side - Image and Year Indicator */
.bio-timeline-right {
    position: relative;
    flex: 0 0 auto;
    max-width: 45%;
    display: flex;
    align-items: center;
    gap: 40px;
}

.bio-featured-image {
    width: 350px;
    height: auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-in-out 0.5s;
}

.bio-timeline-slide.active .bio-featured-image {
    opacity: 1;
}

.bio-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Year Dial/Indicator - Side View Volume Knob Style */
.bio-year-dial {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 1;
    margin-left: 40px;
    transform: scale(1);
    transition: all 0.3s ease-in-out;
}

/* Year Container */
.bio-year-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

/* Year Display - Active/Current */
.bio-year-indicator {
    font-family: Futura, 'Trebuchet MS', sans-serif;
    font-size: 14px;
    font-weight: normal;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
    transition: all 0.3s ease-in-out;
}

/* Year Display - Previous */
.bio-year-prev {
    font-family: Futura, 'Trebuchet MS', sans-serif;
    font-size: 10px;
    font-weight: normal;
    color: rgba(255, 255, 255, 0.4);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
    min-height: 12px;
    transition: all 0.3s ease-in-out;
}

/* Year Display - Next */
.bio-year-next {
    font-family: Futura, 'Trebuchet MS', sans-serif;
    font-size: 10px;
    font-weight: normal;
    color: rgba(255, 255, 255, 0.4);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
    min-height: 12px;
    transition: all 0.3s ease-in-out;
}

/* Year Animation Classes */
.bio-year-indicator.scrolling-down {
    animation: yearFadeDown 0.6s ease-out;
}

.bio-year-indicator.scrolling-up {
    animation: yearFadeUp 0.6s ease-out;
}

@keyframes yearFadeDown {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    30% {
        opacity: 0.3;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes yearFadeUp {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    30% {
        opacity: 0.3;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Knob Container - Side View */
.bio-year-knob {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.3s ease-in-out;
}

/* Dash Indicators - Vertical Stack */
.bio-year-dashes {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    transition: transform 0.6s ease-out;
}

/* Scroll Animation Classes */
.bio-year-dashes.scrolling-down {
    animation: dashScrollDown 0.6s ease-out;
}

.bio-year-dashes.scrolling-up {
    animation: dashScrollUp 0.6s ease-out;
}

@keyframes dashScrollDown {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(15px);
    }
    100% {
        transform: translateY(0);
    }
}

@keyframes dashScrollUp {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0);
    }
}

.bio-dash {
    width: 50px;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.bio-dash.fade-top {
    opacity: 0.3;
    background: rgba(255, 255, 255, 0.3);
    width: 20px;
}

.bio-dash.fade-top-2 {
    opacity: 0.5;
    background: rgba(255, 255, 255, 0.5);
    width: 30px;
}

.bio-dash.active {
    width: 40px;
    height: 3px;
    background: rgba(255, 255, 255, 1);
    opacity: 1;
}

.bio-dash.fade-bottom-2 {
    opacity: 0.5;
    background: rgba(255, 255, 255, 0.5);
    width: 30px;
}

.bio-dash.fade-bottom {
    opacity: 0.3;
    background: rgba(255, 255, 255, 0.3);
    width: 20px;
}

/* Navigation Dots - Hidden */
.bio-navigation-dots {
    display: none;
}

.bio-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.bio-dot:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
}

.bio-dot.active {
    background: #ffffff;
    transform: scale(1.3);
}

/* Year Dial Wrapper - Right Side, Centered Vertically */
.bio-year-dial-wrapper {
    position: fixed;
    right: 0;
    top: 0;
    width: 104px;
    height: 100vh;
    background-color: #0000005c;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-right: 30px;
    z-index: 1000;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .bio-timeline-content-wrapper {
        flex-direction: column;
        padding: 40px 20px;
        justify-content: center;
    }
    
    .bio-timeline-left {
        max-width: 100%;
        padding-right: 0;
        margin-bottom: 30px;
        text-align: center;
    }
    
    .bio-timeline-title {
        font-size: 2.5rem;
    }
    
    .bio-timeline-text {
        font-size: 1rem;
    }
    
    .bio-timeline-right {
        max-width: 100%;
        flex-direction: column;
        gap: 20px;
    }
    
    .bio-featured-image {
        width: 280px;
        height: auto;
    }
    
    .bio-year-dial {
        transform: scale(0.8);
    }
    
    .bio-year-indicator {
        font-size: 1.5rem;
    }
    
    .bio-navigation-dots {
        right: 15px;
    }
}

@media (max-width: 768px) {
    .bio-timeline-title {
        font-size: 2rem;
        margin-bottom: 20px;
    }
    
    .bio-timeline-text {
        font-size: 0.95rem;
    }
    
    .bio-featured-image {
        width: 240px;
        height: 320px;
    }
    
    .bio-year-indicator {
        font-size: 1.3rem;
    }
    
    .bio-dot {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .bio-timeline-content-wrapper {
        padding: 30px 15px;
    }
    
    .bio-timeline-title {
        font-size: 1.75rem;
    }
    
    .bio-timeline-text {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    .bio-featured-image {
        width: 200px;
        height: 280px;
    }
    
    .bio-year-line {
        height: 60px;
    }
    
    .bio-year-indicator {
        font-size: 1.2rem;
        letter-spacing: 2px;
    }
}

/* Loading State */
.bio-timeline-container.loading {
    pointer-events: none;
}

/* Smooth scrolling cursor hint */
.bio-timeline-container {
    cursor: ns-resize;
}
