/* 기본 스타일 리셋 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 이력서 메인 컨테이너 */
.resume {
    background: white;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    min-height: 100vh;
}

/* 헤더 섹션 */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    text-align: center;
}

.name {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.title {
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 20px;
    opacity: 0.9;
}

.intro {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 30px;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.contact-item .label {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 5px;
    font-weight: 500;
}

.contact-item .value {
    font-size: 1rem;
    font-weight: 600;
}

/* 섹션 공통 스타일 */
.section {
    padding: 30px 40px;
    border-bottom: 1px solid #eee;
}

.section:last-child {
    border-bottom: none;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
    display: inline-block;
}

/* 학력 섹션 */
.education-item h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.period {
    color: #666;
    font-size: 0.95rem;
    font-style: italic;
}

/* 경력 섹션 */
.experience-item h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.experience-item .period {
    color: #667eea;
    font-weight: 500;
    font-size: 1rem;
    margin-bottom: 15px;
}

.description {
    color: #555;
    line-height: 1.7;
    text-align: justify;
}

/* 기술 스택 섹션 */
.tech-stack {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.tech-category {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.tech-category h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.tech-category p {
    font-size: 1rem;
    font-weight: 500;
    color: #667eea;
    margin-bottom: 8px;
}

.tech-desc {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

/* 수상경력 섹션 */
.awards {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.award-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #28a745;
}

.award-name {
    font-weight: 600;
    color: #333;
    font-size: 1rem;
}

.award-rank {
    background: #28a745;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* 주요 능력 및 역량 섹션 */
.skills {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.skill-category h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    padding-left: 15px;
    border-left: 4px solid #667eea;
}

.skill-category ul {
    list-style: none;
    padding-left: 0;
}

.skill-category li {
    margin-bottom: 15px;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    line-height: 1.6;
}

.skill-category strong {
    color: #667eea;
    font-weight: 600;
}


/* 반응형 디자인 */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .header {
        padding: 30px 20px;
    }
    
    .name {
        font-size: 2rem;
    }
    
    .title {
        font-size: 1.1rem;
    }
    
    .intro {
        font-size: 0.95rem;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .section {
        padding: 20px;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .tech-stack {
        grid-template-columns: 1fr;
    }
    
    .award-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .skill-category li {
        padding: 12px 15px;
    }
}

@media (max-width: 480px) {
    .name {
        font-size: 1.8rem;
    }
    
    .header {
        padding: 20px 15px;
    }
    
    .section {
        padding: 15px;
    }
    
    .download-btn {
        padding: 12px 25px;
        font-size: 1rem;
    }
}

/* 인쇄용 스타일 */
@media print {
    body {
        background: white;
    }
    
    .container {
        padding: 0;
    }
    
    .resume {
        box-shadow: none;
        border-radius: 0;
        max-width: none;
        width: 100%;
        min-height: auto;
    }
    
    .controls {
        display: none;
    }
    
    .header {
        background: #667eea !important;
        -webkit-print-color-adjust: exact;
        color-adjust: exact;
    }
    
    .section {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    .skill-category {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    .tech-stack {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .contact-info {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}

/* PDF 생성을 위한 추가 스타일 */
.resume {
    position: relative;
    overflow: visible;
}

.section {
    position: relative;
    z-index: 1;
}



