/* Resume Style Sheet */
* {
    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: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

/* Scroll Progress Bar */
.scroll-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 10000;
    backdrop-filter: blur(10px);
}

.scroll-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #8BC34A, #FFC107, #FF5722);
    width: 0%;
    transition: width 0.1s ease-out;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.6);
    border-radius: 0 2px 2px 0;
}

.resume-container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
}

/* Language Toggle */
.language-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 100;
}

/* Career Years - 상단 왼쪽에 배치 */
#career-years {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 16px;
    border-radius: 25px;
    font-weight: 600;
    color: #667eea;
    font-size: 0.9rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

/* PDF Download Button - 오른쪽 하단 고정 */
.pdf-download-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 12px 20px;
    border: 2px solid #28a745;
    background: white;
    color: #28a745;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
}

.pdf-download-btn:hover {
    background: #28a745;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
}

.lang-btn {
    padding: 8px 16px;
    border: 2px solid #667eea;
    background: white;
    color: #667eea;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.lang-btn.active {
    background: #667eea;
    color: white;
}

.lang-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

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

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.1;
}

.profile-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 20px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: bold;
    backdrop-filter: blur(10px);
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.name {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.title {
    font-size: 1.3rem;
    opacity: 0.9;
    font-weight: 400;
    position: relative;
    z-index: 1;
}

/* Contact Info */
.contact-info {
    background: #f8f9fa;
    padding: 30px 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
}

.contact-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

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

/* Main Content */
.main-content {
    padding: 40px;
}

.section {
    margin-bottom: 70px;
}

.section:last-child {
    margin-bottom: 0;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #667eea;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

/* Introduction */
.intro-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
    border-left: 5px solid #667eea;
    margin-bottom: 70px;
}

/* Strengths */
.strengths-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.strength-item {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
}

.strength-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.strength-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.strength-desc {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Skills */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.skill-category {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.skill-category-title {
    font-weight: 600;
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

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

.skill-tag {
    background: white;
    color: #333;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: #667eea;
    color: white;
    transform: translateY(-1px);
}

/* Experience */
.experience-item {
    background: white;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border-left: 5px solid #667eea;
    transition: all 0.3s ease;
}

.experience-item:hover {
    transform: translateX(5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.exp-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
}

.exp-period {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.exp-role {
    color: #667eea;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.exp-description {
    color: #555;
    line-height: 1.7;
}

.exp-description ul {
    margin-left: 20px;
    margin-top: 10px;
}

.exp-description li {
    margin-bottom: 8px;
    color: #666;
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.project-category {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border-top: 4px solid #667eea;
}

.project-category-title {
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.project-item {
    margin-bottom: 12px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.project-item:hover {
    background: #e9ecef;
    transform: translateX(3px);
}

.project-name {
    font-weight: 600;
    color: #667eea;
    font-size: 0.95rem;
    text-decoration: none;
    display: block;
}

.project-name:hover {
    text-decoration: underline;
    color: #5a6fd8;
}

a.project-name {
    transition: color 0.3s ease;
}

.project-desc {
    color: #666;
    font-size: 0.85rem;
    margin-top: 3px;
}

/* Education & Certifications */
.education-item, .cert-item {
    background: white;
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.education-item:hover, .cert-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.edu-cert-title {
    font-weight: 600;
    color: #333;
}

.edu-cert-period {
    color: #667eea;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .resume-container {
        margin: 0;
        border-radius: 10px;
        max-width: 100%;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .header {
        padding: 50px 20px 30px;
    }

    .main-content {
        padding: 25px 15px;
    }

    .contact-info {
        padding: 15px;
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .contact-item {
        padding: 12px;
        font-size: 0.9rem;
    }

    .name {
        font-size: 1.8rem;
    }

    .title {
        font-size: 1.1rem;
    }

    .language-toggle {
        top: 8px;
        right: 8px;
        flex-direction: row;
        gap: 8px;
    }

    .lang-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    #career-years {
        font-size: 0.75rem;
        padding: 5px 10px;
        top: 8px;
        left: 8px;
    }

    .pdf-download-btn {
        bottom: 15px;
        right: 15px;
        padding: 8px 14px;
        font-size: 0.85rem;
        gap: 6px;
    }

    .section {
        margin-bottom: 40px;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }

    .intro-text {
        font-size: 1rem;
        padding: 20px;
        margin-bottom: 40px;
    }

    .strengths-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .strength-item {
        padding: 15px;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .skill-category {
        padding: 15px;
    }

    .experience-item {
        padding: 20px;
        margin-bottom: 15px;
    }

    .exp-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .exp-title {
        font-size: 1.2rem;
    }

    .exp-period {
        padding: 4px 12px;
        font-size: 0.85rem;
    }

    .exp-description {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .project-category {
        padding: 15px;
    }

    .education-item, .cert-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 12px 15px;
    }

    .edu-cert-title {
        font-size: 0.95rem;
    }

    .edu-cert-period {
        font-size: 0.85rem;
    }
}

/* Extra small devices (phones, 480px and down) */
@media (max-width: 480px) {
    body {
        padding: 5px;
    }

    .resume-container {
        border-radius: 5px;
    }

    .header {
        padding: 45px 15px 25px;
    }

    .main-content {
        padding: 20px 12px;
    }

    .profile-img {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }

    .name {
        font-size: 1.6rem;
    }

    .title {
        font-size: 1rem;
    }

    .contact-info {
        padding: 12px;
    }

    .contact-item {
        padding: 10px;
        font-size: 0.85rem;
    }

    .language-toggle {
        top: 5px;
        right: 5px;
    }

    .lang-btn {
        padding: 5px 10px;
        font-size: 0.75rem;
    }

    #career-years {
        font-size: 0.7rem;
        padding: 4px 8px;
        top: 5px;
        left: 5px;
    }

    .pdf-download-btn {
        bottom: 10px;
        right: 10px;
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .intro-text {
        font-size: 0.95rem;
        padding: 15px;
    }

    .strength-item, .skill-category, .project-category {
        padding: 12px;
    }

    .experience-item {
        padding: 15px;
    }

    .exp-title {
        font-size: 1.1rem;
    }

    .project-name {
        font-size: 0.9rem;
    }

    .project-desc {
        font-size: 0.8rem;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
        padding: 0;
    }

    .resume-container {
        box-shadow: none;
        border-radius: 0;
    }

    .language-toggle {
        display: none;
    }

    #career-years {
        display: none;
    }

    .pdf-download-btn {
        display: none;
    }
    
    .scroll-progress-container {
        display: none;
    }

    /* 페이지 브레이크 방지 */
    .section {
        page-break-inside: avoid;
        break-inside: avoid;
    }

    .experience-item {
        page-break-inside: avoid;
        break-inside: avoid;
        margin-bottom: 15px;
    }

    .project-category {
        page-break-inside: avoid;
        break-inside: avoid;
    }

    .strength-item {
        page-break-inside: avoid;
        break-inside: avoid;
    }

    .education-item, .cert-item {
        page-break-inside: avoid;
        break-inside: avoid;
    }

    /* 섹션 제목 다음에 페이지 브레이크 방지 */
    .section-title {
        page-break-after: avoid;
        break-after: avoid;
    }

    /* 경험 항목 헤더 다음에 페이지 브레이크 방지 */
    .exp-header {
        page-break-after: avoid;
        break-after: avoid;
    }
}

/* Hidden class for language switching */
.hidden {
    display: none;
}

/* 비밀번호 모달 스타일 */
#password-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

#password-modal .modal-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 400px;
    width: 90%;
}

#password-modal h3 {
    margin-bottom: 20px;
    color: #333;
    font-size: 1.3rem;
}

#password-modal p {
    margin-bottom: 20px;
    color: #666;
    font-size: 1rem;
}

#password-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 20px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

#password-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

#password-modal .button-group {
    display: flex;
    gap: 10px;
    justify-content: center;
}

#password-modal .btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

#password-modal .btn-primary {
    background: #667eea;
    color: white;
}

#password-modal .btn-primary:hover {
    background: #5a6fd8;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

#password-modal .btn-secondary {
    background: #6c757d;
    color: white;
}

#password-modal .btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

#password-error {
    color: #dc3545;
    margin-top: 15px;
    font-size: 14px;
    display: none;
    animation: shake 0.5s ease-in-out;
}

/* 연락처 보기 버튼 스타일 */
#password-trigger {
    cursor: pointer;
    transition: all 0.3s ease;
}

#password-trigger:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

#password-trigger span {
    transition: color 0.3s ease;
}

#password-trigger:hover span {
    color: #5a6fd8;
}

