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

/* 다크 테마 (기본값) */
:root {
    --bg: #0a0a0a;
    --text: #ffffff;
    --text-sec: #888;
    --accent: #2997ff;
    --card-bg: #1a1a1a;
    --border: #333;
    --icon-color: #fff;
}

/* 라이트 테마 */
[data-theme="light"] {
    --bg: #f5f5f7;
    --text: #1d1d1f;
    --text-sec: #6e6e73;
    --accent: #0071e3;
    --card-bg: #ffffff;
    --border: #d2d2d7;
    --icon-color: #1d1d1f;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
}

/* 스크롤 진행률 */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 9999;
    background: transparent;
}
.scroll-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #6dd5fa);
    width: 0%;
    transition: width 0.1s ease-out;
}

/* 네비게이션 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0;
    background: transparent;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: var(--bg);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .navbar.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* 로고 */
.nav-logo {
    font-weight: 800;
    font-size: 1.5rem;
    text-decoration: none;
    color: var(--text);
    display: flex;
    align-items: baseline;
    gap: 0.1rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1002;
}

.nav-logo:hover {
    transform: translateY(-2px);
}

.logo-text {
    letter-spacing: -0.02em;
}

.logo-dot {
    color: var(--accent);
    font-size: 1.8rem;
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* 데스크톱 네비게이션 */
.nav-links-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    opacity: 0.8;
}

.nav-link:hover {
    opacity: 1;
    background: var(--card-bg);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

/* 네비게이션 컨트롤 */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    z-index: 1002;
}

/* 테마 토글 */
.theme-toggle {
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    background: var(--card-bg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    transition: all 0.3s ease;
    color: var(--text);
}

.theme-toggle:hover {
    border-color: var(--accent);
    transform: scale(1.05);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    transition: all 0.3s ease;
}

/* 테마에 따른 아이콘 표시/숨김 */
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* 모바일 메뉴 토글 */
.mobile-menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    background: var(--card-bg);
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    border-radius: 12px;
    padding: 10px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    border-color: var(--accent);
}

.mobile-menu-toggle .hamburger-line {
    width: 20px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* 모바일 메뉴 */
.mobile-menu {
    display: none;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 998;
}

.mobile-menu-content {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    max-width: 80vw;
    height: 100%;
    background: var(--bg);
    padding: 6rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.2);
}

.mobile-menu.active .mobile-menu-overlay {
    opacity: 1;
    visibility: visible;
}

.mobile-menu.active .mobile-menu-content {
    right: 0;
}

.mobile-nav-link {
    text-decoration: none;
    color: var(--text);
    font-size: 1.2rem;
    font-weight: 500;
    padding: 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: block;
}

