:root {
    --bg-color: #fafafa;
    --text-color: #222222;
    --text-muted: #888888;
    --text-secondary: #444444;
    --text-italic: #666666;
    --border-color: #dddddd;
    --list-item-color: #555555;
    --footer-text: #999999;
    --button-bg: #222222;
    --button-text: #ffffff;
    --transition-speed: 0.3s;
}

[data-theme="dark"] {
    --bg-color: #0e1117;
    --text-color: #f3f4f6;
    --text-muted: #9ca3af;
    --text-secondary: #d1d5db;
    --text-italic: #9ca3af;
    --border-color: #2d3139;
    --list-item-color: #9ca3af;
    --footer-text: #6b7280;
    --button-bg: #f3f4f6;
    --button-text: #0e1117;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color var(--transition-speed) ease, 
                border-color var(--transition-speed) ease, 
                color var(--transition-speed) ease;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    padding: 40px 20px;
    line-height: 1.5;
}

.wrapper {
    max-width: 700px;
    margin: 0 auto;
}

.header {
    margin-bottom: 50px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

h1 {
    font-size: 42px;
    font-weight: 600;
    margin-bottom: 8px;
    font-family: 'Courier Prime', monospace;
    letter-spacing: 1px;
}

.tagline {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* Theme Toggle Button */
.theme-toggle {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    width: 38px;
    height: 38px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    padding: 0;
    flex-shrink: 0;
    margin-top: 6px;
}

.theme-toggle:hover {
    background-color: var(--border-color);
    color: var(--text-color);
    transform: translateY(-1px);
}

.theme-toggle:active {
    transform: translateY(0);
}

.theme-toggle svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Toggle icon visibility depending on theme */
html[data-theme="dark"] .theme-toggle .moon-icon {
    display: none;
}

html:not([data-theme="dark"]) .theme-toggle .sun-icon {
    display: none;
}

.theme-toggle:hover svg {
    transform: rotate(15deg);
}

.divider {
    width: 60px;
    height: 2px;
    background-color: var(--border-color);
    margin: 30px 0;
}

.profile-section {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.profile-image {
    width: 150px;
    height: 150px;
    flex-shrink: 0;
    border-radius: 2px;
    overflow: hidden;
    border: 3px solid var(--text-color);
    transform: rotate(-2deg);
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bio {
    flex: 1;
    min-width: 250px;
}

.bio p {
    font-size: 15px;
    margin-bottom: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.bio p strong {
    font-weight: 600;
}

.bio p em {
    font-style: italic;
    color: var(--text-italic);
}

.links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.links a {
    display: inline-block;
    padding: 8px 14px;
    background-color: var(--button-bg);
    color: var(--button-text);
    text-decoration: none;
    font-size: 13px;
    border-radius: 2px;
    font-weight: 500;
    border: 2px solid var(--button-bg);
}

.links a:hover {
    background-color: transparent;
    color: var(--button-bg);
}

.links a.secondary {
    background-color: transparent;
    color: var(--button-bg);
}

.links a.secondary:hover {
    background-color: var(--button-bg);
    color: var(--button-text);
}

.section {
    margin-bottom: 45px;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    font-family: 'Courier Prime', monospace;
    letter-spacing: 0.5px;
}

.list-item {
    font-size: 14px;
    margin-bottom: 10px;
    color: var(--list-item-color);
    padding-left: 16px;
    position: relative;
}

.list-item:before {
    content: "→";
    position: absolute;
    left: 0;
}

footer {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 13px;
    color: var(--footer-text);
}

/* Project detail page styles */
.back-link {
    margin-bottom: 25px;
}

.back-link a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    font-family: 'Courier Prime', monospace;
    font-weight: 700;
    transition: color var(--transition-speed) ease;
}

.back-link a:hover {
    color: var(--text-color);
}

.project-desc {
    font-size: 15px;
    line-height: 1.75;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

/* Home page project items */
.project-item {
    margin-bottom: 12px;
    padding-left: 16px;
    position: relative;
}

.project-item:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--text-muted);
}

.project-link {
    text-decoration: none;
    color: var(--list-item-color);
    font-size: 14px;
    display: inline-block;
    transition: color var(--transition-speed) ease;
}

.project-link:hover {
    color: var(--text-color);
}

.project-name {
    font-weight: 600;
}

.project-meta {
    color: var(--list-item-color);
}

.project-link:hover .project-meta {
    color: var(--text-secondary);
}

.project-time {
    font-family: 'Courier Prime', monospace;
    font-size: 12px;
    color: var(--text-muted);
    margin-left: 4px;
}

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

    .header {
        margin-bottom: 30px;
    }

    .theme-toggle {
        margin-top: 0px;
    }

    .profile-section {
        flex-direction: column;
        gap: 20px;
    }

    .profile-image {
        width: 120px;
        height: 120px;
    }

    body {
        padding: 30px 16px;
    }
}
