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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

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

/* 네비게이션 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo span {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

/* 언어 전환 버튼 */
.lang-switch {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-left: 1rem;
}
.lang-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid #e0e0e0;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.lang-btn img { width: 22px; height: auto; border-radius: 2px; }
.lang-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.12); }
.lang-btn:focus { outline: none; box-shadow: 0 0 0 3px rgba(102,126,234,0.3); }

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #667eea;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* 메인 히어로 섹션 */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #dbe4ff 0%, #597efc 100%);
    color: white;
    position: relative;
    overflow: hidden;
    padding: 100px 0 80px;
}

.hero::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>');
    background-repeat: repeat;
    opacity: 0.3;
    pointer-events: none;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-title2 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    max-width: 100%;
    position: relative;
}

/* 일본어 버전에서만 제목 크기 1px 감소 */
html[lang="ja"] .hero-title2 {
    font-size: calc(3.3rem - 1px);
}

.hero-title2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -14px; /* 텍스트 아래 여백 */
    width: 100%;
    height: 3px; /* 밑줄 두께 */
    background: linear-gradient(90deg, #2e2a7f, #4babff); /* 그라디언트 밑줄 */
    border-radius: 2px; /* 살짝 둥글게 */
}

.img-div {
    margin-bottom: -8rem;
    margin-left: 46.3rem;
    text-align: center;
    max-width: 15rem;
}

.hero-image {
    width: 15rem;
    height: auto;
}

