* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Top Header */
.top-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  z-index: 10;
  display: flex;
  align-items: center;
}

.header-content {
  /* max-width: 1080px; */
  margin: 0 auto;
  padding: 0 1rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-left {
  display: flex;
  align-items: center;
}

.header-logo {
  display: block;
  height: clamp(32px, 5vw, 44px);
  width: auto;
  flex-shrink: 0;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Language Switcher */
.lang-switcher {
  position: relative;
}

.lang-switcher-btn {
  width: 30px;
  height: 30px;
  background-color: #252525;
  border: 1px solid #3f3f3f;
  border-radius: 3px;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: all 0.3s ease;
}

.lang-switcher-btn:hover {
  background-color: rgba(24, 28, 37, 0.9);
  border-color: #5f5f5f;
}

.lang-switcher-btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

.lang-switcher-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 124px;
  margin: 0;
  padding: 4px 0;
  list-style: none;
  background: #252525;
  border: 1px solid #3f3f3f;
  border-radius: 3px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 100;
}

.lang-switcher.is-open .lang-switcher-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-switcher-option {
  padding: 8px 14px;
  font-family: "Inter", sans-serif;
  font-size: 0.7rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.lang-switcher-option:hover,
.lang-switcher-option.is-active {
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

/* Login Button */
.login-button {
  background-color: #252525;
  border: 1px solid #3f3f3f;
  border-radius: 3px;
  color: #ffffff;
  font-family: "Lora", serif;
  font-size: 0.7rem;
  font-weight: 400;
  height: 30px;
  padding: 0 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
}

.login-button:hover {
  background-color: rgba(24, 28, 37, 0.9);
  border-color: #5f5f5f;
}

body {
  font-family: "Lora", serif;
  overflow-x: hidden;
  min-height: 100vh;
}

.container {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 15%;
}

/* Background Rectangle */
.container::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0px;
  top: 0px;
  background: #181c25;
  z-index: 1;
}

/* Background Video */
.background-image {
  position: absolute;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  left: 0px;
  top: 0px;
  object-fit: cover;
  object-position: center;
  z-index: 2;
  transition: opacity 1s ease-in-out;
}

/* Dark Overlay */
.overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0px;
  top: 0px;
  background: linear-gradient(
    to right,
    rgba(24, 28, 37, 0.85) 30%,
    rgba(24, 28, 37, 0.8) 50%,
    rgba(24, 28, 37, 0.65) 70%,
    rgba(24, 28, 37, 0.6) 100%
  );
  z-index: 3;
}

/* 모바일에서는 균일한 오버레이 유지 */
@media (max-width: 768px) {
  .overlay {
    background: rgba(24, 28, 37, 0.7);
  }
}

/* Content */
.content {
  position: absolute;
  z-index: 4;
  max-width: 600px;
  top: 50%;
  left: 15%;
  /* 초기: 메뉴는 투명해도 레이아웃 높이를 차지 → 타이틀만 화면 중앙에 맞춤 */
  transform: translateY(-1.5rem);
  transition: top 0.8s ease-out, transform 0.8s ease-out;
}

/* Content 최종 위치 */
.content.final-position {
  top: 50%;
  transform: translateY(-50%);
}

/* Title - Synspear Dev Studio */
.title {
  font-family: "Lora";
  font-style: normal;
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 2.5rem);
  line-height: 1.2;
  color: #ffffff;
  margin: 0 0 2rem;
  min-height: 1.2em;
  white-space: nowrap;
  text-align: left;
}

/* 모바일에서는 중앙 정렬 */
@media (max-width: 768px) {
  .content {
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-1.5rem);
    text-align: center;
  }

  .content.final-position {
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
  }

  .title {
    text-align: center;
  }
}

/* 커서 스타일 */
.cursor {
  display: inline-block;
  width: 2px;
  height: 1.2em;
  background-color: #ffffff;
  margin-left: 2px;
  position: relative;
  top: 10px;
  animation: blink 1s infinite;
}

/* 커서 깜빡임 애니메이션 */
@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}

/* Drill-down menu */
.menu-nav {
  width: 300px;
  max-width: 100%;
}

.menu-viewport {
  width: 100%;
  overflow: hidden;
}

