/* ===== CSS VARIABLES ===== */
:root {
    /* Colors - 시안의 청록색 그라데이션 기반 */
    --primary-cyan: #80def1;
    --primary-cyan-light: #a5edf8;
    --primary-cyan-dark: #00a8cc;
    --soft-blue: #88daed;
    --middle-blue: #76c5d7;
    --accent-white: #ffffff;
    --accent-cream: #fff9f0;
    --text-dark: #1c7998;
    --text-light: #5a8a9e;
    --bg-gradient-start: #e8feff;
    --bg-gradient-end: #00e5ff;
    
    /* font */
    --font-display: 'memoment Kkukkkuk','NeoDunggeunmo Pro','Playfair Display', serif;
    --font-pixel-1: 'Galmuri7', 'NeoDunggeunmo Pro', sans-serif;
    --font-pixel-2: 'Galmuri14', sans-serif;
    --font-pixel-3: 'NeoDunggeunmo Pro', sans-serif;
    --font-body: 'memoment Kkukkkuk', 'Poppins', sans-serif;
    --font-korean: 'memoment Kkukkkuk', 'Noto Sans KR', sans-serif;
    
    /* Spacing */
    --section-padding: 80px;
    --container-width: 1200px;
    
    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.3;
    overflow-x: hidden;
}

a {
    text-decoration: none;
}

/* ===== BACKGROUND ===== */
.background-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, 
        var(--bg-gradient-start) 0%, 
        var(--primary-cyan-light) 30%,
        var(--primary-cyan) 60%,
        var(--bg-gradient-end) 100%
    );
    background-image: url('../images/background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -1;
}

/* 도트 패턴 오버레이 */
.background-layer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, rgba(255,255,255,0.3) 2px, transparent 2px);
    background-size: 20px 20px;
    opacity: 0.5;
}

/* ===== NAVIGATION ===== */
.main-nav {
    position: fixed;
    top: 30px;
    /* bottom: 30px; */
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 12px 30px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    font-family: var(--font-pixel-3);
}

.main-nav ul {
    display: flex;
    gap: 40px;
    list-style: none;
}

.main-nav a {
    text-decoration: none;
    color: #6fc5d8;
    font-size: 20px;
    font-weight: 300;
    transition: var(--transition-smooth);
    position: relative;
    letter-spacing: 0.4px;
}

.main-nav a:hover,
.main-nav a.active{
  color: #ffffff;
  text-shadow:
    0 0 6px rgba(0, 187, 216, 0.7),
    0 0 16px rgba(13, 138, 163, 0.25);
}

.main-nav a.active::after {
    content:'';
  position:absolute;
  left: 6px;
  right: 6px;
  bottom: -6px;
  height: 3px;
  border-radius: 999px;
  /* opacity: 0; */
  transform: translateY(2px);
  transition: opacity .2s ease, transform .2s ease;
  background: linear-gradient(90deg,
    rgba(133, 212, 224, 0.7));
  filter: blur(0.5px);
}

/* ===== SECTIONS (공통) ===== */
.section {
    min-height: 100vh;
    height: 100vh;
    padding: var(--section-padding);
    padding-bottom: 70px;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    position: relative;
}

.section-nav {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    font-size: 12px;
    color: var(--text-light);
}

.section-nav .active {
    color: var(--text-dark);
    font-weight: 500;
    text-decoration: underline;
}

/* ===== HERO SECTION ===== */
.hero-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    min-height: 100vh;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 별 배경 이미지 스타일 */
.title-star {
    position: absolute;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    z-index: 0;
    pointer-events: none;
}

.title-star img {
    width: 100%;
    height: auto;
}

.title-star.show {
    opacity: 1;
    transform: scale(1);
}

/* title-star-1: "I turn little Sparkles" 뒤 - 좌측 */
.title-star-1 {
    right: 120px;
    top: -50px;
    width: 400px;
}

/* title-star-2: "into moments" 뒤 - 더 위쪽, 오른쪽으로 */
.title-star-2 {
    right: -70px;
    top: -140px;
    width: 220px;
}

/* title-star-3: "that stay with you" 뒤 - 더 왼쪽으로 */
.title-star-3 {
    left: 72px;
    bottom: -35px;
    transform: scale(0.8);
    width: 125px;
}

