/* 기본 설정 */

html  {
    overflow-x: hidden;
  }
  
body {
    margin: 0;
    font-family: 'Noto Sans KR', sans-serif;  
    padding-top: 40px; /* header 높이에 맞게 조정 */
}

/* 헤더 스타일 */
.header {
    position: fixed; /* 변경된 부분 */
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.2);
    padding: 25px 20px;
    z-index: 1000;
}

.logo img{
    height: 30px;
}

.dot {
    color: #ff056d; /* 원하는 색상으로 변경 */
    margin-right: 5px; /* 원과 글자 사이 간격 */
  }

/* 햄버거 버튼과 닫기 버튼 기본 숨김 */
.hamburger,
.close-btn {
    font-size: 30px;
    background: none;
    border: none;
    cursor: pointer;
    display: none;
    color: #FF1493;
}

/* 닫기 버튼 위치 */
.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    z-index: 1100;
}

/* 숨김 클래스 */
.hide {
    display: none !important;
}

/* 컨테이너 레이아웃 */
.container {
    display: flex;
    height: calc(100vh - 60px);
    /* 헤더 높이 제외 */
}

/* 사이드바 */
/* 사이드바 */
.sidebar {
    position: fixed;
    /* 고정 위치 */
    top: 84px;
    /* 헤더 높이만큼 아래로 */
    left: 0;
    width: 250px;
    max-width: 300px;
    height: calc(100vh - 60px);
    /* 헤더 제외 전체 높이 */
    background: #f0f0f0;
    overflow-y: auto;
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 20px;
    z-index: 1000;
}


.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar li {
    display: block;
    padding: 10px 16px;
    font-weight: 600;
    color: rgb(0, 0, 0);
    border-radius: 8px;
    transition: background-color 0.3s ease-in-out, color 0.3s, box-shadow 0.3s;
}

.sidebar ul li a {
    text-decoration: none;
    color: inherit; /* 링크 글자색을 기본 텍스트 색상으로 맞춤 */
  }

/* 마우스 오버 효과 (버튼 스타일) */
.sidebar li:hover {
    background-color: rgb(0, 0, 0);
    /* 더 버튼스럽게 */
    color: #ff9d00;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}


/* 스크롤바 스타일 */
.sidebar::-webkit-scrollbar {
    width: 5px;
}

.sidebar::-webkit-scrollbar-thumb {
    background-color: rgba(150, 150, 150, 0.5);
    border-radius: 10px;
}

/* 콘텐츠 영역은 사이드바 옆에서 시작 */
.content {
    position: relative;
    margin-left: 300px;
    /* 사이드바 너비만큼 띄움 */
    padding: 20px;
    width: calc(100% - 250px);
}



/* ---------------- 반응형 ---------------- */

@media screen and (max-width: 1024px) {
    body {
        background-color: black;
    }
    .logo img{
        height: 20px;
    }

    /* 레이아웃 변경 */
    .container {
        flex-direction: column;
    }

    .sidebar {
        position: absolute;
        top: 60px;
        left: 0;
        width: 200px;
        height: calc(100vh - 60px);
        background: #f0f0f0;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        z-index: 1000;
        padding-left: 20px;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .content {
        position: relative;
        width: 95%;
        margin-left: 0px;
        /* 사이드바 너비만큼 띄움 */
        margin-right: 20px;    

    }

    /* 버튼 보이기 */
    .hamburger {
        display: block;
        z-index: 1100;
    }

    .close-btn {
        display: block;
    }

    
    .logo {
        width: 200px;
    }
}

/* ---------------- 반응형까지 ---------------- */

/* 햄버거 오버레이 */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #fe9400;
    /* 어두운 배경 */
    z-index: 1050;
}

.overlay.open {
    display: block;
}

/* 오버레이 내부 메뉴 스타일 */
/* 오버레이 내부 메뉴 스타일 - 중앙 정렬 */
.overlay-sidebar {
    width: 300px;
    max-width: 350px;
    background: none;
    padding: 40px 20px;
    box-sizing: border-box;
    position: absolute;
    /* absolute 위치 설정 */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* 화면 중앙 정렬 */
    z-index: 1060;
    border-radius: 10px;
    /* (선택) 살짝 둥근 느낌 */
}

.overlay-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.overlay-sidebar li {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #ffffff;
    font-weight: 600;
    padding: 2px;
    /* 추가 */
    border-radius: 6px;
    /* 추가하면 hover 시에도 부드럽게 */
}

/* 닫기 버튼 스타일 */
.overlay .close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 30px;
    color: white;
    background: none;
    border: none;
    z-index: 1100;
    cursor: pointer;
}

.overlay-sidebar li:hover {
    background-color: rgba(0, 0, 0, 0);
    /* 약간 진한 회색 배경 */
    color: #000000;
    /* 글씨 검정색 */
    border-radius: 6px;
    /* 박스 형태 부드럽게 */
    padding: 2px;
    /* 여백으로 박스감 주기 */   
    cursor: pointer;
}

.hero-section h1 {
    font-family: 'Pretendard', sans-serif;
    font-size: 80px;
    font-weight: 900;
    color: rgb(5, 207, 229);
    line-height: 0.8; /* 행간 간격 조절 */
    letter-spacing: -1.2PX;
}

.hero-section h2 {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: rgb(17, 116, 155);
    line-height: 1.4; /* 필요에 따라 1.3 ~ 1.5 정도로 조절 */
    letter-spacing: -1.2px;
    max-width: 790px;          /* ✅ 최대 가로폭 제한 */
    word-break: keep-all;      /* ✅ 단어가 중간에 끊기지 않도록 (한국어에 적합) */
    white-space: normal;       /* ✅ 줄바꿈 허용 */
}

.hero-section p {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: rgb(122, 122, 122);
    max-width: 790px;          /* ✅ 최대 가로폭 제한 */
    word-break: keep-all;      /* ✅ 단어가 중간에 끊기지 않도록 (한국어에 적합) */
    white-space: normal;       /* ✅ 줄바꿈 허용 */
}

/********************************************************************************************/
.responsive-img {
    width: calc(100% - 10px);  /* 여백 고려한 너비 */
    max-width: 800px;
    height: auto;
    display: block;
    border-radius: 12px;
    margin-right: 10px;
}

.video-container {
    max-width: 800px;
    width: 100%;
    margin: 0;
}

.video-container video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px; /* 선택 사항 */
}

/********************************************************************************************/
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    display: none; /* 2000px 이상일 때만 보이게 설정 */
}

.video-background video {
    width: 100vw;
    height: 100vh;
    object-fit: cover;
}


@media screen and (min-width: 1200px) {
    .video-background {
        display: block;
    }
}
