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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
    padding: 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
}

/* Navigation */
.site-nav {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ddd;
}

.site-nav a {
    color: #333;
    text-decoration: none;
    margin-right: 20px;
    font-weight: 500;
}

.site-nav a:hover {
    color: #8b5fbf;
}

/* Header */
header {
    margin-bottom: 40px;
    border-bottom: 2px solid #8b5fbf;
    padding-bottom: 20px;
}

h1 {
    color: #8b5fbf;
    font-size: 2.5rem;
    margin-bottom: 8px;
}

.subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 12px;
}

.contact {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.contact a {
    color: #333;
    text-decoration: none;
}

.contact a:hover {
    color: #8b5fbf;
}

/* Sections */
section {
    margin-bottom: 40px;
}

h2 {
    color: #8b5fbf;
    font-size: 1.8rem;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 8px;
}

h3 {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

h4 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: #555;
}

/* Experience */
.job {
    margin-bottom: 30px;
}

.job-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.job-meta {
    text-align: right;
}

.company {
    font-style: italic;
    color: #666;
    margin-bottom: 8px;
}

.location, .dates {
    font-size: 0.95rem;
    color: #666;
}

.job ul {
    margin-left: 20px;
    margin-top: 8px;
}

.job li {
    margin-bottom: 8px;
}

/* Projects */
.project {
    margin-bottom: 20px;
}

.project ul {
    margin-left: 20px;
    margin-top: 4px;
}

/* Technical */
.tech-grid {
    display: grid;
    gap: 20px;
}

.tech-category {
    margin-bottom: 12px;
}

.tech-category p {
    color: #555;
    line-height: 1.8;
}

/* Education */
.education-header {
    display: flex;
    justify-content: space-between;
}

.education-meta {
    text-align: right;
}

/* Homepage specific styles */
.about-content {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid #8b5fbf;
}

.about-text {
    flex: 1;
}

.about-placeholder {
    font-style: italic;
    color: #666;
    padding: 20px;
    background: #f9f9f9;
    border-left: 3px solid #8b5fbf;
}

.work-summary {
    display: grid;
    gap: 20px;
}

.work-item {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

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

.work-item h3 {
    margin-bottom: 8px;
}

.work-item .role {
    color: #666;
    font-size: 1rem;
    margin-bottom: 4px;
}

.work-item .dates {
    font-size: 0.9rem;
    color: #999;
}

.project-card {
    margin-bottom: 25px;
    padding: 25px;
    background: #fafafa;
    border-radius: 8px;
    border-left: 4px solid #8b5fbf;
}

.project-card h3 {
    margin-bottom: 12px;
    color: #333;
}

.project-card p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 12px;
}

.project-card p:last-of-type {
    margin-bottom: 0;
}

.tech-list {
    margin-top: 15px;
    margin-left: 20px;
    list-style-type: disc;
}

.tech-list li {
    color: #555;
    line-height: 1.8;
    margin-bottom: 6px;
}

.strikethrough {
    text-decoration: line-through;
    color: #999;
}

#contact p {
    font-size: 1.1rem;
}

#contact a {
    color: #8b5fbf;
    text-decoration: none;
    font-weight: 500;
}

#contact a:hover {
    text-decoration: underline;
}

/* Q&A */
.qna-item {
    margin-bottom: 30px;
}

.qna-item h3 {
    color: #333;
    margin-bottom: 12px;
}

.qna-item p {
    color: #555;
    line-height: 1.7;
    padding-left: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    .about-content {
        flex-direction: column;
        align-items: center;
    }

    .avatar {
        margin-bottom: 20px;
    }

    .job-header,
    .education-header {
        flex-direction: column;
    }

    .job-meta,
    .education-meta {
        text-align: left;
        margin-top: 8px;
    }

    .contact {
        flex-direction: column;
        gap: 8px;
    }
}