.title-star-3.show {
    transform: scale(1);
}

/* ===== 타이틀 텍스트 레이아웃 ===== */

/* I turn little - Sparkles 바로 위에 붙이기 */
.hero-subtitle {
    font-family: var(--font-display);
    font-size: 28px;
    font-style: italic;
    color: var(--accent-white);
    filter: drop-shadow(0 2px 5px rgba(9, 156, 185, 0.5));
    opacity: 0;
    z-index: 1;
    margin-right: 44px;
    margin-top: 20px;
    margin-bottom: -15px; /* Sparkles와 더 가깝게 */
    letter-spacing: 2px;
}

.hero-subtitle.show {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Sparkles - 메인 타이틀, Galmuri7 + 그라데이션 */
.hero-title {
    font-family: var(--font-pixel-1);
    font-size: 110px;
    font-weight: 400;
    /* 하늘색-흰색 그라데이션 */
    background: linear-gradient(180deg, 
        var(--primary-cyan-light) 0%, 
        var(--accent-white) 50%,
        var(--primary-cyan-light) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /* 텍스트 그림자로 글로우 효과 */
    filter: drop-shadow(2px 4px 7px rgba(9, 156, 185, 0.5));
    letter-spacing: 8px;
    opacity: 0;
    position: relative;
    z-index: 1;
    margin-bottom: 5px;
}

.hero-title.show {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* into moments - 더 위쪽, 오른쪽으로 */
.hero-into {
    position: absolute;
    right: -120px;
    top: -70px;
    text-align: left;
    opacity: 0;
    z-index: 1;
    line-height: 1.1; /* into와 moments 더 가깝게 */
}

.hero-into.show {
    animation: fadeInRight 0.8s ease-out forwards;
}

/* into */
.hero-into-text {
    font-family: var(--font-display);
    font-size: 30px;
    font-style: italic;
    color: #a3d3e8;
    display: block;
    margin-bottom: -4px; /* moments와 더 가깝게 */
}

/* that stay with you - 더 왼쪽으로 */
.hero-tagline {
    font-family: var(--font-display);
    font-size: 28px;
    font-style: italic;
    color: var(--accent-white);
    opacity: 0;
    z-index: 1;
    margin-top: 70px;
    margin-left: -250px;
    letter-spacing: 2px;
    filter: drop-shadow(0 2px 7px rgba(9, 156, 185, 0.7));
    white-space: nowrap;
}

.hero-tagline.show {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* moments - Galmuri7 + 그라데이션 */
.highlight {
    font-family: var(--font-pixel-1);
    font-size: 41px;
    font-weight: 400;
    /* 하늘색-흰색 그라데이션 */
    background: linear-gradient(180deg, 
        var(--primary-cyan-light) 0%, 
        var(--accent-white) 50%,
        var(--primary-cyan-light) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 5px rgba(15, 112, 129, 0.454));
    display: block;
    letter-spacing: 3px;
}
.highlight2 {
    font-family: var(--font-pixel-1);
    font-size: 28px;
    font-weight: 400;
    /* 하늘색-흰색 그라데이션 */
    background: linear-gradient(180deg, 
        var(--primary-cyan-light) 0%, 
        var(--accent-white) 50%,
        var(--primary-cyan-light) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 5px rgba(15, 112, 129, 0.454));
    display: inline;
    letter-spacing: 3px;
}

/* ===== PORTFOLIO BANNER (하단 고정 컨베이어 벨트) ===== */
.portfolio-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(90deg, 
        var(--accent-cream) 0%,
        #d4f7ff 50%,
        var(--accent-white) 100%
    );
    overflow: hidden;
    z-index: 1000;
}

/* 전체 컨베이어 벨트 */
.banner-conveyor {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.conveyor-content {
    display: flex;
    align-items: center;
    gap: 30px;
    white-space: nowrap;
    animation: scrollToRight 50s linear infinite;
}

/* 배너 텍스트 */
.banner-text {
    font-family: var(--font-pixel-1);
    font-size: 14px;
    font-style: italic;
    color: rgba(31, 161, 187, 0.85);
    letter-spacing: 1px;
}

/* 별 컨테이너 */
.banner-stars {
    display: flex;
    gap: 5px;
}

/* 개별 별 - 반짝이는 애니메이션 */
.banner-stars .star {
    font-size: 14px;
    font-style: italic;
    color: var(--primary-cyan-dark);
    animation: twinkle 1.5s ease-in-out infinite;
}

.banner-stars .star:nth-child(1) { animation-delay: 0s; }
.banner-stars .star:nth-child(2) { animation-delay: 0.2s; }
.banner-stars .star:nth-child(3) { animation-delay: 0.4s; }
.banner-stars .star:nth-child(4) { animation-delay: 0.6s; }
.banner-stars .star:nth-child(5) { animation-delay: 0.8s; }

.no-italic,
.no-italic *{
  font-style: normal !important;
}

/* 별 반짝임 애니메이션 */
@keyframes twinkle {
    0%, 100% {
        opacity: 1;
        color: var(--primary-cyan-dark);
    }
    50% {
        opacity: 0.5;
        color: var(--accent-white);
    }
}

/* 점 */
.banner-dots {
    font-size: 10px;
    color: var(--primary-cyan-dark);
    letter-spacing: 8px;
}

/* 중앙 고정 타이틀 (컨베이어 위에 떠있음) */
.banner-center-floating {
    position: relative;
    z-index: 10;
    padding: 0;
}

.portfolio-title {
    font-family: var(--font-pixel-3);
    font-weight: 600;
    font-size: 16px;
    color: white;
    background: var(--middle-blue);
    border-radius: 20px;
    padding: 12px 40px;
    letter-spacing: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

/* 오른쪽 방향 스크롤 애니메이션 */
@keyframes scrollToRight {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}

/* 기존 portfolio-badge 스타일 (호환성 유지) */
.portfolio-badge {
    display: none;
}

.portfolio-text {
    font-weight: 600;
    color: var(--primary-cyan-dark);
    font-size: 14px;
}

.portfolio-subtext {
    font-family: var(--font-korean);
    font-size: 11px;
    color: var(--text-light);
}

/* ===== PROFILE SECTION ===== */
.profile-section {
    display: flex;
    flex-direction: column;
    padding-top: 100px;
}

.profile-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 60px;
    max-width: var(--container-width);
    margin: 60px auto;
}

/* 프로필 카드 */
.profile-card {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 40px rgba(0, 180, 216, 0.15);
    position: relative;
}

.profile-balloon {
    max-width: 120px;
    position: absolute;
    top: 35px;
    right: 110px;
}

.profile-card .dialogue {
    position: relative;
    z-index: 10;
    display: inline-block;
    font-size: 14px;
    margin: 18px auto;
    line-height: 1.6;
}

.profile-balloon img {
    width: 100%;
    margin: 0 25px;
}

.profile-avatar {
    /* position: relative; */
    /* z-index: 10; */
    /* width: 200px; */
    margin: 10px auto 15px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, #fff 0%, #e8f4f8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(0, 180, 216, 0.2);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-name {
    font-family: var(--font-pixel-2);
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 5px;
    letter-spacing: 3px;
    position: relative;
}

.name-sparkle1 {
    position: absolute;
    width: 25px;
    top: 0;
    left: 40px;
    transform: rotate(30deg);
    filter: drop-shadow(0 1px 1px rgba(135, 200, 218, 0.7));
}
.name-sparkle2 {
    position: absolute;
    width: 25px;
    top: 20px;
    right: 40px;
    filter: drop-shadow(0 1px 1px rgba(135, 200, 218, 0.7));
}

.profile-name-en {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.profile-birth {
    font-family: var(--font-korean);
    font-size: 13px;
    color: var(--text-light);
    padding: 8px 15px;
    background: rgba(155, 220, 233, 0.5);
    border-radius: 15px;
    display: inline-block;
    margin-bottom: 20px;
}
.profile-tag {

}

/* 프로필 상세 정보 */
.profile-details {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding-top: 50px;
}

.detail-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.detail-item .section-sparkle {
    position: absolute;
    left: -20px;
    width: 30px;
    filter: drop-shadow(0 1px 1px rgba(93, 156, 173, 0.7));
}

.detail-item {
    position: relative;
}

.detail-item h3 {
    font-family: var(--font-body);
    font-size: 28px;
    font-weight: 400;
    color: #2f96c2;
    filter: drop-shadow(0 2px 2px rgba(255, 255, 255, 0.7));
    margin-bottom: 5px;
    position: relative;
    z-index: 99999;
}

/* .detail-item h3::after {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
} */

.detail-item p {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.8;
}

/* Interest 태그 */
.interest-tags {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-wrap: wrap;
}

.tag {
    display: inline-block;
    width: 78px;
    text-align: center;
    background: rgba(255, 255, 255, 0.4);
    padding: 6px 15px;
    border-radius: 15px;
    font-size: 14px;
    color: var(--text-dark);
    border: 1px solid rgba(0, 212, 255, 0.3);
}

/* Skills 바 */
.skills-bars {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skill-bar {
    display: flex;
    align-items: center;
    gap: 15px;
}

.skill-bar span {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--text-light);
    min-width: 80px;
}

.skill-bar .bar {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    overflow: hidden;
}

.skill-bar .fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-cyan-dark), var(--primary-cyan));
    border-radius: 4px;
    transition: width 1s ease-out;
}

/* Software 아이콘 */
.software-icons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.software-icons img {
    width: 35px;
}

/* .sw-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dark);
    transition: var(--transition-smooth);
}

.sw-icon:hover {
    background: var(--primary-cyan);
    color: white;
    transform: translateY(-3px);
} */

/* ===== WORKS SECTION ===== */
.works-section {
    padding-top: 60px;
    padding-bottom: 70px;
}

/* Works 컨테이너 - 좌측 사이드바 + 우측 컨텐츠 */
.works-container {
    display: flex;
    gap: 30px;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* 좌측 사이드바 */
.works-sidebar {
    flex-shrink: 0;
    width: 220px;
    padding-top: 100px;
}

.works-categories {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: sticky;
    top: 100px;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 0;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
    color: inherit;
}

.category-item:hover {
    transform: translateX(8px);
}

.category-item.active .category-num,
.category-item.active .category-name {
    color: var(--text-dark);
    font-weight: 600;
}

.category-num {
    font-family: var(--font-pixel-1);
    font-size: 16px;
    color: var(--primary-cyan-dark);
    font-weight: 600;
}

.category-name {
    font-family: var(--font-pixel-1);
    font-size: 15px;
    color: #56b2c7;
}

/* 우측 컨텐츠 영역 */
.works-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Work Items */
.work-item {
    display: flex;
    gap: 40px;
    align-items: center;
    width: 100%;
    padding: 25px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.work-preview {
    position: relative;
    width: ;
}

/* .monitor-frame {
    background: linear-gradient(180deg, #f8f8f8 0%, #e0e0e0 100%);
    border-radius: 15px 15px 0 0;
    padding: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    position: relative;
}

.monitor-frame::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 20px;
    background: linear-gradient(180deg, #d0d0d0, #b0b0b0);
    border-radius: 0 0 10px 10px;
} */

.monitor-frame img {
    width: 100%;
    border-radius: 8px;
    display: block;
}

.work-info {
    padding: 20px;
    position: relative;
}
.work-info .works-sparkle {
    position: absolute;
    width: 40px;
    top: 0;
    left: -5px;
}

.work-info h3 {
    font-family: var(--font-pixel-2);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.work-date, .work-contribution {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.work-date span {
    margin-right: 30px;
}

.work-contribution span {
    margin-right: 42px;
}

.work-keywords {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.work-keywords span {
    margin-right: 20px;
}

.work-colors {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.work-colors span {
    margin-right: 16px;
}

.work-colors img {
    width: 30px;
}

.work-description {
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-light);
}



.work-details p {
    font-family: var(--font-korean);
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.8;
}

.work-buttons {
    display: flex;
    gap: 15px;
    margin: 18px 0 10px;
    white-space: nowrap;

}

.btn-original,
.btn-re {
    padding: 10px 17px;
    border: none;
    border-radius: 20px;
    font-family: var(--font-pixel-2);
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.4px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-re {
    background: var(--primary-cyan);
    color: white;
}

.btn-re:hover {
    background: var(--primary-cyan-dark);
    transform: translateY(-2px);
}

.btn-original {
    background: rgba(255, 255, 255, 0.4);
    color: var(--text-dark);
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.btn-original:hover {
    background: rgba(255, 255, 255, 0.6);
}

.btn-process {
    display: inline-block;
    padding: 10px 17px;
    background: linear-gradient(90deg, var(--primary-cyan-dark), var(--primary-cyan));
    color: white;
    border: none;
    border-radius: 20px;
    font-family: var(--font-pixel-2);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.4px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-process:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.4);
}

/* 로고 섹션 */
.work-logo {
    display: block;
}

.logo-preview {
    display: flex;
    justify-content: center;
}

.logo-grid {
    display: flex;
    gap: 40px;
    align-items: center;
}

.logo-grid img {
    max-width: 200px;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1));
}

/* 갤러리 섹션 */
.work-gallery {
    display: block;
    width: 100%;
}

.gallery-container {
    width: 100%;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 15px;
    overflow: hidden;
    /* border: 1px solid rgba(255, 255, 255, 0.3); */
}

.gallery-header {
    background: var(--soft-blue);
    padding: 12px 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}
.illust-sparkle {
    position: absolute;
    width: 30px;
    top: 12px;
    left: 5px;
}

.gallery-icon {
    color: white;
    font-size: 16px;
}

.gallery-title {
    font-family: var(--font-pixel-3);
    font-size: 18px;
    color: white;
    margin: 0;
}

.gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    padding: 30px;
}

.gallery-item {
    width: calc(25% - 19px);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 15px;
    display: block;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.gallery-item-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    margin-top: 10px;
    padding-right: 5px;
    line-height: 1.2;
}

.gallery-year {
    font-family: var(--font-pixel-2);
    font-size: 13px;
    color: var(--primary-cyan-dark);
    margin-bottom: 3px;
}

.gallery-tool {
    font-size: 13px;
    color: var(--text-light);
    position: relative;
    margin-bottom: 4px;
}

.gallery-brand {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--primary-cyan-dark);
    margin-bottom: 2px;
}

.gallery-tags {
    font-family: var(--font-pixel);
    font-size: 13px;
    color: var(--middle-blue);
}

/* 일러스트 상세 */
.work-illust-detail {
    display: flex;
    justify-content: center;
}

.illust-showcase {
    max-width: 500px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.illust-showcase img {
    width: 100%;
    display: block;
}


/* 웹툰 갤러리 영역 */

.webtoon-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    padding: 30px;
}

.webtoon-gallery .wt-item {
    width: calc(25% - 19px);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.webtoon-gallery .gallery-item:hover {
    transform: translateY(-5px);
}

.webtoon-gallery
.gallery-sheet1 img,
.gallery-sheet2 img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 15px;
    display: block;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.webtoon-gallery
.gallery-sheet1 img,
.gallery-sheet2 img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 15px;
    display: block;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.webtoon-gallery .gallery-item-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    margin-top: 10px;
    padding-right: 5px;
}

.webtoon-gallery .gallery-year {
    font-family: var(--font-pixel);
    font-size: 13px;
    color: var(--primary-cyan-dark);
}

.webtoon-gallery .gallery-tool {
    font-size: 11px;
    color: var(--text-light);
}

.webtoon-gallery .gallery-tags {
    font-family: var(--font-pixel);
    font-size: 11px;
    color: var(--middle-blue);
}


/* ===== CONTACT SECTION ===== */
.contact-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.contact-content {
    max-width: 650px;
    position: absolute;
}

.contact-content .con-balloon {
    position: absolute;
    z-index: -10;
    width: 220px;
    transform: rotate(270deg);    
    top: -60px;
    left: 215px;
    filter: drop-shadow(0 2px 5px rgba(9, 156, 185, 0.5));
}

.contact-message {
    font-family: var(--font-pixel-2);
    font-size: 18px;
    font-style: italic;
    color: var(--text-light);
    line-height: 1.4;
    margin-bottom: 40px;
    position: relative;
}

.thanks-title {
    font-family: var(--font-pixel-3);
    font-size: 48px;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 50px;
    text-shadow: 0 2px 10px rgba(0, 180, 216, 0.2);
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 100px;
}

.contact-phone,
.contact-email,
.contact-insta {
    position: relative;
}

.spa-ph {
    z-index: -10;
    position: absolute;
    width: 190px;
    top: -40px;
    right: -20px;
}

.spa-em {
    z-index: -10;
    position: absolute;
    width: 220px;
    top: -40px;
    right: -30px;
}

.spa-ins {
    z-index: -10;
    position: absolute;
    width: 200px;
    top: -40px;
    right: -25px;
}


.contact-item h4 {
    font-family: var(--font-pixel-1);
    font-size: 25px;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.contact-item p {
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 400;
    color: var(--text-light);
    line-height: 1.6;
}

/* ===== MODAL ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

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

.modal-content {
    width: 90%;
    max-width: 900px;
    background-color: white;
    filter: drop-shadow(0 2px 5px rgba(9, 156, 185, 0.2));
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--soft-blue);
    padding: 12px 20px;
    border-radius: 10px;
}

.modal-title {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    margin-right: 100px;
}

.modal-icon {
    color: white;
    font-size: 18px;
}

.modal-title-text {
    font-family: var(--font-pixel-2);
    font-size: 16px;
    color: white;
    margin-right: 5px;
}

#logoDesc {}

#logoName {}

#logoDate {
    font-size: 13px;
}
#logoTags {
    font-size: 13px;
}


.modal-des-text {
    font-family: var(--font-pixel-2);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.info-separator {
    color: var(--text-dark);
}

#modalTags, #illustTags {
    margin-right: 10px;
}

.modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 18px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: rotate(90deg);
}

.modal-image-container {
    max-width: 100%;
    max-height: 700px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(177, 207, 213, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image-container img {
    max-width: 100%;
    max-height: 700px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.modal-slider-container {
    display: flex;
    align-items: center;
    gap: 30px;
    width: 100%;
    max-height: 800px;
    justify-content: center;
    padding: 30px;
}

.modal-nav-btn {
    background: none;
    border: none;
    font-size: 40px;
    color: var(--primary-cyan);
    cursor: pointer;
    transition: var(--transition-smooth);
    padding: 20px;
}

.modal-nav-btn:hover {
    color: var(--primary-cyan-dark);
    transform: scale(1.2);
}

.modal-description p {
    font-family: var(--font-korean);
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.8;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* 별 반짝임 애니메이션 */
@keyframes twinkle {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.portfolio-badge .star {
    animation: twinkle 1.5s ease-in-out infinite;
}

.portfolio-badge .star:nth-child(2) { animation-delay: 0.2s; }
.portfolio-badge .star:nth-child(3) { animation-delay: 0.4s; }
.portfolio-badge .star:nth-child(4) { animation-delay: 0.6s; }
.portfolio-badge .star:nth-child(5) { animation-delay: 0.8s; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 212, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-cyan);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-cyan-dark);
}

/* ===== 웹툰 페이지 확장 ===== */
.webtoon-page {
    height: auto;
    min-height: 100vh;
}

.webtoon-container {
    padding: 15px;
}

.webtoon-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.wt-row {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: flex-start;
}

.wt-item {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.wt-item:hover {
    transform: translateY(-5px);
}

/* 캐릭터시트 (정사각형) */
.row-chasheet .wt-item:not(.wt-vertical) {
    width: 150px;
}

.row-chasheet .wt-item:not(.wt-vertical) img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* 세로형 이미지 */
.wt-vertical {
    width: 100px;
}

.wt-vertical img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* 표지 */
.row-cover .wt-vertical {
    width: 120px;
}

.row-cover .wt-vertical img {
    height: 220px;
}

/* 컷만화 */
.row-cut .wt-vertical {
    width: 130px;
}

.row-cut .wt-vertical img {
    height: 240px;
}

/* 정보 */
.wt-info {
    text-align: right;
    margin-top: 6px;
    font-size: 11px;
}

.wt-info span:first-child {
    display: block;
    color: var(--primary-cyan-dark);
    font-family: var(--font-pixel);
}

.wt-info span:last-child {
    color: var(--middle-blue);
    font-family: var(--font-pixel);
    font-size: 10px;
}


/* ===== 웹툰 탭 레이아웃 ===== */
.webtoon-tab-container {
    padding: 20px;
}

/* 탭 버튼 */
.webtoon-tabs {
    display: flex;
    gap: 30px;
    margin-bottom: 25px;
    justify-content: center;
}

.wt-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(47, 150, 194, 0.2);
    border-radius: 25px;
    font-family: var(--font-pixel-3);
    font-size: 13px;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
}

.wt-tab:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--primary-cyan);
}

.wt-tab.active {
    background: white;
    color: var(--primary-cyan-dark);
    border-color: var(--primary-cyan);
    box-shadow: 0 3px 10px rgba(0, 212, 255, 0.2);
}

.tab-sparkle {
    width: 16px;
    height: 16px;
    opacity: 0.5;
    filter: drop-shadow(0 1px 1px rgba(18, 135, 159, 0.7));
    transition: opacity 0.3s ease;
}

.wt-tab.active .tab-sparkle {
    opacity: 1;
}

/* 탭 컨텐츠 */
.webtoon-tab-content {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.wt-panel {
    display: none;
}

.wt-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 패널 그리드 */
.chara-grid {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-direction: column;
    flex-wrap: nowrap;
}

.wt-up {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    gap: 40px;
}

.wt-down {
    display: flex;
    justify-content: center;
}


/* 캐릭터 그리드: 정사각 2개 + 세로 1개 */
.chara-grid .wt-item {
    width: 200px;
}

.chara-grid .wt-item img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.chara-grid .wt-item-tall {
    width: 450px;
}

.chara-grid .wt-item-tall img {
    aspect-ratio: auto;
}

/* 표지/3컷 그리드: 세로형 */

.cover-grid {
    display: flex;
    gap: 35px;
    margin-top: 42px;
    justify-content: center;
    flex-wrap: nowrap;
}

.cover-grid .wt-item {
    width: 200px;
}

.cover-grid .wt-item img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.cut-grid {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.cut-grid .wt-item {
    width: 500px;
}

.cut-grid .wt-item img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* 아이템 공통 */
.wt-panel-grid .wt-item {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.wt-panel-grid .wt-item:hover {
    transform: translateY(-5px);
}

/* 아이템 정보 */
.wt-item-info {
    text-align: right;
    margin-top: 5px;
    padding-right: 5px;
}

.wt-item-title {
    display: block;
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--primary-cyan-dark);
}

.wt-item-tag {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--middle-blue);
}

/* ===== 웹툰 세로 스크롤 모드 ===== */
.modal-image-container.scroll-mode {
    max-height: 70vh;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overflow: visible;
    align-items: flex-start;
}

.modal-image-container.scroll-mode img {
    max-height: none !important;
    height: auto !important;
    width: 100%;
    max-width: 100%;
    object-fit: unset !important;
}

/* 스크롤바 스타일 */
.modal-image-container.scroll-mode::-webkit-scrollbar {
    width: 6px;
}

.modal-image-container.scroll-mode::-webkit-scrollbar-track {
    background: rgba(0, 212, 255, 0.1);
    border-radius: 3px;
}

.modal-image-container.scroll-mode::-webkit-scrollbar-thumb {
    background: var(--primary-cyan);
    border-radius: 3px;
}

.modal-image-container.scroll-mode::-webkit-scrollbar-thumb:hover {
    background: var(--primary-cyan-dark);
}

/* ===== CONTACT 순차 애니메이션 ===== */
.contact-anim {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.contact-anim.show {
    opacity: 1;
    transform: translateY(0);
}

.contact-message-wrap {
    text-align: center;
}


/* ===== LOGO MODAL 갤러리 스타일 ===== */
.logo-modal-content .modal-header {
    flex-wrap: wrap;
}

.logo-page-num {
    font-family: var(--font-pixel);
    font-size: 13px;
    color: var(--primary-cyan);
    margin-left: 10px;
}

/* 페이지 인디케이터 */
.logo-indicator {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 0 0 15px;
}

.indicator-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(0, 212, 255, 0.3);
    transition: all 0.3s ease;
}

.indicator-dot.active {
    background: var(--primary-cyan);
    transform: scale(1.2);
}

/* Process 모달 - 더 넓은 너비 */
#processModalOverlay .modal-content {
    max-width: 1100px;
}

#processModalOverlay .modal-image-container.scroll-mode img {
    max-width: 100%;
}

/* Logo 모달 - 더 넓은 너비 */
#logoModalOverlay .modal-content {
    max-width: 1100px;
}

#logoModalOverlay .modal-image-container.scroll-mode img {
    max-width: 100%;
}