:root {
    --primary-color: #2D3748;
    --primary-glow: rgba(96,165,250,0.15);
    --secondary-glow-1: rgba(96,165,250,0.08);
    --secondary-glow-2: rgba(96,165,250,0.05);
    --body-bg-1: rgba(255,255,255,0.6);
    --body-bg-2: rgba(226,232,240,0.8);

    --secondary-color: #718096;
    --accent-color: #4299E1;
    --text-light: #F7FAFC;
    --text-dark: #1A202C;
    --text-body: #4A5568;
    --text: var(--text-dark);
    --background-light: #F7FAFC;
    --background-alt: #EDF2F7;
    --border-color: #E2E8F0;
    --card-shadow: 0 8px 20px rgba(0,0,0,0.07);
    --header-bg: rgba(247, 250, 252, 0.8);
    --card-bg: var(--glass-bg);
    --glass-bg: linear-gradient(135deg, rgba(255,255,255,0.4), rgba(255,255,255,0.1));
}

html.dark {
    --primary-color: #4DB6AC; /* Teal for dark mode */
    --primary-glow: rgba(77, 182, 172, 0.15);
    --secondary-glow-1: rgba(77, 182, 172, 0.08);
    --secondary-glow-2: rgba(77, 182, 172, 0.05);
    --body-bg-1: rgba(26,32,44,0.6);
    --body-bg-2: rgba(45,55,72,0.8);

    --secondary-color: #A0AEC0;
    --accent-color: #63B3ED; /* Lighter blue for dark mode */
    --text-light: #F7FAFC;
    --text-dark: #EDF2F7;
    --text-body: #CBD5E0;
    --text: var(--text-dark);
    --background-light: #1A202C;
    --background-alt: #1A202C; /* Make alt bg same as main dark bg */
    --border-color: #4A5568;
    --card-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 4px 10px rgba(0, 0, 0, 0.2);
    --header-bg: rgba(26, 32, 44, 0.8);
    --card-bg: linear-gradient(135deg, rgba(45, 55, 72, 0.75), rgba(26, 32, 44, 0.5));
    --glass-bg: linear-gradient(135deg, rgba(45, 55, 72, 0.6), rgba(26, 32, 44, 0.4));
}

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

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.7;
    color: var(--text);
    background-color: var(--background-light); /* Solid base color for the page */
    background-image: radial-gradient(circle at top left, var(--body-bg-1) 0%, var(--body-bg-2) 100%);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: -0.01em;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    color: var(--text);
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: 3rem; font-weight: 700; line-height: 1.1; margin-bottom: 1.5rem; }
h2 { font-size: 2.25rem; font-weight: 600; line-height: 1.2; margin-bottom: 1.25rem; }
h3 { font-size: 1.5rem; font-weight: 500; line-height: 1.3; margin-bottom: 1rem; }
h4 { font-size: 1.1rem; font-weight: 500; line-height: 1.4; margin-bottom: 0.75rem; }
p { margin-bottom: 1.25rem; }
a { color: var(--accent-color); text-decoration: none; transition: color 0.2s ease-in-out; }
a:hover { color: color-mix(in srgb, var(--accent-color) 80%, var(--text) 20%); }

section {
    padding: 4rem 0;
    overflow-x: hidden;
}

.alt-bg {
    background-color: var(--background-alt);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.text-page {
    padding: 4rem 0;
    display: flex;
    justify-content: center;
}

.text-page .container {
    max-width: 800px;
    text-align: left;
}

img {
    max-width: 100%;
    height: auto;
    display: block; /* Removes extra space below images */
}