.mobile-nav-link:hover {
    background: var(--card-bg);
    color: var(--accent);
    transform: translateX(5px);
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .nav-links-wrapper {
        display: none;
    }

    .mobile-menu {
        display: block;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-container {
        padding: 1rem 1.5rem;
    }

    .nav-logo {
        font-size: 1.3rem;
    }

    .logo-dot {
        font-size: 1.5rem;
    }

    .theme-toggle {
        width: 38px;
        height: 38px;
    }

    .mobile-menu-toggle {
        width: 38px;
        height: 38px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 1rem;
    }

    .nav-logo {
        font-size: 1.2rem;
    }

    .logo-dot {
        font-size: 1.4rem;
    }

    .theme-toggle,
    .mobile-menu-toggle {
        width: 36px;
        height: 36px;
    }

    .mobile-menu-content {
        width: 100%;
        max-width: 100%;
    }
}

/* 히어로 섹션 */
.hero-container { height: 300vh; position: relative; }
.hero-sticky { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; }
.hero-title-large { font-size: clamp(3rem, 10vw, 8rem); font-weight: 800; line-height: 0.95; letter-spacing: -0.04em; text-align: center; }
.hero-text-line { opacity: 0; transform: translateY(50px); }
.highlight-text-gradient { background: linear-gradient(135deg, #2980b9, #6dd5fa, #ffffff); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-subtitle { margin-top: 2rem; font-size: 1.5rem; color: var(--text-sec); opacity: 0; }
.mouse-icon { width: 24px; height: 40px; border: 2px solid var(--text-sec); border-radius: 20px; position: absolute; bottom: 3rem; left: 50%; transform: translateX(-50%); opacity: 0.5; }
.mouse-icon::before { content: ''; position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 4px; height: 6px; background: var(--text-sec); border-radius: 2px; animation: scroll 2s infinite; }
@keyframes scroll { 0% { opacity: 1; transform: translateX(-50%) translateY(0); } 100% { opacity: 0; transform: translateX(-50%) translateY(12px); } }

/* 철학 섹션 */
.philosophy-section { height: 100vh; background: transparent; color: var(--text); display: flex; align-items: center; justify-content: center; text-align: center; }
.reveal-text { font-size: clamp(2rem, 5vw, 4rem); font-weight: 700; line-height: 1.3; margin-bottom: 1rem; opacity: 0.1; transition: opacity 0.5s, color 0.3s; }
.reveal-text.active { opacity: 1; }
.highlight-text-blue { color: #2997ff; }

/* 소개 섹션 (나는 누구인가) - 새로운 디자인 */
.about-section {
    padding: 10rem 2rem;
    background: transparent;
    position: relative;
    z-index: 5;
}

.about-container {
    max-width: 1100px;
    margin: 0 auto;
}

/* 소개 헤더 */
.about-header {
    text-align: center;
    margin-bottom: 6rem;
}

.about-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-subtitle {
    font-size: 1.2rem;
    color: var(--text-sec);
    font-weight: 500;
    max-width: 600px;
    margin: 0 auto;
}

/* 프로필 섹션 */
.profile-section {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 6rem;
    background: var(--card-bg);
    border-radius: 2rem;
    padding: 3rem;
    border: 1px solid var(--border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.profile-content {
    flex: 1;
}

.profile-name {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.name-main {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.name-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--accent);
    color: white;
    border-radius: 1rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.profile-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-sec);
}

.profile-visual {
    flex-shrink: 0;
}

.profile-avatar {
    width: 180px;
    height: 180px;
    animation: avatarFloat 4s ease-in-out infinite;
}

@keyframes avatarFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* 스킬 섹션 */
.skills-section {
    margin-bottom: 6rem;
}

.skills-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.skill-category {
    background: var(--card-bg);
    border-radius: 1.5rem;
    padding: 2rem;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-color: var(--accent);
}

.skill-category-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    color: var(--accent);
}

.skill-category-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.skill-tags span {
    background: rgba(128, 128, 128, 0.1);
    padding: 0.4rem 0.8rem;
    border-radius: 0.75rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
    transition: all 0.3s;
}

.skill-tags span:hover {
    background: var(--accent);
    color: white;
}

/* 관심 분야 섹션 */
.interests-section {
    margin-bottom: 6rem;
}

.interests-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
}

.interests-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.interest-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: var(--card-bg);
    border-radius: 1.5rem;
    padding: 1.5rem 2rem;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.interest-item:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-color: var(--accent);
}

.interest-icon {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
}

.interest-content {
    flex: 1;
}

.interest-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.interest-desc {
    font-size: 0.95rem;
    color: var(--text-sec);
}

/* 통계 섹션 */
.stats-section {
    display: flex;
    justify-content: center;
    gap: 4rem;
    padding: 3rem;
    background: var(--card-bg);
    border-radius: 1.5rem;
    border: 1px solid var(--border);
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent), #00c6fb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 0.95rem;
    color: var(--text-sec);
    font-weight: 500;
    margin-top: 0.5rem;
}

/* 소개 장식 */
.about-deco {
    position: absolute;
    top: 10%;
    right: 5%;
    width: clamp(200px, 25vw, 350px);
    height: auto;
    opacity: 0;
    pointer-events: none;
}

.about-deco .deco-circle {
    opacity: 0;
    animation: decoFadeIn 1s ease forwards;
}

.about-deco .deco-circle:nth-child(1) { animation-delay: 0.2s; }
.about-deco .deco-circle:nth-child(2) { animation-delay: 0.4s; }
.about-deco .deco-circle:nth-child(3) { animation-delay: 0.6s; }
.about-deco .deco-circle:nth-child(4) { animation-delay: 0.8s; }

.about-deco .deco-line {
    opacity: 0;
    animation: decoFadeIn 1s ease forwards;
}

.about-deco .deco-line:nth-child(5) { animation-delay: 1s; }
.about-deco .deco-line:nth-child(6) { animation-delay: 1.2s; }
.about-deco .deco-line:nth-child(7) { animation-delay: 1.4s; }
.about-deco .deco-line:nth-child(8) { animation-delay: 1.6s; }

@keyframes decoFadeIn {
    to { opacity: 0.15; }
}

/* 여정 (애플 스타일 타임라인) - 다크 테마 */
.journey-section { 
    position: relative; 
    background: transparent;
    color: var(--text); 
    z-index: 10;
    padding: 8rem 0;
    overflow: hidden;
}

.journey-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

.journey-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    text-align: center;
    letter-spacing: -0.03em;
    margin-bottom: 5rem;
    opacity: 0;
    transform: translateY(40px);
}

