/* ----------------------------- Reset and Global Styles ----------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-y: scroll; /* Always show scrollbar */
  height: 100%; /* 전체 높이 지정 */
  margin: 0;
  padding: 0;
  font-size: 16px; /* 기준 폰트 크기 설정 (1rem = 16px) */
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 12px;
  }
}

body {
  font-family: "Pretendard", sans-serif;
  line-height: 1.6;
  background-color: #111;
  color: white;
  overflow-x: hidden; /* 🔥 강제 좌우 스크롤 제거 */
  transition: padding-right 0.3s ease;
  font-family: "Pretendard", sans-serif !important;
}

/* ----------------------------- Header Styles ----------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 5.125em;
  background-color: transparent;
  z-index: 9999;
  margin: 0 auto;
  transition: background-color 0.3s ease, transform 0.4s ease,
    padding-right 0.3s ease;
}

.site-header.scrolled {
  background-color: rgba(17, 17, 17, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background-color 0.3s ease, backdrop-filter 0.1s ease,
    transform 0.4s ease;
}

.site-header.hide-header {
  transform: translateY(-100%);
  transition: transform 0.4s ease-in-out;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  margin: 0 auto;
  width: 96%;
}

.logo img {
  height: 1.8rem;
  width: auto;
  display: block;
}

/* ----------------------------- Menu Button Styles ----------------------------- */
.menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.375rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 2rem;
  height: 2rem;
  transition: transform 0.3s ease;
}

.menu-btn .bar {
  width: 100%;
  height: 0.1875rem;
  background-color: #fff;
  display: block;
  border-radius: 0.0625rem;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-btn.active .bar:nth-child(2) {
  opacity: 0;
}

.menu-btn.active .bar:nth-child(1) {
  transform: translateY(0.375rem) rotate(45deg);
}

.menu-btn.active .bar:nth-child(3) {
  transform: translateY(-0.375rem) rotate(-45deg);
}

/* ----------------------------- Menu Overlay Styles ----------------------------- */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(11, 11, 11, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* ----------------------------- Close Button Styles ----------------------------- */
.close-btn {
  position: absolute;
  top: 0.7em;
  right: 2%;
  font-size: 2rem;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  z-index: 10001;
  width: 2rem;
  height: 2rem;
}

/* ----------------------------- Overlay Navigation Styles ----------------------------- */
.overlay-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
  width: 100%;
  height: 100%;
}

.overlay-nav li {
  margin: 1em 0;
}

.overlay-nav a {
  font-size: 5vw;
  color: white;
  text-decoration: none;
  transition: opacity 0.2s ease;
  font-weight: 600;
}

.overlay-nav a:hover {
  opacity: 0.3;
}

/* ----------------------------- Footer Styles ----------------------------- */
footer {
  background-color: #111;
  color: #555;
  font-size: 0.875rem;
}

.footer-container {
  color: #fff;
  padding: 3rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  font-size: 1.2em;
  width: 96%;
  margin: 0 auto;
}

.footer-left {
  flex-wrap: wrap;
}

.footer-logo {
  height: 1.2rem;
  opacity: 50%;
  margin-bottom: 1rem;
}

.footer-info span {
  margin-right: 0.5em;
  display: inline-block;
  color: white;
  opacity: 50%;
}

.footer-info .divider {
  margin: 0 0.5em;
  color: #555;
}

.footer-right {
  white-space: nowrap;
  font-size: 1rem;
  color: white;
  opacity: 50%;
  margin-top: 1.5rem;
}

@media (max-width: 768px) {
  .footer-container {
    width: 92%;
    font-size: 1.2rem;
    padding: 4rem 0;
  }

  .footer-logo {
    height: 1.6rem;
    margin-bottom: 1rem;
  }

  .footer-right {
    font-size: 1.2rem;
  }

  .header-container {
    width: 92%;
  }

  .site-header {
    height: 4.5rem;
  }

  .menu-btn {
    width: 1.8rem;
    height: 1.8rem;
  }

  .logo img {
    height: 1.5rem;
  }

  .overlay-nav a {
    font-size: 4.5rem;
  }

  .overlay-nav li {
    margin: 0.75em 0;
  }

  .close-btn {
    font-size: 2rem;
    width: 1.5rem;
    height: 1.5rem;
  }
}

/* ----------------------------- Font Face ----------------------------- */
@font-face {
  font-family: "Pretendard";
  src: url("../font/Pretendard-ExtraLight.woff2") format("woff2"),
    url("../font/Pretendard-ExtraLight.woff") format("woff");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Pretendard";
  src: url("../font/Pretendard-Light.woff2") format("woff2"),
    url("../font/Pretendard-Light.woff") format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Pretendard";
  src: url("../font/Pretendard-Regular.woff2") format("woff2"),
    url("../font/Pretendard-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Pretendard";
  src: url("../font/Pretendard-Medium.woff2") format("woff2"),
    url("../font/Pretendard-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Pretendard";
  src: url("../font/Pretendard-SemiBold.woff2") format("woff2"),
    url("../font/Pretendard-SemiBold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Pretendard";
  src: url("../font/Pretendard-Bold.woff2") format("woff2"),
    url("../font/Pretendard-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Pretendard";
  src: url("../font/Pretendard-ExtraBold.woff2") format("woff2"),
    url("../font/Pretendard-ExtraBold.woff") format("woff");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
