/* Portfolio Specific Styles */

/* Remove outer border-radius for portfolio page - 스크롤 문제 해결 */
body, html {
    border-radius: 0 !important;
    overflow-x: hidden; /* 가로 스크롤만 숨김, !important 제거 */
}

/* 모바일에서 스크롤 문제 해결 - 부드러운 스크롤 적용 */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        height: auto;
        min-height: 100vh;
    }
    
    /* 포트폴리오 필터 버튼이 잘리지 않도록 추가 여백 */
    .portfolio-filters {
        margin-top: 3rem !important;
        padding-top: 2rem !important;
    }
    
    /* 모바일에서 히어로 섹션 줄바꿈 표시 */
    .mobile-br {
        display: inline !important;
    }
}

/* 데스크톱에서는 모바일 줄바꿈 숨김 */
.mobile-br {
    display: none;
}

/* Remove border-radius from viewport elements */
.portfolio-cta {
    border-radius: 0 !important;
}

/* Active Navigation State */
.nav-menu a.active {
    color: var(--accent-primary);
    font-weight: 600;
}

.nav-menu a.active::after {
    width: 100%;
}

/* Logo Link Styles */
.nav-logo a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.nav-logo a:hover {
    opacity: 0.8;
    transform: scale(1.02);
}

/* Breadcrumb Navigation */
.breadcrumb-section {
    padding: 120px 0 20px 0;
    background: var(--bg-light);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.breadcrumb a:hover {
    color: var(--accent-primary);
}

.breadcrumb-separator {
    color: var(--text-muted);
    margin: 0 0.3rem;
}

.breadcrumb-current {
    color: var(--accent-primary);
    font-weight: 600;
}

/* Portfolio Header */
.portfolio-header {
    height: 90vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.portfolio-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('portfolio-header-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

.portfolio-header-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(43, 10, 61, 0.3) 0%, rgba(15, 32, 39, 0.3) 100%);
    z-index: 1;
}

.portfolio-header-container {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 0 2rem;
}



.portfolio-header-content {
    position: relative;
    z-index: 1;
}

.portfolio-main-title {
    font-size: clamp(2.2rem, 6vw, 4rem) !important;
    font-weight: 900;
    background: linear-gradient(to right, #00d4ff, #a16eff, #ff5ec3);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
    text-shadow: none;
}

.portfolio-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.6rem) !important;
    color: rgba(255, 255, 255, 0.8);
    max-width: 800px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 400;
}

/* Portfolio Trust Indicator */
.portfolio-trust-indicator {
    text-align: center;
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

/* Kmong Partner Badge */
.kmong-partner-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border: 2px solid rgba(255, 221, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    cursor: pointer;
}

.kmong-partner-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 221, 0, 0.2), transparent);
    transition: left 0.6s;
}

.kmong-partner-badge:hover::before {
    left: 100%;
}

.kmong-partner-badge:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px rgba(255, 221, 0, 0.3);
    border-color: rgba(255, 221, 0, 0.6);
}

.kmong-partner-badge:focus {
    outline: 2px solid rgba(255, 221, 0, 0.5);
    outline-offset: 2px;
}

.kmong-logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.kmong-logo {
    width: 100%;
    height: 100%;
}

.partner-text {
    color: #333;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.trust-indicator-badge {
    display: inline-block;
    background: linear-gradient(135deg, #00d4ff, #a16eff);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 224, 255, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.trust-indicator-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s;
}

.trust-indicator-badge:hover::before {
    left: 100%;
}

.trust-indicator-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 224, 255, 0.4);
}

.trust-indicator-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    font-weight: 400;
    margin: 0;
    text-align: center;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
}

/* Portfolio Gallery Section - 잘림 현상 해결 */
.portfolio-gallery-section {
    padding: 100px 0 40px 0; /* 상단 패딩 증가: 80px → 100px */
    background: var(--bg-white);
    position: relative;
    min-height: auto; /* 최소 높이 제거 */
}

