* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #0a0a0f;
    overflow: hidden;
    font-family: 'Space Grotesk', sans-serif;
    color: #fff;
}

#scene-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Header */
#header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 10;
    pointer-events: none;
}

.glitch {
    font-size: clamp(1.2rem, 4vw, 2.5rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #fff;
    text-shadow: 
        0 0 10px #FF1493,
        0 0 20px #FF1493,
        0 0 40px #8B5CF6;
    animation: glitch 2s infinite;
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    animation: glitch-1 0.3s infinite linear alternate-reverse;
    clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
    color: #00FFFF;
}

.glitch::after {
    animation: glitch-2 0.3s infinite linear alternate-reverse;
    clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
    color: #FF1493;
}

@keyframes glitch {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(2px, -2px); }
    60% { transform: translate(-2px, -2px); }
    80% { transform: translate(2px, 2px); }
}

@keyframes glitch-1 {
    0% { transform: translate(-2px, 0); }
    100% { transform: translate(2px, 0); }
}

@keyframes glitch-2 {
    0% { transform: translate(2px, 0); }
    100% { transform: translate(-2px, 0); }
}

.subtitle {
    font-size: clamp(0.8rem, 2vw, 1.2rem);
    color: #8B5CF6;
    margin-top: 10px;
    opacity: 0.9;
}

/* Stats */
#stats {
    position: fixed;
    top: 100px;
    left: 20px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    background: rgba(10, 10, 30, 0.8);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 8px;
    padding: 10px 15px;
    backdrop-filter: blur(10px);
}

.stat-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: #00FFFF;
    letter-spacing: 0.1em;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #FF1493;
    text-shadow: 0 0 10px #FF1493;
}

/* Conversion Meter */
#conversion-meter {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 10;
    background: rgba(10, 10, 30, 0.8);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 8px;
    padding: 15px;
    backdrop-filter: blur(10px);
    width: 200px;
}

.meter-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: #00FFFF;
    margin-bottom: 10px;
}

.meter-label span {
    color: #39FF14;
    font-weight: bold;
}

.meter-bar {
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
}

.meter-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #FF1493, #8B5CF6, #00FFFF);
    border-radius: 5px;
    transition: width 0.3s ease;
    box-shadow: 0 0 15px #FF1493;
}

/* Timeline */
#timeline {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    width: 80%;
    max-width: 600px;
}

#year-slider {
    width: 100%;
    height: 8px;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    outline: none;
}

#year-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: #FF1493;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 20px #FF1493;
}

#year-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #FF1493;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 20px #FF1493;
    border: none;
}

.timeline-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: #8B5CF6;
}

.milestone {
    text-align: center;
    margin-top: 15px;
    font-size: 1rem;
    font-weight: 700;
    color: #00FFFF;
    text-shadow: 0 0 10px #00FFFF;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Fun Facts */
#fun-facts {
    position: fixed;
    bottom: 180px;
    right: 20px;
    z-index: 10;
    max-width: 300px;
    background: rgba(10, 10, 30, 0.8);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 8px;
    padding: 15px;
    backdrop-filter: blur(10px);
}

.fact-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: #39FF14;
    margin-bottom: 8px;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50%, 100% { opacity: 1; }
    25%, 75% { opacity: 0.5; }
}

.fact-text {
    font-size: 0.9rem;
    color: #fff;
    line-height: 1.4;
    transition: opacity 0.3s ease;
}

/* Controls */
#controls {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.control-btn {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    padding: 12px 24px;
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid #8B5CF6;
    color: #fff;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.control-btn:hover {
    background: rgba(139, 92, 246, 0.4);
    box-shadow: 0 0 20px #8B5CF6;
    transform: translateY(-2px);
}

.control-btn.pulse {
    animation: pulse 2s infinite;
    background: rgba(255, 20, 147, 0.3);
    border-color: #FF1493;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 10px #FF1493; }
    50% { box-shadow: 0 0 30px #FF1493, 0 0 50px #FF1493; }
}

/* Footer */
#footer {
    position: fixed;
    bottom: 10px;
    right: 20px;
    z-index: 10;
    text-align: right;
}

#footer a {
    color: #8B5CF6;
    text-decoration: none;
    font-size: 0.75rem;
    transition: color 0.3s ease;
}

#footer a:hover {
    color: #FF1493;
}

.disclaimer {
    display: block;
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 5px;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: linear-gradient(135deg, #0a0a1a 0%, #1a0a2a 100%);
    border: 2px solid #8B5CF6;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    max-width: 400px;
    margin: 20px;
    box-shadow: 0 0 50px rgba(139, 92, 246, 0.5);
    animation: modalIn 0.5s ease;
}

@keyframes modalIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-content h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #39FF14;
}

.modal-content p {
    color: #8B5CF6;
    margin-bottom: 20px;
}

.share-text {
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid #00FFFF;
    border-radius: 10px;
    padding: 15px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: #00FFFF;
    margin-bottom: 20px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    #stats {
        top: 80px;
        left: 10px;
        gap: 8px;
    }
    
    .stat-item {
        padding: 8px 12px;
    }
    
    .stat-label {
        font-size: 0.55rem;
    }
    
    .stat-value {
        font-size: 1.1rem;
    }
    
    #conversion-meter {
        top: 80px;
        right: 10px;
        width: 150px;
        padding: 10px;
    }
    
    #fun-facts {
        bottom: 200px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    #timeline {
        width: 90%;
        bottom: 100px;
    }
    
    #controls {
        bottom: 60px;
    }
    
    .control-btn {
        padding: 10px 16px;
        font-size: 0.7rem;
    }
    
    #footer {
        left: 10px;
        right: 10px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    #header {
        top: 10px;
    }
    
    .glitch {
        font-size: 1rem;
    }
    
    .subtitle {
        font-size: 0.7rem;
    }
    
    #stats {
        flex-direction: row;
        flex-wrap: wrap;
        top: 60px;
        gap: 5px;
    }
    
    .stat-item {
        flex: 1;
        min-width: 100px;
    }
    
    #conversion-meter {
        display: none;
    }
}