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

:root {
    /* 색상 변수 정의 */
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #14b8a6;
    --accent-color: #f43f5e;
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* 배경 패턴 추가 */
body::before {
    content: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    border-radius: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
}

header {
    text-align: center;
    padding: 80px 40px;
    margin: -40px -20px 60px -20px;
    border-radius: 20px 20px 0 0;
    position: relative;
    overflow: hidden;
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
}

header::before {
    content: none;
}

@keyframes backgroundMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(100px, 100px); }
}

header h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
    letter-spacing: -0.5px;
}

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

.subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
    font-weight: 400;
}

.contact-info {
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
}

.contact-info a {
    color: var(--primary-color);
    text-decoration: none;
    margin: 0 12px;
    padding: 0;
    border-radius: 0;
    display: inline-block;
    transition: color 0.2s;
}

.contact-info a:hover {
    color: var(--primary-dark);
}

.contact-info span {
    color: var(--text-secondary);
}

section {
    margin-bottom: 60px;
    padding: 30px;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
}

section:hover {
    box-shadow: var(--shadow-lg);
}

h2 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    display: block;
    font-weight: 700;
}

h3 {
    font-size: 1.3rem;
    color: #495057;
    margin-bottom: 10px;
}

.item {
    margin-bottom: 25px;
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    position: relative;
}

.item::before {
    content: none;
}

.item:hover::before {
    left: 100%;
}

.item:hover {
    box-shadow: var(--shadow-sm);
}

.item p {
    color: #6c757d;
    margin-bottom: 5px;
}

.item ul {
    list-style-position: inside;
    margin-left: 20px;
}

.item ul li {
    margin-bottom: 5px;
    color: #6c757d;
}

.period {
    font-weight: 500;
    color: #007bff;
}

.awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

/* Awards view toggle */
.awards .view-toggle {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    align-items: center;
    margin-top: -10px;
    margin-bottom: 10px;
}

.view-btn {
    background: #fff;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 6px 12px;
    font-size: 0.9rem;
    border-radius: 6px;
    cursor: pointer;
}

.view-btn.active {
    color: var(--primary-dark);
    border-color: var(--primary-color);
}

/* List view overrides */
.awards.list-view .awards-grid {
    display: block;
}

/* Year divider for list view */
.awards .award-year-divider { display: none; }
.awards.list-view .award-year-divider {
    display: block;
    margin-top: 18px;
    margin-bottom: 6px;
    padding-top: 6px;
    font-weight: 800;
    color: var(--text-primary);
    border-top: 1px solid var(--border-color);
}

.awards.list-view .award-item {
    display: grid;
    grid-template-columns: 90px 220px 1fr auto;
    align-items: center;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-color);
    border-radius: 0;
    padding: 10px 4px;
    margin: 0;
    box-shadow: none;
}

.awards.list-view .award-item:hover { box-shadow: none; }

.awards.list-view .award-medal { display: none; }

.awards .award-item .list-content { display: none; }
.awards .award-item .card-content { display: flex; gap: 12px; align-items: center; }
.awards.list-view .award-item .card-content { display: none; }
.awards.list-view .award-item .list-content { display: contents; }

