/* Default (Light Theme) Variables */
:root {
    --bg-color: #f8f9fa;                     /* Very light grey, almost white */
    --container-bg-color: #ffffff;           /* White for the container card */
    --container-shadow-color: rgba(0, 0, 0, 0.075); /* Softer shadow */
    --text-color: #212529;                   /* Dark grey for body text */
    --heading-color: #0d6efd;                /* Bootstrap's primary blue */
    --link-color: #0a58ca;                   /* Darker blue for links */
    --accent-color: #6f42c1;                 /* A modern purple for accents */
    --border-color: #dee2e6;                 /* Light grey border */
    --countdown-span-bg: rgba(0, 0, 0, 0.04);/* Subtle background for countdown items */
    --font-family-sans-serif: 'Roboto', sans-serif;
}

/* Dark Theme Variables */
html[data-theme="dark"] {
    --bg-color: #121212;                     /* Very dark grey, standard for dark UIs */
    --container-bg-color: #121212;           /* SAME as body bg for seamless look */
    --container-shadow-color: rgba(0, 0, 0, 0.4); /* Darker, more diffused shadow */
    --text-color: #e9ecef;                   /* Light grey for text */
    --heading-color: #0dcaf0;                /* Bright cyan for headings */
    --link-color: #63e2ff;                   /* Lighter cyan for links */
    --accent-color: #ffc107;                 /* Bright yellow for accents */
    --border-color: #343a40;                 /* Darker border for subtle separation */
    --countdown-span-bg: rgba(255, 255, 255, 0.08);/* Lighter background for countdown items */
}

body {
    font-family: var(--font-family-sans-serif);
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease;
    padding: 20px; /* Add some padding to body for smaller screens */
    box-sizing: border-box;
}

.container {
    padding: 30px 40px;
    background-color: var(--container-bg-color);
    border-radius: 12px; /* More rounded corners */
    box-shadow: 0 8px 30px var(--container-shadow-color);
    animation: fadeIn 0.8s ease-out;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    max-width: 650px;
    width: 100%; /* Responsive width */
    border: 1px solid var(--border-color); /* Subtle border */
}

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

h1 {
    font-size: clamp(2em, 5vw, 2.8em); /* Responsive font size */
    margin-bottom: 0.6em;
    color: var(--heading-color);
    font-weight: 700;
}

p {
    font-size: clamp(1em, 2.5vw, 1.15em); /* Responsive font size */
    line-height: 1.7;
    margin-bottom: 1.2em;
}

a {
    color: var(--link-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--heading-color);
    text-decoration: underline;
}

#countdown {
    font-size: clamp(1.5em, 4vw, 1.9em); /* Responsive font size */
    margin: 30px 0;
    color: var(--accent-color);
    font-weight: 700;
}

#countdown span {
    display: inline-block;
    padding: 10px 18px;
    background-color: var(--countdown-span-bg);
    border-radius: 8px;
    margin: 5px 8px; /* Adjusted margin for better wrapping on small screens */
    transition: background-color 0.3s ease, color 0.3s ease;
    border: 1px solid transparent; /* Base border */
}

:root #countdown span { /* Light theme specific countdown span styling */
    border-color: rgba(0,0,0,0.08);
}

html[data-theme="dark"] #countdown span { /* Dark theme specific countdown span styling */
    border-color: rgba(255,255,255,0.15);
    color: var(--accent-color); /* Ensure countdown text color uses accent in dark mode */
}

footer {
    margin-top: 40px;
    font-size: 0.9em;
    opacity: 0.7;
}

/* Contact section specific styling if needed */
.contact p {
    font-size: clamp(0.9em, 2vw, 1em); /* Slightly smaller for contact line */
}