/* Portfolio 스타일 - btk-ai 테마에 맞게 조정 */
.portfolio-filters {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.portfolio-filters li {
    cursor: pointer;
    padding: 0.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.375rem;
    color: #fff;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.portfolio-filters li:hover,
.portfolio-filters li.filter-active {
    background: #5e42a6;
    border-color: #5e42a6;
    color: #fff;
}
/*
.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
    width: 100%;
    height: auto;
}*/

.portfolio-item {
    width: 100%;
    height: 333px;
    overflow: hidden;
    padding: 0 !important;
    margin: 0;
    background: #fff;
    position: relative;
}


.portfolio-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 2rem 1rem 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-info {
    transform: translateY(0);
}

.portfolio-info h4 {
    color: #fff;
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
}

.portfolio-info p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 1rem 0;
    font-size: 0.9rem;
}

.portfolio-info a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    color: #fff;
    margin-right: 0.5rem;
    transition: background 0.3s ease;
}

.portfolio-info a:hover {
    background: #5e42a6;
}
/* main.css의 grid 설정을 사용하도록 !important 사용 */
/* 기본값 - PC 4개 유지 */
.isotope-container {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 12px 12px !important;
    width: 100% !important;
}

/* 태블릿 - 2개씩 */
@media screen and (max-width: 1024px) {
    .isotope-container {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* 모바일 - 1개씩 */
@media screen and (max-width: 768px) {
    .isotope-container {
        grid-template-columns: 1fr !important;
    }
}

/* 초소형 모바일 */
@media screen and (max-width: 480px) {
    .isotope-container {
        grid-template-columns: 1fr !important;
        gap: 8px 8px !important;
    }
}
/*
.portfolio-item {
    flex: none !important;
    width: 100% !important;
    height: 250px !important;
    margin-bottom: 0 !important;
}*/

.portfolio-item {
    width: 100%;
    height: 333px;
    overflow: hidden;
    padding: 0 !important;
    margin: 0;
    background: #fff;
    position: relative;
}

.portfolio-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    transition: none;
}




/* Mobile App Download Buttons - 전문적인 디자인 */
.mobile-download {
    text-align: center;
    margin-top: 3rem;
}

.app-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.app-store-button,
.google-play-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0.6rem;
    color: #fff;
    text-decoration: none;
    transition: all 0.4s ease;
    min-width: 160px;
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.app-store-button:hover,
.google-play-button:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(94, 66, 166, 0.6);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(94, 66, 166, 0.25);
    color: #fff;
}

.app-button-content {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.app-button-content i {
    font-size: 1.8rem;
    color: #fff;
    opacity: 0.9;
}

.button-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.download-text {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1;
    margin-bottom: 0.3rem;
    font-weight: 300;
}

.store-text {
    font-size: 1rem;
    font-weight: 500;
    color: #fff;
    line-height: 1;
}

/* 전문적인 반응형 디자인 */
@media (max-width: 768px) {
    .mobile-download {
        margin-top: 2.5rem;
    }
    
    .app-buttons {
        gap: 0.8rem;
    }
    
    .app-store-button,
    .google-play-button {
        min-width: 150px;
        padding: 0.7rem 1.3rem;
    }
    
    .app-button-content i {
        font-size: 1.6rem;
    }
    
    .download-text {
        font-size: 0.65rem;
    }
    
    .store-text {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .mobile-download {
        margin-top: 2rem;
    }
    
    .app-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
    
    .app-store-button,
    .google-play-button {
        width: 100%;
        max-width: 200px;
    }
}

/* 추가: 더 나은 시각적 계층 구조 */
.mobile-download p {
    position: relative;
}

.mobile-download p::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

/* 감사 메시지 애니메이션 */
#thank-you {
    animation: thankYouSlideIn 0.6s ease-out;
}

@keyframes thankYouSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

#thank-you:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(94, 66, 166, 0.4);
    transition: all 0.3s ease;
}

/* Get in touch 섹션 감사 메시지 스타일 */
#thank-you {
    display: none;
    background: linear-gradient(135deg, #5e42a6, #7b68ee);
    color: white;
    padding: 2rem;
    border-radius: 1rem;
    margin-bottom: 2rem;
    text-align: center;
    box-shadow: 0 8px 32px rgba(94, 66, 166, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

#thank-you div {
    margin-bottom: 1rem;
}

#thank-you h3 {
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

#thank-you p {
    margin: 0;
    opacity: 0.9;
    font-size: 1rem;
    line-height: 1.5;
}

#thank-you button {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

#thank-you button:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
}

/* 팝업 스타일 */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.popup-content {
    background: #fff;
    color: #333;
    padding: 2rem;
    border-radius: 0.5rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
    position: relative;
    transform: translateY(-30px);
    opacity: 0;
    transition: all 0.4s ease;
}

.popup-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.popup h3 {
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.popup p {
    margin: 0 0 1.5rem 0;
    font-size: 1rem;
    line-height: 1.4;
}

.popup-close-btn {
    background: #5e42a6;
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 0.3rem;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.popup-close-btn:hover {
    background: #4b327e;
}

.show {
    opacity: 1;
    pointer-events: all;
}

/* 에러 팝업 스타일 */
.error {
    background: #f8d7da;
    color: #721c24;
}

.error .popup-icon {
    color: #721c24;
}

/* 모바일에서 더 작게 */
@media (max-width: 768px) {
    .glightbox-container .gslide-image img,
    .glightbox-container .gslide-video video {
        max-width: 90% !important;
        max-height: 60vh !important;
    }
}

/* capture image 화면의 이미지가 흰색 테두리 박스 안에 전체가 잘리지 않고 최대한 크게 보이도록 스타일 추가 */
.capture-image-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
    border-radius: 1rem;
    display: block;
}