.awards.list-view .award-year { color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.awards.list-view .award-org { color: var(--text-secondary); }
.awards.list-view .award-title { color: var(--text-primary); }
.awards.list-view .award-level { color: var(--text-primary); font-weight: 700; justify-self: end; }

/* Dark mode for list view */
body.dark-mode .awards .view-toggle .view-btn {
    background: #0b1220;
    border-color: #1f2937;
    color: #94a3b8;
}
body.dark-mode .awards .view-toggle .view-btn.active {
    color: #cbd5e1;
    border-color: #6366f1;
}
body.dark-mode .awards.list-view .award-item {
    border-bottom-color: #1f2937;
}
body.dark-mode .awards.list-view .award-year,
body.dark-mode .awards.list-view .award-org { color: #94a3b8; }
body.dark-mode .awards.list-view .award-title { color: #e5e7eb; }
body.dark-mode .awards.list-view .award-level { color: #e5e7eb; }
body.dark-mode .awards.list-view .award-year-divider {
    color: #e5e7eb;
    border-top-color: #1f2937;
}

.award-item {
    display: flex;
    align-items: center;
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    transition: box-shadow 0.2s ease;
    border: 1px solid var(--border-color);
}

.award-item::after {
    content: none;
}

.award-item:hover::after {
    transform: scale(2);
}

.award-item:hover {
    box-shadow: var(--shadow-md);
}

.award-medal {
    font-size: 2.5rem;
    margin-right: 20px;
    filter: none;
}

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

.award-item strong {
    display: block;
    color: #2c3e50;
    margin-bottom: 5px;
}

.award-item p {
    color: #6c757d;
    font-size: 0.9rem;
}

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

.skill-category {
    padding: 30px;
    background: #ffffff;
    border-radius: 16px;
    text-align: center;
    transition: box-shadow 0.2s ease;
    border: 1px solid var(--border-color);
}

.skill-category::before {
    content: none;
}

.skill-category:hover::before {
    transform: scaleX(1);
}

.skill-category:hover {
    box-shadow: var(--shadow-md);
}

.skill-category h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.4rem;
    font-weight: 600;
}

.skill-category p {
    color: #6c757d;
}

.subsection {
    margin-bottom: 30px;
}

.subsection h3 {
    color: #007bff;
    margin-bottom: 15px;
}

.subsection ul {
    list-style-position: outside;
    margin-left: 40px;
    padding-right: 20px;
}

.subsection ul li {
    margin-bottom: 10px;
    color: #495057;
    line-height: 1.8;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.subsection ul li strong {
    color: #28a745;
}

.publication-list {
    list-style: none;
    margin-top: 30px;
}

.publication-list li {
    margin-bottom: 25px;
    padding: 25px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    border-left: 5px solid var(--primary-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.publication-list li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.05) 0%, transparent 50%);
    transform: translateX(-100%);
    transition: transform 0.5s;
}

.publication-list li:hover::before {
    transform: translateX(0);
}

.publication-list li:hover {
    transform: translateY(-5px) translateX(5px);
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.15);
    border-left-color: var(--secondary-color);
}

.publication-list li strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 1.15rem;
    line-height: 1.4;
}

.pub-info {
    display: inline-block;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-style: italic;
    padding: 5px 15px;
    background: rgba(99, 102, 241, 0.08);
    border-radius: 20px;
    margin-top: 10px;
    transition: all 0.3s;
}

.publication-list li:hover .pub-info {
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary-color);
}

footer {
    text-align: center;
    padding: 30px 0;
    margin-top: 50px;
    border-top: 2px solid #e9ecef;
    color: #6c757d;
}

/* 모바일 퍼스트 접근법 */
@media (hover: none) and (pointer: coarse) {
    /* 터치 디바이스에서 hover 효과 비활성화 */
    .stat-card:hover,
    .award-item:hover,
    .skill-category:hover,
    .timeline-content:hover,
    .publication-list li:hover {
        transform: none;
    }
    
    /* parallax 효과 비활성화 (성능 최적화) */
    .stat-card,
    .award-item {
        transform: none !important;
    }
    
    /* 커스텀 커서 숨기기 */
    .custom-cursor {
        display: none;
    }
}

/* 언어 전환 버튼 */
.language-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
}

.lang-btn {
    background: none;
    border: 1px solid #e9ecef;
    padding: 5px 15px;
    margin-left: 5px;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 20px;
    font-size: 0.9rem;
}

.lang-btn:hover {
    background-color: #f8f9fa;
}

.lang-btn.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

/* 스크롤 애니메이션 */
.animate-target {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* 커스텀 커서 */
.custom-cursor {
    width: 20px;
    height: 20px;
    border: 2px solid #007bff;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    transition: all 0.1s ease;
    z-index: 9999;
    mix-blend-mode: difference;
}

.custom-cursor.cursor-hover {
    width: 40px;
    height: 40px;
    background-color: rgba(0, 123, 255, 0.1);
}

/* 스킬 프로그레스 바 */
.skill-progress-container {
    width: 100%;
    height: 10px;
    background: #eef2f6;
    border-radius: 10px;
    margin-top: 15px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.skill-progress {
    height: 100%;
    background: var(--primary-color);
    width: 0;
    transition: none;
    border-radius: 10px;
}

.skill-progress::after {
    content: none;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* 수상 항목 개선 */
.award-item {
    position: relative;
    overflow: hidden;
}

.award-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 123, 255, 0.1), transparent);
    transition: left 0.5s;
}

.award-item:hover::before {
    left: 100%;
}

/* 헤더 개선 */
header {
    position: relative;
    background: var(--bg-secondary);
}