.journey-highlight {
    color: #2997ff;
}

/* 타임라인 */
.journey-timeline {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 5rem;
}

.journey-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #2997ff 0%, rgba(41,151,255,0.2) 100%);
}

.journey-item {
    position: relative;
    padding-bottom: 3rem;
    padding-left: 2rem;
    opacity: 0;
    transform: translateX(-30px);
}

.journey-item::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 0.5rem;
    width: 10px;
    height: 10px;
    background: #2997ff;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(41,151,255,0.5);
}

.journey-item:last-child {
    padding-bottom: 0;
}

.journey-year {
    font-size: 0.9rem;
    font-weight: 700;
    color: #2997ff;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.journey-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-sec);
    margin: 0;
}

.journey-content p + p {
    margin-top: 0.25rem;
}

/* 통계 */
.journey-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border);
}

.journey-stat {
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
}

.journey-stat .stat-number {
    display: block;
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 800;
    background: linear-gradient(135deg, #2997ff, #00c6fb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.journey-stat .stat-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-sec);
    font-weight: 500;
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* 프로젝트 섹션 */
.projects-section { 
    position: relative; 
    z-index: 5;
    background: var(--bg);
    height: 100vh;
    overflow: hidden;
}

.projects-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

/* 아이콘 컨테이너 */
.project-icons-wrapper {
    position: absolute;
    right: 10%;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 10;
}

.project-icon-container {
    position: relative;
    width: clamp(200px, 28vw, 320px);
    height: clamp(200px, 28vw, 320px);
}

.project-icon {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
}

.project-icon.active {
    opacity: 1;
}

.project-icon .icon-part {
    transform-origin: center;
}

/* 웨이브 애니메이션 */
.project-icon .wave {
    animation: waveMove 3s ease-in-out infinite;
}

.project-icon .wave:nth-child(2) { animation-delay: -1s; }
.project-icon .wave:nth-child(3) { animation-delay: -2s; }

@keyframes waveMove {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(10px); }
}

/* 노드 펄스 애니메이션 */
.project-icon .node {
    animation: nodePulse 2s ease-in-out infinite;
}

.project-icon .node:nth-child(odd) { animation-delay: -1s; }

@keyframes nodePulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 1; }
}

/* 스캔라인 애니메이션 */
.project-icon .scan-line {
    animation: scanMove 2s linear infinite;
}

@keyframes scanMove {
    0% { transform: translateY(-30px); opacity: 0; }
    20% { opacity: 0.7; }
    80% { opacity: 0.7; }
    100% { transform: translateY(50px); opacity: 0; }
}

/* 프로젝트 패널 - 쌓인 형태 */
.project-panels-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.project-panel {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    padding: 4rem 2rem;
    opacity: 0;
    visibility: hidden;
}

.project-panel.active {
    opacity: 1;
    visibility: visible;
}

/* 프로젝트 페이지 인디케이터 */
.project-indicators {
    position: absolute;
    left: 3rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 20;
}

.project-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--text-sec);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.project-indicator:hover {
    border-color: var(--text);
    transform: scale(1.2);
}

.project-indicator.active {
    background: var(--accent);
    border-color: var(--accent);
}

.project-content {
    max-width: 420px;
    margin-left: 8%;
}

.project-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-sec);
    margin-bottom: 1.5rem;
}

.project-name {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    color: var(--text);
    line-height: 1;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.project-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-sec);
    margin-bottom: 2rem;
    font-weight: 400;
}