/* Portfolio Filters - 상단 여백 추가로 잘림 방지 */
.portfolio-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem; /* 상단 여백 추가 */
    margin-bottom: 3rem;
    padding-top: 1rem; /* 추가 패딩으로 완전히 보이게 */
}

.filter-btn {
    padding: 0.8rem 1.8rem;
    background: var(--bg-light);
    border: 2px solid transparent;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-family);
}

.filter-btn:hover {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--accent-gradient);
    color: var(--text-primary);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 224, 255, 0.3);
}

/* Portfolio Gallery Grid */
.portfolio-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Portfolio Gallery Items */
.portfolio-gallery-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: var(--bg-white);
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    aspect-ratio: 4/3;
    cursor: pointer;
}

.portfolio-gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-shadow-hover);
    cursor: pointer;
}

/* 인라인 슬라이드 스타일 */
.portfolio-gallery-item img {
    transition: all 0.3s ease;
}

.portfolio-gallery-item:active img {
    transform: scale(0.95);
}

/* 슬라이드 도트 호버 애니메이션 */
.portfolio-gallery-item:hover .slide-dots .dot {
    animation: dotPulse 1.5s ease-in-out infinite;
}

.portfolio-gallery-item:hover .slide-dots .dot.active {
    animation: dotGlow 1.5s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

@keyframes dotGlow {
    0%, 100% { 
        background: #fff;
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
    }
    50% { 
        background: #40e0d0;
        box-shadow: 0 0 15px rgba(64, 224, 208, 0.8);
    }
}

.portfolio-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.portfolio-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    filter: brightness(0.9) saturate(1.1);
}

.portfolio-gallery-item:hover img {
    transform: scale(1.05);
    filter: brightness(1) saturate(1.2);
}

/* Portfolio Overlay */
.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg, 
        rgba(43, 10, 61, 0.9) 0%, 
        rgba(15, 32, 39, 0.8) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    padding: 2rem;
}

.portfolio-gallery-item:hover .portfolio-overlay {
    opacity: 0.4;
}

.portfolio-info {
    text-align: center;
    color: white;
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    padding: 8px;
    border-radius: 8px;
    transform: translateY(0);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
}

/* 호버 시에도 동일하게 유지 */
.portfolio-gallery-item:hover .portfolio-info {
    transform: translateY(0);
}

/* 포트폴리오 제목 숨기기 */
.portfolio-info h3 {
    display: none; /* 제목 완전 숨김 */
}

/* 포트폴리오 설명 숨기기 */
.portfolio-info p {
    display: none; /* 설명 완전 숨김 */
}

.portfolio-category {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(0, 224, 255, 0.2);
    color: var(--accent-primary);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(0, 224, 255, 0.3);
}

/* Portfolio CTA Section */
.portfolio-cta {
    padding: 60px 0 40px 0 !important; /* 상단60px, 하단40px */
    background: var(--gradient-dark);
    text-align: center;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1; /* 기본 z-index 설정 */
}

.portfolio-cta .container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.portfolio-cta-content {
    max-width: 500px;
    margin: 0 auto;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease-out;
    cursor: default;
    position: relative;
    will-change: transform, background-color, box-shadow;
    pointer-events: auto !important; /* 내용물 클릭 가능 */
}

.portfolio-cta-content:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* 메인 CSS 스타일 무력화 - 섹션용 portfolio-cta */
.portfolio-cta {
    display: block !important;
    align-items: unset !important;
    gap: unset !important;
    padding: 4rem 0 !important;
    background: var(--gradient-dark) !important;
    color: unset !important;
    text-decoration: unset !important;
    border-radius: unset !important;
    font-weight: unset !important;
    font-size: unset !important;
    transition: none !important;
    box-shadow: none !important;
    border: none !important;
    position: unset !important;
    overflow: unset !important;
}

.portfolio-cta:hover {
    background: var(--gradient-dark) !important;
    color: unset !important;
    transform: none !important;
    box-shadow: none !important;
}

.portfolio-cta .container {
    transition: none;
}

.portfolio-cta .container:hover {
    transform: none;
    box-shadow: none;
}

