:root {
    --bg-color: #050505;
    --text-color: #ffffff;
    --neon-red: #ff004c;
    --neon-blue: #00f3ff;
    --neon-gold: #ffd700;
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.1);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Noto Sans SC', sans-serif;
    overflow-x: hidden;
    min-height: 100vh;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 0;
    margin-bottom: 2rem;
}

.glitch-wrapper {
    display: inline-block;
    position: relative;
}

.glitch {
    font-family: 'Orbitron', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    color: var(--text-color);
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

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

.glitch::before {
    left: 2px;
    text-shadow: -1px 0 var(--neon-red);
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -1px 0 var(--neon-blue);
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(17px, 9999px, 94px, 0); }
    20% { clip: rect(32px, 9999px, 5px, 0); }
    40% { clip: rect(88px, 9999px, 32px, 0); }
    60% { clip: rect(4px, 9999px, 86px, 0); }
    80% { clip: rect(62px, 9999px, 14px, 0); }
    100% { clip: rect(28px, 9999px, 59px, 0); }
}

@keyframes glitch-anim-2 {
    0% { clip: rect(65px, 9999px, 100px, 0); }
    20% { clip: rect(22px, 9999px, 45px, 0); }
    40% { clip: rect(10px, 9999px, 83px, 0); }
    60% { clip: rect(55px, 9999px, 12px, 0); }
    80% { clip: rect(38px, 9999px, 66px, 0); }
    100% { clip: rect(92px, 9999px, 30px, 0); }
}

.subtitle {
    font-family: 'Orbitron', sans-serif;
    color: var(--neon-blue);
    letter-spacing: 2px;
    margin-top: 0.5rem;
    font-size: 1.2rem;
    text-shadow: 0 0 10px var(--neon-blue);
}

/* Fireworks Canvas */
#fireworks-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.fireworks-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 300px;
    margin: 2rem auto;
    border-radius: 16px;
    overflow: hidden;
    /* Optional: Add a subtle border to show the area */
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.2);
}

/* Glassmorphism Cards */
.glass-panel {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-panel:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
    border-color: var(--neon-blue);
}

/* Timeline Section */
.timeline-section {
    margin-bottom: 4rem;
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: var(--text-color);
    border-bottom: 2px solid var(--neon-red);
    display: inline-block;
    padding-bottom: 0.5rem;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.time-card {
    text-align: center;
    position: relative;
    overflow: hidden;
}

.time-card.highlight {
    border-color: var(--neon-red);
    box-shadow: 0 0 15px rgba(255, 0, 76, 0.2);
}

.time-card.gold {
    border-color: var(--neon-gold);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
}

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

.time-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.countdown {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    margin: 1rem 0;
    color: var(--neon-blue);
}

.time-card.highlight .countdown {
    color: var(--neon-red);
}

.time-card.gold .countdown {
    color: var(--neon-gold);
}

.card-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.badge {
    display: inline-block;
    background: var(--neon-red);
    color: #fff;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-top: 0.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* Calendar Section */
.calendar-section {
    margin-bottom: 4rem;
}

.calendar-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.calendar-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--neon-blue);
    font-family: 'Orbitron', sans-serif;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    position: relative;
    transition: all 0.3s ease;
    cursor: default;
    background: rgba(0, 0, 0, 0.3);
}

.calendar-day:hover {
    background: rgba(255, 255, 255, 0.1);
}

.calendar-day.empty {
    background: transparent;
    border: none;
}

.calendar-day .date-num {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.calendar-day .date-label {
    font-size: 0.7rem;
    opacity: 0.8;
}

/* Special Dates */
.calendar-day.today {
    border-color: var(--neon-blue);
    box-shadow: 0 0 10px var(--neon-blue) inset;
}

.calendar-day.valentine {
    border-color: #ff69b4;
    color: #ff69b4;
    box-shadow: 0 0 15px rgba(255, 105, 180, 0.3);
}

.calendar-day.eve {
    border-color: var(--neon-red);
    color: var(--neon-red);
    box-shadow: 0 0 15px rgba(255, 0, 76, 0.3);
}

.calendar-day.cny {
    border-color: var(--neon-gold);
    color: var(--neon-gold);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

/* Info Section */
.info-section {
    margin-bottom: 4rem;
}

.info-card h2 {
    color: var(--neon-red);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-content {
    line-height: 1.6;
}

.missing-years {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.year-tag {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-family: 'Orbitron', sans-serif;
}

.year-tag.active {
    background: var(--neon-red);
    color: #fff;
    box-shadow: 0 0 10px var(--neon-red);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 768px) {
    .glitch {
        font-size: 2.5rem;
    }
    
    .horse-container {
        width: 150px;
        height: 150px;
    }
    
    .countdown {
        font-size: 1.5rem;
    }
    
    .calendar-day .date-num {
        font-size: 1rem;
    }
    
    .calendar-day .date-label {
        font-size: 0.6rem;
        transform: scale(0.8);
    }
}
