@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slowZoom {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(255, 215, 0, 0); }
}

.slide-in-item {
    opacity: 0;
}

.slide-in-item.in-view {
    animation: slideInFromBottom 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.back-btn {
    position: fixed;
    top: 2rem;
    left: 2rem;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1.5rem;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(20px);
    color: white;
    text-decoration: none;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 600;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateX(-4px);
}

.back-btn svg {
    transition: transform 0.3s ease;
}

.back-btn:hover svg {
    transform: translateX(-3px);
}

.page-hero {
    position: relative;
    width: 100%;
    height: 80vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    animation: slowZoom 20s ease-in-out infinite alternate;
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.4) 0%,
        rgba(0, 0, 0, 0.5) 50%,
        rgba(0, 0, 0, 0.95) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 0 2rem;
    max-width: 1000px;
}

.hero-eyebrow {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    opacity: 0.5;
    margin-bottom: 1.5rem;
    font-weight: 500;
    animation: fadeIn 1s ease-out 0.3s forwards;
    opacity: 0;
}

.hero-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(3rem, 10vw, 7rem);
    letter-spacing: 0.1em;
    line-height: 0.9;
    margin: 0 0 1rem;
    animation: slideInFromBottom 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
    opacity: 0;
}

.hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.6;
    margin: 0 0 3rem;
    animation: fadeIn 1s ease-out 0.7s forwards;
    opacity: 0;
}

.hero-stats-row {
    display: flex;
    justify-content: center;
    gap: 4rem;
    animation: fadeIn 1s ease-out 0.9s forwards;
    opacity: 0;
}

.hero-stat {
    text-align: center;
}

.hero-stat-number {
    display: block;
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: #ffd700;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.hero-stat-label {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.6;
}

.timeline-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 4rem 4rem;
}

.section-divider {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 6rem 0;
}

.era-section {
    padding: 2rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-eyebrow {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    opacity: 0.4;
    margin-bottom: 1rem;
    font-weight: 600;
}

.section-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: 0.08em;
    margin: 0 0 0.5rem;
    line-height: 1;
}

.section-subtitle {
    font-size: 1rem;
    opacity: 0.5;
    margin-top: 0.75rem;
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.timeline-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 40px;
}

.marker-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 3px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    z-index: 2;
}

.marker-dot.highlight {
    background: #ffd700;
    border-color: rgba(255, 215, 0, 0.3);
}

.timeline-item:hover .marker-dot {
    transform: scale(1.2);
    background: rgba(255, 255, 255, 0.5);
}

.timeline-item:hover .marker-dot.highlight {
    background: #ffd700;
    animation: pulse 1.5s ease-in-out infinite;
}

.marker-line {
    width: 2px;
    flex-grow: 1;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05));
    margin-top: 0.5rem;
}

.timeline-card {
    flex-grow: 1;
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.4s ease;
}

.timeline-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateX(8px);
}

.timeline-card.highlight {
    border-color: rgba(255, 215, 0, 0.2);
    background: rgba(255, 215, 0, 0.02);
}

.timeline-card.highlight:hover {
    border-color: rgba(255, 215, 0, 0.4);
    background: rgba(255, 215, 0, 0.05);
}

.timeline-card.major {
    border-width: 2px;
}

.card-year {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    color: #ffd700;
    line-height: 1;
    opacity: 0.8;
}

.card-content {
    position: relative;
}

.card-icon {
    position: absolute;
    top: 0;
    right: 0;
    color: rgba(255, 255, 255, 0.2);
}

.timeline-card.highlight .card-icon {
    color: rgba(255, 215, 0, 0.4);
}

.card-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 0.75rem;
    padding-right: 40px;
}

.card-content p {
    font-size: 0.95rem;
    line-height: 1.7;
    opacity: 0.7;
    margin: 0;
}

.card-badge {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.35rem 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    font-weight: 600;
}

.card-badge.gold {
    background: rgba(255, 215, 0, 0.15);
    border-color: rgba(255, 215, 0, 0.4);
    color: #ffd700;
}

.stats-banner {
    position: relative;
    margin-top: 4rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.banner-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.banner-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
}

.banner-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding: 5rem 4rem;
}

.banner-stat {
    text-align: center;
}

.banner-number {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: #ffd700;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.banner-label {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.7;
}

.page-footer {
    margin-top: 6rem;
    padding: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.page-footer .footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-brand h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.8rem;
    letter-spacing: 0.1em;
    margin: 0 0 0.5rem;
}

.footer-brand p {
    font-size: 0.85rem;
    opacity: 0.5;
    margin: 0;
    font-style: italic;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    font-size: 0.8rem;
    opacity: 0.6;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    color: white;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-legal {
    text-align: right;
}

.footer-legal p {
    font-size: 0.75rem;
    opacity: 0.4;
    margin: 0.3rem 0;
}

@media (max-width: 1200px) {
    .timeline-container {
        padding: 0 2rem 3rem;
    }

    .banner-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .back-btn {
        top: 1rem;
        left: 1rem;
        padding: 0.75rem 1.25rem;
    }

    .back-btn span {
        display: none;
    }

    .page-hero {
        height: 70vh;
        min-height: 400px;
    }

    .hero-title {
        font-size: clamp(2.5rem, 12vw, 4rem);
    }

    .hero-stats-row {
        flex-direction: column;
        gap: 2rem;
    }

    .timeline-container {
        padding: 0 1.5rem 2rem;
    }

    .section-divider {
        margin: 4rem 0;
    }

    .timeline-item {
        gap: 1rem;
    }

    .timeline-marker {
        width: 30px;
    }

    .marker-dot {
        width: 12px;
        height: 12px;
    }

    .timeline-card {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        padding: 1.25rem;
    }

    .card-year {
        font-size: 1.5rem;
    }

    .card-content h3 {
        font-size: 1.1rem;
        padding-right: 30px;
    }

    .card-icon svg {
        width: 20px;
        height: 20px;
    }

    .banner-content {
        grid-template-columns: repeat(2, 1fr);
        padding: 3rem 2rem;
        gap: 2rem;
    }

    .page-footer {
        padding: 3rem 1.5rem;
    }

    .page-footer .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .footer-legal {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .back-btn {
        padding: 0.6rem 1rem;
    }

    .page-hero {
        height: 60vh;
        min-height: 350px;
    }

    .hero-content {
        padding: 0 1rem;
    }

    .hero-stat-number {
        font-size: 2.5rem;
    }

    .timeline-container {
        padding: 0 1rem 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .timeline-item {
        gap: 0.75rem;
    }

    .timeline-marker {
        width: 24px;
    }

    .marker-dot {
        width: 10px;
        height: 10px;
    }

    .timeline-card {
        padding: 1rem;
    }

    .card-year {
        font-size: 1.3rem;
    }

    .card-content h3 {
        font-size: 1rem;
    }

    .card-content p {
        font-size: 0.9rem;
    }

    .banner-content {
        grid-template-columns: 1fr 1fr;
        padding: 2.5rem 1.5rem;
    }

    .banner-number {
        font-size: 1.8rem;
    }

    .banner-label {
        font-size: 0.65rem;
    }
}

@media (hover: none) and (pointer: coarse) {
    .timeline-card:hover,
    .timeline-item:hover .marker-dot {
        transform: none;
    }

    .timeline-card:active {
        transform: scale(0.98);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .slide-in-item {
        opacity: 1;
    }

    .hero-bg-image {
        animation: none;
    }
}