/* Story Page Styles */
.story-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
    padding-top: 150px; /* Reduced from 80px */
}

/* Big Header */
.story-header {
    padding: 0px 20px;
    text-align: center;
    margin-bottom: 0;
}

.story-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 3.5rem; /* Reduced from 4.5rem */
    font-weight: 700;
    color: #fdfdff;
    margin: 0;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Timeline Navigation */
.timeline-nav {
    background: #393d3f;
    padding: 1rem 2rem; /* Reduced from 1rem */
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    position: sticky;
    top: 60px; /* Reduced from 80px */
    z-index: 50;
    justify-content: center;
}

.timeline-nav-item {
    margin: 0 10px;
}

.timeline-nav-item.active {
    background-color: #62929E;
    color: #FDFDFF;
    padding: 0.2em 0.5em;
    border-radius: 0.1em;
}

/* Timeline Content */
.timeline-content {
    /* background: #fdfdff; */
    min-height: 65vh; /* Reduced from 65vh */
    padding: 0;
}

.timeline-section {
    display: none;
    padding: 3rem 2rem; /* Reduced from 3rem */
    max-width: 1000px;
    margin: 0 auto;
}

.timeline-section.active {
    display: block;
    animation: fadeInUp 0.6s ease-out;
}

.timeline-marker {
    display: inline-block;
    background: linear-gradient(135deg, #62929E 0%, #4a7c8a 100%);
    color: #fdfdff;
    padding: 0.6rem 1.2rem; /* Reduced from 0.8rem 1.5rem */
    border-radius: 25px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 1.5rem; /* Reduced from 2rem */
    box-shadow: 0 4px 15px rgba(98, 146, 158, 0.3);
}

.timeline-item {
    background: #fdfdff;
    border-radius: 16px;
    padding: 2rem; /* Reduced from 2.5rem */
    /* box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1); */
    border: 1px solid rgba(98, 146, 158, 0.1);
}

.timeline-title {
    font-family: 'Bitcount Prop Double', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    color: #393d3f;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
    text-transform: uppercase;
}

.timeline-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.timeline-text {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4a4a4a;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.timeline-text a {
    color: #62929E;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.timeline-text a:hover {
    color: #4a7c8a;
    text-decoration: underline;
}

.timeline-image {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.timeline-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: all 0.3s ease;
    filter: grayscale(100%);
}

.timeline-image:hover .timeline-img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.timeline-image:hover {
    box-shadow: 0 12px 35px rgba(98, 146, 158, 0.3);
}

/* Video Styles */
.timeline-video {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.timeline-video:hover {
    box-shadow: 0 12px 35px rgba(98, 146, 158, 0.3);
}

.timeline-vid {
    width: 100%;
    height: 300px;
    transition: all 0.3s ease;
    border-radius: 12px;
    background: #f0f0f0;
    border: 2px solid #ddd;
}

.timeline-video:hover .timeline-vid {
    transform: scale(1.02);
}

/* CTA Section for Today */
.cta-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(98, 146, 158, 0.2);
    grid-column: 1 / -1;
}

.cta-text {
    font-family: 'Bitcount Prop Double', sans-serif;
    font-size: 1.2rem;
    color: #393d3f;
    margin-bottom: 1.5rem;
    text-align: center;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.cta-button.primary {
    background: linear-gradient(135deg, #62929E 0%, #4a7c8a 100%);
    color: #fdfdff;
}

.cta-button.primary:hover {
    background: linear-gradient(135deg, #4a7c8a 0%, #62929E 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(98, 146, 158, 0.4);
}

.cta-button.secondary {
    background: transparent;
    color: #62929E;
    border-color: #62929E;
}

.cta-button.secondary:hover {
    background: #62929E;
    color: #fdfdff;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(98, 146, 158, 0.4);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .story-title {
        font-size: 3.5rem;
    }
    
    .timeline-body {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .timeline-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    .story-container {
        padding-top: 70px;
    }
    
    .story-header {
        padding: 3rem 1rem;
    }
    
    .story-title {
        font-size: 3rem;
    }
    
    .timeline-nav {
        padding: 1rem;
        top: 70px;
    }
    
    .timeline-nav-item {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
    
    .timeline-section {
        padding: 2rem 1rem;
    }
    
    .timeline-item {
        padding: 2rem;
    }
    
    .timeline-title {
        font-size: 1.6rem;
    }
    
    .timeline-text {
        font-size: 1rem;
    }
    
    .timeline-img {
        height: 250px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .story-title {
        font-size: 2.5rem;
    }
    
    .timeline-nav {
        gap: 0.3rem;
    }
    
    .timeline-nav-item {
        padding: 0.5rem 0.8rem;
        font-size: 0.75rem;
    }
    
    .timeline-section {
        padding: 1.5rem 1rem;
    }
    
    .timeline-item {
        padding: 1.5rem;
    }
    
    .timeline-title {
        font-size: 1.4rem;
    }
    
    .timeline-img {
        height: 200px;
    }
}
