@import url('https://fonts.googleapis.com/css2?family=Pretendard:wght@400;500;600;700&display=swap');

:root {
    --primary-color: #6366f1;
    --text-primary: #1f2937;
    --text-secondary: #4b5563;
    --bg-primary: #ffffff;
    --bg-secondary: #f3f4f6;
}

.dark {
    --primary-color: #818cf8;
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --bg-primary: #1f2937;
    --bg-secondary: #111827;
}

body {
    font-family: 'Pretendard', sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: background-color 0.3s, color 0.3s;
}

/* 네비게이션 스타일 */
.nav-link {
    position: relative;
    color: var(--text-secondary);
    transition: color 0.3s;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

/* 섹션 스타일 */
.section-container {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s, transform 0.5s;
}

.section-container.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 모달 스타일 */
.modal {
    background-color: var(--bg-primary);
    border: 1px solid var(--text-secondary);
}

/* 3D 캔버스 컨테이너 */
#canvas-container {
    position: fixed;
    top: 0;
    right: 0;
    width: 50%;
    height: 100vh;
    z-index: -1;
    opacity: 0.5;
}

/* 다크 모드 토글 버튼 */
#theme-toggle {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--text-secondary);
    padding: 0.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

#theme-toggle:hover {
    background-color: var(--primary-color);
    color: var(--bg-primary);
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    #canvas-container {
        width: 100%;
        height: 50vh;
        opacity: 0.3;
    }

    .section-container {
        width: 100%;
        padding: 1rem;
    }
}