/* 기본 초기화 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; /* 스크롤 부드럽게 */
}

body {
    background-color: #000;
    color: white;
    font-family: 'Arial', sans-serif;
    overflow-x: hidden; /* 가로 스크롤 방지 */
}

h1, p {
  /* 가로, 세로, 번짐정도, 색상 */
  text-shadow: 0px 5px 10px rgba(0, 0, 0, 0.7);
}


/* 🚩 로고 스타일 */
.logo-fixed {
    position: fixed;
    top: 10px;
    left: 20px;
    z-index: 1000;
}

.logo-fixed img {
    height: 80px;
}

.divergence-box {
    position: fixed;
    top:10px;/* 상단 여백 */
    right: 10px; /* 왼쪽(left)에서 오른쪽(right)으로 변경 */
    
    
    color: #ffffff; /* 전체 글자색을 형광 녹색으로 */
    font-family: 'Courier New', Courier, monospace;
    font-size: 1rem;
    font-weight: bold;
    z-index: 1001;
    /* 미래 느낌을 주는 강한 네온 효과 */
    
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.8);
}

.divergence-box .label {
    color: #ffffff
    ;
    margin-right: 10px;
    opacity: 0.8; /* 라벨은 살짝 투명하게 해서 수치와 구분 */
}

#divergence-value {
    letter-spacing: 1px;
}

/* 📐 섹션 설정: 항상 화면을 꽉 채움 */
.page-section {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center; /* 세로 중앙 정렬 */
    padding-left: 10%;
    background-size: cover;    /* 사진 비율 유지하며 꽉 채우기 */
    background-position: center; /* 중앙 기준 */
    background-repeat: no-repeat;
    padding-left: 30px;
    align-items: flex-end; /* 모바일은 글자를 아래로 */
    padding-bottom: 50px;
}

/* 🎥 비디오 배경: 스페이스X의 핵심 비율 기술 */
.video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* 영상이 화면에 맞게 꽉 차고 잘림 방지 (핵심!) */
    z-index: -1;
}

/* 🖼️ 이미지 배경 경로 (파일명 확인 필수!) */
.section1 { background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('image/bg1.jpg'); }
.section2 { background-image: url('image/bg2.jpg');}
.section3 { background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('image/bg3.jpg'); }
.section4 { background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('image/bg4.jpg'); }
.section5 { background-image: linear-gradient(rgba(0,0,0,0.0), rgba(0,0,0,0.0)), url('image/bg5.jpg'); }

/* 콘텐츠 박스 스타일 */
.content-box {
    max-width: 600px;
}

.main-title {
    font-size: 3.0rem;
    font-weight: 400;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom:30px;
    font-weight: 100;
}

/* 버튼 스타일 */
.btn-outline {
    display: inline-block;
    padding: 20px 18px;
    border: 0.05px solid white;
    border-radius: 5px;
    color: white;
    text-decoration: none;
    font-weight: 100;
    font-size: 1.0rem;
    transition: 0.4s;
}

.btn-outline:hover {
    background: white;
    color: black;
}

/* 📱 반응형 (화면이 줄어들 때 대응) */
@media (max-width: 768px) {
    .logo-fixed {
        left: 10px;
        top: 10px;
    }

    .page-section {
        padding-left: 15px;
        align-items: flex-end; /* 모바일은 글자를 아래로 */
        padding-bottom: 20px;
    }

    .main-title {
        font-size: 2.2rem;
    }
    
}

/* 스크롤바 디자인 */
body::-webkit-scrollbar {
    width: 6px;
}
body::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 10px;
}
body::-webkit-scrollbar-track {
    background: #000;
}


/* section2 내의 제목과 설명글만 검정색으로 변경 */
/* section2 메인 타이틀: 두껍게 (400) */
.section2 .main-title {
    color: #000000;
    text-shadow: none;
    font-weight: 400;
}

/* section2 설명글: 얇게 (100) */
.section2 .description {
    color: #000000;
    text-shadow: none;
    font-weight: 150;
}

/* section5 내의 버튼도 검정색 테두리와 글자로 변경 */
.section2 .btn-outline {
    color: #000000;
    border-color: #000000;
}

/* 버튼 위에 마우스 올렸을 때 반전 효과 */
.section2 .btn-outline:hover {
    background: #000000;
    color: #ffffff;
}

/* section2 메인 타이틀: 두껍게 (400) */
.section5 .main-title {
    color: #000000;
    text-shadow: none;
    font-weight: 400;
}

/* section2 설명글: 얇게 (100) */
.section5 .description {
    color: #000000;
    text-shadow: none;
    font-weight: 150;
}

/* section5 내의 버튼도 검정색 테두리와 글자로 변경 */
.section5 .btn-outline {
    color: #000000;
    border-color: #000000;
}

/* 버튼 위에 마우스 올렸을 때 반전 효과 */
.section5 .btn-outline:hover {
    background: #000000;
    color: #ffffff;
}

@media (max-width: 768px) {
    .section2 {
        /* 모바일용으로 준비한 사진 경로를 여기에 넣어 */
        background-image: url('image/bg2_mobile.jpg'); 
        
        /* 사진이 중앙에 예쁘게 오도록 설정 */
        background-position: center;
        background-size: cover;
    }

    .section5 {
        /* 모바일용으로 준비한 사진 경로를 여기에 넣어 */
        background-image: url('image/bg5_mobile.jpg'); 
        
        /* 사진이 중앙에 예쁘게 오도록 설정 */
        background-position: center;
        background-size: cover;
    }
}


@media (max-width: 768px) {
    /* 1. 전체적인 여백 조정 */
    .page-section {
        padding: 0 60px 20px 20px; /* 좌우 20px, 아래 60px 여백 */
        align-items: flex-end; 
    }

    /* 2. 메인 타이틀 크기 축소 및 줄바꿈 최적화 */
    .main-title {
        font-size: 1.4rem;    /* 기존 2.2rem에서 축소 */
        line-height: 1.2;     /* 줄 간격 조절 */
        word-break: keep-all; /* 단어 단위로 줄바꿈 (이게 핵심!) */
        margin-bottom: 5px;
    }

    /* 3. 설명글 크기 및 간격 조정 */
    .description {
        font-size: 0.9rem;   /* 약간 작게 조정 */
        line-height: 1.5;
        margin-bottom: 10px;
        word-break: keep-all; /* 단어가 중간에 잘리지 않게 함 */
    }

    /* 4. 이미지 경로 수정 (지난번 확인한 공백 포함 버전) */
    .section2 {
        background-image: url('image/bg2_mobile.jpg'); 
        background-size: cover;
        background-position: center;
    }

    .section5 {
        background-image: url('image/bg5_mobile.jpg'); 
        background-size: cover;
        background-position: center;
    }

    .btn-outline {
    
    font-size: 0.7em;
    padding: 10px 9px;
    
}
}