/* 기본 초기화 */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body { font-family: 'Inter', sans-serif; background-color: #fff; color: #1a1a1a; width: 100%; overflow-x: hidden; }

/* 헤더 & 로고 */
header {
    position: fixed; top: 0; left: 0; width: 100%;
    background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    z-index: 1000; padding: 40px 0 20px; border-bottom: 1px solid rgba(0,0,0,0.03);
}
.header-inner { width: 100%; display: flex; flex-direction: column; align-items: center; }
.logo { font-size: 2rem; font-weight: 700; letter-spacing: 10px; text-transform: uppercase; margin-bottom: 5px; padding-left: 10px; }
.subtitle { font-size: 0.6rem; font-weight: 200; letter-spacing: 3px; color: #888; text-transform: uppercase; margin-bottom: 25px; }

/* 메뉴 */
nav { width: 100%; max-width: 100vw; overflow: hidden; }
nav ul { display: flex; list-style: none; justify-content: center; gap: 25px; padding: 0 20px; }
nav ul li a { text-decoration: none; color: #bbb; font-size: 0.75rem; letter-spacing: 1px; transition: 0.3s; white-space: nowrap; display: block; }
nav ul li a.active, nav ul li a:hover { color: #000; font-weight: 500; }

/* 콘텐츠 */
#content-wrapper { width: 100%; margin-top: 200px; }
.content-section { width: 100%; animation: fadeIn 0.5s ease; }

/* 메인 영상 */
.hero-image-wrap { width: 100%; height: auto; aspect-ratio: 16 / 9; overflow: hidden; margin-bottom: 5px; background: #000; position: relative; }
.youtube-video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; }

/* ✨ 그리드 (모든 메뉴 공통 3열 고정) ✨ */
.portfolio-container.masonry { 
    max-width: 1400px; 
    margin: 0 auto; 
    padding: 0 5px; 
    column-count: 3;     /* PC 기준 무조건 3열 */
    column-gap: 5px; 
}

.grid-item { 
    display: inline-block; 
    width: 100%; 
    margin-bottom: 5px; 
    break-inside: avoid; 
}

.image-box { width: 100%; overflow: hidden; background: #000; }
.image-box img { width: 100%; height: auto; display: block; cursor: zoom-in; transition: 0.4s ease; }
.image-box:hover img { filter: brightness(1.2); transform: scale(1.02); }

/* Contact & Explore */
.contact-wrap, .explore-wrap { padding: 80px 20px; text-align: center; }
.explore-wrap { display: flex; justify-content: center; flex-wrap: wrap; gap: 20px; }
.explore-card { 
    width: 250px; height: 120px; border: 1px solid #eee; 
    display: flex; align-items: center; justify-content: center; 
    cursor: pointer; transition: 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    text-decoration: none; color: #1a1a1a; font-size: 0.9rem; letter-spacing: 2px;
    background: #fff; text-transform: uppercase;
}
.explore-card:hover { background: #000; color: #fff; border-color: #000; transform: translateY(-5px); }

/* 모달 */
.modal { display: none; position: fixed; z-index: 2000; top: 0; left: 0; width: 100%; height: 100%; background: rgba(255,255,255,0.98); justify-content: center; align-items: center; }
.modal-content { max-width: 95%; max-height: 85%; }
.close-btn { position: absolute; top: 20px; right: 25px; font-size: 35px; cursor: pointer; }
.nav-btn { position: absolute; top: 50%; transform: translateY(-50%); font-size: 30px; cursor: pointer; padding: 15px; opacity: 0.3; }
.prev-btn { left: 10px; } .next-btn { right: 10px; }

footer { text-align: center; padding: 50px 0; color: #ccc; font-size: 0.7rem; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* 모바일 전용 */
@media (max-width: 1024px) { 
    .portfolio-container.masonry { column-count: 2; } /* 태블릿은 2열 */
}
@media (max-width: 768px) {
    .logo { font-size: 1.5rem; letter-spacing: 6px; }
    #content-wrapper { margin-top: 180px; }
    nav ul { justify-content: flex-start; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 5px; }
    nav ul::-webkit-scrollbar { display: none; }
    .portfolio-container.masonry { column-count: 1; } /* 모바일은 1열 */
    .explore-card { width: 100%; max-width: 300px; }
}