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

:root {
    --text: #1a1a1a;
    --text-muted: #555;
    --bg: #fafafa;
    --accent: #059669;
    --border: #e0e0e0;
}

[data-theme="dark"] {
    --text: #f5f5f5;
    --text-muted: #b8b8b8;
    --bg: #121212;
    --accent: #34d399;
    --border: #333;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    transition: background 0.3s, color 0.3s;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    z-index: 100;
    transition: background 0.3s;
}

nav {
    max-width: 700px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.leaf {
    color: var(--accent);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--text-muted);
    font-size: 14px;
}

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

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.4rem 0.6rem;
    font-size: 14px;
    border-radius: 4px;
    transition: border-color 0.2s;
}

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

/* Main */
main {
    max-width: 700px;
    margin: 0 auto;
    padding: 6rem 1.5rem 3rem;
}

section {
    margin-bottom: 3rem;
}

/* Hero */
#hero {
    padding: 2rem 0 3rem;
    border-bottom: 1px solid var(--border);
}

#hero h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.tagline {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.intro {
    color: var(--text-muted);
}

.links {
    margin-top: 1.5rem;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.links a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.links svg {
    flex-shrink: 0;
}

/* Section Headers */
h2 {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* About */
#about p {
    color: var(--text-muted);
}

/* Skills */
.skills-heading {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text);
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

.skills-heading:first-of-type {
    margin-top: 0;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
}

.skills-list span {
    color: var(--text-muted);
}

.skills-list span::before {
    content: '› ';
    color: var(--accent);
}

/* Experience */
.job {
    margin-bottom: 2rem;
}

.job:last-child {
    margin-bottom: 0;
}

.job-header {
    margin-bottom: 0.5rem;
}

.job-title {
    font-weight: 600;
}

.job-meta {
    color: var(--text-muted);
    font-size: 14px;
}

.job ul {
    color: var(--text-muted);
    margin-left: 1rem;
    font-size: 14px;
}

.job li {
    margin-bottom: 0.25rem;
}

/* Education */
.edu-title {
    font-weight: 600;
}

.edu-meta {
    color: var(--text-muted);
    font-size: 14px;
}

.edu-details {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 0.25rem;
}

/* Contact */
#contact .links {
    margin-top: 0;
}

/* Footer */
footer {
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 13px;
}

/* Fade in animation */
.fade-in {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 600px) {
    .nav-links {
        display: none;
    }

    #hero h1 {
        font-size: 1.25rem;
    }
}