/* 타이핑 커서 효과 */
header h1::after {
    content: none;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* 부드러운 호버 효과 */
a, button, .award-item, .skill-category, .publication-list li {
    transition: all 0.3s ease;
}

/* 섹션 타이틀 장식 */
h2 {
    position: relative;
    padding-left: 20px;
}

h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 30px;
    background: linear-gradient(to bottom, #007bff, #0056b3);
    border-radius: 2px;
}

/* 언어 토글 반응형 */
@media (max-width: 768px) {
    .language-toggle {
        position: absolute;
        top: 10px;
        right: 10px;
        z-index: 10;
    }
    
    .lang-btn {
        padding: 4px 10px;
        font-size: 0.85rem;
        margin-left: 3px;
    }
    
    .custom-cursor {
        display: none;
    }
}

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

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 6px;
    transition: background 0.3s;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

body.dark-mode::-webkit-scrollbar-track {
    background: #1a1a2e;
}

body.dark-mode::-webkit-scrollbar-thumb {
    background: #6366f1;
}

body.dark-mode::-webkit-scrollbar-thumb:hover {
    background: #14b8a6;
}

/* 다크모드 토글 버튼 */
.dark-mode-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid var(--border-color);
    font-size: 1.8rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dark-mode-toggle:hover {
    transform: scale(1.15) rotate(180deg);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.3);
    border-color: var(--primary-color);
}

.dark-mode-toggle:active {
    transform: scale(0.95);
}

