*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --bg-primary: #ffffff;
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --dock-bg: rgba(235, 235, 240, 0.72);
    --indicator-bg: #ffffff;
    --dock-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.03);
    --indicator-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
}

html, body {
    width: 100%;
    height: 100%;
    background-color: var(--bg-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    font-optical-sizing: auto;
}

body {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
}

#app-root {
    width: 100%;
    min-height: 100vh;
}

.tab-view {
    display: none;
    width: 100%;
}

.tab-view.active {
    display: block;
}

#canvas-viewport {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    cursor: grab;
    user-select: none;
    background-color: var(--bg-primary);
    touch-action: none;
}

#canvas-viewport:active {
    cursor: grabbing;
}

#canvas-board {
    position: absolute;
    display: flex;
    gap: 20px;
    padding: 10px;
    will-change: transform;
    transform-origin: 0 0;
}

.canvas-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 400px;
}

.work-card {
    position: relative;
    width: 400px;
    height: 450px;
    overflow: hidden;
    border-radius: 20px;
    background-color: #f2f2f7;
    will-change: transform;
}

.work-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.profile-container {
    max-width: 560px;
    margin: 96px auto 140px auto;
    padding: 0 24px;
}

.yellow-circle {
    width: 32px;
    height: 32px;
    background-color: #FCEE0A;
    border-radius: 50%;
    margin-bottom: 28px;
    box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.08), 0 3px 8px rgba(0, 0, 0, 0.03);
}

.profile-header h1 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.profile-header .intro-text {
    font-size: 15px;
    line-height: 1.65;
    color: var(--text-primary);
    margin-bottom: 36px;
}

.section-title {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.experience-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 44px;
}

.experience-list li {
    font-size: 15px;
    line-height: 1.65;
    color: var(--text-primary);
    position: relative;
    padding-left: 20px;
}

.experience-list li::before {
    content: "–";
    position: absolute;
    left: 0;
    color: var(--text-secondary);
}

.experience-list li span {
    font-weight: 500;
}

.profile-socials {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-top: 36px;
}

.straight-link {
    color: var(--text-primary);
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-color: rgba(29, 29, 31, 0.4);
    font-size: 15px;
    transition: text-decoration-color 0.2s ease;
}

.straight-link:hover {
    text-decoration-color: var(--text-primary);
}

.material-symbols-rounded {
    font-size: 20px;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    transition: font-variation-settings 0.25s cubic-bezier(0.16, 1, 0.3, 1), color 0.25s ease;
}

.nav-dock {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    background-color: var(--dock-bg);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-radius: 9999px;
    box-shadow: var(--dock-shadow);
    border: 1px solid rgba(255, 255, 255, 0.6);
    z-index: 9999;
    user-select: none;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

body.modal-open .nav-dock {
    transform: translateX(-50%) translateY(120px);
    opacity: 0;
    pointer-events: none;
}

.nav-indicator {
    position: absolute;
    top: 4px;
    left: 4px;
    height: calc(100% - 8px);
    width: 44px;
    background-color: var(--indicator-bg);
    border-radius: 9999px;
    box-shadow: var(--indicator-shadow);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.nav-item {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    border-radius: 9999px;
    cursor: pointer;
    outline: none;
    z-index: 1;
    transition: transform 0.15s cubic-bezier(0.2, 0.8, 0.2, 1), color 0.25s ease;
}

.nav-item:hover {
    color: var(--text-primary);
}

.nav-item:active {
    transform: scale(0.88);
}

.nav-item.active {
    color: var(--text-primary);
}

.nav-item.active .material-symbols-rounded {
    font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24;
}

@media (max-width: 768px) {
    .nav-dock {
        bottom: 20px;
    }
    .profile-container {
        margin-top: 48px;
    }
    .canvas-column {
        width: 280px;
        gap: 12px;
    }
    .work-card {
        width: 280px;
        height: 315px;
    }
    #canvas-board {
        gap: 12px;
        padding: 12px;
    }
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-window {
    position: relative;
    width: 92vw;
    height: 88vh;
    max-width: 1400px;
    max-height: 900px;
    background-color: #ffffff;
    border-radius: 28px 28px 0 0;
    overflow: hidden;
    box-shadow: 0 32px 64px -16px rgba(0, 0, 0, 0.35), 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateZ(0) scale(0.96);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-window {
    transform: scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 38px;
    height: 38px;
    background-color: rgba(235, 235, 240, 0.7);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-radius: 9999px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: var(--cs-text-color, #1d1d1f);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    outline: none;
    transition: transform 0.15s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.2s ease;
    display: none !important;
}

.modal-close-btn:hover {
    background-color: #ffffff;
}

.modal-close-btn:active {
    transform: scale(0.88);
}

.figma-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}