/* ============================================================
   DRONE STUDIO - 공통 스타일시트
   모든 페이지(admin 제외)가 이 파일 하나를 공유합니다.
   페이지 전용 스타일(프로필 카드, 워크플로우 카드 등)은
   각 페이지 안의 <style> 블록에 "추가"만 하고,
   여기 있는 header/nav/hero 규칙은 절대 재정의하지 않습니다.
   ============================================================ */

/* ---------- 기본 리셋 ---------- */
body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    font-family: 'Malgun Gothic', sans-serif;
    background-color: #0b0f19;
    color: #f8fafc;
    overflow-x: hidden;
    overflow-y: scroll; /* ⭐️ 추가: 스크롤바 자리 항상 고정 확보 */
    scroll-behavior: smooth;
}

/* ---------- 헤더 / 네비게이션 (전 페이지 공통) ---------- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 80px;
    background-color: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: all 0.3s ease-in-out;
    padding: 0 40px;
    box-sizing: border-box;
    flex-wrap: wrap;
}
header.header-scrolled {
    background-color: #0b0f19 !important;
    border-bottom: 1px solid #1e293b;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
header:hover {
    background-color: rgba(11, 15, 25, 0.98);
    border-bottom: 1px solid #1e293b;
}

.logo { color: #00d2ff; font-size: 1.4rem; font-weight: bold; text-decoration: none; letter-spacing: 1px; padding: 20px 0; display: flex; align-items: center; }

.nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 50px; min-height: 80px; align-items: center; flex-wrap: wrap; justify-content: center; }
.nav-item { display: flex; flex-direction: column; align-items: center; position: relative; justify-content: center; }
.nav-item > a { color: #fff; text-decoration: none; font-size: 1.1rem; font-weight: bold; padding: 25px 0; transition: color 0.2s; white-space: nowrap; }
.nav-item:hover > a, .nav-item.active > a { color: #00d2ff; }

.sub-menu { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 15px; opacity: 0; visibility: hidden; transition: opacity 0.3s; text-align: center; position: absolute; top: 75px; background: rgba(11, 15, 25, 0.95); padding: 15px 20px; border-radius: 8px; border: 1px solid #1e293b; }
.sub-menu a { color: #aaa; text-decoration: none; font-size: 0.9rem; white-space: nowrap; transition: color 0.2s; }
.sub-menu a:hover { color: #00d2ff; }
.nav-item:hover .sub-menu { opacity: 1; visibility: visible; }

.header-right { padding: 20px 0; display: flex; align-items: center; min-width: 80px; }
.admin-btn { color: #00d2ff; text-decoration: none; font-size: 0.9rem; font-weight: bold; border: 1px solid rgba(0, 210, 255, 0.4); padding: 8px 18px; border-radius: 20px; background: rgba(0, 210, 255, 0.05); white-space: nowrap; }

@media (max-width: 990px) {
    header { justify-content: center; gap: 10px; padding: 15px; }
    .logo { width: 100%; text-align: center; padding: 5px 0; justify-content: center; }
    .nav-list { min-height: auto; gap: 30px; padding: 10px 0; }
    .nav-item > a { padding: 10px 0; }
    .sub-menu { top: 45px; }
    .header-right { width: 100%; justify-content: center; padding: 5px 0; }

    .hero-content { margin-top: 80px; }
    .hero-content h1 { font-size: 2.8rem; margin-bottom: 15px; }
    .hero-content p { font-size: 1.2rem; }
}

@media (max-width: 480px) {
    .nav-list { gap: 10px; }
    .nav-item > a { font-size: 0.82rem; }
    .logo { font-size: 1.1rem; }

    .hero-content { margin-top: 100px; }
    .hero-content h1 { font-size: 2.2rem; margin-bottom: 10px; }
    .hero-content p { font-size: 1rem; }
}

/* ============================================================
   히어로 배너 - 표준 규격
   구조는 항상 동일: .hero > .hero-bg-target + .hero-overlay + .hero-content(h1[+p])
   서브페이지 기본값: 45vh
   ============================================================ */
.hero {
    position: relative;
    width: 100%;
    height: 45vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    background-color: #0b0f19;
}
.hero-bg-target {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1; background-size: cover; background-position: center; overflow: hidden;
}

/* 기존 .hero-bg-target 규칙 아래에 추가 */
@keyframes cinematicZoomOnce {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }

    100% {
        transform: scale(1);
    }
}

.hero-bg-target {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    animation: cinematicZoomOnce 1.2s ease-in-out 1;
    animation-fill-mode: forwards;
    transform-origin: center center;
    will-change: transform;
}

.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(11, 15, 25, 0.6); z-index: 2;
}
.hero-content {
    position: relative; z-index: 3;
    opacity: 0; transition: opacity 0.8s ease-in-out;
}
.hero-content.loaded { opacity: 1; }

.hero-content h1 {
    font-size: 3rem; margin: 0 0 10px 0; color: #fff;
    letter-spacing: 2px; font-weight: 800;
    text-shadow: 0 4px 15px rgba(0,0,0,0.6);
}
.hero-content p {
    color: #00d2ff; font-weight: bold; font-size: 1.2rem; margin: 0;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

/* 홈페이지 전용 변형: 100vh + 더 큰 타이틀 (의도적으로 크게) */
.hero.hero--home {
    height: 100vh;
}
.hero.hero--home .hero-content h1 {
    font-size: 4rem;
    letter-spacing: normal;
    color: #fff;
}
.hero.hero--home .hero-content p {
    color: #cbd5e1;
    font-size: 1.5rem;
}

@media (max-width: 990px) {
    .hero.hero--home .hero-content h1 { font-size: 2.8rem; }
}
@media (max-width: 480px) {
    .hero.hero--home .hero-content h1 { font-size: 2.2rem; }
}