/* 다크모드 스타일 */
body.dark-mode {
    background: linear-gradient(to bottom, #0f0f1e, #1a1a2e);
    color: #e2e8f0;
}

body.dark-mode::before {
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(20, 184, 166, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(244, 63, 94, 0.05) 0%, transparent 50%);
}

body.dark-mode .container {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

body.dark-mode header {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4c1d95 100%);
}

body.dark-mode h1, body.dark-mode h2, body.dark-mode h3 {
    color: #f1f5f9;
}

body.dark-mode h2 {
    background: linear-gradient(120deg, #6366f1, #14b8a6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    border-bottom-color: rgba(99, 102, 241, 0.3);
}

body.dark-mode .subtitle {
    color: rgba(255, 255, 255, 0.95);
}

body.dark-mode .item p, body.dark-mode .skill-category p {
    color: #cbd5e1;
}

body.dark-mode .contact-info a {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

body.dark-mode .contact-info a:hover {
    background: rgba(99, 102, 241, 0.9);
    color: white;
}

body.dark-mode section {
    background: rgba(30, 30, 60, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(99, 102, 241, 0.1);
}

body.dark-mode .item {
    background: linear-gradient(135deg, rgba(42, 42, 62, 0.8) 0%, rgba(26, 26, 46, 0.8) 100%);
    border-left-color: var(--primary-color);
}

body.dark-mode .award-item {
    background: linear-gradient(135deg, rgba(42, 42, 62, 0.9) 0%, rgba(26, 26, 46, 0.9) 100%);
    border-color: rgba(99, 102, 241, 0.2);
}

body.dark-mode .skill-category {
    background: linear-gradient(135deg, rgba(42, 42, 62, 0.9) 0%, rgba(26, 26, 46, 0.9) 100%);
    border-color: transparent;
}

body.dark-mode .lang-btn {
    border-color: rgba(99, 102, 241, 0.3);
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.05);
}

body.dark-mode .lang-btn:hover {
    background: rgba(99, 102, 241, 0.2);
}

body.dark-mode .lang-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

body.dark-mode .dark-mode-toggle {
    background: rgba(42, 42, 62, 0.95);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

body.dark-mode .dark-mode-toggle:hover {
    background: rgba(99, 102, 241, 0.2);
}

body.dark-mode .custom-cursor {
    border-color: var(--primary-color);
    mix-blend-mode: screen;
}

body.dark-mode h2::before {
    background: linear-gradient(to bottom, #6366f1, #14b8a6);
}

body.dark-mode .skill-progress {
    background: linear-gradient(90deg, #6366f1, #14b8a6);
}

body.dark-mode .skill-progress::after {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
}

body.dark-mode .award-item::after {
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
}

/* 다크모드 전환 애니메이션 */
body, .container, header, section, .item, .award-item, .skill-category, .publication-list li, .timeline-content, .stat-card {
    transition: background 0.4s ease, color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

/* 타임라인 스타일 */
.timeline {
    position: relative;
    padding-left: 0;
    margin-top: 20px;
}

.timeline::before { content: none; }

.timeline-item {
    position: relative;
    margin-bottom: 20px;
    padding-left: 0;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.timeline-marker { display: none; }

.timeline-item:hover .timeline-marker { transform: none; box-shadow: none; }

.timeline-marker::after { content: none; }

.timeline-content {
    background: #ffffff;
    padding: 16px 16px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: none;
}

.timeline-content::before { content: none; }

.timeline-content:hover::before { content: none; }

.timeline-content:hover { box-shadow: none; transform: none; }

.timeline-date {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 6px;
}

.timeline-content h3 {
    color: var(--text-primary);
    margin-bottom: 6px;
    font-size: 1.1rem;
}

.timeline-content p {
    color: #6c757d;
    margin: 0;
    line-height: 1.6;
}

/* 다크모드에서의 타임라인 */
body.dark-mode .timeline::before { content: none; }

body.dark-mode .timeline-marker { display: none; }

body.dark-mode .timeline-item:hover .timeline-marker { box-shadow: none; }

body.dark-mode .timeline-content {
    background: #111827;
    border: 1px solid #1f2937;
    border-radius: 8px;
    box-shadow: none;
}

body.dark-mode .timeline-date { color: #94a3b8; }

body.dark-mode .timeline-content h3 { color: #e5e7eb; }

body.dark-mode .timeline-content p { color: #cbd5e1; }

body.dark-mode .publication-list li {
    background: linear-gradient(135deg, #2a2a3e 0%, #1a1a2e 100%);
    border-left-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

body.dark-mode .publication-list li:hover {
    border-left-color: var(--secondary-color);
}

body.dark-mode .pub-info {
    background: rgba(99, 102, 241, 0.2);
    color: #cbd5e1;
}

body.dark-mode .publication-list li:hover .pub-info {
    background: rgba(99, 102, 241, 0.3);
    color: #6366f1;
}

/* 성과 지표 카운터 스타일 */
.achievements-overview {
    margin-bottom: 60px;
    text-align: center;
    padding: 40px;
    background: #ffffff;
    border-radius: 20px;
    position: relative;
}

.achievements-overview::before { content: none; }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    margin-top: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.stat-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 28px 22px;
    text-align: center;
    transition: box-shadow 0.2s ease;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }
.stat-card:nth-child(5) { animation-delay: 0.5s; }

.stat-card::before { content: none; }

.stat-card:hover::before { content: none; }

.stat-card::after { content: none; }

.stat-card:hover::after { content: none; }

.stat-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    display: inline-block;
    filter: none;
    transition: none;
}

.stat-card:hover .stat-icon { transform: none; filter: none; }

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.stat-card:hover .stat-number { transform: none; }

.stat-suffix {
    display: inline;
    font-size: 1.5rem;
    color: var(--text-secondary);
    font-weight: 600;
    margin-left: 2px;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 10px;
    position: relative;
}

.stat-card:hover .stat-label {
    color: var(--primary-color);
}

/* 카운터 애니메이션 효과 */
.stat-number.counting { animation: none; }

@keyframes countPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

/* 카드 등장 애니메이션 */
@keyframes statCardFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.stat-card { animation: none; }

/* 다크모드 지원 */
body.dark-mode .achievements-overview { background: #0f172a; }

body.dark-mode .stat-card {
    background: #111827;
    border-color: #1f2937;
    box-shadow: none;
}

body.dark-mode .stat-card:hover { box-shadow: none; }

body.dark-mode .stat-number { color: #e5e7eb; }

body.dark-mode .stat-label {
    color: #cbd5e1;
}

body.dark-mode .stat-suffix { color: #9ca3af; }

body.dark-mode .stat-card::before {
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
}

/* 반응형 디자인 */
@media (max-width: 1200px) {
    .container {
        max-width: 95%;
        padding: 30px 15px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
}

@media (max-width: 900px) {
    header {
        padding: 60px 30px;
    }
    
    header h1 {
        font-size: 2.8rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    section {
        padding: 20px;
        margin-bottom: 40px;
    }
    
    .awards-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .container {
        border-radius: 15px;
        margin: 10px;
    }
    
    header {
        padding: 50px 20px;
        margin: -30px -15px 40px -15px;
    }
    
    header h1 {
        font-size: 2.2rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    .contact-info a {
        margin: 5px;
        padding: 6px 15px;
        font-size: 0.95rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .stat-card {
        padding: 25px 20px;
    }
    
    .stat-number {
        font-size: 3rem;
    }
    
    .stat-icon {
        font-size: 2.5rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline {
        padding-left: 25px;
    }
    
    .timeline-item {
        padding-left: 35px;
    }
    
    .dark-mode-toggle {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 400px) {
    header h1 {
        font-size: 1.8rem;
    }
    
    .contact-info {
        font-size: 0.85rem;
    }
    
    .contact-info a {
        display: block;
        margin: 8px auto;
        max-width: 200px;
    }
    
    section {
        padding: 15px;
    }
    
    .stat-card {
        padding: 20px 15px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .publication-list li {
        padding: 18px;
    }
}

/* 스킬 레벨 텍스트 */
.skill-level {
    display: block;
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 12px;
    text-align: center;
    letter-spacing: 0.5px;
}

body.dark-mode .skill-level {
    color: #4a9eff;
}
