/* ═══════════════════════════════════════════════════
   PORTFOLIO — NOTEFOLIO STYLE
   Dark, Minimal, Premium Motion Design Portfolio
   ═══════════════════════════════════════════════════ */

/* ── CSS Reset & Variables ── */
:root {
    /* Colors */
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-card: #161616;
    --bg-elevated: #1a1a1a;
    --text-primary: #f0f0f0;
    --text-secondary: #999999;
    --text-muted: #555555;
    --accent: #c8ff00;
    --accent-dim: #a8d600;
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);

    /* Typography */
    --font-primary: 'Inter', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Inter', 'Noto Sans KR', sans-serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 3rem;
    --space-xl: 5rem;
    --space-2xl: 8rem;

    /* Layout */
    --max-width: 1200px;
    --nav-height: 72px;

    /* Animation */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --duration-fast: 0.3s;
    --duration-normal: 0.6s;
    --duration-slow: 1s;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;

    /* 가운데 정렬 유지 + 아래서 올라오는 모션까지 같이 */
    transform: translateX(-50%) translateY(30px);
    opacity: 0;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);

    animation: fadeUpScroll var(--duration-slow) var(--ease-out) forwards;
    animation-delay: 0.6s;
    /* delay-3랑 동일하게 */
}

@keyframes fadeUpScroll {
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

a {
    text-decoration: none;
    color: inherit;
}

img,
video {
    display: block;
    width: 100%;
    height: auto;
}

::selection {
    background: var(--accent);
    color: var(--bg-primary);
}

/* ═══════════════ SCROLLBAR ═══════════════ */
::-webkit-scrollbar {
    width: 6px;
}

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

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* ═══════════════ NAVIGATION ═══════════════ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    transition: background var(--duration-fast) ease,
        backdrop-filter var(--duration-fast) ease,
        box-shadow var(--duration-fast) ease;
}

.nav.scrolled {
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 1px 0 var(--border);
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    color: var(--text-primary);
    transition: color var(--duration-fast) ease;
}

.nav-logo:hover {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: var(--space-lg);
}

.nav-link {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    transition: color var(--duration-fast) ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width var(--duration-fast) var(--ease-out);
}

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

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

/* ═══════════════ HERO SECTION ═══════════════ */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(200, 255, 0, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(100, 100, 255, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(255, 100, 100, 0.02) 0%, transparent 50%);
    z-index: 1;
}

.hero-video-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 var(--space-lg);
}

.hero-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    color: var(--accent);
    margin-bottom: var(--space-lg);
    text-transform: uppercase;
}

.hero-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1em;
    margin-bottom: var(--space-lg);
}

