/* ========================
   기본 초기화
   ======================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #000;
    color: white;
    font-family: 'Roboto', 'Noto Sans KR', sans-serif;
    overflow-x: hidden;
}

h1, p {
    text-shadow: 0px 5px 10px rgba(0, 0, 0, 0.7);
}


/* ========================
   공통 네비바
   ======================== */
.top-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1001;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    height: 90px;
    pointer-events: none;
}
.top-nav > * { pointer-events: auto; }
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-btn-login {
    padding: 8px 18px;
    border: 1px solid rgba(255,255,255,0.35);
    background: transparent;
    color: rgba(255,255,255,0.8);
    font-family: 'Roboto', 'Noto Sans KR', sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}
.nav-btn-login:hover { border-color: #ffffff; color: #ffffff; }
.nav-btn-login.gold { border-color: rgba(255,255,255,0.35); color: rgba(255,255,255,0.8); }

@media(max-width:768px){
    .top-nav { height: 70px; padding: 0 14px; }
    .nav-btn-login { font-size: 0.72rem; padding: 6px 13px; }
}


/* ========================
   섹션 공통 — 데스크탑
   화면 전체를 채우고, 텍스트를 배경 위에 얹음
   ======================== */
.page-section {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: flex-end;
    padding: 100px 100px 50px 40px;
    overflow: hidden;
}

/* 데스크탑 배경 (절대위치 fullscreen) */
.desktop-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}



/* 데스크탑 텍스트: 배경 위에 겹침 */
.desktop-text {
    position: relative;
    z-index: 1;
    max-width: 600px;
}

/* 모바일 전용 요소는 데스크탑에서 숨김 */
.mobile-image,
.mobile-text {
    display: none;
}


/* ========================
   콘텐츠 공통 스타일
   ======================== */
.main-title {
    font-size: 2.5rem;
    font-weight: 200;
    margin-bottom: 5px;
    text-transform: uppercase;
    max-width: 300px;
    line-height: 1.3;
}

.description {
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 10px;
    font-weight: 100;
    max-width: 380px;
}

.btn-outline {
    display: inline-block;
    padding: 30px 20px;
    border: 0.05px solid #ffffff;
    border-radius: 5px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 100;
    font-size: 1.0rem;
    transition: 0.4s;
}

.btn-outline:hover {
    background: #ffffff;
    color: black;
}


/* ========================
   스크롤바
   ======================== */
body::-webkit-scrollbar { width: 6px; }
body::-webkit-scrollbar-thumb { background: #333; border-radius: 10px; }
body::-webkit-scrollbar-track { background: #000; }


/* ========================
   반응형 — 모바일 (768px 이하)
   구조: [이미지 1:1] → [텍스트 블록] 순서로 수직 배치
   여백 없이 딱 붙임
   ======================== */
@media (max-width: 768px) {

    /* 섹션: flex column으로 이미지 + 텍스트 수직 배치 */
    .page-section {
        position: static;       /* absolute 자식 기준 해제 */
        height: auto;
        min-height: unset;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        padding: 0;
        overflow: hidden;
        
    }

    /* 데스크탑 배경·텍스트 숨김 */
    .desktop-bg,
    .desktop-text {
        display: none;
    }

    /* ── 모바일 이미지 영역 ── */
    .mobile-image {
        display: block;
        width: 100%;
        aspect-ratio: 1 / 1;   /* 정사각형 고정 */
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        /* margin/padding 완전히 0 → 여백 없음 */
        flex-shrink: 0;
    }

    /* ── 모바일 텍스트 영역 ── */
    .mobile-text {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        background-color: #000;
        padding: 40px 30px 40px 30px;
        /* margin 없음 → 이미지에 딱 붙음 */
        gap: 0;
    }

    .mobile-text .main-title {
        font-size: 2.2rem;
        font-weight: 200;
        text-transform: uppercase;
        margin-bottom: 5px;
        padding: 0;
        text-shadow: none;
        max-width: 70vw;
    }

    .mobile-text .description {
        font-size: 1rem;
        line-height: 1.6;
        font-weight: 100;
        margin-bottom: 10px;
        padding: 0;
        text-shadow: none;
    }

    .mobile-text .btn-outline {
        padding: 30px 20px;
        font-size: 0.95rem;
    }

    /* 로고 위치 보정 */
    .logo-fixed {
        left: 10px;
        top: 10px;
    }

    .logo-fixed img {
    height: 50px;
    }

    
    .top-nav { height: 70px; padding: 0 14px; padding-top: 5px; }
}