/* 포트폴리오 페이지 스타일 */

/* 페이지 헤더 */
.page-header {
    background: linear-gradient(135deg, var(--navy-bg) 0%, var(--dark-blue) 100%);
    color: var(--white-text);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(212,175,55,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
    color: var(--wealth-gold);
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.page-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    position: relative;
    z-index: 2;
    color: var(--white-text);
}

/* 포트폴리오 통계 */
.portfolio-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    position: relative;
    z-index: 2;
}

.portfolio-stat-item {
    text-align: center;
    color: var(--white-text);
}

.portfolio-stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--wealth-gold);
    margin-bottom: 5px;
}

.portfolio-stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* 필터 섹션 - 기존 스타일은 카테고리 필터로 대체됨 */

/* 갤러리 섹션 - 기존 스타일은 works-grid로 대체됨 */

/* 이미지 개수 및 동영상 배지 */
.image-count-badge,
.video-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 8px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 4px;
}

.video-badge {
    top: 40px;
    background: rgba(220, 53, 69, 0.9);
}

.image-count-badge i,
.video-badge i {
    font-size: 10px;
}

/* 미디어 정보 스타일 */
.media-info {
    margin: 10px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.media-count {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.media-count i {
    font-size: 10px;
}

/* 이미지 네비게이션 */
.image-navigation {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 15px;
    border-radius: 25px;
    z-index: 20;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.image-counter {
    color: white;
    font-size: 14px;
    font-weight: 600;
    min-width: 50px;
    text-align: center;
}

/* 동영상 섹션 */
.video-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.video-section h4 {
    color: white;
    font-size: 16px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.video-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-video {
    width: 100%;
    max-width: 400px;
    border-radius: 8px;
    background: #000;
    display: block;
    margin: 0 auto;
}

/* 동영상 컨트롤 스타일 개선 */
.modal-video::-webkit-media-controls {
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-video::-webkit-media-controls-panel {
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-video::-webkit-media-controls-play-button {
    background-color: var(--wealth-gold);
    border-radius: 50%;
}

.modal-video::-webkit-media-controls-timeline {
    background-color: rgba(255, 255, 255, 0.3);
}

/* 동영상 로딩 상태 개선 */
.modal-video[data-loading="true"] {
    opacity: 0.5;
}

/* 작품 날짜 및 조회수 */
.work-date,
.work-views {
    position: absolute;
    top: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 10;
}

.work-date {
    left: 15px;
}

.work-views {
    right: 15px;
}

.work-date i,
.work-views i {
    font-size: 0.7rem;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-info {
    text-align: center;
    color: white;
    padding: 20px;
    max-width: 90%;
}

.gallery-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.work-description {
    font-size: 0.9rem;
    margin-bottom: 15px;
    opacity: 0.9;
    line-height: 1.4;
}

.work-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 20px;
    font-size: 0.8rem;
    opacity: 0.8;
}

.work-size,
.work-time,
.work-location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.view-details-btn {
    background: linear-gradient(135deg, var(--wealth-gold), var(--bright-gold));
    color: var(--navy-bg);
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.view-details-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

/* 모달 스타일 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    margin: 5% auto;
    padding: 20px;
    width: 90%;
    max-width: 800px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-height: 90vh;
    overflow-y: auto;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 10;
}

.close-modal:hover {
    color: #333;
}

.modal-image-container {
    position: relative;
    margin-bottom: 20px;
}

#modalImage {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
}

.modal-image-overlay {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    display: flex;
    justify-content: space-between;
}

.modal-image-info {
    display: flex;
    gap: 15px;
}

.modal-date,
.modal-views {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.modal-info h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.modal-info p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.modal-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    font-weight: 600;
    color: #333;
}

.detail-item i {
    color: var(--wealth-gold);
    font-size: 1.2rem;
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.modal-actions .btn {
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--wealth-gold), var(--bright-gold));
    color: var(--navy-bg);
    border: none;
}

.btn-secondary {
    background: transparent;
    color: var(--dark-blue);
    border: 2px solid var(--dark-blue);
}

.btn-primary:hover,
.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* 상담 섹션 - 기존 스타일은 external-links로 대체됨 */

/* 애니메이션 - work-card에 적용됨 */

/* 반응형 스타일 - 기존 스타일은 새로운 반응형 스타일로 대체됨 */

/* 480px 이하 반응형 스타일 - 기존 스타일은 새로운 반응형 스타일로 대체됨 */

/* 접근성 개선 */
@media (prefers-reduced-motion: reduce) {
    .gallery-item,
    .gallery-image img,
    .gallery-overlay {
        animation: none;
        transition: none;
    }
}

/* 다크 모드 지원 */
@media (prefers-color-scheme: dark) {
    .filter-section {
        background: #2a2a2a;
    }
    
    .gallery-section {
        background: #1a1a1a;
    }
    
    .gallery-item {
        background: #2a2a2a;
    }
    
    .modal-content {
        background: #2a2a2a;
        color: white;
    }
    
    .modal-info h3 {
        color: white;
    }
    
    .modal-info p {
        color: #ccc;
    }
    
    .detail-item {
        background: #3a3a3a;
        color: white;
    }
} 

/* 동영상 컨테이너 및 오류 처리 스타일 */
.video-container {
    position: relative;
    margin-bottom: 20px;
}

.video-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    z-index: 10;
}

.loading-spinner {
    text-align: center;
    color: white;
}

.loading-spinner i {
    font-size: 24px;
    margin-bottom: 10px;
    color: #ff6b6b;
}

.loading-spinner p {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
}

.video-fallback {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    z-index: 10;
}

.video-error-message {
    text-align: center;
    color: white;
    padding: 20px;
}

.video-error-message i {
    font-size: 32px;
    color: #ff6b6b;
    margin-bottom: 15px;
}

.video-error-message p {
    margin: 0 0 20px 0;
    font-size: 16px;
    font-weight: 500;
}

.retry-video-btn,
.download-video-btn {
    background: #ff6b6b;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin: 5px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.retry-video-btn:hover,
.download-video-btn:hover {
    background: #ff5252;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.retry-video-btn i,
.download-video-btn i {
    font-size: 12px;
}

/* 동영상 최적화 알림 */
.video-optimization-notice {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* 동영상 디버그 정보 스타일 */
.video-debug-info {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    padding: 8px;
    margin-top: 10px;
    font-family: monospace;
    font-size: 11px;
    line-height: 1.4;
}

.video-debug-info p {
    margin: 2px 0;
    color: rgba(255, 255, 255, 0.8);
}

/* 동영상 품질 표시 */
.video-quality-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    z-index: 5;
}

/* 동영상 재생 상태 표시 */
.video-playing {
    position: relative;
}

.video-playing::after {
    content: '▶ 재생 중';
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 255, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    z-index: 5;
}

/* 동영상 로딩 애니메이션 */
@keyframes videoLoading {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner i {
    animation: videoLoading 1s linear infinite;
}

/* 동영상 오류 상태 스타일 */
.video-error {
    border: 2px solid #ff6b6b;
    border-radius: 8px;
}

.video-error .modal-video {
    opacity: 0.3;
}

.video-optimization-notice i {
    font-size: 16px;
}


/* 모바일 동영상 스타일 */
@media (max-width: 480px) {
    .video-loading,
    .video-fallback {
        border-radius: 6px;
    }
    
    .loading-spinner i {
        font-size: 20px;
    }
    
    .loading-spinner p {
        font-size: 12px;
    }
    
    .video-error-message i {
        font-size: 24px;
    }
    
    .video-error-message p {
        font-size: 14px;
    }
    
    .retry-video-btn,
    .download-video-btn {
        padding: 8px 16px;
        font-size: 12px;
        margin: 3px;
    }
    
    .video-optimization-notice {
        padding: 12px;
        font-size: 12px;
    }
    
    .video-quality-badge {
        font-size: 10px;
        padding: 3px 6px;
    }
}

/* ===== 포트폴리오 전용 스타일 ===== */
.portfolio-hero {
    /* C안: 미니멀 화이트 + 소프트 웨이브 디바이더 */
    background: #ffffff;
    color: #111;
    text-align: center;
    padding: 64px 20px 96px; /* 하단 웨이브 공간 확보 */
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 -1px 0 #eef2f7;
}

.portfolio-hero::before { display: none; }

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    text-shadow: 0 4px 30px rgba(212,175,55,0.15), 2px 2px 6px rgba(0,0,0,0.4);
}

.hero-subtitle { font-size: 1rem; color: rgba(0,0,0,0.6); margin-bottom: 0; }

.hero-stats { display: none; }

.stat-item { text-align: center; }

.stat-number { font-size: 2rem; font-weight: 800; display: block; color: #111; text-shadow: none; }

/* 웨이브 디바이더 */
.hero-wave {
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    width: 100%;
    line-height: 0;
}
.hero-wave svg { display: block; width: 100%; height: 80px; }
.hero-wave path { fill: #f6f8ff; }

.stat-label {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
}

/* 무한 슬라이더 */
.infinite-slider {
    /* 라이트 톤 */
    background: linear-gradient(180deg, #ffffff 0%, #f6f8ff 100%);
    box-shadow: inset 0 1px 0 rgba(0,0,0,0.03), inset 0 -1px 0 rgba(0,0,0,0.05);
    padding: 60px 0;
    overflow: auto; /* 드래그/스와이프용 수평 스크롤 허용 */
    position: relative;
    cursor: grab;
    -ms-overflow-style: none; /* IE/Edge */
    scrollbar-width: none;     /* Firefox */
}
.infinite-slider::-webkit-scrollbar { display: none; }
/* 드래그/텍스트 선택 방지 */
.infinite-slider, .slider-item, .slider-image, .slider-overlay {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.slider-container {
    display: flex;
    animation: slide 30s linear infinite;
    width: max-content;
}
.infinite-slider.dragging { cursor: grabbing; }

.slider-container:hover {
    animation-play-state: paused;
}

@keyframes slide {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.slider-item {
    flex: 0 0 auto;
    width: 300px; /* PC: 더 크게 */
    height: 400px; /* PC: 더 크게 */
    margin: 0 15px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
    position: relative;
    display: block; /* 링크일 때 영역 전체 클릭 */
    text-decoration: none;
    color: inherit;
}

.slider-item:hover { transform: translateY(-10px) scale(1.05); }
.slider-item:hover .slider-overlay { transform: translateY(0); }

.slider-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 프레임을 꽉 채움 */
    display: block;
}

.slider-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(255,255,255,0.95));
    color: #111;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.slider-item:hover .slider-overlay {
    transform: translateY(0);
}

.slider-title { font-size: 1.1rem; font-weight: 700; margin: 0 0 8px; color: #111; }
.slider-tags { display: flex; flex-wrap: wrap; gap: 6px; max-height: 52px; overflow: hidden; }
.slider-tag { background: rgba(0,0,0,0.06); color: #333; padding: 3px 8px; border-radius: 12px; font-size: 0.8rem; line-height: 1; }

.slider-tag.price-tag {
    color: #333;
    font-size: 0.9rem;
    font-weight: 500;
    background: rgba(255, 215, 0, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid #d4af37;
}

/* 일일 업로드 영역 */
.daily-uploads {
    padding: 80px 20px;
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(330px, 1fr)); /* 카드 최소폭 330px로 확대 */
    gap: 30px;
    max-width: 1500px; /* 컨테이너 폭 소폭 확대 */
    margin: 0 auto;
    justify-content: center;
}

.work-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    text-decoration: none;
    color: inherit;
    display: block;
}

.work-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.work-media { position: relative; overflow: hidden; height: 280px; }
.work-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.work-card:hover .work-image { transform: scale(1.1); }

/* 이미지 하단 오버레이 */
.work-overlay {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 16px;
    color: #111;
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.95) 100%);
}
.work-line1 { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
/* 첫 줄: 제목(좌) + 카테고리(우) → 제목은 한 줄 말줄임 */
.work-line1 { display: flex; align-items: center; gap: 12px; }
.work-overlay .work-title { 
    color: #111; 
    font-size: 1.1rem; 
    font-weight: 700; 
    margin: 0; 
    line-height: 1.2; 
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis; 
    flex: 1; 
    min-width: 0; /* 말줄임 동작 보장 */
}
.work-category-badge { background: rgba(0,0,0,0.06); color: #333; padding: 4px 10px; border-radius: 14px; font-size: 0.75rem; white-space: nowrap; }
/* 둘째 줄: 해시태그 일부만 표시 + '...' 표시. 한 줄 유지 */
.work-overlay .work-description { display: none; }
.work-overlay .work-hashtags { white-space: nowrap; overflow: hidden; }
.work-overlay .hashtag.more { background: transparent; color: rgba(0,0,0,0.6); padding: 0 4px; }
.work-overlay .work-hashtags { display: flex; flex-wrap: wrap; gap: 6px; }
.work-overlay .hashtag { background: rgba(0,0,0,0.06); color: #333; padding: 3px 8px; border-radius: 12px; font-size: 0.75rem; }

.work-content {
    padding: 25px;
}

.work-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.work-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #666;
}

.work-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.work-category {
    background: linear-gradient(45deg, #d4af37, #b8860b);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

.work-description {
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.work-hashtags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.hashtag {
    background: #f0f0f0;
    color: #666;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
}

.price-tag {
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    background: linear-gradient(45deg, #d4af37, #b8860b);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid #b8860b;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.4);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* 외부 링크 영역 */
.external-links {
    /* 골드 톤 */
    background:
        radial-gradient(1000px 400px at 50% -10%, rgba(212,175,55,0.08), transparent 55%),
        linear-gradient(135deg, #ffffff 0%, #faf0dc 100%);
    color: #111;
    padding: 80px 20px;
    text-align: center;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 800px;
    margin: 50px auto 0;
}

.link-card {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 15px;
    border: 1px solid rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    text-decoration: none;
    color: #111;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.link-card:hover {
    background: #ffffff;
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 14px 36px rgba(0,0,0,0.12);
    transform: translateY(-5px);
}

.link-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.link-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.link-description {
    opacity: 0.9;
    line-height: 1.5;
}

/* 카테고리 필터 */
.category-filter {
    background: linear-gradient(180deg, #ffffff 0%, #f6f8ff 100%);
    padding: 48px 20px 44px;
    text-align: center;
    position: relative;
    color: #111;
}
.category-filter .section-title { color: #111; }
.category-filter .section-subtitle { color: rgba(0,0,0,0.6); }
.category-filter .section-header { margin-bottom: 28px; }
.category-filter .section-title {
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}
.category-filter .section-title::after {
    /* 골드 포인트 언더라인 */
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 120px;
    height: 2px;
    background: linear-gradient(90deg, rgba(0,0,0,0) 0%, #f4e4bc 18%, #d4af37 50%, #f4e4bc 82%, rgba(0,0,0,0) 100%);
    box-shadow: 0 0 18px rgba(212, 175, 55, 0.4);
    border-radius: 2px;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 12px 14px;
    flex-wrap: wrap;
    margin-bottom: 2px;
}

.filter-btn {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.08);
    color: #333;
    padding: 12px 22px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.25s ease;
    font-weight: 600;
    letter-spacing: 0.2px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    position: relative;
}

.filter-btn:hover {
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 10px 28px rgba(0,0,0,0.08);
    transform: translateY(-1px);
}

.filter-btn.active {
    border-color: rgba(212, 175, 55, 0.7);
    background: #faf0dc;
    box-shadow: 0 10px 28px rgba(0,0,0,0.08);
    color: #b8860b;
}

.filter-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.3);
}

/* 로딩 스피너 */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #d4af37;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading {
    text-align: center;
    padding: 50px;
    color: #666;
}

.error {
    text-align: center;
    padding: 50px;
    color: #e74c3c;
}

/* 포트폴리오: 상단 환영/버튼 섹션 숨김 (PC/모바일 공통) */
.main-welcome { display: none !important; }

/* 부드러운 스크롤 애니메이션 */
html {
    scroll-behavior: smooth;
}

/* 스크롤 애니메이션 커스터마이징 (더 세밀한 제어) */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* 페이지네이션 스타일 */
.pagination {
    margin-top: 60px;
    text-align: center;
}

.pagination-info {
    margin-bottom: 30px;
    color: #666;
    font-size: 0.9rem;
}

.current-page-info {
    font-weight: 600;
    color: #333;
    margin-right: 10px;
}

.total-works-info {
    color: #888;
}

.pagination-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.1);
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.page-btn:hover {
    background: #faf0dc;
    border-color: rgba(212, 175, 55, 0.4);
    color: #b8860b;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.page-btn.active {
    background: #d4af37;
    border-color: #d4af37;
    color: white;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.page-btn.prev-btn,
.page-btn.next-btn {
    font-size: 0.9rem;
    gap: 5px;
}

.page-dots {
    color: #999;
    padding: 0 8px;
    font-weight: 600;
}

/* 모바일 페이지네이션 */
@media (max-width: 768px) {
    .pagination {
        margin-top: 40px;
    }
    
    .pagination-info {
        margin-bottom: 20px;
        font-size: 0.8rem;
    }
    
    .pagination-buttons {
        gap: 6px;
    }
    
    .page-btn {
        min-width: 36px;
        height: 36px;
        padding: 0 8px;
        font-size: 0.85rem;
    }
    
    .page-btn.prev-btn,
    .page-btn.next-btn {
        font-size: 0.8rem;
    }
}

/* 추가 반응형 디자인 */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-stats {
        gap: 20px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .works-grid { grid-template-columns: 1fr; gap: 20px; max-width: 100%; }
    .work-media { height: 200px; }
    .work-image { height: 200px; } /* 모바일 이미지 높이 */
    
    .slider-item { width: 180px; height: 240px; } /* 모바일: 이전 크기 복원 */
    .slider-image { width: 100%; height: 100%; object-fit: cover; }
    
    .links-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-buttons {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important; /* 줄바꿈 방지 - 한 줄에만 배치 */
        justify-content: flex-start !important; /* 왼쪽 정렬로 변경 */
        overflow-x: auto !important;
        scrollbar-width: none !important; /* Firefox */
        -ms-overflow-style: none !important; /* IE and Edge */
        gap: 10px !important;
        padding: 10px 0 !important;
        white-space: nowrap !important;
        position: relative !important; /* 그라데이션 오버레이를 위한 상대 위치 */
        max-width: 100% !important; /* 최대 너비 제한 */
    }
    
    /* 오른쪽 연한 그라데이션 배경 */
    .filter-buttons::after {
        content: '' !important;
        position: absolute !important;
        top: 0 !important;
        right: 0 !important;
        width: 40px !important;
        height: 100% !important;
        background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 100%) !important;
        pointer-events: none !important;
        z-index: 1 !important;
    }
    
    /* 화살표 제거 - 그라데이션만 사용 */
    
    .filter-buttons::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }
    
    .filter-btn {
        flex-shrink: 0 !important;
        min-width: auto !important;
        width: auto !important;
        max-width: none !important;
        padding: 10px 16px !important;
        font-size: 0.85rem !important;
        border-radius: 20px !important;
        white-space: nowrap !important;
        min-width: 120px !important; /* 최소 너비 설정으로 강제로 가로 스크롤 유도 */
    }
}

@media (max-width: 480px) {
    .filter-buttons {
        flex-wrap: nowrap !important; /* 줄바꿈 방지 - 한 줄에만 배치 */
        justify-content: flex-start !important; /* 왼쪽 정렬로 변경 */
        gap: 8px;
        padding: 8px 0;
        position: relative !important; /* 그라데이션 오버레이를 위한 상대 위치 */
    }
    
    /* 오른쪽 연한 그라데이션 배경 (작은 화면) */
    .filter-buttons::after {
        content: '' !important;
        position: absolute !important;
        top: 0 !important;
        right: 0 !important;
        width: 35px !important;
        height: 100% !important;
        background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 100%) !important;
        pointer-events: none !important;
        z-index: 1 !important;
    }
    
    /* 화살표 제거 - 그라데이션만 사용 (작은 화면) */
    
    .filter-btn {
        flex-shrink: 0 !important; /* 버튼 크기 고정 */
        padding: 8px 14px;
        font-size: 0.8rem;
        border-radius: 18px;
        white-space: nowrap !important;
        min-width: 100px !important; /* 작은 화면에서도 최소 너비 설정 */
    }
} 