.portfolio-cta-title {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
    letter-spacing: -0.01em;
    line-height: 1.2;
    word-break: keep-all;
}

.portfolio-cta-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.4;
    word-break: keep-all;
}

.portfolio-cta-buttons {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    pointer-events: auto !important; /* 버튼 영역 클릭 가능 */
    position: relative;
    z-index: 10;
}

.portfolio-cta .cta-button-large {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
    background: var(--accent-gradient);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.2s ease-out;
    box-shadow: var(--card-shadow);
    border: none;
    cursor: pointer;
    display: inline-block;
    pointer-events: auto !important; /* 클릭 가능하도록 명시 */
    position: relative;
    z-index: 10;
}

.portfolio-cta .cta-button-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 212, 255, 0.4);
}

.portfolio-cta .back-to-home-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
    background: transparent;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 50px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    font-weight: 500;
    transition: all 0.2s ease-out;
    cursor: pointer;
    display: inline-block;
    pointer-events: auto !important; /* 클릭 가능하도록 명시 */
    position: relative;
    z-index: 10;
}

.portfolio-cta .back-to-home-btn:hover {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-1px);
}

.back-to-home-btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.back-to-home-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

/* Filter Animation */
.portfolio-gallery-item.filter-hidden {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.portfolio-gallery-item.filter-visible {
    opacity: 1;
    transform: scale(1);
    transition: all 0.3s ease;
}

/* Loading State */
.portfolio-gallery-item.loading {
    background: var(--bg-light);
}

.portfolio-gallery-item.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid var(--bg-light);
    border-top: 3px solid var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .portfolio-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* 태블릿에서 1열로 변경 */
@media (max-width: 768px) {
    .portfolio-gallery-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
    
    /* 태블릿에서 여백 조정 */
    .portfolio-gallery-section {
        padding: 50px 0 15px 0 !important; /* 상단50px, 하단15px */
        margin: 0 !important; /* 마진 제거 */
    }
    
    .portfolio-filters {
        margin-bottom: 2.5rem !important;
    }
    
    .portfolio-cta {
        padding: 40px 0 20px 0 !important; /* 태블릿에서도 여백 줄임 */
    }
    
    /* 태블릿에서도 제목/설명 완전 숨김 */
    .portfolio-info h3,
    .portfolio-info p {
        display: none !important;
    }
}

/* 모바일 환경에서 확실히 1열로 */
@media (max-width: 600px) {
    .portfolio-gallery-section {
        padding: 30px 0 5px 0 !important; /* 상단30px, 하단5px */
        margin: 0 !important; /* 마진 완전 제거 */
    }
    
    .portfolio-gallery-grid {
        grid-template-columns: 1fr !important;
        gap: 1.2rem;
        max-width: 100%;
        margin: 0 auto;
    }
    
    .portfolio-gallery-item {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .portfolio-filters {
        gap: 0.8rem;
        margin-bottom: 1rem !important; /* 필터 하단 여백 더 감소 */
    }
    
    .filter-btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .breadcrumb-section {
        padding: 100px 0 15px 0;
    }
    
    .portfolio-header {
        height: 80vh;
        min-height: 500px;
    }
    
    .portfolio-header-bg {
        background-attachment: scroll !important;
    }

    .portfolio-header-container {
        padding: 0 1.5rem;
    }

    .portfolio-header-content {
        padding: 0;
    }

    .portfolio-main-title {
        font-size: clamp(1.8rem, 5vw, 3rem) !important;
    }
    
    .portfolio-gallery-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }
    
    .portfolio-filters {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
        margin-bottom: 3rem;
    }
    
    .filter-btn {
        width: 100%;
        max-width: 200px;
        text-align: center;
    }
    
    .portfolio-overlay {
        padding: 1.5rem;
    }
    
    .portfolio-info h3 {
        font-size: 1.3rem;
    }
    
    .portfolio-info p {
        font-size: 0.9rem;
    }
    
    .portfolio-cta {
        padding: 30px 0 !important;
    }

    .portfolio-cta-content {
        max-width: 85% !important;
        padding: 1.2rem !important;
    }

    .portfolio-cta-title {
        font-size: 1.3rem !important;
        margin-bottom: 0.6rem !important;
    }
    
    .portfolio-cta-subtitle {
        font-size: 0.8rem !important;
        margin-bottom: 1.2rem !important;
    }
    
    .portfolio-cta-buttons {
        flex-direction: column;
        gap: 0.8rem;
        pointer-events: auto !important; /* 모바일에서도 클릭 가능 */
    }

    .portfolio-cta .cta-button-large {
        padding: 0.7rem 1.2rem !important;
        font-size: 0.85rem !important;
    }

    .portfolio-cta .back-to-home-btn {
        padding: 0.5rem 1rem !important;
        font-size: 0.8rem !important;
    }
    
    .back-to-home-btn {
        width: 100%;
        max-width: 250px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    /* 포트폴리오 갤러리 그리드 모바일 최적화 */
    .portfolio-gallery-grid {
        grid-template-columns: 1fr !important;
        gap: 1.2rem;
    }

    .portfolio-gallery-item {
        width: 100%;
        box-sizing: border-box;
        aspect-ratio: auto;
        min-height: auto;
        max-width: 100%;
    }

    .portfolio-image-wrapper img,
    .portfolio-gallery-item img {
        width: 100% !important;
        height: auto !important;
        object-fit: cover;
        display: block;
        max-width: 100%;
    }

    /* 포트폴리오 오버레이 모바일에서 조정 */
    .portfolio-overlay {
        position: static;
        background: rgba(0, 0, 0, 0.8);
        padding: 1rem;
        text-align: center;
        transform: none;
    }
    
    .portfolio-header {
        height: 70vh;
        min-height: 400px;
    }
    
    .portfolio-header-bg {
        background-attachment: scroll !important;
    }

    .portfolio-header-container {
        padding: 0 1rem;
    }

    .portfolio-header-content {
        padding: 0;
    }

    .portfolio-main-title {
        font-size: clamp(1.6rem, 4vw, 2.5rem) !important;
        margin-bottom: 1.5rem;
    }

    .portfolio-subtitle {
        font-size: clamp(1rem, 2.5vw, 1.3rem) !important;
    }
    

    
    .portfolio-overlay {
        padding: 1rem;
    }
    
    .portfolio-info h3 {
        font-size: 1.2rem;
    }
    
    .portfolio-cta {
        padding: 25px 0;
    }

    .portfolio-cta-content {
        max-width: 90%;
        padding: 1rem;
        transition: all 0.2s ease-out;
    }

    .portfolio-cta-content:hover {
        background: rgba(255, 255, 255, 0.08);
        transform: translateY(-1px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    }

    .portfolio-cta-title {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .portfolio-cta-subtitle {
        font-size: 0.75rem;
        margin-bottom: 1rem;
    }

    .portfolio-cta .cta-button-large {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
        transition: all 0.2s ease-out;
        pointer-events: auto !important; /* 모바일에서도 클릭 가능 */
    }

    .portfolio-cta .cta-button-large:hover {
        transform: translateY(-1px);
        box-shadow: 0 8px 20px rgba(0, 212, 255, 0.3);
    }

    .portfolio-cta .back-to-home-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.75rem;
        transition: all 0.2s ease-out;
        pointer-events: auto !important; /* 모바일에서도 클릭 가능 */
    }

    .portfolio-cta .back-to-home-btn:hover {
        border-color: rgba(255, 255, 255, 0.4);
        background: rgba(255, 255, 255, 0.05);
        transform: translateY(-1px);
    }
    
    /* 모바일에서 하단 여백 제거 */
    .portfolio-cta {
        padding: 30px 0 20px 0 !important; /* 상단30px, 하단20px */
        margin-bottom: 0 !important;
    }
    
    /* 모바일 스크롤 및 여백 최종 정리 */
    body {
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
    }
    
    .portfolio-main {
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
    }
    
    .footer {
        margin-top: 0 !important;
        padding: 30px 0 15px 0 !important; /* 상단30px, 하단15px */
    }
    
    body {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }
    
    /* 포트폴리오 갤러리 섹션 여백 최소화 */
    .portfolio-gallery-section {
        padding: 30px 0 5px 0 !important; /* 상단30px, 하단5px */
        margin-bottom: 0 !important; /* 하단 마진 제거 */
    }
    
    .portfolio-filters {
        margin-bottom: 2rem !important;
    }
    
    .portfolio-gallery-grid {
        margin-bottom: 0 !important;
    }
    
    /* 모바일에서도 제목/설명 완전 숨김 */
    .portfolio-info h3,
    .portfolio-info p {
        display: none !important;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    .portfolio-gallery-item,
    .portfolio-overlay,
    .portfolio-info,
    .filter-btn,
    .portfolio-cta-content,
    .portfolio-cta .cta-button-large,
    .portfolio-cta .back-to-home-btn {
        transition: none !important;
        animation: none !important;
    }
    
    .portfolio-gallery-item:hover,
    .portfolio-cta-content:hover {
        transform: none !important;
    }
    
    .portfolio-gallery-item:hover img {
        transform: none !important;
    }
}

/* Focus States */
.filter-btn:focus {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

.portfolio-gallery-item:focus {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .portfolio-overlay {
        opacity: 1 !important;
        background: rgba(255, 255, 255, 0.9) !important;
    }
    
    .portfolio-info h3,
    .portfolio-info p {
        color: #000 !important;
    }
} 

/* 🎬 포트폴리오 페이지 WINFLOW 스타일 애니메이션 */

/* 포트폴리오 헤더 제목 특별 효과 */
.portfolio-main-title {
    font-weight: 700;
    background: linear-gradient(135deg, #00d4ff, #a16eff, #ff5ec3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
    animation: portfolioGlow 3s ease-in-out infinite alternate;
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: -1px;
}

@keyframes portfolioGlow {
    0% {
        text-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
    }
    100% {
        text-shadow: 0 0 40px rgba(161, 110, 255, 0.4);
    }
}

.portfolio-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    font-weight: 400;
    margin: 1rem 0 2rem;
}

/* 필터 버튼 수정 (선명하게) */
.filter-btn {
    background: rgba(255, 255, 255, 0.9); /* 더 선명하게 */
    border: 2px solid rgba(0, 212, 255, 0.5);
    color: #333; /* 검은색 텍스트로 보이게 */
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #00d4ff, #a16eff);
    transition: left 0.3s ease;
    z-index: -1;
}

.filter-btn:hover::before,
.filter-btn.active::before {
    left: 0;
}

.filter-btn:hover,
.filter-btn.active {
    color: white;
    border-color: #00d4ff;
    background: rgba(0, 212, 255, 0.9);
}

/* 활성화된 필터 버튼 */
.filter-btn.active {
    background: linear-gradient(135deg, #00d4ff, #a16eff);
    color: white;
    border-color: #00d4ff;
}

/* 포트폴리오 갤러리 아이템 간단한 호버 */
.portfolio-gallery-item {
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
    position: relative; /* 빛나는 효과를 위해 추가 */
}

/* 포트폴리오 갤러리 아이템 빛나는 효과 */
.portfolio-gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.4), transparent);
    transition: left 0.6s;
    z-index: 2;
}

.portfolio-gallery-item:hover::before {
    left: 100%;
}

.portfolio-gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.portfolio-gallery-item:hover .portfolio-image-wrapper img {
    transform: scale(1.05);
    transition: all 0.3s ease;
}

/* 프로젝트 제목 호버시 나타나는 효과 */
.portfolio-gallery-item .project-title {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    color: white;
    font-weight: 700;
    font-size: 1.3rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 3;
}

.portfolio-gallery-item:hover .project-title {
    opacity: 1;
    transform: translateY(0);
}

/* 뒤로가기 버튼 특별 효과 */
.back-to-home-btn {
    background: linear-gradient(135deg, #00d4ff, #a16eff);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.back-to-home-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.back-to-home-btn:hover::before {
    left: 100%;
}

.back-to-home-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 212, 255, 0.4);
}

/* CTA 섹션 버튼 향상된 효과 */
.cta-button-large {
    background: linear-gradient(135deg, #00d4ff, #a16eff);
    color: white;
    border: none;
    padding: 18px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.4);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.cta-button-large::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s;
}

.cta-button-large:hover::before {
    left: 100%;
}

.cta-button-large:hover {
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 20px 45px rgba(0, 212, 255, 0.5);
}

/* 특별한 반짝이는 효과 */
@keyframes sparkle {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

.portfolio-gallery-item::before {
    content: '✨';
    position: absolute;
    top: 15px;
    right: 15px;
    color: white;
    font-size: 1.2rem;
    opacity: 0;
    animation: sparkle 2s infinite;
    z-index: 4;
}

.portfolio-gallery-item:hover::before {
    opacity: 1;
}

/* 포트폴리오 갤러리 간단한 효과들 */

/* Mobile Responsive for Trust Indicator */
@media (max-width: 768px) {
    .portfolio-trust-indicator {
        margin-top: 1.5rem;
        gap: 0.6rem;
    }
    
    .trust-indicator-badge {
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
    }
    
    .trust-indicator-text {
        font-size: 0.9rem;
        padding: 0 1rem;
    }
    
    .kmong-partner-badge {
        padding: 0.6rem 1.2rem;
        gap: 0.6rem;
    }
    
    .kmong-logo-icon {
        width: 28px;
        height: 28px;
    }
    
    .partner-text {
        font-size: 0.9rem;
    }
    
    .portfolio-main-title {
        font-size: clamp(1.4rem, 3.5vw, 2rem) !important;
    }
    
    .portfolio-subtitle {
        font-size: clamp(0.9rem, 2vw, 1.1rem) !important;
        padding: 0 1rem;
        line-height: 1.4;
    }
}

/* 갤러리 아이템 간단한 페이드인 */
@keyframes simpleFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 🎨 간단한 포트폴리오 호버 효과들 */

/* 필터 버튼 클릭 효과 */
.filter-btn:active {
    transform: scale(0.95);
}

/* 📱 포트폴리오 모바일/태블릿 애니메이션 최적화 */
@media (max-width: 1024px) {
    /* 모바일에서 애니메이션 성능 최적화 */
    * {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        -webkit-perspective: 1000px;
        perspective: 1000px;
    }
    
    /* 포트폴리오 텍스트 애니메이션 요소들 모바일 최적화 */
    .portfolio-main-title,
    .portfolio-subtitle,
    .portfolio-cta-title,
    .portfolio-cta-subtitle {
        will-change: opacity, transform;
    }
    
    /* 포트폴리오 호버 효과를 터치 친화적으로 */
    .filter-btn,
    .portfolio-gallery-item,
    .back-to-home-btn,
    .cta-button-large {
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
        /* tap-highlight-color는 비표준 속성이므로 제거 */
    }
    
    /* 포트폴리오 모바일에서 부드러운 스크롤 */
    html {
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }
    
    /* 모바일 갤러리 최적화 */
    .portfolio-gallery {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: visible !important;
    }
    
    .portfolio-gallery-item {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: visible !important;
    }
    
    /* 갤러리 섹션 여백 감소 */
    .portfolio-gallery-section {
        padding: 40px 0 15px 0 !important; /* 상단40px, 하단15px */
        margin: 0 !important; /* 마진 제거 */
    }
    
    .portfolio-filters {
        margin-bottom: 1.5rem !important; /* 필터 하단 여백 감소 */
    }
    
    /* 포트폴리오 모달 완전 중앙 정렬 */
    .portfolio-modal.show {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        padding: 0 !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }
}

/* ========================================
   🎯 새로운 포트폴리오 이미지 슬라이드 모달
======================================== */

.portfolio-slide-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10000;
    overflow: hidden;
}

.slide-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.slide-modal-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

.portfolio-modal-content {
    position: relative;
    background: linear-gradient(145deg, #1a1a1a, #2d2d2d);
    margin: 5% auto;
    padding: 0;
    width: 90%;
    max-width: 900px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    animation: slideInUp 0.4s ease;
}

.portfolio-modal-header {
    background: linear-gradient(135deg, #2d2d2d, #1a1a1a);
    padding: 15px 20px; /* 패딩 줄임 */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: flex-end; /* 닫기 버튼만 오른쪽에 */
    align-items: center;
}

.portfolio-modal-header h2 {
    display: none; /* 타이틀 숨김 */
}

.portfolio-modal-close {
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: bold;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    user-select: none;
}

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

.portfolio-modal-body {
    padding: 30px;
    text-align: center;
}

.portfolio-modal-gallery {
    position: relative;
    width: 100%;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    border-radius: 15px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
}

.portfolio-modal-gallery img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* 포트폴리오 모달 로딩 및 오류 메시지 스타일 */
.portfolio-modal-gallery .loading-spinner,
.portfolio-modal-gallery .error-message {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    color: var(--text-light);
    font-size: 1.2rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 2rem;
    line-height: 1.4;
    flex-direction: column;
}

.portfolio-modal-gallery .error-message small {
    display: block;
    font-size: 0.9rem;
    opacity: 0.7;
    margin-top: 0.5rem;
    word-break: break-all;
    max-width: 100%;
}

.portfolio-modal-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}

.portfolio-modal-prev,
.portfolio-modal-next {
    background: linear-gradient(135deg, #00d4ff, #a16eff);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.3);
}

.portfolio-modal-prev:hover,
.portfolio-modal-next:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.5);
}

.portfolio-modal-prev:active,
.portfolio-modal-next:active {
    transform: scale(0.95);
}

.portfolio-modal-counter {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 🎯 슬라이드 도트 인디케이터 스타일 */
.slide-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    padding: 0;
}

.slide-dots .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.slide-dots .dot.active {
    background: #fff;
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

.slide-dots .dot:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.1);
}

/* 기존 view-more 스타일 제거 */
.view-more {
    display: none !important;
}

/* 애니메이션 키프레임 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 🎯 새로운 슬라이드 모달 스타일 */

/* 닫기 버튼 */
.slide-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.slide-close-btn:hover {
    background: rgba(255, 0, 0, 0.7);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

/* 이미지 슬라이드 영역 */
.slide-image-wrapper {
    position: relative;
    width: 100%;
    height: 80%;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
}

.slide-image-container {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    transition: opacity 0.3s ease;
}

/* 로딩 스피너 */
.slide-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 1.2rem;
    z-index: 1;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #00d4ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 네비게이션 버튼 */
.slide-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    z-index: 10001;
}

.slide-nav-btn:hover {
    background: rgba(0, 212, 255, 0.8);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.slide-nav-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.slide-prev-btn {
    left: -80px;
}

.slide-next-btn {
    right: -80px;
}

/* 하단 정보 */
.slide-info {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: white;
    z-index: 10001;
}

.slide-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    background: linear-gradient(135deg, #00d4ff, #a16eff);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.slide-counter {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 16px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

/* 도트 인디케이터 */
.slide-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10001;
}

.slide-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slide-dot.active {
    background: #00d4ff;
    transform: scale(1.2);
}

.slide-dot:hover {
    background: #a16eff;
    transform: scale(1.1);
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .slide-close-btn {
        top: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
    }
    
    .slide-nav-btn {
        width: 50px;
        height: 50px;
    }
    
    .slide-prev-btn {
        left: 10px;
    }
    
    .slide-next-btn {
        right: 10px;
    }
    
    .slide-info {
        bottom: 60px;
    }
    
    .slide-info h3 {
        font-size: 1.2rem;
    }
    
    .slide-counter {
        font-size: 0.9rem;
        padding: 6px 12px;
    }
    
    .slide-dots {
        bottom: 20px;
        gap: 8px;
    }
    
    .slide-dot {
        width: 10px;
        height: 10px;
    }
} 