/* ======================
   THEME VARIABLES
====================== */

:root {
    --bg: #0f172a;
    --text: #e5e7eb;
    --card: #020617;
    --muted: #94a3b8;
    --accent: #38bdf8;
    --border: #1e293b;
}

[data-theme="light"] {
    --bg: #ffffff;
    --text: #0f172a;
    --card: #f8fafc;
    --muted: #475569;
    --accent: #2563eb;
    --border: #e2e8f0;
}

/* ======================
   BASE STYLES
====================== */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    transition: background 0.3s ease, color 0.3s ease;
}

header {
    text-align: center;
    padding: 4rem 1rem 3rem;
    border-bottom: 1px solid var(--border);
}
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 40px;
}

.header-left {
    flex: 1;
}

.header-right {
    flex-shrink: 0;
}

.avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #333; /* optional subtle border */
}


h1 {
    font-size: 3rem;
    margin-bottom: 0.3rem;
}

.subtitle {
    font-size: 1.3rem;
    color: var(--accent);
}

.tagline {
    max-width: 650px;
    margin: 1rem auto;
    color: var(--muted);
}

.links a {
    margin: 0 10px;
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

section {
    max-width: 900px;
    margin: auto;
    padding: 2.5rem 1.2rem;
}

h2 {
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

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

li {
    margin-bottom: 0.6rem;
}

footer {
    text-align: center;
    padding: 2rem;
    color: var(--muted);
    border-top: 1px solid var(--border);
}

/* ======================
   THEME TOGGLE BUTTON
====================== */

.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.theme-toggle:hover {
    background: var(--accent);
    color: #fff;
}