.title-line {
    font-family: var(--font-display);
    font-size: clamp(3rem, 10vw, 8rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

.title-line.accent {
    background: linear-gradient(135deg, var(--accent) 0%, #88ff88 50%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 4s ease-in-out infinite;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.hero-desc {
    font-size: 1rem;
    font-weight: 300;
    color: var(--text-secondary);
    letter-spacing: 0.15em;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {

    0%,
    100% {
        opacity: 1;
        transform: scaleY(1);
    }

    50% {
        opacity: 0.3;
        transform: scaleY(0.6);
    }
}

.hero-scroll-indicator span {
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    color: var(--text-muted);
}

/* ═══════════════ SECTION COMMONS ═══════════════ */
.section {
    padding: var(--space-2xl) var(--space-lg);
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.section-number {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--accent);
    padding: 0.4em 0.8em;
    border: 1px solid rgba(200, 255, 0, 0.2);
    border-radius: 4px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.section-line {
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* ═══════════════ SIDE NAVIGATION ═══════════════ */
.project-side-nav {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--duration-normal) var(--ease-out), transform var(--duration-normal) var(--ease-out);
}

.project-side-nav.visible {
    opacity: 1;
    pointer-events: auto;
}

.side-nav-link {
    font-size: 0.8rem;
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--text-muted);
    text-decoration: none;
    position: relative;
    padding: 0.2rem 0.5rem;
    transition: color var(--duration-fast) ease, transform var(--duration-fast) ease;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.5;
}

.side-nav-link::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 0;
    background-color: var(--accent);
    transition: height var(--duration-fast) ease;
}

.side-nav-link:hover,
.side-nav-link.active {
    color: var(--text-primary);
    transform: translateX(-5px);
    opacity: 1;
}

.side-nav-link.active {
    color: var(--accent);
}

.side-nav-link.active::after {
    height: 100%;
}

@media (max-width: 1024px) {
    .project-side-nav {
        display: none;
    }
}

/* ═══════════════ PROJECT CARDS ═══════════════ */
.project {
    margin-bottom: var(--space-2xl);
    opacity: 0;
    transform: translateY(60px);
    transition: opacity var(--duration-slow) var(--ease-out),
        transform var(--duration-slow) var(--ease-out);
}

.project.visible {
    opacity: 1;
    transform: translateY(0);
}

.project-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--border);
}

.project-meta {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
}

.project-number {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;
    color: var(--text-muted);
    opacity: 0.3;
    letter-spacing: -0.03em;
}

.project-info {
    padding-top: 0.3rem;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    letter-spacing: -0.01em;
}

.project-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.project-tags {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
    padding-top: 0.5rem;
}

.tag {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 0.35em 0.8em;
    border: 1px solid var(--border-hover);
    border-radius: 4px;
    color: var(--text-secondary);
    transition: all var(--duration-fast) ease;
}

.tag:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ═══════════════ MEDIA CONTAINERS ═══════════════ */
.project-media {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: var(--space-lg);
}

.main-media {
    aspect-ratio: 16 / 9;
}

/* ── YouTube Shorts (9:16) 세로 비율 ── */
.shorts-media {
    aspect-ratio: 9 / 16;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
}

.sub-media {
    aspect-ratio: 21 / 9;
}

.project-media-grid {
    display: grid;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.grid-2 {
    grid-template-columns: 1fr 1fr;
}

.grid-3 {
    grid-template-columns: 1fr 1fr 1fr;
}

.project-media-grid .media-placeholder {
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    overflow: hidden;
}

/* ── Placeholder Styling ── */
.media-placeholder {
    width: 100%;
    height: 100%;
    background: var(--bg-card);
    border: 2px dashed rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--duration-fast) ease;
    position: relative;
    overflow: hidden;
}

.media-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(135deg,
            rgba(200, 255, 0, 0.02) 0%,
            transparent 50%,
            rgba(100, 100, 255, 0.02) 100%);
    opacity: 0;
    transition: opacity var(--duration-fast) ease;
}

.media-placeholder:hover {
    border-color: rgba(200, 255, 0, 0.15);
}

.media-placeholder:hover::before {
    opacity: 1;
}

.placeholder-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-muted);
    z-index: 1;
}

.placeholder-icon {
    width: 48px;
    height: 48px;
    opacity: 0.4;
}

.placeholder-icon.small {
    width: 32px;
    height: 32px;
}

.placeholder-content span {
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.02em;
}

.placeholder-hint {
    font-size: 0.65rem !important;
    opacity: 0.5;
}

/* ══ When actual media is placed ══ */
.project-media img,
.project-media video,
.project-media iframe,
.project-media-grid img,
.project-media-grid video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    transition: transform var(--duration-normal) var(--ease-out);
}

.project-media:hover img {
    transform: scale(1.02);
}

.inline-loop-video {
    width: 82%;
    height: 100%;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    border-radius: 10px;
    pointer-events: none;
    background: #000;
}

#project5-sub1 .inline-loop-video,
#project5-sub2 .inline-loop-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    pointer-events: auto;
}

#project5-sub1,
#project5-sub2 {
    aspect-ratio: 9 / 16;
    max-width: 320px;
    margin: 0 auto;
}

#project-05 .project-media-grid.grid-2 {
    align-items: start;
}

#project4-sub4 .inline-loop-video {
    pointer-events: auto;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

#project3-sub2 .inline-loop-video {
    pointer-events: auto;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

#project3-sub3 .inline-loop-video {
    pointer-events: auto;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

/* ═══════════════ VIDEO PLAYER ═══════════════ */
.video-player {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    cursor: pointer;
    outline: none;
}

.video-player video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 0;
    background: #000;
}

/* ── Video Overlay ── */
.video-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

/* ── Big Play Button (center) ── */
.video-big-play {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: none;
    background: rgba(200, 255, 0, 0.9);
    color: #0a0a0a;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s var(--ease-out);
    z-index: 10;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(200, 255, 0, 0.3);
}

.video-big-play svg {
    width: 32px;
    height: 32px;
    margin-left: 4px;
}

.video-big-play:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 40px rgba(200, 255, 0, 0.5);
}

