/*
===========================================
NAV.CSS - 네비게이션 메뉴 전체 스타일
===========================================
목적:
- 데스크톱 네비게이션 메뉴 스타일 (좌측/우측 메뉴)
- 모바일 햄버거 메뉴 및 오버레이
- 특수 버튼 스타일 (CONTACT US, Instagram 링크)
- 스크롤 투 탑 버튼
- 모든 네비게이션 애니메이션 및 반응형 동작

헤더 컨테이너 및 로고 스타일은 header.css에서 관리
===========================================
*/

/* Navigation Styles */
.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  align-items: center;
  position: absolute;
}

.nav-menu.left {
  left: 2rem;
}

.nav-menu.right {
  right: 2rem;
}

.nav-menu a {
  text-decoration: none;
  color: white;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  position: relative;
  font-family: "Montserrat", sans-serif;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.nav-menu a:hover {
  color: var(--accent-color);
}

.book-now {
  background: var(--gradient-purple-pink);
  color: white !important;
  padding: 0.6rem 1.2rem;
  border-radius: 30px;
  transition: all 0.3s ease !important;
  text-shadow: none !important;
  box-shadow: 0 4px 10px rgba(182, 140, 255, 0.4);
}

.book-now:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(182, 140, 255, 0.5);
}

/* Instagram Navigation Link */
.instagram-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  color: white;
  font-family: "Montserrat", sans-serif;
  letter-spacing: 1px;
  position: relative;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.instagram-nav i {
  margin-right: 5px;
  font-size: 1.1rem;
}

.header.scrolled .instagram-nav {
  color: var(--text-color);
  text-shadow: none;
}

.header.scrolled .instagram-nav i {
  text-shadow: none;
}

.instagram-nav:hover {
  color: #ff8dc7 !important;
  transform: scale(1.05);
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: white;
  cursor: pointer;
  padding: 1rem;
  z-index: 99998;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

/* Body scroll lock when menu is open */
body.menu-open {
  overflow: hidden !important;
  position: fixed !important;
  width: 100% !important;
  height: 100% !important;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: #ffffff;
  z-index: 99999;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu.active {
  display: flex;
  opacity: 1;
  visibility: visible;
  align-items: center;
  justify-content: center;
}

.mobile-menu-close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--text-color);
  cursor: pointer;
  z-index: 99999;
  padding: 1rem;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.mobile-menu-close:hover {
  opacity: 1;
  transform: rotate(90deg);
}

.mobile-menu ul {
  list-style: none;
  padding: 2rem 1rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  width: 100%;
  max-width: 350px;
  min-height: auto;
}

.mobile-menu li {
  width: 100%;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.5s ease forwards;
}

.mobile-menu li:nth-child(1) {
  animation-delay: 0.1s;
}
.mobile-menu li:nth-child(2) {
  animation-delay: 0.2s;
}
.mobile-menu li:nth-child(3) {
  animation-delay: 0.3s;
}
.mobile-menu li:nth-child(4) {
  animation-delay: 0.4s;
}
.mobile-menu li:nth-child(5) {
  animation-delay: 0.5s;
}
.mobile-menu li:nth-child(6) {
  animation-delay: 0.6s;
}

.mobile-menu a {
  display: block;
  text-decoration: none;
  color: var(--text-color);
  font-size: 1.4rem;
  font-weight: 500;
  padding: 0.8rem 1rem;
  font-family: "Montserrat", sans-serif;
  transition: all 0.3s ease;
  white-space: nowrap;
  overflow: visible;
}

.mobile-menu a:hover {
  color: var(--accent-color);
  transform: translateY(-2px);
}

.mobile-menu .book-now {
  background: var(--gradient-purple-pink);
  color: white !important;
  border-radius: 30px;
  margin: 1rem auto;
  padding: 1.2rem 2.5rem;
  width: auto;
  min-width: 200px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(182, 140, 255, 0.4);
}

.mobile-menu .book-now:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 141, 199, 0.5);
}

/* Navigation Animation */
.nav-menu.left li:nth-child(1) {
  animation: fadeInDown 0.5s ease 0.2s forwards;
  opacity: 0;
}

.nav-menu.left li:nth-child(2) {
  animation: fadeInDown 0.5s ease 0.3s forwards;
  opacity: 0;
}

.nav-menu.left li:nth-child(3) {
  animation: fadeInDown 0.5s ease 0.4s forwards;
  opacity: 0;
}

.nav-menu.left li:nth-child(4) {
  animation: fadeInDown 0.5s ease 0.5s forwards;
  opacity: 0;
}

.nav-menu.right li:nth-child(1) {
  animation: fadeInDown 0.5s ease 0.6s forwards;
  opacity: 0;
}

.nav-menu.right li:nth-child(2) {
  animation: fadeInDown 0.5s ease 0.7s forwards;
  opacity: 0;
}

.nav-menu.right li:nth-child(3) {
  animation: fadeInDown 0.5s ease 0.8s forwards;
  opacity: 0;
}

.nav-menu.right li:nth-child(4) {
  animation: fadeInDown 0.5s ease 0.9s forwards;
  opacity: 0;
}

/* Media Queries */
@media (max-width: 992px) {
  .nav-container {
    justify-content: center;
    padding: 0.5rem 2rem;
  }
}

@media (max-width: 768px) {
  .nav-menu.left,
  .nav-menu.right {
    display: none !important;
  }

  .mobile-menu-btn {
    display: block;
    position: fixed;
    right: 1rem;
    top: 1rem;
    z-index: 99998;
  }

  .header.scrolled .mobile-menu-btn,
  .header.scrolled .mobile-menu-close {
    color: var(--text-color);
    text-shadow: none;
  }

  .mobile-menu {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .mobile-menu.active {
    display: flex;
  }

  .mobile-menu ul {
    padding: 2rem 1rem;
    gap: 0.8rem;
    max-width: 350px;
  }

  .mobile-menu a {
    font-size: 1.4rem;
    padding: 0.8rem 1rem;
  }

  .mobile-menu .book-now {
    padding: 1.2rem 2.5rem;
    min-width: 200px;
  }

  .mobile-menu-close {
    position: fixed;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-color);
    cursor: pointer;
    z-index: 99999;
    padding: 1rem;
    opacity: 0.8;
    transition: all 0.3s ease;
  }

  .mobile-menu-close:hover {
    opacity: 1;
    transform: rotate(90deg);
  }

  .scroll-to-top {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }
}

/* Animation Keyframes */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: var(--gradient-purple-pink);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 9999;
  box-shadow: 0 4px 15px rgba(182, 140, 255, 0.4);
}

.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(182, 140, 255, 0.5);
}

.scroll-to-top:active {
  transform: translateY(-1px);
}
