/* Vertical Timeline Gallery Styles */

.timeline-gallery-vertical {
    padding: 80px 0;
    overflow: hidden;
}

.timeline-wrapper {
    margin-top: 60px;
    position: relative;
    display: flex;
    align-items: stretch;
}

/* Make both columns same height */
.timeline-wrapper > .col-md-3,
.timeline-wrapper > .col-md-9 {
    display: flex;
    flex-direction: column;
}

/* Timeline Navigation Column (Left Side - Sticky) */
.timeline-nav-col {
    position: relative;
    align-self: flex-start;
    flex-shrink: 0;
}

.vertical-timeline-nav {
    position: sticky;
    top: 100px;
    height: fit-content;
    padding: 20px;
    padding-bottom: 30px;
    z-index: 90;
}

/* Timeline Line Container - Hidden for segmented approach */
.timeline-line-container {
    display: none;
}

/* Timeline Years Container */
.timeline-years {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 50px;
    z-index: 2;
    padding: 20px 0;
}

/* Individual Year Item */
.timeline-year-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 10px;
    border-radius: 8px;
    position: relative;
}

.timeline-year-item:hover {
    background: rgba(255, 150, 0, 0.05);
}

.timeline-year-item.active {
    /* background: rgba(255, 150, 0, 0.1); */
}

/* Dotted line segment between items */
.timeline-year-item:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 25px;
    background-image: linear-gradient(to bottom, #ddd 50%, transparent 50%);
    background-size: 2px 8px;
    background-repeat: repeat-y;
    z-index: 0;
}

/* Year Checkpoint (Dot) */
.year-checkpoint {
    position: relative;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    z-index: 2;
}

.checkpoint-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    border: 4px solid #ddd;
    position: relative;
    z-index: 3;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.timeline-year-item.active .checkpoint-dot {
    background: #ff9600;
    border-color: #ff9600;
    box-shadow: 0 0 20px rgba(255, 150, 0, 0.5);
    transform: scale(1.3);
}

.timeline-year-item:hover .checkpoint-dot {
    border-color: #ff9600;
    transform: scale(1.15);
}

/* Pulsing Animation for Active Checkpoint */
.checkpoint-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 150, 0, 0.3);
    opacity: 0;
}

.timeline-year-item.active .checkpoint-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(2.5);
    }
}

/* Year Content */
.year-content {
    text-align: center;
}

.year-content h3 {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin: 0;
    transition: color 0.3s ease;
}

.timeline-year-item.active .year-content h3 {
    color: #ff9600;
}

.timeline-year-item:hover .year-content h3 {
    color: #ff9600;
}

/* Scroll Navigation Buttons */
.timeline-scroll-nav {
    margin-top: 40px;
    text-align: center;
    position: relative;
    height: 100%;
    overflow: hidden;
    height: 90px;
}

.scroll-next-year {
    background: #ff9600;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 150, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
    z-index: 10;
    overflow: hidden;
}

.scroll-next-year:hover {
    background: #d3800a;
    transform: translateY(3px);
    box-shadow: 0 6px 20px rgba(255, 150, 0, 0.4);
}

.scroll-next-year i {
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(5px);
    }
}

/* Gallery Column (Right Side - Scrollable) */
.timeline-gallery-col {
    padding-left: 40px;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    position: relative;
}

/* Custom Scrollbar */
.timeline-gallery-col::-webkit-scrollbar {
    width: 8px;
}

.timeline-gallery-col::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.timeline-gallery-col::-webkit-scrollbar-thumb {
    background: #ff9600;
    border-radius: 10px;
}

.timeline-gallery-col::-webkit-scrollbar-thumb:hover {
    background: #e68600;
}

.timeline-gallery-content {
    position: relative;
    min-height: 100%;
}

/* Individual Year Gallery */
.year-gallery {
    margin-bottom: 100px;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.year-gallery.animate-in {
    opacity: 0;
    transform: translateY(30px);
}

.year-gallery.visible {
    opacity: 1;
    transform: translateY(0);
}

.year-gallery-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid #ff9600;
}

.year-gallery-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin: 0 0 10px 0;
}

.year-gallery-header p {
    font-size: 16px;
    color: #666;
    margin: 0;
}

/* Gallery Container */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    padding: 10px 0;
}

.gallery-container .gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
    background: #f5f5f5;
    display: block;
}

.gallery-container .gallery-item:hover {
    transform: scale(1.05);
    z-index: 10;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.gallery-container .gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.gallery-container .gallery-item:hover img {
    transform: scale(1.1);
}

/* Coming Soon Placeholder */
.coming-soon {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    border-radius: 8px;
    border: 2px dashed #ccc;
}

.coming-soon i {
    font-size: 60px;
    color: #999;
    margin-bottom: 20px;
}

.coming-soon p {
    font-size: 20px;
    color: #666;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 992px) {
    .timeline-nav-col {
        margin-bottom: 40px;
        align-self: auto;
    }
    
    .vertical-timeline-nav {
        position: sticky;
        top: 80px;
        background: white;
        z-index: 100;
        padding: 15px;
        max-height: none;
    }
    
    .timeline-years {
        flex-direction: row;
        overflow-x: auto;
        gap: 30px;
        padding: 15px 0;
        -webkit-overflow-scrolling: touch;
    }
    
    .timeline-year-item {
        min-width: 100px;
    }
    
    .timeline-year-item:not(:last-child)::after {
        bottom: 50%;
        left: auto;
        right: -15px;
        width: 15px;
        height: 2px;
        background-image: linear-gradient(to right, #ddd 50%, transparent 50%);
        background-size: 8px 2px;
        background-repeat: repeat-x;
        transform: translateY(50%);
    }
    
    .year-content h3 {
        font-size: 24px;
    }
    
    .timeline-gallery-col {
        padding-left: 15px;
        max-height: none;
        overflow-y: visible;
    }
    
    .gallery-container {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

@media (max-width: 768px) {
    .year-gallery-header h2 {
        font-size: 24px;
    }
    
    .year-content h3 {
        font-size: 20px;
    }
    
    .gallery-container {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }
}

