/* Import Google Fonts for a modern look */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

:root {
    --bg-color: #f5f5f5; /* Light gray for clean background */
    --text-color: #333333; /* Dark gray for readability */
    --header-bg: #1a1a1a; /* Near-black for header */
    --header-text: #ffffff;
    --footer-bg: #1a1a1a;
    --footer-text: #ffffff;
    --link-color: #4a4a4a; /* Medium gray for links */
    --accent-color: #b0b0b0; /* Light gray for hovers */
    --section-bg: #ffffff; /* White for section pills in light mode */
    --section-border: #d0d0d0; /* Light gray border */
    --section-shadow: rgba(0,0,0,0.2);
}

[data-theme="dark"] {
    --bg-color: #1c1c1c; /* Dark gray for depth */
    --text-color: #d0d0d0; /* Light gray for contrast */
    --header-bg: #121212; /* Deeper black for header */
    --header-text: #ffffff;
    --footer-bg: #121212;
    --footer-text: #ffffff;
    --link-color: #a0a0a0; /* Lighter gray for links */
    --accent-color: #e0e0e0; /* Bright gray for hovers */
    --section-bg: #2a2a2a; /* Slightly lighter gray for section pills in dark mode */
    --section-border: #4a4a4a; /* Darker gray border */
    --section-shadow: rgba(0,0,0,0.4);
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background-color: var(--bg-color);
    color: var(--text-color);
}

header {
    background: var(--header-bg);
    color: var(--header-text);
    padding: 1rem;
    position: relative;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

header h1 {
    margin: 0;
    text-align: center;
    font-size: 1.8rem;
    font-weight: 600;
}

#theme-toggle {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    background: none;
    border: 2px solid var(--header-text);
    border-radius: 50%;
    color: var(--header-text);
    font-size: 1.1rem;
    padding: 0.4rem;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
}

#theme-toggle:hover {
    background: var(--accent-color);
    color: var(--header-bg);
}

main {
    max-width: 850px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--section-bg);
    border: 1px solid var(--section-border);
    border-radius: 6px;
    box-shadow: 0 4px 10px var(--section-shadow);
}

section h2 {
    color: var(--text-color);
    font-weight: 600;
    margin-top: 0;
    font-size: 1.5rem;
}

section ul {
    list-style: none;
    padding: 0;
}

section ul li {
    margin-bottom: 0.8rem;
    font-size: 1rem;
}

section ul li strong {
    color: var(--link-color);
}

footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    text-align: center;
    padding: 1rem;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.3);
}

footer a {
    color: var(--footer-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--accent-color);
}

a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

@media (max-width: 600px) {
    header h1 {
        font-size: 1.4rem;
    }

    #theme-toggle {
        position: static;
        transform: none;
        display: block;
        margin: 0.4rem auto 0;
        text-align: center;
    }

    main {
        padding: 1rem;
    }

    section {
        padding: 1rem;
    }
}