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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: #fafafa;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

header {
    margin-bottom: 3rem;
}

header h1 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #111;
    margin-bottom: 0.25rem;
}

.subtitle {
    color: #666;
    font-size: 0.95rem;
}

/* Projects List */
.projects-list {
    list-style: none;
}

.project-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid #e5e5e5;
}

.project-item:first-child {
    padding-top: 0;
}

.project-item:last-child {
    border-bottom: none;
}

.project-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.project-info {
    flex: 1;
    min-width: 0;
}

.project-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.375rem;
}

.project-item h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #111;
}

.project-item .description {
    color: #555;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.project-link {
    color: #0066cc;
    text-decoration: none;
    font-size: 0.85rem;
    word-break: break-all;
}

.project-link:hover {
    text-decoration: underline;
}

.more-btn {
    display: inline-block;
    background: #111;
    color: #fff;
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.more-btn:hover {
    background: #333;
}

/* Footer */
footer {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e5e5;
    color: #999;
    font-size: 0.85rem;
}

/* Back Link */
.back-link {
    display: inline-block;
    color: #0066cc;
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.back-link:hover {
    text-decoration: underline;
}

/* Project Detail Page */
.project-detail {
    max-width: 100%;
}

.project-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.project-icon-large {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.project-detail h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111;
}

.project-detail .project-url {
    margin-bottom: 2rem;
}

.project-detail .project-url a {
    color: #0066cc;
    text-decoration: none;
    font-size: 0.9rem;
}

.project-detail .project-url a:hover {
    text-decoration: underline;
}

.project-detail section {
    margin-bottom: 1.75rem;
}

.project-detail section h2 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #111;
}

.project-detail section p,
.project-detail section ul {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.7;
}

.project-detail section ul {
    padding-left: 1.25rem;
}

.project-detail section li {
    margin-bottom: 0.375rem;
}

.visit-btn {
    display: inline-block;
    background: #0066cc;
    color: #fff;
    padding: 0.6rem 1.25rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.visit-btn:hover {
    background: #0055aa;
}

@media (max-width: 600px) {
    .container {
        padding: 2rem 1rem;
    }

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