        /* --- 1. 다크 모드 고정 테마 설정 (Color Palette & Typography) --- */
        :root {
            --bg-start: #0B0F1A;      /* 스트리트웨어 감성의 깊은 다크 네이비 */
            --bg-middle: #161B26;     /* 차분한 다크 차콜 블렌딩 */
            --bg-end: #1F2430;        /* 세련된 은은한 다크 그레이 */
            --bg-ani-extra: #070A12;   /* 동적 애니메이션용 추가 다크 포인트 */
            --text-main: #F5EFEB;     /* 고대비 퓨어 화이트 계열 */
            --text-muted: #A39E98;    /* 무드 있는 미디움 실버 그레이 */
            --accent: #C4A484;        /* 미니멀한 골드 베이지 포인트 */
            --white: #161B26;         /* 카드 배경용 다크 솔리드 */
            --header-bg: rgba(11, 15, 26, 0.85);
            --card-bg: rgba(22, 27, 38, 0.6);
            --skill-bg: rgba(31, 36, 48, 0.5);
            --progress-base: #2D3446;
            --modal-overlay: rgba(7, 10, 18, 0.85);
            --shadow-color: rgba(0, 0, 0, 0.4);

            --font-serif: 'Gowun Batang', serif;
            --font-sans: 'Noto Sans KR', sans-serif;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html {
            scroll-behavior: smooth;
        }

        /* 은은하게 색이 변하는 다크 모드 동적 그라디언트 배경 효과 */
        body {
            color: var(--text-main);
            font-family: var(--font-sans);
            line-height: 1.6;
            overflow-x: hidden;
            background: linear-gradient(-45deg, var(--bg-start), var(--bg-middle), var(--bg-end), var(--bg-ani-extra));
            background-size: 400% 400%;
            animation: gradientAnimation 14s ease infinite;
        }

        @keyframes gradientAnimation {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }

        a {
            color: inherit;
            text-decoration: none;
        }

        li {
            list-style: none;
        }

        /* --- 2. GNB (Global Navigation Bar) --- */
        header {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            background-color: var(--header-bg);
            backdrop-filter: blur(12px);
            z-index: 1000;
            border-bottom: 1px solid rgba(196, 164, 132, 0.15);
        }

        .gnb-container {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px;
        }

        .logo {
            font-family: var(--font-serif);
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--text-main);
        }

        .gnb-menu {
            display: flex;
            gap: 40px;
        }

        .gnb-menu a {
            display: inline-block;
            font-size: 0.95rem;
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 1px;
            position: relative;
            padding: 5px 0;
            transition: color 0.3s ease, transform 0.3s ease;
        }

        .gnb-menu a::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 2px;
            background-color: var(--accent);
            transition: width 0.3s ease;
        }

        .gnb-menu a:hover {
            color: var(--accent);
        }

        .gnb-menu a:hover::after {
            width: 100%;
        }

        .gnb-menu a.gnb-about-btn:hover {
            animation: bounceMenu 0.6s ease-in-out infinite alternate;
        }

        @keyframes bounceMenu {
            0% { transform: translateY(0); }
            100% { transform: translateY(-4px); }
        }

        /* 공통 섹션 스타일 */
        section {
            padding: 120px 20px 80px 20px;
            max-width: 1200px;
            margin: 0 auto;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        .section-title {
            font-family: var(--font-serif);
            font-size: 2.5rem;
            margin-bottom: 50px;
            text-align: center;
            position: relative;
        }

        .section-title::after {
            content: '';
            display: block;
            width: 40px;
            height: 2px;
            background-color: var(--accent);
            margin: 15px auto 0 auto;
        }

        /* --- 3. Home Section --- */
        #home {
            text-align: center;
            align-items: center;
            justify-content: center;
        }

        .home-subtitle {
            font-size: 1.1rem;
            letter-spacing: 3px;
            color: var(--text-muted);
            margin-bottom: 20px;
            text-transform: uppercase;
        }

        .home-title {
            font-family: var(--font-serif);
            font-size: 3.5rem;
            font-weight: 700;
            line-height: 1.4;
            margin-bottom: 30px;
            opacity: 0;
            transform: translateY(30px);
            animation: fadeInUp 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
        }

        .home-title span {
            color: var(--accent);
        }

        @keyframes fadeInUp {
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* --- 4. About Section --- */
        .about-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 40px;
            margin-bottom: 80px;
        }

        .about-card {
            background-color: var(--card-bg);
            backdrop-filter: blur(5px);
            padding: 30px;
            border-radius: 12px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            border: 1px solid rgba(196, 164, 132, 0.15);
            transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease, border-color 0.4s ease;
        }

        .about-card:hover {
            transform: translateY(-5px);
            border-color: var(--accent);
            box-shadow: 0 15px 35px rgba(196, 164, 132, 0.15);
        }

        .about-card h3 {
            font-family: var(--font-serif);
            font-size: 1.4rem;
            color: var(--accent);
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .about-card ul li {
            margin-bottom: 12px;
            display: flex;
            justify-content: space-between;
        }

        .about-card ul li span.date {
            color: var(--text-muted);
            font-size: 0.9rem;
        }

        .skills-container {
            background-color: var(--skill-bg);
            backdrop-filter: blur(5px);
            padding: 40px;
            border-radius: 15px;
            border: 1px solid rgba(196, 164, 132, 0.1);
        }

        .skills-container h3 {
            font-family: var(--font-serif);
            text-align: center;
            font-size: 1.6rem;
            margin-bottom: 35px;
        }

        .skills-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 30px;
        }

        .skill-item {
            background: var(--card-bg);
            padding: 20px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            gap: 20px;
            border: 1px solid rgba(196, 164, 132, 0.05);
        }

        .skill-icon {
            font-size: 2.2rem;
            color: var(--accent);
            width: 50px;
            text-align: center;
        }

        .skill-info {
            flex-grow: 1;
        }

        .skill-name {
            display: flex;
            justify-content: space-between;
            font-weight: 500;
            margin-bottom: 8px;
        }

        .progress-bar {
            background-color: var(--progress-base);
            height: 8px;
            border-radius: 4px;
            overflow: hidden;
        }

        .progress-fill {
            background-color: var(--accent);
            height: 100%;
            width: 0;
            border-radius: 4px;
            transition: width 1.5s cubic-bezier(0.1, 0.8, 0.2, 1);
        }

        /* --- 5. Projects Section --- */
        .project-slider-outer {
            position: relative;
            width: 100%;
            display: flex;
            align-items: center;
            margin-top: 20px;
            padding: 0 45px; 
        }

        .project-slider-window {
            overflow: hidden;
            width: 100%;
            padding: 10px 0 25px 0;
        }

        .project-slider-track {
            display: flex;
            gap: 30px;
            transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
            width: 100%;
        }

