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

body {
    font-family: 'Malgun Gothic', '맑은 고딕', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
    padding: 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 50px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.header {
    text-align: center;
    border-bottom: 3px solid #2c3e50;
    padding-bottom: 30px;
    margin-bottom: 40px;
}

.header h1 {
    font-size: 36px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 10px;
}

.header .subtitle {
    font-size: 18px;
    color: #53595a;
    margin-bottom: 20px;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.contact-info a {
    color: #3498db;
    text-decoration: none;
    font-size: 14px;
}

.contact-info a:hover {
    text-decoration: underline;
}

.section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 24px;
    background: #3498db;
}

.about-content {
    background: #f8f9fa;
    padding: 20px;
    border-left: 4px solid #3498db;
    margin-bottom: 20px;
}

.about-content p {
    margin-bottom: 10px;
    line-height: 1.8;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.skill-category {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
}

.skill-category h4 {
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    background: #3498db;
    color: white;
    padding: 5px 12px;
    border-radius: 3px;
    font-size: 12px;
}

.skill-tag.secondary {
    background: #95a5a6;
}

.project-item {
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
}

.project-header {
    padding: 20px;
    cursor: pointer;
    background: white;
    transition: background 0.3s;
}

.project-header:hover {
    background: #f8f9fa;
}

/* 2열 레이아웃: 좌측 썸네일, 우측 텍스트 */
.project-header-content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

/* 좌측 썸네일 영역 */
.project-thumbnail-container {
    flex: 0 0 300px;
    min-width: 300px;
}

.project-thumbnail {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    background: #f8f9fa;
    padding: 10px;
}

/* 우측 텍스트 정보 영역 */
.project-info-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.project-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.project-title {
    font-size: 20px;
    font-weight: bold;
    color: #2c3e50;
}

.project-period {
    color: #7f8c8d;
    font-size: 14px;
    margin-top: 5px;
}

.expand-icon {
    color: #3498db;
    font-size: 20px;
    transition: transform 0.3s;
    flex-shrink: 0;
}

.project-item.expanded .expand-icon {
    transform: rotate(180deg);
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-tag {
    background: #ecf0f1;
    color: #2c3e50;
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 12px;
}

.project-summary {
    font-size: 15px;
    color: #555;
    line-height: 1.8;
    font-weight: 500;
}

.project-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
    border-top: 1px solid #e0e0e0;
}

.project-item.expanded .project-details {
    max-height: 3000px;
    transition: max-height 0.5s ease-in;
}

.project-details-content {
    padding: 20px;
    background: #fafbfc;
}

.project-section {
    margin-bottom: 20px;
}

.project-section h4 {
    font-size: 16px;
    color: #2c3e50;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.project-section ul {
    list-style: none;
    padding-left: 0;
}

.project-section li {
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
    line-height: 1.6;
    color: #555;
}

.project-section li::before {
    content: '•';
    position: absolute;
    left: 5px;
    color: #3498db;
    font-weight: bold;
}

/* 상세 페이지 내 이미지 스타일 */
.project-detail-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    margin: 15px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.activity-item {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

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

.activity-period {
    min-width: 150px;
    color: #7f8c8d;
    font-size: 14px;
}

.activity-content h4 {
    font-size: 16px;
    color: #2c3e50;
    margin-bottom: 5px;
}

.activity-content p {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.cert-item {
    background: #f8f9fa;
    padding: 15px;
    border-left: 3px solid #3498db;
}

.cert-name {
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 5px;
}

.cert-details {
    font-size: 13px;
    color: #7f8c8d;
}

.edu-item {
    margin-bottom: 15px;
}

.edu-item h4 {
    font-size: 16px;
    color: #2c3e50;
    margin-bottom: 5px;
}

.edu-item p {
    font-size: 14px;
    color: #7f8c8d;
}

.footer {
    margin-top: 50px;
    text-align: center;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
    color: #7f8c8d;
    font-size: 14px;
}

@media print {
    body {
        background: white;
        padding: 0;
    }

    .container {
        box-shadow: none;
        padding: 20px;
    }

    .project-details {
        max-height: none !important;
    }

    .expand-icon {
        display: none;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 30px 20px;
    }

    .header h1 {
        font-size: 28px;
    }

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

    .project-header-content {
        flex-direction: column;
    }

    .project-thumbnail-container {
        flex: 0 0 auto;
        min-width: 100%;
        width: 100%;
    }

    .activity-item {
        flex-direction: column;
        gap: 10px;
    }
}