/* ==========================================================================
   Storia Page - Horizontal Scroll Timeline + Ball Descent
   ========================================================================== */

.bb-intro-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    text-align: center;
}

.bb-intro-text {
    font-size: 1.3rem;
    line-height: 2;
    color: var(--bb-light-gray);
}

.bb-intro-text strong { color: var(--bb-accent-yellow); }

/* Horizontal Scroll Wrapper */
.bb-horizontal-scroll-wrapper {
    height: 500vh;
    position: relative;
    background: var(--bb-dark-gray);
}

.bb-horizontal-scroll-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
}

.bb-scroll-hint {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--bb-accent-yellow);
    font-size: 1.2rem;
    z-index: 100;
    text-align: center;
    animation: bbFadeInOut 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes bbFadeInOut { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }

.bb-horizontal-scroll-content {
    display: flex;
    height: 100vh;
    align-items: center;
    position: relative;
    will-change: transform;
    padding-left: 5vw;
}

.bb-timeline-line {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--bb-primary-orange) 0%, var(--bb-accent-yellow) 50%, var(--bb-primary-orange) 100%);
    opacity: 0.3;
    z-index: 1;
}

/* Timeline Cards - Square */
.bb-timeline-card {
    min-width: 400px;
    width: 400px;
    height: 400px;
    margin: 0 2.5rem;
    background: var(--bb-dark);
    border: 3px solid var(--bb-primary-orange);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    z-index: 10;
    flex-shrink: 0;
}

.bb-timeline-card:first-child { margin-left: 10vw; }
.bb-timeline-card:last-child { margin-right: 10vw; }

.bb-timeline-card:hover {
    border-color: var(--bb-accent-yellow);
    transform: scale(1.05);
}

.bb-timeline-year {
    font-family: var(--bb-font-title);
    font-size: 3.5rem;
    color: var(--bb-accent-yellow);
    line-height: 1;
    margin-bottom: 0.8rem;
}

.bb-timeline-title {
    font-family: var(--bb-font-subtitle);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--bb-white);
}

.bb-timeline-text {
    font-size: 0.95rem;
    color: var(--bb-light-gray);
    line-height: 1.7;
}

.bb-timeline-text p { margin: 0; }

/* Rolling Basketball */
.bb-rolling-ball {
    position: fixed;
    top: 50%;
    left: 5%;
    width: 90px;
    height: 90px;
    z-index: 500;
    pointer-events: none;
    will-change: transform, left, top;
    transform: translateX(-50%) translateY(-50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bb-rolling-ball.visible { opacity: 1; }

.bb-rolling-ball img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: lighten;
    will-change: transform;
}

/* Ball Descent Zone */
.bb-ball-descent-zone { position: relative; }

.bb-ball-path-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

/* Legacy Section */
.bb-legacy-section {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, var(--bb-dark-gray), var(--bb-dark));
    position: relative;
    overflow: visible;
}

.bb-legacy-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 10;
}

.bb-legacy-content h2 {
    font-family: var(--bb-font-title);
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 2rem;
}

.bb-legacy-content > p {
    font-size: 1.2rem;
    line-height: 2;
    color: var(--bb-light-gray);
    max-width: 900px;
    margin: 0 auto 3rem;
}

.bb-achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.bb-achievement-card {
    background: var(--bb-dark);
    padding: 2rem;
    border: 2px solid var(--bb-primary-orange);
    transition: all 0.3s ease;
}

.bb-achievement-card:hover {
    border-color: var(--bb-accent-yellow);
    transform: translateY(-5px);
}

.bb-achievement-icon { font-size: 3rem; margin-bottom: 1rem; }

.bb-achievement-card h3 {
    font-family: var(--bb-font-subtitle);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--bb-accent-yellow);
}

.bb-achievement-card p { font-size: 1rem; color: var(--bb-light-gray); }

/* Responsive */
@media (max-width: 768px) {
    .bb-timeline-card {
        min-width: 280px;
        width: 280px;
        height: 280px;
        padding: 1.5rem;
        margin: 0 1.5rem;
    }

    .bb-timeline-card:first-child { margin-left: 5vw; }
    .bb-timeline-year { font-size: 2.5rem; }
    .bb-timeline-title { font-size: 1.2rem; }
    .bb-timeline-text { font-size: 0.8rem; }
    .bb-rolling-ball { width: 55px; height: 55px; }
    .bb-horizontal-scroll-wrapper { height: 400vh; }
}