/* 1. 3D 캐러셀 컨테이너 */
.projects-container {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1200px; /* 입체감 설정 */
    transform-style: preserve-3d; /* 자식 요소가 3D 공간을 유지하게 함 */
    gap: 0;
    padding: 100px 0;
}

/* 2. 진주 질감의 카드 스타일 */
.pearl-card {
    width: 280px;
    height: 380px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    backdrop-filter: blur(15px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3), inset 0 0 20px rgba(255,255,255,0.1);
    transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* 위치별 클래스 스타일 */
.pearl-card.left { transform: rotateY(30deg) scale(0.9) translateX(20px); z-index: 1; }
.pearl-card.center-card { transform: scale(1.15) translateY(-20px); z-index: 10; box-shadow: 0 25px 50px rgba(0,0,0,0.5); }
.pearl-card.right { transform: rotateY(-30deg) scale(0.9) translateX(-20px); z-index: 1; }

/* 3. 3D 입체 변형
.projects-container .pearl-card:nth-child(1) {
    transform: rotateY(30deg) scale(0.9) translateX(20px);
    z-index: 1;
}

.projects-container .center-card {
    transform: scale(1.15) translateY(-20px);
    z-index: 10;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}

.projects-container .pearl-card:nth-child(3) {
    transform: rotateY(-30deg) scale(0.9) translateX(-20px);
    z-index: 1;
} */

        .project-card {
            
            background-color: var(--white);
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 8px 8px rgba(0, 0, 0, 0.2);
            border: 1px solid rgba(196, 164, 132, 0.15);
            cursor: pointer;
            transition: transform 0.4s ease, box-shadow 0.4s ease;
            flex: 0 0 calc((100% - 60px) / 3);
        }

        .project-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 8px 8px rgba(196, 164, 132, 0.3);
        }

        .project-card img {
            width: 100%;
            height: 200px;
            object-fit: cover;
            display: block;
            background-color: rgba(7, 10, 18, 0.4);
        }

        .project-info {
            padding: 25px;
        }

        .project-tool {
            font-size: 0.8rem;
            background-color: rgba(7, 10, 18, 0.5);
            color: var(--text-muted);
            padding: 3px 12px;
            border-radius: 20px;
            display: inline-block;
            margin-bottom: 12px;
            font-weight: 500;
        }

        .project-card h3 {
            font-family: var(--font-serif);
            font-size: 1.3rem;
            margin-bottom: 10px;
        }

        .project-card p {
            color: var(--text-muted);
            font-size: 0.9rem;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .slider-control-btn {
            background-color: var(--white);
            border: 1px solid rgba(196, 164, 132, 0.25);
            width: 54px;
            height: 54px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            box-shadow: 0 8px 24px var(--shadow-color);
            position: absolute;
            z-index: 10;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            color: var(--text-main);
        }

        .slider-control-btn:hover {
            background-color: var(--accent);
            color: #0B0F1A;
            border-color: var(--accent);
            transform: translateY(-50%) scale(1.1);
            box-shadow: 0 12px 28px rgba(196, 164, 132, 0.35);
        }

        .slider-control-btn.prev {
            left: -10px;
            top: 50%;
            transform: translateY(-50%);
        }

        .slider-control-btn.next {
            right: -10px;
            top: 50%;
            transform: translateY(-50%);
        }

        .slider-control-btn.disabled {
            opacity: 0.25;
            pointer-events: none;
            box-shadow: none;
        }

        /* --- 6. MODAL SYSTEM (화면 확장 및 텍스트 영역 축소 반영) --- */
        .modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: var(--modal-overlay);
            backdrop-filter: blur(6px);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 2000;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.4s ease;
        }

        .modal.active {
            opacity: 1;
            pointer-events: auto;
        }

        .modal-content {
            background-color: var(--bg-start);
            width: 92%;
            max-width: 950px; /* 미디어가 시원하게 보이도록 모달 전체 가로폭 확장 (기존 780px) */
            border-radius: 16px;
            overflow: hidden;
            position: relative;
            transform: scale(0.9);
            transition: transform 0.4s cubic-bezier(0.1, 0.8, 0.2, 1);
            border: 1px solid var(--accent);
            box-shadow: 0 25px 50px rgba(0,0,0,0.5);
        }

        .modal.active .modal-content {
            transform: scale(1);
        }

        .modal-close {
            position: absolute;
            top: 15px;
            right: 15px;
            font-size: 1.4rem;
            background: var(--white);
            border: 1px solid rgba(196, 164, 132, 0.2);
            border-radius: 50%;
            width: 38px;
            height: 38px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            color: var(--text-main);
            z-index: 100;
            transition: all 0.3s;
        }

        .modal-close:hover {
            background-color: var(--accent);
            color: #0B0F1A;
        }

        .modal-body {
            padding: 30px; /* 내부 여백 최적화 */
        }

        .modal-view-container {
            width: 100%;
            height: 520px; /* 작업물이 잘 보이도록 세로 높이 대폭 확장 (기존 380px) */
            background-color: var(--bg-middle);
            border-radius: 12px;
            overflow: hidden;
            margin-bottom: 20px;
            border: 1px solid rgba(196, 164, 132, 0.25);
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
        }

        .modal-view-container img, 
        .modal-view-container video, 
        .modal-view-container iframe {
            width: 100%;
            height: 100%;
            border: none;
            object-fit: contain;
        }

        /* 타이틀 크기 축소 */
        #modalTitle {
            font-family: var(--font-serif);
            font-size: 1.5rem !important; /* 글씨 크기 축소 (기존 1.8rem) */
            margin: 8px 0 !important;
        }

        /* 설명글 영역 축소 및 세부조정 */
        #modalAbout {
            color: var(--text-main);
            font-size: 0.95rem !important; /* 가독성을 해치지 않는 선에서 폰트 크기 미세 축소 */
            line-height: 1.5;
            max-height: 120px !important; /* 글씨 레이아웃 공간 제한 (기존 200px) */
            overflow-y: auto; /* 내용이 넘칠 때만 깔끔하게 내부 스크롤 발생 */
            padding-right: 5px;
        }

        /* --- 7. Contact Section --- */
        .contact-wrapper {
            display: grid;
            grid-template-columns: 1.2fr 0.8fr;
            gap: 50px;
            align-items: center;
        }

        .contact-vision {
            padding-right: 30px;
        }

        .contact-vision h3 {
            font-family: var(--font-serif);
            font-size: 1.8rem;
            line-height: 1.5;
            margin-bottom: 25px;
        }

        .contact-vision p {
            color: var(--text-muted);
            font-size: 1.05rem;
        }

        .contact-info-list {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .contact-item {
            background-color: var(--card-bg);
            backdrop-filter: blur(5px);
            padding: 20px 25px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            gap: 20px;
            border: 1px solid rgba(196, 164, 132, 0.15);
            transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
        }

        .contact-item:hover {
            transform: translateX(10px);
            border-color: var(--accent);
            box-shadow: 0 5px 15px rgba(196, 164, 132, 0.2);
        }

        .contact-item i {
            font-size: 1.5rem;
            color: var(--accent);
            width: 30px;
            text-align: center;
            transition: transform 0.3s ease;
        }

        .contact-item:hover i {
            transform: scale(1.2);
        }

        .contact-item div span {
            display: block;
            font-size: 0.8rem;
            color: var(--text-muted);
            text-transform: uppercase;
        }

        .contact-item div p {
            font-weight: 500;
            font-size: 1.05rem;
        }

        footer {
            text-align: center;
            padding: 40px;
            font-size: 0.85rem;
            color: var(--text-muted);
            border-top: 1px solid rgba(196, 164, 132, 0.1);
            background-color: var(--bg-middle);
        }

        @media (max-width: 992px) {
            .project-card {
                flex: 0 0 calc((100% - 30px) / 2);
            }
        }

        @media (max-width: 768px) {
            .gnb-menu { display: none; }
            .about-grid, .skills-grid, .contact-wrapper {
                grid-template-columns: 1fr;
            }
            .home-title { font-size: 2.5rem; }
            section { padding-top: 100px; }
            .project-slider-outer { padding: 0 20px; }
            .project-card {
                flex: 0 0 100%;
            }
            .slider-control-btn.prev { left: -15px; }
            .slider-control-btn.next { right: -15px; }
            .modal-view-container { height: 340px; } /* 모바일 모달창 높이도 연동하여 확대 (기존 260px) */
        }

        /* --- 5개의 움직이는 핑크 베이지 진주 배치 --- */
        .pearl {
            position: fixed;
            border-radius: 50%;
            z-index: -1;
            pointer-events: none;
            background: radial-gradient(circle at 30% 30%, 
                    rgba(255, 255, 255, 0.95) 0%, 
                    rgba(255, 251, 245, 0.9) 15%, 
                    rgba(252, 234, 221, 0.9) 40%, 
                    rgba(210, 180, 160, 0.9) 70%, 
                    rgba(150, 120, 100, 0.9) 100%);
            box-shadow: inset -20px -20px 40px rgba(80, 40, 30, 0.3), inset 10px 10px 20px rgba(255, 255, 255, 0.8);
            animation: float 10s ease-in-out infinite;
        }

        @keyframes float {
                0%, 100% { transform: translateY(0) rotate(0deg); }
                50% { transform: translateY(-30px) rotate(10deg); }
        }

        /* 5개의 진주 크기와 위치 설정 */
        .p1 { width: 220px; height: 220px; top: 5%; right: 5%; animation-duration: 12s; }
        .p2 { width: 140px; height: 140px; bottom: 10%; left: 5%; animation-duration: 9s; animation-delay: -2s; }
        .p3 { width: 90px; height: 90px; top: 30%; left: 15%; animation-duration: 14s; }
        .p4 { width: 110px; height: 110px; bottom: 20%; right: 10%; animation-duration: 11s; animation-delay: -5s; }
        .p5 { width: 70px; height: 70px; top: 60%; right: 20%; animation-duration: 15s; }

        /* 텍스트 주변의 둥근 빛 띠 효과 */
        .title-glow-ring {
            position: relative;
            display: inline-block;
            padding: 100px;
        }
        /* 별이 생성될 공간 */
        #star-wrapper {
            position: absolute; top: 0; left: 0; width: 100%; height: 100%;
            pointer-events: none; z-index: 1;
        }
        .glow-svg {
            position: absolute;
            top: 50%; left: 50%;
            width: 700px; height: 700px;
            margin: -350px 0 0 -350px;
            z-index: -1;
            fill: none;
            stroke: rgba(196, 164, 132, 0.1); /* 연한 골드빛 */
            stroke-width: 1;
            stroke-linecap: round;
            pointer-events: none;
        }

        .circle-draw {
            /* 선의 길이를 1500으로 설정 */
            stroke-dasharray: 1500;
            stroke-dashoffset: 1500;
            /* 3초 동안 부드럽게 그려짐 */
            animation: draw 6s forwards ease-in-out;
        }

        @keyframes draw {
            to { stroke-dashoffset: 0; }
        }

        /* 개별 별 스타일 */
        .floating-star {
            position: absolute;
            width: 1px; height: 1px;
            background: rgb(196, 164, 132);
            border-radius: 50%;
            box-shadow: 0 0 8px rgb(196, 164, 132);
            animation: twinkle 2s infinite ease-in-out;
        }

        @keyframes twinkle {
            0%, 100% { opacity: 0; transform: scale(0.2); }
            50% { opacity: 1; transform: scale(1.2); }
        }

        #stars-container {
            position: fixed; top: 0; left: 0; width: 100%; height: 100%;
            z-index: -1; pointer-events: none;
        }
        .star {
            position: absolute;
            background: white;
            border-radius: 50%;
            animation: twinkle 2s infinite ease-in-out;
        }
        @keyframes twinkle {
            0%, 100% { opacity: 0; transform: scale(0.5); }
            50% { opacity: 1; transform: scale(1.2); }
        }