/* 9240 Retro Wave History Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'VT323', monospace;
    background: #0a0a2a;
    color: #00ffcc;
    overflow-x: hidden;
    min-height: 100vh;
}

/* CRT Scanlines */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0) 50%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.3));
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 999;
    animation: scanlineMove 0.15s linear infinite;
}

@keyframes scanlineMove {
    0% { background-position: 0 0; }
    100% { background-position: 0 4px; }
}

/* Glow Overlay */
.glow-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0,255,204,0.1) 0%, transparent 60%);
    pointer-events: none;
    z-index: 998;
}

/* Retro Wave Background */
.bg-anim {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.grid-lines {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 100vh;
    transform: translate(-50%, -50%);
    background-image: linear-gradient(rgba(0,255,204,0.1) 1px, transparent 1px), linear-gradient(90deg, rgba(0,255,204,0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    perspective: 500px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(-50%, -50%) rotateX(60deg); }
    100% { transform: translate(-50%, -100%) rotateX(60deg); }
}

.radial-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 100vh;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(0,255,204,0.05) 0%, transparent 70%);
    animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Page Layout */
.history-page {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 60px;
    position: relative;
}

.logo-wrapper .retro-logo {
    font-family: 'Press Start 2P', cursive;
    font-size: 24px;
    color: #00ffcc;
    text-shadow: 0 0 10px rgba(0,255,204,0.8);
    animation: logoPulse 2s ease-in-out infinite;
}

.retro-logo span:first-child { color: #ff00cc; text-shadow: 0 0 10px rgba(255,0,204,0.8); }
.retro-logo span:last-child { color: #ffff00; text-shadow: 0 0 10px rgba(255,255,0,0.8); }

@keyframes logoPulse {
    0%, 100% { text-shadow: 0 0 10px rgba(0,255,204,0.8); }
    50% { text-shadow: 0 0 20px rgba(0,255,204,1); }
}

.page-nav .nav-back {
    font-family: 'VT323', monospace;
    font-size: 24px;
    color: #00ffcc;
    text-decoration: none;
    padding: 10px 20px;
    border: 2px solid #00ffcc;
    border-radius: 5px;
    transition: all 0.3s;
    text-transform: uppercase;
    box-shadow: 0 0 10px rgba(0,255,204,0.3);
}

.page-nav .nav-back:hover {
    background: rgba(0,255,204,0.2);
    box-shadow: 0 0 20px rgba(0,255,204,0.6);
    transform: translateX(-10px);
}

/* Hero Section */
.hero {
    padding: 100px 60px 60px;
    background: linear-gradient(180deg, rgba(10,10,42,0.8) 0%, transparent 100%);
}

.hero-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 48px;
    color: #ff00cc;
    text-shadow: 0 0 20px rgba(255,0,204,0.6);
    margin-bottom: 20px;
    line-height: 1.4;
}

.hero-subtitle {
    font-size: 28px;
    color: #00ffff;
    text-shadow: 0 0 10px rgba(0,255,255,0.5);
    margin-bottom: 50px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.stat .stat-value {
    font-family: 'Press Start 2P', cursive;
    font-size: 32px;
    color: #ffff00;
}

.stat .stat-label {
    font-size: 16px;
    color: #00ffcc;
    text-transform: uppercase;
}

/* Content */
.content {
    padding: 40px 60px 80px;
}

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

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,255,204,0.3) 0%, rgba(0,255,204,0.1) 100%);
}

.timeline-item {
    display: flex;
    justify-content: flex-end;
    padding-right: calc(50% + 30px);
    position: relative;
    margin-bottom: 80px;
}

.timeline-item:nth-child(odd) {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: calc(50% + 30px);
}

.timeline-year {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Press Start 2P', cursive;
    font-size: 20px;
    color: #ff00cc;
    background: #0a0a2a;
    padding: 10px 20px;
    border: 2px solid #ff00cc;
    border-radius: 10px;
    z-index: 10;
    box-shadow: 0 0 15px rgba(255,0,204,0.3);
}

.timeline-content .card {
    background: rgba(10,10,42,0.95);
    border: 2px solid #00ffcc;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 0 20px rgba(0,255,204,0.2);
    animation: cardEntrance 0.6s ease-out;
}

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

.timeline-item:nth-child(odd) .card {
    border-color: #ff00cc;
    box-shadow: 0 0 20px rgba(255,0,204,0.2);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(0,255,204,0.3);
    padding-bottom: 15px;
}

.card-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 20px;
    color: #fff;
}

.card-year {
    font-family: 'VT323', monospace;
    font-size: 24px;
    color: #ffff00;
}

.card-body {
    color: #ccc;
    line-height: 1.6;
}

.card-text {
    margin-bottom: 20px;
}

.card-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tag {
    padding: 5px 12px;
    background: rgba(0,255,204,0.2);
    border-radius: 4px;
    font-size: 14px;
    color: #00ffcc;
    border: 1px solid rgba(0,255,204,0.3);
}

/* Active timeline item */
.timeline-item.active .timeline-year {
    background: #ff00cc;
    color: #fff;
    box-shadow: 0 0 20px rgba(255,0,204,0.6);
}

.timeline-item.active .card {
    border-color: #ffff00;
    box-shadow: 0 0 25px rgba(255,255,0,0.3);
}

.timeline-item.active .card-header .card-year {
    color: #ffff00;
}

/* Quote Section */
.quote-section {
    max-width: 800px;
    margin: 80px auto;
    padding: 50px;
    background: rgba(10,10,42,0.95);
    border: 3px solid #ff00cc;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 0 30px rgba(255,0,204,0.3);
}

.quote-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.quote-icon {
    font-size: 48px;
    animation: pulse 2s infinite;
}

.quote-text {
    font-size: 26px;
    color: #fff;
    font-style: italic;
    line-height: 1.6;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Footer */
.page-footer {
    padding: 30px 60px;
    border-top: 2px solid #00ffcc;
    text-align: center;
}

.footer-content .footer-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.footer-text {
    font-family: 'Press Start 2P', cursive;
    font-size: 12px;
    letter-spacing: 3px;
    color: #ff00cc;
}

.footer-copyright {
    font-size: 14px;
    color: rgba(0,255,204,0.7);
}

/* Responsive */
@media (max-width: 768px) {
    .page-header { padding: 20px; flex-direction: column; gap: 20px; }
    .timeline::before { left: 20px; }
    .timeline-item { padding-right: 60px; padding-left: 0; }
    .timeline-item:nth-child(odd) { padding-right: 60px; padding-left: 0; }
    .timeline-year { left: 20px; transform: none; }
    .hero { padding: 60px 20px; }
    .hero-title { font-size: 28px; }
    .hero-stats { gap: 30px; }
    .content, .quote-section { padding: 20px; }
}
