@charset "utf-8";
/* CSS Document */
        * { margin: 0; padding: 0; box-sizing: border-box; }
        body { font-family: 'Noto Sans KR', sans-serif; background-color: #0a0b10; color: #ffffff; line-height: 1.6; overflow-x: hidden; }
        
        /* 스크롤바 커스텀 */
        ::-webkit-scrollbar { width: 8px; height: 8px; }
        ::-webkit-scrollbar-track { background: #0a0b10; }
        ::-webkit-scrollbar-thumb { background: rgba(59, 130, 246, 0.3); border-radius: 10px; border: 2px solid #0a0b10; }
        ::-webkit-scrollbar-thumb:hover { background: rgba(59, 130, 246, 0.6); }

        .bg-gradient { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(circle at 50% 50%, #1a1c2e 0%, #0a0b10 100%); z-index: -1; }

        nav { display: flex; justify-content: space-between; align-items: center; padding: 20px 50px; background: rgba(255, 255, 255, 0.05); backdrop-filter: blur(10px); position: fixed; width: 100%; z-index: 100; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
        .logo { font-size: 24px; font-weight: 800; letter-spacing: -1px; }
        .logo span { color: #3b82f6; }
        .nav-btn { padding: 10px 25px; background: #3b82f6; color: #ffffff; text-decoration: none; font-size: 14px; font-weight: 700; border: 1px solid #3b82f6; border-radius: 6px; transition: 0.3s; }
        .nav-btn:hover { background: #3b82f6; color: #ffffff; }

header { height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 0 20px; position: relative; overflow: hidden; }
.hero-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; }
.hero-bg-item { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; opacity: 0; animation: imageFade 15s infinite; }

@keyframes imageFade { 0% { opacity: 0; transform: scale(1.1); } 10% { opacity: 1; } 33% { opacity: 1; } 43% { opacity: 0; transform: scale(1); } 100% { opacity: 0; } }

header .sub-title, header h1, header .desc, header .btn-header { opacity: 0; animation: textLoop 15s infinite; }

/* 서브타이틀 블루 유지 */
header .sub-title { animation-delay: 0s; color: #3b82f6; font-weight: 700; letter-spacing: 5px; font-size: 13px; margin-bottom: 20px; }

/* 슬로건: 크기만 반응형으로 변경 */
header h1 { 
    animation-delay: 0.3s; 
    /* 최소 크기를 2.2rem으로 키우고, 화면 비례 비율을 9vw로 높였습니다 */
    font-size: clamp(2.2rem, 9vw, 4rem); 
    margin-bottom: 20px; 
    line-height: 1.2; 
    font-weight: 800; 
    word-break: keep-all; 
    padding: 0 10px; /* 양옆 여백을 살짝 주어 화면 끝에 붙는 것 방지 */
}

/* 슬로건 그라데이션 블루 유지 */
header h1 span { 
    background: linear-gradient(90deg, #3b82f6, #2dd4bf); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
}

header .desc { animation-delay: 0.6s; color: #ccc; max-width: 600px; margin-bottom: 40px; word-break: keep-all; }
header .btn-header { animation-delay: 0.9s; }

/* 모바일 추가 최적화 */
@media (max-width: 768px) {
    header h1 {
        line-height: 1.3; /* 모바일에서 줄 간격 살짝 넓게 */
    }
}
        
        @keyframes textLoop { 
            0% { opacity: 0; transform: translateY(20px); } 
            3% { opacity: 1; transform: translateY(0); } 
            90% { opacity: 1; transform: translateY(0); } 
            95% { opacity: 0; transform: translateY(-20px); } 
            100% { opacity: 0; } 
        }

        .container { max-width: 1200px; margin: 0 auto; padding: 100px 20px; position: relative; z-index: 1; }
        .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
        .card { background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.1); padding: 40px; border-radius: 24px; transition: 0.4s; }
        .card:hover { transform: translateY(-10px); background: rgba(255, 255, 255, 0.07); border-color: #3b82f6; }
        .card h3 { font-size: 22px; margin: 20px 0; }
        .card p { color: #999; font-size: 15px; word-break: keep-all; }

        .gallery-outer { position: relative; max-width: 1400px; margin: 0 auto; padding: 0 60px; }
        .gallery-screen { overflow: hidden; border-radius: 20px; width: 100%; }
        .premium-gallery-grid { display: flex; transition: transform 0.7s cubic-bezier(0.23, 1, 0.32, 1); width: 100%; }
        .gallery-page { flex: 0 0 100%; display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, 1fr); gap: 20px; }
        .pg-item { cursor: pointer; border-radius: 15px; overflow: hidden; position: relative; }
        .pg-img-wrapper { position: relative; width: 100%; padding-bottom: 75%; }
        .pg-img-wrapper img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: 0.8s; opacity: 0.7; }
        .pg-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to bottom, rgba(10,11,16,0) 40%, rgba(10,11,16,0.95) 100%); display: flex; align-items: flex-end; padding: 30px; z-index: 2; }
        .pg-content { transform: translateY(15px); transition: 0.5s; }
        .pg-category { color: #3b82f6; font-size: 11px; font-weight: 800; letter-spacing: 2px; display: block; margin-bottom: 5px; }
        .pg-title { font-size: 18px; font-weight: 600; color: #fff; margin-bottom: 10px; }
        .pg-view-btn { font-size: 13px; color: #fff; opacity: 0; transition: 0.4s; }
        .pg-item:hover img { transform: scale(1.1); opacity: 0.5; }
        .pg-item:hover .pg-content { transform: translateY(0); }
        .pg-item:hover .pg-view-btn { opacity: 1; }

        .slide-ctrl { position: absolute; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; background: rgba(59, 130, 246, 0.1); border: 1px solid #3b82f6; color: #3b82f6; border-radius: 50%; cursor: pointer; z-index: 10; display: flex; align-items: center; justify-content: center; transition: 0.3s; }
        .slide-ctrl:hover { background: #3b82f6; color: #fff; }
        .prev-btn { left: 0; }
        .next-btn { right: 0; }

        .swal-image-container { width: 100%; margin-bottom: 15px; }
        .swal-main-img { width: 100%; border-radius: 12px; height: 400px; object-fit: cover; border: 1px solid rgba(255,255,255,0.1); }
        .swal-thumb-list { display: flex; gap: 10px; margin-top: 10px; overflow-x: auto; padding-bottom: 5px; }
        .swal-thumb-img { width: 80px; height: 60px; object-fit: cover; border-radius: 6px; cursor: pointer; border: 2px solid transparent; opacity: 0.5; transition: 0.3s; }
        .swal-thumb-img.active { border-color: #3b82f6; opacity: 1; }
        .swal-premium-border { border: 1px solid rgba(59, 130, 246, 0.5) !important; box-shadow: 0 0 40px rgba(0, 0, 0, 0.9) !important; }

        @media (max-width: 1024px) { .gallery-page { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(4, 1fr); } }
        @media (max-width: 768px) { 
    .gallery-page { 
        grid-template-columns: 1fr; 
        grid-template-rows: repeat(8, 1fr); 
    } 
    .gallery-outer { padding: 0 20px; } 

    /* display: none 을 flex로 바꾸고 크기를 살짝 조절합니다 */
    .slide-ctrl { 
        display: flex; 
        width: 40px; 
        height: 40px; 
        background: rgba(59, 130, 246, 0.5); /* 모바일에선 좀 더 잘 보이게 */
    } 
    .prev-btn { left: 10px; }
    .next-btn { right: 10px; }

    h1 { font-size: 2.2rem; } 
}

		
		/* 스켈레톤 애니메이션 */
@keyframes skeleton-loading {
    0% { background-color: rgba(255,255,255,0.05); }
    50% { background-color: rgba(255,255,255,0.1); }
    100% { background-color: rgba(255,255,255,0.05); }
}

.pg-img-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 75%;
    background-color: #1a1c2e; /* 기본 배경 */
    overflow: hidden;
}

/* 이미지가 로드되기 전까지 보여줄 스켈레톤 */
.pg-img-wrapper::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    animation: skeleton-loading 1.5s infinite;
    z-index: 1;
}

/* 이미지가 로드되면 스켈레톤을 가리도록 설정 */
.pg-img-wrapper img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    z-index: 2;
    opacity: 0; /* 처음엔 숨김 */
    
    /* ★ 핵심 수정: opacity와 transform(줌 인) 모두에 transition을 줍니다. */
    /* 기존 0.8s 줌 인 속도를 유지하면서 opacity도 부드럽게 처리합니다. */
    transition: opacity 0.5s ease-in-out, transform 0.8s ease-in-out; 
}

/* 로딩 완료 시 클래스 부여 */
.pg-img-wrapper img.loaded {
    opacity: 0.7; /* 기존 디자인의 투명도 유지 */
}

/* 팝업 내 메인 이미지 스타일 수정 */
.swal-main-img {
    width: 100%;
    border-radius: 12px;
    height: 450px; /* 높이는 적절히 조절하세요 */
    object-fit: contain !important; /* ★ cover에서 contain으로 변경: 이미지 전체 노출 */
    background-color: #000; /* 이미지 비율이 안 맞을 때 생기는 빈 공간을 검은색으로 처리 */
    border: 1px solid rgba(255,255,255,0.1);
}

/* 추가로 썸네일 리스트 스타일도 보정하면 좋습니다 */
.swal-thumb-img {
    width: 80px;
    height: 60px;
    object-fit: contain; /* 썸네일도 잘리지 않게 하려면 contain */
    background-color: #111;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.5;
    transition: 0.3s;
}
		
.header {
    position: fixed;
    top: 0; width: 100%; z-index: 1000;
    transition: all 0.3s ease;
    background: rgba(10, 11, 16, 0.7); /* 반투명 */
    backdrop-filter: blur(10px); /* 뒤 배경 흐리게 */
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
/* 스크롤 시 헤더가 좀 더 진해지게 하고 싶다면 */
.header.scrolled {
    background: rgba(10, 11, 16, 0.95);
    padding: 10px 0; /* 높이 약간 줄임 */
}		

/* 버튼 기본 디자인 */
.callButton {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%); /* 깊이감 있는 블루 */
    color: #fff !important;
    padding: 15px 35px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 700;
    font-size: 24px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
    overflow: hidden; /* 빛 효과가 버튼 밖으로 안 나가게 함 */
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 1. 빛줄기가 쓱 지나가는 효과 (Shine) */
.callButton::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -60%;
    width: 40%;
    height: 200%;
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(35deg);
    transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.callButton:hover::after {
    left: 130%;
}

/* 2. 호버 시 버튼 전체 반응 */
.callButton:hover {
    transform: translateY(-4px) scale(1.02); /* 살짝 떠오르며 커짐 */
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.5), 0 0 15px rgba(59, 130, 246, 0.4);
    filter: brightness(1.1);
}

/* 3. 아이콘 애니메이션 */
.callButton i {
    margin-right: 12px;
    transition: transform 0.4s ease;
}

.callButton:hover i {
    transform: rotate(15deg) scale(1.2);
}

/* 4. 업무 중일 때 숨쉬는 네온 효과 (Pulse) */
.is-working {
    animation: neonPulse 2s infinite ease-in-out;
}

@keyframes neonPulse {
    0% { box-shadow: 0 0 5px rgba(59, 130, 246, 0.4), 0 10px 25px rgba(37, 99, 235, 0.3); }
    50% { box-shadow: 0 0 20px rgba(59, 130, 246, 0.8), 0 10px 35px rgba(37, 99, 235, 0.5); }
    100% { box-shadow: 0 0 5px rgba(59, 130, 246, 0.4), 0 10px 25px rgba(37, 99, 235, 0.3); }
}		

/* 서비스 버튼 기본 스타일 - Danger 테마 */
.btn-service {
    display: inline-flex;
    align-items: center;
    margin-top: 10px;
    padding: 0px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #dc3545; /* Bootstrap Danger 컬러 */
    background-color: rgba(220, 53, 69, 0.05); /* 연한 레드 배경 */
    border: 1px solid rgba(220, 53, 69, 0.2); /* 은은한 레드 테두리 */
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    height: 35px; /* padding 0일 때 버튼 높이 확보 */
}

/* 마우스 올렸을 때 (Hover) */
.btn-service:hover {
    background-color: #dc3545; /* 전체 레드 채우기 */
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3); /* 레드 계열 그림자 */
    transform: translateY(-2px);
}

/* 화살표 아이콘 모양 */
.btn-service::after {
    content: '→';
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.btn-service:hover::after {
    transform: translateX(4px);
}

#pgGrid {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1); /* 부드러운 가속도 효과 */
    will-change: transform; /* 브라우저 최적화 */
}

@keyframes pulse {
            0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7); }
            70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(220, 53, 69, 0); }
            100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); }
        }
