:root {
    color-scheme: dark;
}

body {
    margin: 0;
    font-family: 'Courier New', Courier, monospace;
    background-color: #1a1a1a;
    color: #ddd;
    transition: background 0.2s, color 0.2s;
}

header,
footer {
    text-align: center;
    padding: 1rem 1rem;
    background: #222;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid #444;
}

header h1 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

header p {
    font-size: 0.9rem;
    margin-top: 0;
    opacity: 0.85;
}

nav {
    margin-top: 1rem;
}

nav a {
    margin: 0 1rem;
    text-decoration: none;
    color: #eee;
    font-weight: bold;
    font-size: 0.95rem;
    border-bottom: 2px solid transparent;
}

nav a:hover {
    border-color: #585858;
}

section {
    padding: 2rem 1rem;
    max-width: 700px;
    margin: auto;
}

h1,
h2 {
    color: #fff;
    margin-bottom: 0.5rem;
}

ul {
    padding-left: 1.2rem;
}

.skills span {
    display: inline-block;
    background: #2c2c2c;
    border-radius: 1rem;
    padding: 0.3rem 0.8rem;
    margin: 0.2rem;
    font-size: 0.85rem;
}

footer a {
    color: #4da6ff;
    text-decoration: none;
}

.toggle-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    color: #aaa;
    border: 1px solid #666;
    padding: 0.3rem 0.6rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.90rem;
}

.light-mode {
    background-color: #fefefe;
    color: #111;
}

.light-mode header,
.light-mode footer {
    background: #fafafa;
    color: #000;
}

.light-mode h1,
.light-mode h2 {
    color: #000;
}

.light-mode nav a,
.light-mode footer a {
    color: #333;
}

.light-mode nav a:hover {
    border-color: #3f3f3f;
}

.light-mode .skills span {
    background: #ddd;
    color: #111;
}