/* 성공 메시지 애니메이션 */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* 반응형 모달 */
@media (max-width: 480px) {
    #password-modal .modal-content {
        padding: 20px;
        margin: 20px;
    }
    
    #password-modal .button-group {
        flex-direction: column;
        gap: 8px;
    }
    
    #password-modal .btn {
        width: 100%;
    }
}

/* Achievement Metrics Styles */
.achievement-metrics {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
    padding: 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 15px;
    gap: 20px;
    flex-wrap: wrap;
}

.metric-item {
    text-align: center;
    flex: 1;
    min-width: 120px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.metric-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.metric-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.metric-desc {
    font-size: 0.9rem;
    color: #555;
    font-weight: 500;
    line-height: 1.3;
}

/* Responsive for metrics */
@media (max-width: 768px) {
    .achievement-metrics {
        flex-direction: column;
        gap: 15px;
    }
    
    .metric-item {
        min-width: unset;
    }
    
    .metric-number {
        font-size: 1.8rem;
    }
}

/* Print styles for metrics */
@media print {
    .achievement-metrics {
        background: #f8f9fa !important;
        page-break-inside: avoid;
        break-inside: avoid;
        margin: 15px 0;
        padding: 15px;
    }
    
    .metric-item {
        background: white !important;
        box-shadow: none !important;
        border: 1px solid #e0e0e0;
    }
    
    .metric-number {
        color: #667eea !important;
        -webkit-text-fill-color: #667eea !important;
    }
}
