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

/* CSS Variables */
:root {
    /* Light theme variables */
    --bg-color: #ffffff;
    --text-color: #333333;
    --secondary-text: #666666;
}

[data-theme="dark"] {
    /* Dark theme variables */
    --bg-color: #111111;
    --text-color: #ffffff;
    --secondary-text: #aaaaaa;
}

/* Base Body Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    line-height: 1.6;
    background: #fff;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s, color 0.3s;
}

/* Typography */
h1 {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 2rem;
}

h2 {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4rem;
}

.nav-links {
    display: flex;
    gap: 1rem;
}

.nav-links a, .theme-toggle {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
}

.nav-links a:hover {
    color: var(--text-color);
}

.nav-links a.active {
    color: var(--text-color);
    font-weight: 600;
}

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: var(--secondary-text);
    transition: color 0.3s ease;
}

.theme-toggle:hover {
    color: var(--text-color);
}

.sun-icon {
    display: block;
}

.moon-icon {
    display: none;
}

/* SVG color inheritance */
.sun-icon,
.moon-icon {
    color: var(--secondary-text);
}

.theme-toggle:hover .sun-icon,
.theme-toggle:hover .moon-icon {
    color: var(--text-color);
}

[data-theme="light"] .sun-icon {
    display: none;
}

[data-theme="light"] .moon-icon {
    display: block;
}

[data-theme="dark"] .sun-icon {
    display: block;
}

[data-theme="dark"] .moon-icon {
    display: none;
}

/* Home Icon */
.home-icon svg {
    color: var(--secondary-text);
    stroke: var(--secondary-text);
    transition: color 0.2s, stroke 0.2s;
}

.home-icon:hover svg {
    color: var(--text-color);
    stroke: var(--text-color);
}

.home-icon.active svg {
    color: var(--text-color);
    stroke: var(--text-color);
}

/* Footer */
.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 4rem;
}

.social-icon {
    color: #666;
    text-decoration: none;
    transition: transform 0.2s ease, color 0.2s ease;
    font-size: 0.9rem;
}

.social-icon:hover {
    color: var(--text-color);
}