/* CSS Variables for theme consistency */
:root {
    --bg-color: #0d1117;
    --primary-color: #c9d1d9;
    --accent-color: #58a6ff;
    --border-color: #30363d;
    --glow-color: rgba(88, 166, 255, 0.3);
    --font-family: 'Poppins', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--primary-color);
    font-family: var(--font-family);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
    text-align: center;
}

/* Particle.js Background Styling */
#particles-js-cs {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

/* Main Content Container */
.cs-container {
    padding: 2rem;
    position: relative;
    z-index: 1;
    max-width: 800px;
    animation: fadeIn 1.5s ease-in-out;
}

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

/* Headlines */
.cs-headline {
    font-size: 4rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.cs-subheadline {
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto 3rem auto;
    color: #8b949e;
}

/* Countdown Timer */
.countdown-container {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.countdown-item {
    display: flex;
    flex-direction: column;
}

.countdown-item span {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
    background-color: rgba(22, 27, 34, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    width: 120px;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.countdown-item span.animate {
    animation: pop 0.5s ease;
}

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

.countdown-item p {
    font-size: 1rem;
    font-weight: 400;
    color: #8b949e;
    text-transform: uppercase;
}

/* Back Button */
.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 24px;
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.back-button:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
    box-shadow: 0 0 15px var(--glow-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .cs-headline { font-size: 3rem; }
    .countdown-container { gap: 1rem; }
    .countdown-item span { width: 90px; height: 90px; font-size: 2.5rem; }
}

@media (max-width: 480px) {
    .cs-headline { font-size: 2.5rem; }
    .cs-subheadline { font-size: 1rem; }
    .countdown-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
    .countdown-item span { width: 100%; height: 100px; font-size: 2.5rem; }
}