.video-big-play.hidden {
    opacity: 0;
    transform: scale(0.7);
    pointer-events: none;
}

/* ── YouTube-style Action Indicator ── */
.video-action-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 8;
    pointer-events: none;
    opacity: 0;
}

.video-action-indicator.show {
    animation: actionIndicatorPop 0.5s ease-out forwards;
}

.action-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.action-icon-wrap svg {
    width: 24px;
    height: 24px;
}

.action-icon-play {
    margin-left: 3px;
}

@keyframes actionIndicatorPop {
    0% {
        opacity: 0.9;
        transform: translate(-50%, -50%) scale(0.8);
    }

    50% {
        opacity: 0.7;
        transform: translate(-50%, -50%) scale(1.1);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.3);
    }
}

/* ── Video Controls Bar ── */
.video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s var(--ease-out);
    z-index: 15;
}

.video-overlay.show-controls .video-controls {
    opacity: 1;
    transform: translateY(0);
}

/* ── Control Buttons ── */
.video-btn {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.video-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent);
}

.video-btn svg {
    width: 20px;
    height: 20px;
}

.video-play-pause svg {
    width: 18px;
    height: 18px;
}

/* ── Time Display ── */
.video-time {
    font-size: 0.7rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.03em;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
    min-width: 80px;
}

/* ── Progress Bar ── */
.video-progress-wrap {
    flex: 1;
    padding: 8px 0;
    cursor: pointer;
}

.video-progress-bar {
    position: relative;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    overflow: visible;
    transition: height 0.15s ease;
}

.video-progress-wrap:hover .video-progress-bar {
    height: 6px;
}

.video-progress-buffered {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.video-progress-played {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: var(--accent);
    border-radius: 2px;
    z-index: 2;
}

.video-progress-handle {
    position: absolute;
    top: 50%;
    left: 0%;
    width: 14px;
    height: 14px;
    background: var(--accent);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    z-index: 3;
    transition: transform 0.15s ease;
    box-shadow: 0 0 8px rgba(200, 255, 0, 0.4);
}

.video-progress-wrap:hover .video-progress-handle {
    transform: translate(-50%, -50%) scale(1);
}

/* ── Fullscreen styles ── */
.video-player:fullscreen {
    border-radius: 0;
}

.video-player:fullscreen video {
    border-radius: 0;
}

.video-player:fullscreen .video-big-play {
    width: 100px;
    height: 100px;
}

.video-player:fullscreen .video-big-play svg {
    width: 40px;
    height: 40px;
}

.video-player:fullscreen .video-controls {
    padding: 16px 24px;
}

.video-player:fullscreen .video-btn svg {
    width: 24px;
    height: 24px;
}

.video-player:fullscreen .video-time {
    font-size: 0.85rem;
}

/* ── Volume Container ── */
.video-volume-container {
    display: flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
}

.video-volume-slider-wrap {
    width: 0;
    overflow: hidden;
    transition: width 0.25s var(--ease-out), opacity 0.25s ease;
    opacity: 0;
    padding: 8px 0;
}

.video-volume-container:hover .video-volume-slider-wrap {
    width: 80px;
    opacity: 1;
}

.video-volume-track {
    position: relative;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    cursor: pointer;
    overflow: visible;
}

.video-volume-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: var(--accent);
    border-radius: 2px;
}

.video-volume-handle {
    position: absolute;
    top: 50%;
    left: 100%;
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.15s ease;
    box-shadow: 0 0 6px rgba(200, 255, 0, 0.3);
}

.video-volume-container:hover .video-volume-handle {
    transform: translate(-50%, -50%) scale(1);
}

/* ── Settings Button & Menu ── */
.video-settings-container {
    position: relative;
    flex-shrink: 0;
}

.video-settings-btn svg {
    transition: transform 0.4s ease;
}

.video-settings-btn.active {
    color: var(--accent) !important;
}

.video-settings-btn.active svg {
    transform: rotate(60deg);
}

.video-settings-menu {
    position: absolute;
    bottom: calc(100% + 12px);
    right: 0;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 6px;
    min-width: 180px;
    opacity: 0;
    transform: translateY(8px) scale(0.95);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    z-index: 50;
}

.video-settings-menu.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.video-settings-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.video-settings-option:hover {
    background: rgba(255, 255, 255, 0.06);
}

