/* ==========================================
   글로벌 헤더 및 상단 바 레이아웃
   ========================================== */
.global-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(11, 15, 25, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--surface-border);
    z-index: 1000;
}

.header-container {
    max-width: 1400px;
    height: 100%;
    margin: 0 auto;
    padding: 0 var(--spacing-gap);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    background: linear-gradient(45deg, var(--primary-photon), var(--secondary-quantum));
    -webkit-background-clip: text;
    background-clip: text; 
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.95rem;
    color: var(--text-sub);
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-photon);
}

/* 스크롤 진행도 표시 바 */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(to right, var(--primary-photon), var(--secondary-quantum));
    z-index: 1001;
}

/* ==========================================
   섹션 레이아웃 (정렬 구조 강화)
   ========================================== */
section {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding-top: var(--header-height);
    z-index: 1;
}

main {
    width: 100%;
    display: block;
}

/* 모바일 햄버거 메뉴 버튼 스타일 */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    z-index: 1002;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-main);
    transition: all 0.3s ease;
}

/* ==========================================
   Responsive Web Design (미디어 쿼리)
   ========================================== */

@media (max-width: 1024px) {
    :root {
        --header-height: 60px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: fixed;
        top: 0;
        right: -100%; 
        width: 70%;
        height: 100vh;
        background: var(--bg-space);
        border-left: 1px solid var(--surface-border);
        transition: right 0.3s ease;
        gap: 3rem;
    }

    .nav-links.active {
        right: 0;
    }
    
    html, body {
        position: relative;
        overflow-x: hidden;
    }
}