.project-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

.project-cta:hover {
    border-color: var(--text);
    gap: 0.75rem;
}

.project-cta svg {
    transition: transform 0.3s ease;
}

.project-cta:hover svg {
    transform: translate(2px, -2px);
}

/* 반응형 조정 */
@media (max-width: 1024px) {
    /* 소개 섹션 반응형 */
    .about-section {
        padding: 6rem 1.5rem;
    }
    
    .profile-section {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }
    
    .profile-name {
        justify-content: center;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-section {
        gap: 2rem;
        padding: 2rem;
    }
    
    .about-deco {
        display: none;
    }
    
    .project-content { max-width: 45%; margin-left: 5%; }
    .project-icon-container { width: 180px; height: 180px; }
    .project-icons-wrapper { padding-right: 5%; }
    
    .contact-title { font-size: clamp(2.5rem, 6vw, 4rem); }
}

@media (max-width: 600px) {
    /* 문제1: 모바일에서 Navbar와 로고 겹침 수정 */
    .navbar { padding: 1rem 0; }
    .nav-container { padding: 0 1rem; }
    .nav-logo { font-size: 1.2rem; }
    
    /* 문제2: 다크모드/라이트모드 토글 버튼 위치 수정 */
    .nav-links-wrapper { gap: 1rem; }
    .nav-link { font-size: 0.8rem; }
    .theme-toggle { width: 32px; height: 32px; }
    
    /* 소개 섹션 모바일 - 문제3: 모바일에서 한 줄에 표시되지 않고 각각 별도의 줄에 표시 */
    .about-section {
        padding: 4rem 1rem;
    }
    
    .about-header {
        margin-bottom: 3rem;
    }
    
    .profile-section {
        flex-direction: column;
        padding: 1.5rem;
        margin-bottom: 3rem;
    }
    
    .profile-name {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    .name-main {
        font-size: 2.5rem;
    }
    
    .name-badge {
        font-size: 0.8rem;
    }
    
    .profile-description {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .profile-avatar {
        width: 120px;
        height: 120px;
    }
    
    .skills-title,
    .interests-title {
        font-size: 1.5rem;
    }
    
    .skill-category {
        padding: 1.5rem;
    }
    
    .skill-category-icon {
        width: 40px;
        height: 40px;
    }
    
    .skill-category-name {
        font-size: 1.1rem;
    }
    
    .skill-tags span {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }
    
    .interest-item {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .interest-icon {
        width: 48px;
        height: 48px;
    }
    
    .interest-name {
        font-size: 1.1rem;
    }
    
    .interest-desc {
        font-size: 0.9rem;
    }
    
    .stats-section {
        flex-direction: column;
        gap: 2rem;
        padding: 2rem 1.5rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    .hero-title-large { font-size: 4rem; }
    
    .journey-timeline { padding-left: 1.5rem; }
    .journey-item { padding-left: 1.5rem; }
    .journey-stats { gap: 2rem; flex-wrap: wrap; }
    .journey-stat .stat-number { font-size: 2.5rem; }
    
    /* 프로젝트 모바일 */
    .projects-section { height: 100vh; }
    .project-icons-wrapper {
        top: 20%;
        left: 50%;
        right: auto;
        transform: translate(-50%, -50%);
    }
    .project-icon-container { width: 120px; height: 120px; }
    .project-panel {
        flex-direction: column;
        justify-content: flex-end;
        padding: 2rem 1.5rem 5rem;
    }
    .project-content {
        max-width: 100%;
        margin-left: 0;
        text-align: center;
    }
    .project-name { font-size: 2rem; }
    .project-indicators {
        left: 50%;
        top: auto;
        bottom: 1.5rem;
        transform: translateX(-50%);
        flex-direction: row;
    }
    
    .contact-title { font-size: 2.5rem; }
    .contact-btn { font-size: 1rem; padding: 1rem 2rem; }
    .contact-links { flex-direction: column; gap: 1.5rem; }
}


.interest-card .anim-icon {
    width: 80px;
    height: 80px;
}

/* 1. AI 브레인 펄스 */
.ai-node {
    animation: aiPulse 2s infinite ease-in-out;
}
.ai-node:nth-child(1) { animation-delay: 0s; }
.ai-node:nth-child(2) { animation-delay: 0.5s; }
.ai-node:nth-child(3) { animation-delay: 1s; }
.ai-conn {
    stroke-dasharray: 10;
    animation: aiDash 20s linear infinite;
}

@keyframes aiPulse {
    0%, 100% { r: 4; opacity: 0.5; }
    50% { r: 6; opacity: 1; }
}
@keyframes aiDash {
    to { stroke-dashoffset: -100; }
}

/* 2. 3D 플로팅 큐브 */
.cube-float {
    animation: cubeFloat 4s ease-in-out infinite;
    transform-origin: center;
}
.cube-shadow {
    animation: cubeShadow 4s ease-in-out infinite;
    transform-origin: center;
}

@keyframes cubeFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}
@keyframes cubeShadow {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(0.8); opacity: 0.1; }
}

/* 3. 흔들리는 나무 */
.tree-leaf {
    transform-origin: bottom center;
    animation: treeSway 3s ease-in-out infinite alternate;
}
.tree-leaf-2 {
    animation-delay: 1.5s;
}

@keyframes treeSway {
    from { transform: rotate(-5deg); }
    to { transform: rotate(5deg); }
}

/* 4. 퍼즐/코드 스핀 */
.puzzle-piece {
    transform-origin: center;
    transition: transform 0.5s;
}
.project-icon.icon-active .puzzle-piece,
.visual-icon:hover .puzzle-piece {
    animation: puzzleSpin 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
.puzzle-piece:nth-child(2) { animation-delay: 0.2s; }
.puzzle-piece:nth-child(3) { animation-delay: 0.4s; }
.puzzle-piece:nth-child(4) { animation-delay: 0.6s; }

@keyframes puzzleSpin {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(90deg) scale(0.8); }
    100% { transform: rotate(180deg) scale(1); }
}

/* 5. ID 카드 스캔 */
.scan-line {
    animation: scanMove 2s linear infinite;
}

@keyframes scanMove {
    0% { transform: translateY(0); opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { transform: translateY(40px); opacity: 0; }
}

/* 6. 웨이브 플로우 */
.wave-path {
    animation: waveFlow 3s ease-in-out infinite alternate;
}
.wave-path.wave-2 {
    animation-duration: 4s;
    animation-delay: 0.5s;
}
.wave-path.wave-3 {
    animation-duration: 5s;
    animation-delay: 1s;
    opacity: 0.6;
}

@keyframes waveFlow {
    0% { transform: translateX(-10px); }
    100% { transform: translateX(10px); }
}

/* 프로젝트 아이콘 특정 애니메이션 */
.project-icon.icon-active .tree-leaf {
    animation: treeSway 3s ease-in-out infinite alternate;
}

.project-icon.icon-active .scan-line {
    animation: scanMove 2s linear infinite;
}

.project-icon.icon-active .wave-path {
    animation: waveFlow 3s ease-in-out infinite alternate;
}

/* SVG 컨테이너 스타일 업데이트 */
.visual-icon {
    width: 120px;
    height: 120px;
}

.visual-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

.emoji-icon {
    display: none; /* Hide emojis */
}

/* 연락처 섹션 */
.contact-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: transparent;
    padding: 6rem 2rem;
    position: relative;
    z-index: 5;
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
}

.contact-title {
    font-size: clamp(3rem, 7vw, 5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: var(--text);
    margin-bottom: 3rem;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.2rem 2.5rem;
    background: var(--accent);
    color: white;
    border-radius: 2rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    margin-bottom: 3rem;
}

.contact-btn:hover {
    background: #3aa3ff;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(41, 151, 255, 0.3);
}

.contact-links {
    display: flex;
    gap: 2.5rem;
    justify-content: center;
    margin-bottom: 4rem;
}

.contact-links a {
    color: var(--text-sec);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s;
}

.contact-links a:hover {
    color: var(--accent);
}

/* 푸터 */
.footer-minimal {
    padding: 2rem 0;
    border-top: 1px solid var(--border);
    margin-top: 2rem;
}

.footer-minimal p {
    color: var(--text-sec);
    font-size: 0.9rem;
    font-weight: 400;
}

/* 테마를 위한 프로젝트 아이콘 색상 */
.project-icon .icon-part[stroke="#fff"] {
    stroke: var(--icon-color);
}
.project-icon .icon-part[fill="#fff"] {
    fill: var(--icon-color);
}
.project-icon text.icon-part {
    fill: var(--icon-color);
}

/* 테마 지원을 위해 CSS로 인라인 스타일 오버라이드 */
.project-icon line,
.project-icon rect:not([fill="none"]),
.project-icon circle:not([fill="none"]),
.project-icon polygon,
.project-icon path {
    stroke: var(--icon-color);
}
.project-icon circle[fill="#fff"],
.project-icon rect[fill="#fff"] {
    fill: var(--icon-color);
}
.project-icon text {
    fill: var(--icon-color);
}

/* ============================================
   섹션 장식 SVG
   ============================================ */

/* 기본 장식 스타일 */
.section-deco {
    position: absolute;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
}

.section-deco .deco-part,
.section-deco .deco-dot,
.section-deco .deco-node {
    opacity: 0;
}

/* 히어로 장식 — 우측 하단 별자리 */
.hero-deco {
    width: clamp(200px, 25vw, 350px);
    height: clamp(200px, 25vw, 350px);
    bottom: 15%;
    right: 8%;
    opacity: 0;
}

.hero-deco .deco-line {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    opacity: 0.15;
}

.hero-deco .deco-part {
    opacity: 0;
}

/* 철학 장식 — 양쪽 흐르는 곡선 */
.philosophy-section {
    position: relative;
}

.philosophy-deco {
    width: 80px;
    height: 100%;
    top: 0;
}

.philosophy-deco-left {
    left: 3%;
}

.philosophy-deco-right {
    right: 3%;
}

.philosophy-deco .deco-line {
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    opacity: 0.12;
}

/* 소개 장식 — 기하학적 패턴 */
.about-section {
    position: relative;
}

.about-deco {
    position: absolute;
    top: 10%;
    right: 5%;
    width: clamp(200px, 25vw, 350px);
    height: auto;
    opacity: 0;
    pointer-events: none;
}

.about-deco .deco-circle {
    opacity: 0;
    animation: decoFadeIn 1s ease forwards;
}

.about-deco .deco-circle:nth-child(1) { animation-delay: 0.2s; }
.about-deco .deco-circle:nth-child(2) { animation-delay: 0.4s; }
.about-deco .deco-circle:nth-child(3) { animation-delay: 0.6s; }
.about-deco .deco-circle:nth-child(4) { animation-delay: 0.8s; }

.about-deco .deco-line {
    opacity: 0;
    animation: decoFadeIn 1s ease forwards;
}

.about-deco .deco-line:nth-child(5) { animation-delay: 1s; }
.about-deco .deco-line:nth-child(6) { animation-delay: 1.2s; }
.about-deco .deco-line:nth-child(7) { animation-delay: 1.4s; }
.about-deco .deco-line:nth-child(8) { animation-delay: 1.6s; }

@keyframes decoFadeIn {
    to { opacity: 0.15; }
}

/* 여정 마일스톤 아이콘 */
.journey-milestone {
    position: absolute;
    left: -3.8rem;
    top: -0.2rem;
    width: 28px;
    height: 28px;
    opacity: 0;
}

.journey-milestone .deco-line {
    stroke-dasharray: 80;
    stroke-dashoffset: 80;
}

/* 연락처 장식 — 네트워크 노드 */
.contact-section {
    position: relative;
}

.contact-deco {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.contact-deco .deco-node {
    opacity: 0;
}

.contact-deco .deco-line {
    stroke-dasharray: 500;
    stroke-dashoffset: 500;
    opacity: 0.12;
}

/* 반응형: 모바일에서 장식 숨기기 */
@media (max-width: 600px) {
    .hero-deco {
        display: none;
    }
    .philosophy-deco {
        display: none;
    }
    .bento-deco {
        width: 200px;
        opacity: 0.5;
    }
    .journey-milestone {
        display: none;
    }
    .contact-deco {
        display: none;
    }
}

@media (max-width: 1024px) {
    .hero-deco {
        width: 180px;
        height: 180px;
    }
    .philosophy-deco {
        width: 50px;
    }
    .journey-milestone {
        left: -3.2rem;
        width: 22px;
        height: 22px;
    }
}