.settings-option-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    white-space: nowrap;
    letter-spacing: 0.01em;
}

/* ── Toggle Switch ── */
.settings-toggle-track {
    width: 34px;
    height: 18px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 9px;
    position: relative;
    cursor: pointer;
    transition: background 0.25s ease;
    flex-shrink: 0;
}

.settings-toggle-track.on {
    background: var(--accent);
}

.settings-toggle-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.settings-toggle-track.on .settings-toggle-thumb {
    transform: translateX(16px);
}

/* ═══════════════ PROJECT DESCRIPTION ═══════════════ */
.project-description {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
    padding: var(--space-lg) 0;
}

.desc-block {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.desc-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
}

.desc-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.desc-text {
    margin: 0 0 18px;
    color: #999999;
    font-size: 14px;
    line-height: 1.5;
}

.desc-row {
    display: grid;
    grid-template-columns: 64px 1fr;
    column-gap: 8px;
    align-items: start;
}

.desc-key,
.desc-colon,
.desc-value,
.desc-text {
    color: #999999;
    font-size: 14px;
    line-height: 1.5;
}

.desc-key {
    white-space: nowrap;
}

.desc-colon {
    text-align: center;
}

.desc-value {
    min-width: 0;
    word-break: keep-all;
}

.project-description--program .desc-label {
    display: block;
    margin-bottom: 18px !important;
}

.project-description--program .desc-text {
    margin: 0 0 18px;
    color: #999999;
    font-size: 14px;
    line-height: 1.5;
}

.project-description--program .desc-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.project-description--program .desc-row {
    display: grid;
    grid-template-columns: 56px 1fr;
    column-gap: 16px;
    align-items: start;
}

.project-description--program .desc-key,
.project-description--program .desc-value {
    color: #999999;
    font-size: 14px;
    line-height: 1.5;
}

.project-description--program .desc-key {
    white-space: nowrap;
}

.project-description--program .desc-value {
    min-width: 0;
    word-break: keep-all;
}

.project-description--program .desc-block {
    gap: 0 !important;
}

.project-description--program .desc-tools {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 18px;
    color: #999999;
    font-size: 14px;
    line-height: 1.5;
}

.project-description--program .desc-tools span {
    display: inline-block;
}

.project-description--program .desc-tools span:nth-child(2),
.project-description--program .desc-tools span:nth-child(4) {
    opacity: 0.6;
}

/* CTA row */
.cta-row {
    margin-top: 14px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* 기본 버튼 */
.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 12px;

    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;

    color: rgba(255, 255, 255, 0.86);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: none;

    transition: transform .2s var(--ease-out),
        background .2s var(--ease-out),
        border-color .2s var(--ease-out),
        color .2s var(--ease-out),
        box-shadow .2s var(--ease-out);
}

/* primary도 기본은 동일(초록 고정 제거) */
.cta-btn.primary {
    color: rgba(255, 255, 255, 0.86);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

/* ✅ primary만 hover 시 초록 */
.cta-btn.primary:hover {
    transform: translateY(-1px);
    color: #0a0a0a;
    background: rgba(200, 255, 0, 0.92);
    border-color: rgba(200, 255, 0, 0);
    box-shadow: 0 10px 30px rgba(200, 255, 0, 0.18);
}

/* 나머지는 hover 시 약하게 */
.cta-btn:not(.primary):hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.18);
    color: #fff;
}

/* hover 강제(우선순위 높임) */
.project-description .cta-row .cta-btn:hover {
    background: rgba(200, 255, 0, 0.92);
    border-color: rgba(200, 255, 0, 0);
    color: #0a0a0a;
    box-shadow: 0 10px 30px rgba(200, 255, 0, 0.18);
    transform: translateY(-1px);
}