.menu-panels {
  display: flex;
  width: 200%;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-nav.is-sub-open .menu-panels {
  transform: translateX(-50%);
}

.menu-panel {
  width: 50%;
  flex-shrink: 0;
  box-sizing: border-box;
}

.menu-sub-slot {
  position: relative;
}

.menu-sub-panel {
  display: none;
  width: 100%;
}

.menu-sub-panel.is-active {
  display: block;
}

.menu {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-shrink: 0;
}

.menu a,
.menu .menu-drill,
.menu .menu-back {
  font-family: "Lora";
  font-style: normal;
  font-weight: 400;
  font-size: clamp(0.84rem, 1.75vw, 1.225rem);
  line-height: 1.5;
  color: #ffffff;
  text-decoration: none;
  transition: all 0.3s ease, opacity 0.15s ease;
  padding: 0.5rem 0;
  position: relative;
  padding-left: 0;
  white-space: nowrap;
}

.menu .menu-drill,
.menu .menu-back {
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  width: fit-content;
}

.menu-drill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.menu-drill-arrow {
  flex-shrink: 0;
  opacity: 0.55;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-drill:hover .menu-drill-arrow {
  opacity: 0.9;
  transform: translateX(0.15rem);
}

.menu-back {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0.5rem 0;
  margin-bottom: 0.15rem;
}

.menu-back:hover {
  padding-left: 0;
  transform: translateX(-0.35rem);
}

.menu-back::before {
  display: none;
}

.menu a::before,
.menu .menu-drill::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.5rem;
  width: 0;
  height: 1px;
  background-color: #ffffff;
  transition: width 0.3s ease;
}

.menu a:hover,
.menu .menu-drill:hover {
  color: #ffffff;
  padding-left: 1rem;
}

.menu a:hover::before,
.menu .menu-drill:hover::before {
  width: 1.5rem;
}

.menu .menu-drill:focus-visible,
.menu .menu-back:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.45);
  outline-offset: 2px;
}

/* 반응형 미디어 쿼리 */
@media (max-width: 768px) {
  .container {
    padding: 2rem 10%;
    justify-content: center;
    text-align: center;
  }

  .content {
    max-width: 100%;
  }

  .title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }

  .menu-nav {
    margin: 0 auto;
  }

  .menu {
    align-items: center;
  }

  .menu a,
  .menu .menu-drill,
  .menu .menu-back {
    font-size: 0.966rem;
    padding: 0.3rem 0;
  }

  .menu a,
  .menu .menu-drill {
    width: 100%;
    text-align: center;
  }

  .menu a {
    display: block;
  }

  .menu .menu-drill {
    display: flex;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 1rem 8%;
  }

  .content {
    max-width: 100%;
  }

  .title {
    font-size: 1.6rem;
    margin-bottom: 1rem;
  }

  .menu a,
  .menu .menu-drill,
  .menu .menu-back {
    font-size: 0.8855rem;
    padding: 0.2rem 0;
  }

  .menu a,
  .menu .menu-drill {
    width: 100%;
    text-align: center;
  }

  .menu a {
    display: block;
  }

  .menu .menu-drill {
    display: flex;
    justify-content: center;
  }
}

/* 개인정보 동의 체크박스 스타일 */
.privacy-agreement {
  margin: 1.5rem 0;
}

.privacy-checkbox-label {
  display: flex;
  align-items: flex-start;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #333;
}

.privacy-checkbox-label input[type="checkbox"] {
  display: none;
}

.checkmark {
  width: 18px;
  height: 18px;
  border: 2px solid #ddd;
  border-radius: 3px;
  margin-right: 10px;
  margin-top: 2px;
  flex-shrink: 0;
  position: relative;
  transition: all 0.3s ease;
}

.privacy-checkbox-label input[type="checkbox"]:checked + .checkmark {
  background-color: #007bff;
  border-color: #007bff;
}

.privacy-checkbox-label input[type="checkbox"]:checked + .checkmark::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.privacy-text {
  flex: 1;
}

.privacy-text .english,
.privacy-text .korean {
  display: block;
  margin-bottom: 2px;
}

/* 호버 효과 */
.privacy-checkbox-label:hover .checkmark {
  border-color: #007bff;
}

/* 폼 유효성 검사 스타일 */
.privacy-checkbox-label input[type="checkbox"]:invalid + .checkmark {
  border-color: #dc3545;
}

.privacy-checkbox-label
  input[type="checkbox"]:invalid
  + .checkmark
  + .privacy-text {
  color: #dc3545;
}

