/* 1. 기본 설정 (Reset & Common) */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: #050505;
    color: #e0e0e0;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    overflow-x: hidden;
    background-image: radial-gradient(circle at 50% 50%, #1a1a2e 0%, #000000 70%);
    min-height: 100vh;
}

body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    /* 노이즈 효과 URL */
    background: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 0.05;
    pointer-events: none;
    z-index: -1;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

/* 2. 헤더 */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 50px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent);
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 3px;
    font-family: 'Georgia', serif;
}
.logo span { color: #4facfe; }

.nav-links { display: flex; gap: 40px; font-size: 0.85rem; font-weight: 600; letter-spacing: 1px; }
.nav-links a:hover { color: #4facfe; text-shadow: 0 0 10px rgba(79, 172, 254, 0.5); }

/* 3. 메인(Landing) 페이지 스타일 */
.main-landing {
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    overflow: hidden;
}

.landing-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('https://images.unsplash.com/photo-1464802686167-b939a6910659?q=80&w=1600') no-repeat center/cover;
    filter: brightness(0.5);
    z-index: -1;
    animation: zoomEffect 20s infinite alternate;
}

@keyframes zoomEffect {
    from { transform: scale(1); }
    to { transform: scale(1.15); }
}

.main-title {
    font-size: 6rem;
    line-height: 1;
    font-family: 'Georgia', serif;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease-out;
}

.sub-title {
    font-size: 1.5rem;
    color: #ccc;
    margin-bottom: 50px;
    letter-spacing: 2px;
    animation: fadeInUp 1.5s ease-out;
}

.enter-btn {
    display: inline-block;
    padding: 20px 60px;
    border: 1px solid #4facfe;
    color: #4facfe;
    font-size: 1.2rem;
    letter-spacing: 3px;
    transition: 0.4s;
    background: rgba(0,0,0,0.5);
}

.enter-btn:hover {
    background: #4facfe;
    color: #000;
    box-shadow: 0 0 20px #4facfe;
}

/* 하단 미리보기 섹션 */
.featured-preview {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 40px;
    background: #000;
}

.preview-item {
    width: 200px;
    height: 120px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid #333;
}

.preview-item img {
    width: 100%; height: 100%; object-fit: cover; opacity: 0.6; transition: 0.3s;
}
.preview-item span {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    font-weight: bold; font-size: 0.9rem; text-shadow: 0 2px 4px #000;
}
.preview-item:hover img { opacity: 1; transform: scale(1.1); }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 4. 갤러리 페이지 레이아웃 */
.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 80px 40px;
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 60px;
}

.sidebar { position: sticky; top: 120px; height: fit-content; }
.sidebar h2 { font-size: 1.5rem; margin-bottom: 30px; border-bottom: 1px solid #333; padding-bottom: 10px; }
.filter-menu li {
    padding: 15px 0;
    color: #777;
    cursor: pointer;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.filter-menu li:hover, .filter-menu li.active { color: #fff; transform: translateX(10px); }

.gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.card {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    cursor: pointer;
}
.card img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    filter: grayscale(20%);
}
.card:hover img { transform: scale(1.1); filter: grayscale(0%); }
.card-info {
    position: absolute; bottom: 0; left: 0; width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    transform: translateY(20px);
    transition: 0.4s;
}
.card:hover .card-info { transform: translateY(0); }
.card-info h3 { font-size: 2rem; font-family: 'Georgia', serif; margin-bottom: 5px; }

/* 5. ABOUT 페이지 */
.about-wrapper { display: block; max-width: 1200px; margin: 0 auto; padding: 100px 40px; }
.about-intro { display: flex; gap: 60px; margin-bottom: 100px; align-items: center; }
.about-text { flex: 1; }
.about-text h2 { font-size: 3.5rem; line-height: 1.1; margin-bottom: 30px; font-family: 'Georgia', serif; }
.about-img { flex: 1; height: 500px; overflow: hidden; }
.about-img img { width: 100%; height: 100%; object-fit: cover; }

.stats-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 30px; border-top: 1px solid #333; border-bottom: 1px solid #333;
    padding: 60px 0; margin-top: 50px;
}
.stat-item h3 { font-size: 4rem; color: #4facfe; font-weight: 700; margin-bottom: 10px; }
.stat-item p { font-size: 1rem; color: #888; letter-spacing: 2px; text-transform: uppercase; }

/* 6. CONTACT 페이지 */
.contact-hero {
    height: 100vh;
    display: flex; align-items: center; justify-content: center;
    background: url('https://images.unsplash.com/photo-1534447677768-be436bb09401?q=80&w=1600') no-repeat center/cover;
    position: relative;
}
.contact-overlay {
    background: rgba(0,0,0,0.7);
    padding: 60px;
    width: 100%; max-width: 600px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
}
.contact-overlay h1 { font-size: 3rem; margin-bottom: 40px; font-family: 'Georgia', serif; text-align: center; }
.input-group { margin-bottom: 30px; }
.input-group input, .input-group textarea {
    width: 100%; background: rgba(255,255,255,0.05); border: 1px solid #333;
    padding: 15px; color: #fff; font-size: 1rem;
}
.input-group input:focus, .input-group textarea:focus { border-color: #4facfe; outline: none; background: rgba(0,0,0,0.5); }
.btn-submit { width: 100%; padding: 15px; background: #4facfe; border: none; font-weight: bold; font-size: 1.1rem; cursor: pointer; color: #000; }
.btn-submit:hover { background: #fff; }

footer { text-align: center; padding: 80px 0; border-top: 1px solid #222; margin-top: 50px; color: #555; }

/* --- 모바일 반응형 & 햄버거 메뉴 --- */

/* PC 버전에서는 햄버거 버튼 숨김 */
.hamburger { display: none; cursor: pointer; }
.bar { display: block; width: 25px; height: 3px; margin: 5px auto; transition: all 0.3s ease-in-out; background-color: white; }

/* 모바일 버전 (768px 이하) */
@media (max-width: 768px) {
    /* 1. 헤더 양옆 여백 줄이기 (50px -> 20px) */
    header {
        padding: 15px 20px; 
    }

    .main-title { font-size: 3.5rem; }
    .featured-preview { display: none; }
    .container { grid-template-columns: 1fr; }
    .gallery { grid-template-columns: 1fr; }
    .about-intro { flex-direction: column; }
    .stats-grid { grid-template-columns: 1fr; text-align: center; }
    
    /* 2. 햄버거 버튼 보이기 & 오른쪽 끝으로 밀기 */
    .hamburger { 
        display: block; 
        z-index: 1001;
        margin-left: auto; /* 중요: 왼쪽 공간을 다 채워서 아이콘을 오른쪽 끝으로 밈 */
    }

    /* 3. 메뉴가 빈 공간 차지하지 않도록 설정 */
    nav {
        display: contents; /* 네비게이션 껍데기가 공간을 차지하지 않게 함 */
    }

    /* 메뉴 모바일용 변환 */
    .nav-links {
        position: fixed; top: 0; right: -100%;
        height: 100vh; width: 100%;
        background-color: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center; justify-content: center;
        transition: 0.4s; z-index: 1000; padding-top: 60px;
    }
    .nav-links li { margin: 25px 0; }
    .nav-links a { font-size: 1.5rem; }
    
    .nav-links.active { right: 0; }
    
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}