/* ═══════════════ ABOUT SECTION ═══════════════ */
.about-section {
    background: var(--bg-secondary);
    max-width: 100%;
    padding-left: calc((100% - var(--max-width)) / 2 + var(--space-lg));
    padding-right: calc((100% - var(--max-width)) / 2 + var(--space-lg));
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.about-content {
    display: block;
    max-width: 980px;
}

.about-heading {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.about-role {
    font-size: 1rem;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: 0.05em;
    margin-bottom: var(--space-lg);
}

.about-bio {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.9;
    margin-bottom: 3.5rem;
}

.about-skills {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.skill-group {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.skill-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
}

.skill-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.skill-item {
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.2;
    padding: 0.52em 1em;
    border: 1px solid var(--border-hover);
    border-radius: 6px;
    color: var(--text-secondary);
    transition: all var(--duration-fast) ease;
    white-space: nowrap;
}

.skill-item:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(200, 255, 0, 0.05);
}

.about-image .media-placeholder {
    aspect-ratio: 9 / 16;
    border-radius: 16px;
}

/* ═══════════════ CONTACT SECTION ═══════════════ */
.contact-section {
    text-align: center;
    padding: var(--space-2xl) var(--space-lg);
    padding-bottom: var(--space-xl);
}

.contact-content {
    max-width: var(--max-width);
    margin: 0 auto;
}

.contact-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: var(--space-xl);
}

.contact-line {
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 900;
    line-height: 1.4;
    letter-spacing: -0.03em;
}

.contact-line.accent {
    background: linear-gradient(135deg, var(--accent) 0%, #88ff88 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-info {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.contact-link {
    display: flex;
    align-items: center;
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--border);
    transition: all var(--duration-fast) ease;
    cursor: pointer;
}

.contact-link:first-child {
    border-top: 1px solid var(--border);
}

.contact-link:hover {
    padding-left: var(--space-sm);
}

.contact-link:hover .contact-link-value {
    color: var(--accent);
}

.contact-link:hover .contact-arrow {
    transform: translateX(5px);
    color: var(--accent);
}

.contact-link-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    width: 100px;
    text-align: left;
}

.contact-link-value {
    flex: 1;
    text-align: left;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--duration-fast) ease;
}

.contact-arrow {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    transition: all var(--duration-fast) ease;
}

/* ═══════════════ FOOTER ═══════════════ */
.footer {
    border-top: 1px solid var(--border);
    padding: var(--space-lg);
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-copy {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.footer-top {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    transition: color var(--duration-fast) ease;
}

.footer-top:hover {
    color: var(--accent);
}

.footer-top svg {
    width: 16px;
    height: 16px;
}

/* ═══════════════ ANIMATIONS ═══════════════ */
.animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp var(--duration-slow) var(--ease-out) forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section reveal */
.section-header,
.about-content,
.contact-content {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity var(--duration-slow) var(--ease-out),
        transform var(--duration-slow) var(--ease-out);
}

.section-header.visible,
.about-content.visible,
.contact-content.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ═══════════════ RESPONSIVE ═══════════════ */
@media (max-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .about-image {
        max-width: 320px;
    }

    .project-description {
        grid-template-columns: 150px 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --space-lg: 2rem;
        --space-xl: 3.5rem;
        --space-2xl: 5rem;
    }

    .nav-inner {
        padding: 0 var(--space-sm);
    }

    .nav-links {
        gap: var(--space-md);
    }

    .section {
        padding: var(--space-xl) var(--space-sm);
    }

    .about-section {
        padding-left: var(--space-sm);
        padding-right: var(--space-sm);
    }

    .project-description {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .project-header {
        flex-direction: column;
        gap: var(--space-sm);
    }

    .project-number {
        font-size: 2rem;
    }

    .project-title {
        font-size: 1.2rem;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }

    .contact-info {
        width: 100%;
    }

    .contact-link-label {
        width: 80px;
    }

    .about-heading {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .title-line {
        font-size: 2.5rem;
    }

    .hero-label {
        font-size: 0.65rem;
        letter-spacing: 0.2em;
    }

    .hero-desc {
        font-size: 0.85rem;
    }

    .section-title {
        font-size: 1.2rem;
    }

    .contact-line {
        font-size: 2rem;
    }
}

/* ═══════════════ IMAGE LIGHTBOX ═══════════════ */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s var(--ease-out), visibility 0.4s var(--ease-out);
    cursor: pointer;
}

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

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s var(--ease-out);
    z-index: 10001;
    backdrop-filter: blur(10px);
}

.lightbox-close svg {
    width: 20px;
    height: 20px;
}

.lightbox-close:hover {
    background: rgba(200, 255, 0, 0.15);
    border-color: var(--accent);
    color: var(--accent);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 0 20px rgba(200, 255, 0, 0.2);
}

.lightbox-img {
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);
    transform: scale(0.85);
    opacity: 0;
    transition: transform 0.5s var(--ease-out), opacity 0.4s ease;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}

.lightbox-overlay.active .lightbox-img,
.lightbox-overlay.active .lightbox-video {
    transform: scale(1);
    opacity: 1;
}

/* Lightbox video */
.lightbox-video {
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);
    transform: scale(0.85);
    opacity: 0;
    transition: transform 0.5s var(--ease-out), opacity 0.4s ease;
    display: none;
    background: #000;
    outline: none;
    cursor: pointer;
}

