/* Mobile Timeline Styles */
.mobile-timeline {
    display: none; /* Hidden by default, shown only on mobile */
    background: transparent;
    padding: 1.5rem 1rem;
    margin: 2rem 0;
    position: relative;
    min-height: 350px;
}

.mobile-timeline-header {
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
}

.mobile-timeline-title {
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    font-family: 'Unbounded', sans-serif;
}

.mobile-timeline-progress {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 1rem;
}

.mobile-timeline-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #4682ff, #6ba3ff);
    border-radius: 2px;
    transition: width 0.4s ease;
    position: relative;
}

.mobile-timeline-content {
    position: relative;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 0;
}

.mobile-timeline-card {
    background: linear-gradient(135deg, rgba(28, 28, 28, 0.95) 0%, rgba(42, 42, 42, 0.95) 100%);
    border: 1px solid rgba(70, 130, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    max-width: 100%;
    transform-origin: center;
    color: white;
    font-family: 'Unbounded', sans-serif;
}

.mobile-timeline-year {
    font-size: 2.2rem;
    font-weight: 900;
    color: #4682ff;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.mobile-timeline-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.6;
    font-weight: 400;
    text-align: left;
    margin: 0;
    padding: 0;
}

.mobile-timeline-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.5rem;
    position: relative;
    gap: 1rem;
}

.mobile-nav-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(70, 130, 255, 0.3);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.mobile-nav-btn:hover {
    background: rgba(70, 130, 255, 0.2);
    border-color: #4682ff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(70, 130, 255, 0.3);
}

.mobile-nav-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.mobile-nav-btn svg {
    width: 20px;
    height: 20px;
}

.mobile-timeline-indicators {
    display: flex;
    gap: 0.4rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 60%;
}

.mobile-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(70, 130, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.mobile-indicator.active {
    background: #4682ff;
    border-color: #4682ff;
    transform: scale(1.2);
    box-shadow: 0 0 0 2px rgba(70, 130, 255, 0.3);
}

.mobile-indicator:not(.active):hover {
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(70, 130, 255, 0.4);
    transform: scale(1.1);
}

.mobile-timeline-counter {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    margin-top: 1rem;
    font-weight: 500;
    position: relative;
}

.current-item {
    color: #4682ff;
    font-weight: 700;
}

/* Mobile-first responsive design */
@media (max-width: 768px) {
    .timeline {
        display: none !important; /* Hide desktop timeline on mobile */
    }
    
    .mobile-timeline {
        display: block; /* Show mobile timeline */
        margin: 1rem 0;
        padding: 1.2rem 1rem;
        min-height: 320px;
    }
    
    .mobile-timeline-title {
        font-size: 1.2rem;
    }
    
    .mobile-timeline-card {
        padding: 1.5rem;
    }
    
    .mobile-timeline-year {
        font-size: 1.8rem;
    }
    
    .mobile-timeline-description {
        font-size: 0.9rem;
    }
    
    .mobile-nav-btn {
        width: 40px;
        height: 40px;
    }
    
    .mobile-nav-btn svg {
        width: 16px;
        height: 16px;
    }
    
    .mobile-indicator {
        width: 8px;
        height: 8px;
    }
}

@media (max-width: 480px) {
    .mobile-timeline {
        padding: 1rem 0.8rem;
        min-height: 300px;
    }
    
    .mobile-timeline-title {
        font-size: 1.1rem;
    }
    
    .mobile-timeline-content {
        min-height: 160px;
        padding: 0.8rem 0;
    }
    
    .mobile-timeline-card {
        padding: 1.2rem;
    }
    
    .mobile-timeline-year {
        font-size: 1.6rem;
        margin-bottom: 0.8rem;
    }
    
    .mobile-timeline-description {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    .mobile-timeline-navigation {
        margin-top: 1.2rem;
        gap: 0.8rem;
    }
    
    .mobile-nav-btn {
        width: 36px;
        height: 36px;
    }
    
    .mobile-nav-btn svg {
        width: 14px;
        height: 14px;
    }
    
    .mobile-timeline-indicators {
        gap: 0.3rem;
        max-width: 50%;
    }
    
    .mobile-indicator {
        width: 7px;
        height: 7px;
    }
    
    .mobile-indicator.active {
        transform: scale(1.1);
        box-shadow: 0 0 0 2px rgba(70, 130, 255, 0.3);
    }
}

/* Very small screens optimization */
@media (max-width: 320px) {
    .mobile-timeline {
        padding: 0.8rem 0.6rem;
        min-height: 280px;
    }
    
    .mobile-timeline-card {
        padding: 1rem;
    }
    
    .mobile-timeline-year {
        font-size: 1.4rem;
    }
    
    .mobile-timeline-description {
        font-size: 0.8rem;
    }
    
    .mobile-timeline-indicators {
        max-width: 40%;
        gap: 0.25rem;
    }
    
    .mobile-indicator {
        width: 6px;
        height: 6px;
    }
}

/* Accessibility improvements */
.mobile-timeline *:focus {
    outline: 2px solid #4682ff;
    outline-offset: 2px;
}

.mobile-nav-btn:focus,
.mobile-indicator:focus {
    outline: 2px solid #4682ff;
    outline-offset: 2px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .mobile-timeline-card,
    .mobile-timeline-progress-bar,
    .mobile-nav-btn,
    .mobile-indicator {
        transition: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .mobile-timeline-card {
        background: #000000;
        border: 2px solid #ffffff;
    }
    
    .mobile-timeline-year {
        color: #ffffff;
    }
    
    .mobile-timeline-description {
        color: #ffffff;
    }
    
    .mobile-nav-btn {
        background: #ffffff;
        color: #000000;
        border: 2px solid #000000;
    }
    
    .mobile-indicator {
        background: #ffffff;
        border: 2px solid #000000;
    }
    
    .mobile-indicator.active {
        background: #000000;
        border: 2px solid #ffffff;
    }
}
