/* Minimalist CSS inspired by Manus.im */

:root {
    /* Light Theme Variables */
    --bg-color: #fafafa;
    --text-primary: #111111;
    --text-secondary: #666666;
    --border-color: #eaeaea;
    --hover-bg: #f3f3f3;
    --accent: #000000;
}

[data-theme="dark"] {
    /* Dark Theme Variables */
    --bg-color: #111111;
    --text-primary: #f5f5f5;
    --text-secondary: #a0a0a0;
    --border-color: #333333;
    --hover-bg: #1f1f1f;
    --accent: #ffffff;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.layout {
    max-width: 640px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header & Toggle */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4rem;
}

.logo {
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: -0.02em;
}

.theme-toggle {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.25rem;
    transition: color 0.2s ease, background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* Main Content */
.content {
    flex: 1;
}

.intro {
    margin-bottom: 3rem;
}

.profile-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
}

.intro h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    letter-spacing: -0.02em;
}

.tagline {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.intro p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

h2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

/* External Links */
.links {
    margin-bottom: 4rem;
    display: flex;
    gap: 1.5rem;
}

.link-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

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

.link-arrow {
    font-size: 1.1rem;
}

/* Projects List */
.projects {
    margin-bottom: 4rem;
}

.project-list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--border-color);
}

.project-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
    transition: background-color 0.2s ease, padding 0.2s ease;
}

.project-item:hover {
    background-color: var(--hover-bg);
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.project-info h3 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.project-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.project-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* Footer */
.footer {
    padding-top: 2rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Responsive Design */
@media (max-width: 600px) {
    .layout {
        padding: 2.5rem 1.25rem;
    }

    .links {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .project-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .project-item:hover {
        padding-left: 0;
        padding-right: 0;
        background-color: transparent;
    }

    .project-meta {
        align-self: flex-start;
    }
}