/* Clickable images in projects - add zoom cursor */
.project-media-grid .media-placeholder img,
.project-media .media-placeholder img,
.project-media-grid .placeholder-content img {
    cursor: zoom-in;
    transition: transform var(--duration-normal) var(--ease-out),
        filter var(--duration-fast) ease;
}

.project-media-grid .media-placeholder img:hover,
.project-media .media-placeholder img:hover,
.project-media-grid .placeholder-content img:hover {
    filter: brightness(1.1);
}

/* Prevent body scroll when lightbox is open */
body.lightbox-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    .lightbox-close {
        top: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
    }

    .lightbox-close svg {
        width: 18px;
        height: 18px;
    }

    .lightbox-img {
        max-width: 95vw;
        max-height: 85vh;
        border-radius: 4px;
    }
}

/* ═══════════════ NOISE OVERLAY ═══════════════ */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.015'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
    opacity: 0.5;
}

/* ═══════════════ CURSOR GLOW (desktop only) ═══════════════ */
.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200, 255, 0, 0.04) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    will-change: left, top;
}

@media (max-width: 768px) {
    .cursor-glow {
        display: none;
    }
}

/* ═══════════════ COPY TOAST ═══════════════ */
.copy-toast {
    position: fixed;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%) translateY(30px);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.5rem;
    background: rgba(30, 30, 30, 0.95);
    border: 1px solid rgba(200, 255, 0, 0.2);
    border-radius: 50px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05);
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.copy-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.copy-toast svg {
    width: 18px;
    height: 18px;
    color: var(--accent);
    flex-shrink: 0;
}

.copy-toast span {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    letter-spacing: 0.02em;
}

/* ── Copy Icon on Contact Links ── */
.contact-link.copyable {
    cursor: pointer;
}

.copy-icon {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    opacity: 0.4;
    transition: opacity var(--duration-fast) ease, color var(--duration-fast) ease;
    flex-shrink: 0;
}

.contact-link.copyable:hover .copy-icon {
    opacity: 1;
    color: var(--accent);
}

/* ═══════════════ CCL LICENSE BADGE ═══════════════ */
.ccl-list {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: var(--space-lg) 0 0;
    width: fit-content;
    margin-left: auto;
    opacity: 0.6;
    transition: opacity var(--duration-fast) ease;
    position: relative;
    cursor: pointer;
    --tip-gap: -30px;
    --tip-lift: 4px;
    --tail: 10px;
    --tip-y: calc(100% + var(--tip-gap));
}

.ccl-list:hover {
    opacity: 1;
}

/* ── 툴팁 텍스트 ── */
.ccl-list::before {
    content: attr(ccl);
    position: absolute;
    bottom: var(--tip-y);
    left: 50%;
    transform: translateX(-50%) translateY(var(--tip-lift));
    background: var(--bg-elevated);
    color: var(--text-primary);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid var(--border-hover);
    white-space: nowrap;
    opacity: 0;
    transition: translateX(-50%) translateY(var(--tip-lift));
    pointer-events: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    z-index: 20;
}

/* ── 툴팁 삼각형 꼬리 ── */
.ccl-list::after {
    /* content: '';
    position: absolute;
    bottom: calc(var(--tip-y) - (var(--tail) - 1px));
    left: 50%;
    transform: translateX(-50%) translateY(var(--tip-lift));
    border: 8px solid transparent;
    border-top-color: var(--bg-elevated);
    opacity: 0;
    transition: opacity var(--duration-fast) ease, transform var(--duration-fast) ease;
    pointer-events: none;
    z-index: 19; */
    display: none;
}

.ccl-list:hover::before,
.ccl-list:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.ccl-list img {
    width: 28px;
    height: 28px;
    display: block;
    filter: invert(1) brightness(0.85);
    transition: filter var(--duration-fast) ease, transform var(--duration-fast) ease;
}

.ccl-list:hover img {
    filter: invert(1) brightness(1.1) sepia(1) saturate(5) hue-rotate(25deg);
}

.ccl-list img:hover {
    transform: scale(1.15);
}