/* Timeline Styles */
#horizontal-timeline {
    width: 100%;
    height: 100vh;          /* was calc(100vh - 80px) — must match what JS sets */
    overflow: hidden;
    position: relative;
    background-color: #fff;
    /* REMOVED: transform, perspective, backface-visibility */
    /* These break GSAP pin's position:fixed calculation */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Scroll wrapper for horizontal scrolling */
.timeline-scroll-wrapper {
    display: inline-flex;
    height: 100%;
    will-change: transform;
    /* Keep backface but remove preserve-3d — not needed on wrapper */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Timeline item styles */
#horizontal-timeline .item {
    width: 100vw;
    height: 100vh;
    display: inline-flex;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    will-change: transform;
    /* -1px gap fix stays — this is fine */
    margin-right: -1px;
}

/* Item content container */
#horizontal-timeline .item-content {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
    padding: 2rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Timeline Navigation Dots */
.timeline-dots {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    z-index: 1000;
}

.timeline-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.timeline-dot:hover {
    background-color: #fff;
    transform: scale(1.1);
}

.timeline-dot.active {
    background-color: #10069F;
    transform: scale(1.2);
    border-color: rgba(255, 255, 255, 0.8);
}

.light-theme .timeline-dot {
    background-color: rgba(0, 0, 0, 0.2);
}
.light-theme .timeline-dot:hover {
    background-color: rgba(0, 0, 0, 0.4);
}
.light-theme .timeline-dot.active {
    background-color: #000;
    border-color: rgba(0, 0, 0, 0.3);
}

/* Hide scrollbar */
#horizontal-timeline {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
#horizontal-timeline::-webkit-scrollbar {
    display: none;
}

/* Elementor specific overrides */
#horizontal-timeline > .elementor-container,
#horizontal-timeline > .elementor-column,
#horizontal-timeline > .elementor-widget-wrap {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* Responsive */
@media (max-width: 1024px) {
    #horizontal-timeline .item-content { padding: 1.5rem; }
}
@media (max-width: 768px) {
    #horizontal-timeline .item { padding: 0; }
    #horizontal-timeline .item-content { padding: 0; }
}