.title-coment {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #4babff;
    background: linear-gradient(189deg, #000000, #9b9b9b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.highlight {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.8;
    max-width: 100%;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(45deg, #6a5acd, #4babff);
    color: #fff;
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(106, 90, 205, 0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #333;
    transform: translateY(-3px);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.code-animation {
    background: rgba(0, 0, 0, 0.3);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.code-line {
    color: #00ff88;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    margin: 0.5rem 0;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.code-line:nth-child(1) { animation-delay: 0.1s; }
.code-line:nth-child(2) { animation-delay: 0.2s; }
.code-line:nth-child(3) { animation-delay: 0.3s; }
.code-line:nth-child(4) { animation-delay: 0.4s; }
.code-line:nth-child(5) { animation-delay: 0.5s; }
.code-line:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(45deg);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* 섹션 공통 스타일 */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 자기소개 섹션 */
.about {
    background: #f8f9fa;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #333;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #666;
    line-height: 1.8;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    gap: 0.5rem;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #667eea;
}

.stat-label {
    color: #666;
    font-weight: bold;
    font-size: 1.2rem;
}

.stat-label2 {
    font-size: 1.2rem;
    font-weight: 500;
    color: #666;
    margin-left: 0.2rem;
}

.stat-unit {
    font-size: 1rem;
    font-weight: 500;
    color: #666;
    margin-left: 0.3rem;
    vertical-align: baseline;
}

.profile-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.profile-card:hover {
    transform: translateY(-10px);
}

.profile-avatar {
    height: 18rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #f0f0f0;
}

.profile-avatar i {
    font-size: 2rem;
    color: white;
}

.profile-info h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #333;
    padding-top: 1rem;
}

.profile-info p {
    color: #666;
    font-weight: 500;
}

/* 프로필 역할 뱃지 */
.profile-roles {
    display: block;
    margin-top: 0.5rem;
}

.profile-roles p {
    line-height: 1.6;
    font-size: 0.95rem;
    color: #555;
}

/* 스킬 섹션 */
.profile-specialties {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    margin: 1rem 0;
    padding: 1rem 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.profile-links {
    padding-top: 1rem;
}

/* 스킬 섹션 */
.skills-carousel-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.skills-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}

.skills-slide {
    display: none;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 1.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.skills-slide.active {
    display: grid;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.skill-item {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 120px;
}

.skill-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.skill-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.8rem;
}

.skill-icon img {
    width: 35px;
    height: 35px;
    object-fit: contain;
}

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

/* 캐러셀 네비게이션 */
.carousel-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
}

.carousel-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.carousel-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.carousel-btn:active {
    transform: translateY(-1px);
}

.carousel-dots {
    display: flex;
    gap: 0.8rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: scale(1.2);
}

.dot:hover {
    background: #667eea;
    transform: scale(1.1);
}

/* 포트폴리오 섹션 */
.portfolio {
    background: #f8f9fa;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-10px);
}

.portfolio-image {
    position: relative;
    height: 200px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.portfolio-placeholder {
    font-size: 3rem;
    color: white;
    opacity: 0.8;
}

.portfolio-image-link {
    display: inline-block;
}

.portfolio-image-link img {
    display: block;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none; /* 숨겨진 상태에서 클릭 막지 않도록 */
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
    pointer-events: auto; /* 보일 때만 클릭 가능 */
}

.portfolio-links {
    display: flex;
    gap: 1rem;
}

.portfolio-link {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.portfolio-link:hover {
    background: #667eea;
    color: white;
    transform: scale(1.1);
}

.portfolio-content {
    padding: 2rem;
}

.portfolio-content h3 {
    font-size: 1.3rem;
    color: #333;
    line-height: 1.6;
}

/* 프로젝트 부제목 강조 */
.portfolio-content h3 .project-subtitle {
    color: #667eea !important;
    font-weight: 700 !important;
    font-size: 1.5rem !important;
    display: inline-block;
}

.portfolio-content p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* 학력 및 자격증 섹션 */
.education {
    background: #f8f9fa;
}

.education-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.education-item {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: transform 0.3s ease;
}

.education-item:hover {
    transform: translateY(-10px);
}

.education-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.education-icon i {
    font-size: 1.5rem;
    color: white;
}

.education-details h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.education-details p {
    color: #666;
    margin-bottom: 0.3rem;
    font-size: 0.95rem;
}

.education-groups {
    display: grid;
    gap: 3rem;
}

.education-group-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #333;
}

/* 수상 및 경력 섹션 */
.awards {
    background: #f8f9fa;
}

.awards-content {
    display: grid;
    gap: 4rem;
}

.awards-group {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.awards-group-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    color: #333;
    text-align: center;
    position: relative;
}

.awards-group-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

/* 수상 내역 타임라인 */
.awards-timeline {
    position: relative;
    padding-left: 2rem;
}

.awards-timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.award-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 3rem;
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}

.award-item:last-child {
    margin-bottom: 0;
}

.award-icon {
    position: absolute;
    left: -2.5rem;
    top: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
    z-index: 2;
}

.award-icon i {
    font-size: 1.2rem;
    color: white;
}

.award-details h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #333;
}

.award-date {
    font-size: 0.9rem;
    color: #667eea;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.award-organization {
    font-size: 1rem;
    color: #666;
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.award-description {
    color: #555;
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.award-image {
    margin-top: 1rem;
    text-align: center;
}

.award-photo {
    max-width: 100%;
    height: auto;
    max-height: 300px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.award-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

/* 타임라인 범례 */
.timeline-legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: #555;
    font-weight: 600;
}

.legend-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.legend-icon.education {
    background: linear-gradient(135deg, #cdb4db 0%, #bde0fe 100%);
}

.legend-icon.career {
    background: linear-gradient(135deg, #f5cac3 0%, #dda5b5 100%);
}

.legend-icon.certificate {
    background: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%);
}

.legend-icon.award {
    background: linear-gradient(135deg, #fbc2eb 0%, #a6c1ee 100%);
}

/* 경력 사항 타임라인 */
.career-timeline {
    position: relative;
    padding-left: 3rem;
    padding-top: 1.5rem;
}

.career-timeline::before {
    content: '';
    position: absolute;
    left: 25px;
    top: -15px;
    bottom: 5rem;
    width: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

/* 타임라인 시작 화살표 (위쪽) */
.career-timeline::after {
    content: '▲';
    position: absolute;
    left: 17px;
    top: -25px;
    font-size: 1.2rem;
    color: #667eea;
    z-index: 3;
}

.career-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 3.5rem;
    display: flex;
    align-items: flex-start;
}

.career-item:last-child {
    margin-bottom: 0;
}

.career-icon {
    position: absolute;
    left: -46px;
    top: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #cdb4db 0%, #bde0fe 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(189, 224, 254, 0.3);
    z-index: 2;
}

/* 자격증 아이콘 색상 */
.career-icon.certificate {
    background: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%);
    box-shadow: 0 5px 15px rgba(142, 197, 252, 0.3);
}

/* 경력 아이콘 색상 */
.career-icon.career {
    background: linear-gradient(135deg, #f5cac3 0%, #dda5b5 100%);
    box-shadow: 0 5px 15px rgba(245, 202, 195, 0.3);
}

/* 수상 아이콘 색상 */
.career-icon.award {
    background: linear-gradient(135deg, #fbc2eb 0%, #a6c1ee 100%);
    box-shadow: 0 5px 15px rgba(166, 193, 238, 0.4);
}

.career-icon i {
    font-size: 1.2rem;
    color: white;
}

.career-details {
    width: 100%;
}

.career-details h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #333;
}

.career-period {
    font-size: 0.9rem;
    color: #667eea;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.career-organization {
    font-size: 1rem;
    color: #666;
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.career-description {
    color: #555;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* 자격증 섹션 */
.certificates {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.certificate-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.certificate-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.certificate-card.highlight {
    border: 2px solid #667eea;
}

.certificate-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.3);
}

.certificate-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.certificate-icon i {
    font-size: 2.5rem;
    color: white;
}

.certificate-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #2d3748;
}

.certificate-subtitle {
    font-size: 0.9rem;
    color: #718096;
    margin-bottom: 0.5rem;
}

.certificate-date {
    font-size: 1rem;
    color: #667eea;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.certificate-org {
    font-size: 0.95rem;
    color: #718096;
    margin-bottom: 1rem;
}

.certificate-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: #e6f2ff;
    color: #667eea;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.certificate-badge.new {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #333;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@media (max-width: 768px) {
    .certificates-grid {
        grid-template-columns: 1fr;
    }
}
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon i {
    font-size: 1.2rem;
    color: white;
}

.contact-details h4 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    color: #333;
}

.contact-details p {
    color: #666;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* 푸터 */
.footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

/* 수상 사진 모달 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    margin: auto;
    padding: 20px;
    width: 90%;
    max-width: 800px;
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
}

.modal-content img {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
    transition: color 0.3s ease;
}

.close:hover {
    color: #667eea;
}

.modal-caption {
    margin-top: 20px;
    color: white;
}

.modal-caption h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

/* 반응형 디자인 */
@media (max-width: 1024px) {
    .hero-container {
        gap: 3rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .profile-card {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .skills-slide {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.2rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .lang-switch {
        display: flex;
        margin-right: 1rem;
        margin-left: auto;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero {
        padding: 80px 0 60px;
        min-height: auto;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        padding-top: 1rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-title2 {
        font-size: 2.2rem;
    }
    
    .title-coment {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        width: 100% !important;
    }
    
    .img-div {
        position: static;
        margin: 0 auto 1.5rem;
        max-width: 12rem;
    }
    
    .hero-image {
        width: 100%;
        max-width: 12rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .profile-card {
        padding: 1.5rem;
    }
    
    .profile-avatar {
        height: 15rem;
    }
    
    .profile-avatar img {
        width: 11rem !important;
    }
    
    .profile-specialties {
        gap: 0.4rem;
    }
    
    .specialty-tag {
        font-size: 0.8rem;
        padding: 0.35rem 0.7rem;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .skills-slide {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
        gap: 1rem;
        padding: 1.5rem;
    }
    
    .skill-item {
        min-height: 100px;
        padding: 1rem;
    }
    
    .skill-icon {
        width: 40px;
        height: 40px;
        margin: 0 auto 0.5rem;
    }
    
    .skill-icon img {
        width: 30px;
        height: 30px;
    }
    
    .skill-name {
        font-size: 0.9rem;
    }
    
    .carousel-nav {
        gap: 1rem;
        margin-top: 1.5rem;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
    
    .education-content {
        grid-template-columns: 1fr;
    }
    
    .education-item {
        flex-direction: column;
        text-align: center;
    }
    
    .awards-content {
        gap: 2rem;
    }
    
    .awards-group {
        padding: 2rem 1.5rem;
    }
    
    .awards-group-title {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .timeline-legend {
        gap: 1rem;
    }
    
    .legend-item {
        font-size: 0.85rem;
    }
    
    .awards-timeline,
    .career-timeline {
        padding-left: 2.5rem;
    }
    
    .awards-timeline::before,
    .career-timeline::before {
        left: 20px;
    }
    
    .career-timeline::after {
        left: 12px;
    }
    
    .award-item,
    .career-item {
        padding-left: 3rem;
        margin-bottom: 2.5rem;
    }
    
    .award-icon,
    .career-icon {
        left: -42px;
        width: 40px;
        height: 40px;
    }
    
    .career-details,
    .award-details {
        width: 100%;
    }
    
    .award-icon i,
    .career-icon i {
        font-size: 1rem;
    }
    
    .award-details h4,
    .career-details h4 {
        font-size: 1.1rem;
    }
    
    .award-description,
    .career-description {
        font-size: 0.9rem;
    }
    
    .award-photo {
        max-height: 250px;
    }
    
    .certificates-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .modal-content {
        width: 95%;
        padding: 15px;
    }
    
    .modal-content img {
        max-height: 60vh;
    }
    
    .close {
        top: 10px;
        right: 20px;
        font-size: 30px;
    }
    
    .modal-caption h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: auto;
        padding: 70px 0 50px;
    }
    
    .hero-container {
        padding: 0 20px;
    }
    
    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .hero-title2 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .title-coment {
        font-size: 1.8rem;
    }
    
    .hero-title2::after {
        bottom: -10px;
        height: 2px;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        width: 100% !important;
    }
    
    .img-div {
        position: static;
        max-width: 10rem;
        margin: 0 auto 1.5rem;
    }
    
    .hero-image {
        max-width: 10rem;
    }
    
    .btn {
        font-size: 0.95rem;
        padding: 10px 25px;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    section {
        padding: 60px 0;
    }
    
    .profile-avatar {
        height: 12rem;
    }
    
    .profile-avatar img {
        width: 9rem !important;
    }
    
    .profile-info h4 {
        font-size: 1.1rem;
    }
    
    .profile-role-main {
        font-size: 1rem;
    }
    
    .profile-specialties {
        gap: 0.3rem;
    }
    
    .specialty-tag {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }
    
    .profile-link-item {
        width: 35px;
        height: 35px;
    }
    
    .stat-item {
        padding: 1.2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 1rem;
    }
    
    .stat-label2 {
        font-size: 1rem;
    }
    
    .skills-slide {
        grid-template-columns: 1fr;
        padding: 1.2rem;
        gap: 0.8rem;
    }
    
    .skill-item {
        min-height: 80px;
        padding: 0.8rem;
    }
    
    .portfolio-item {
        margin-bottom: 1.5rem;
    }
    
    .portfolio-content {
        padding: 1.5rem;
    }
    
    .portfolio-content h3 {
        font-size: 1.2rem;
    }
    
    .portfolio-tags {
        gap: 0.4rem;
    }
    
    .tag {
        font-size: 0.8rem;
        padding: 0.25rem 0.7rem;
    }
    
    .education-item {
        padding: 1.5rem;
    }
    
    .education-icon {
        width: 50px;
        height: 50px;
    }
    
    .education-icon i {
        font-size: 1.3rem;
    }
    
    .awards-group {
        padding: 1.5rem 1rem;
    }
    
    .awards-group-title {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }
    
    .timeline-legend {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }
    
    .legend-item {
        font-size: 0.8rem;
    }
    
    .legend-icon {
        width: 16px;
        height: 16px;
    }
    
    .awards-timeline,
    .career-timeline {
        padding-left: 2rem;
    }
    
    .awards-timeline::before,
    .career-timeline::before {
        left: 15px;
        width: 2px;
    }
    
    .career-timeline::after {
        left: 9px;
        font-size: 1rem;
    }
    
    .award-item,
    .career-item {
        padding-left: 2.5rem;
        margin-bottom: 2rem;
    }
    
    .award-icon,
    .career-icon {
        left: -37px;
        width: 35px;
        height: 35px;
    }
    
    .award-icon i,
    .career-icon i {
        font-size: 0.9rem;
    }
    
    .career-details h4,
    .award-details h4 {
        font-size: 1rem;
    }
    
    .career-period,
    .award-date {
        font-size: 0.85rem;
    }
    
    .career-organization,
    .award-organization {
        font-size: 0.9rem;
    }
    
    .career-description,
    .award-description {
        font-size: 0.85rem;
    }
    
    .certificate-card {
        padding: 2rem 1.5rem;
    }
    
    .certificate-icon {
        width: 60px;
        height: 60px;
    }
    
    .certificate-icon i {
        font-size: 2rem;
    }
    
    .certificate-card h3 {
        font-size: 1.3rem;
    }
    
    .contact-item {
        padding: 1.2rem;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
    }
    
    .contact-icon i {
        font-size: 1rem;
    }
    
    .contact-details h4 {
        font-size: 1rem;
    }
    
    .contact-details p {
        font-size: 0.9rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.8rem;
        font-size: 0.95rem;
    }
    
    .modal-content img {
        max-height: 50vh;
    }
}

/* 매우 작은 화면 (320px 이하) */
@media (max-width: 320px) {
    .hero {
        padding: 60px 0 40px;
    }
    
    .hero-title {
        font-size: 1.6rem;
    }
    
    .hero-title2 {
        font-size: 1.6rem;
    }
    
    .title-coment {
        font-size: 1.6rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        width: 100% !important;
    }
    
    .img-div {
        position: static;
        max-width: 8rem;
    }
    
    .hero-image {
        max-width: 8rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .container {
        padding: 0 10px;
    }
    
    .hero-container {
        padding: 0 15px;
    }
    
    .btn {
        font-size: 0.9rem;
        padding: 8px 20px;
    }
    
    .profile-avatar {
        height: 10rem;
    }
    
    .profile-avatar img {
        width: 7rem !important;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    .awards-group {
        padding: 1.2rem 0.8rem;
    }
}

/* 스크롤 애니메이션 */
.skill-bar[data-level="90"] { width: 90%; }
.skill-bar[data-level="85"] { width: 85%; }
.skill-bar[data-level="80"] { width: 80%; }
.skill-bar[data-level="75"] { width: 75%; }
.skill-bar[data-level="70"] { width: 70%; }
.skill-bar[data-level="65"] { width: 65%; }

/* 스크롤바 스타일링 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

/* Section subtitle */
.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-top: -1.5rem;
    margin-bottom: 2.5rem;
}

/* About section improvements */
.about-highlight-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1.5rem;
    border-radius: 15px;
    border-left: 4px solid #667eea;
    margin: 1.5rem 0;
}

.competency-list {
    list-style: none;
    padding: 0;
    margin-top: 0.8rem;
}

.competency-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.competency-list li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

/* Profile card improvements */
.profile-role-main {
    font-size: 1.1rem;
    color: #667eea;
    font-weight: 600;
    margin: 0.5rem 0;
}

.profile-specialties {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    margin: 1rem 0;
}

.specialty-tag {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.profile-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.profile-link-item {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.profile-link-item:hover {
    transform: translateY(-3px);
}

/* Portfolio item positioning */
.portfolio-item {
    position: relative;
    background: white;
    border-radius: 15px;
    overflow: visible;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* Portfolio badge on item */
.portfolio-badge {
    position: absolute;
    top: -1rem;
    left: 0rem;
    color: #333;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 100;
}

/* 최우수상 - 골드 */
.portfolio-badge.award-gold {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.6);
}

/* 우수상 - 실버 */
.portfolio-badge.award-silver {
    background: linear-gradient(135deg, #c0c0c0 0%, #e8e8e8 100%);
    box-shadow: 0 4px 15px rgba(192, 192, 192, 0.6);
}

/* 장려상 - 브론즈 */
.portfolio-badge.award-bronze {
    background: linear-gradient(135deg, #cd7f32 0%, #e6a567 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(205, 127, 50, 0.6);
}

/* Portfolio placeholder */
.portfolio-placeholder {
    position: relative;
}
.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.project-header h3 {
    flex: 1;
    margin: 0;
}

.project-badge {
    background: #e9ecef;
    color: #666;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.project-badge.award {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #333;
}

.project-subtitle {
    color: #666;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.project-section {
    margin-bottom: 1.5rem;
}

.project-section h4 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    color: #333;
    font-weight: 600;
}

.problem {
    color: #e74c3c;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.solution {
    color: #27ae60;
    font-weight: 500;
}

.tech-implementation {
    list-style: none;
    padding: 0;
}

.tech-implementation li {
    padding: 0.4rem 0;
    line-height: 1.6;
    color: #555;
}

.tech-implementation strong {
    color: #667eea;
    font-weight: 600;
}

/* Contact form message */
.contact-form-message {
    text-align: center;
    padding: 3rem 2rem;
}

.contact-form-message h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.contact-form-message p {
    color: #666;
    margin-bottom: 1rem;
}

/* 일본어 연락 문구를 한 줄로 표시 */
html[lang="ja"] [data-i18n="contact.help"] {
    white-space: nowrap;
}

