/* =============================
   ✅ 헤더 및 네비게이션
   ============================= */
header {
  position: sticky;
  top: 0;
  width: 100%;
  height: 10vh;
  display: flex;
  background: var(--header-dark);
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  color: var(--text);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  color: var(--text-light);
  transition: background 0.3s, color 0.3s;
}

header nav ul li a {
  color: var(--text-light);
}

header.light {
  background: rgba(255, 255, 255, 0.7);
  color: #353535;
}

header.light nav ul li a {
  color: #353535;
}

.logo {
  width: 20vw;
  font-size: 1.5rem;
  font-weight: bold;
}

.logo img {
  width: 70%;
  height: 70%;
  vertical-align: middle;
}

nav ul {
  display: none;
  list-style: none;
  gap: 1.5rem;
}

nav ul li a {
  font-weight: 500;
  color: var(--text-light);
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  z-index: 2000;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--text-light);
  transition: 0.3s;
}

.header {
  position: fixed;
  width: 100%;
  z-index: 100;
  transition: all 0.3s ease;
}

.header.dark {
  color: var(--text-light);
}

/* =============================
   ✅ 모바일 내비게이션
   ============================= */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -250px;
  width: 250px;
  height: 100vh;
  background: var(--bg-dark);
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: right 0.3s ease;
  z-index: 1100;
}

.mobile-nav.active {
  right: 0;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 1000;
}

.overlay.active {
  display: block;
}

.close-btn {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text);
}

/* =============================
   ✅ 공통 섹션 및 레이아웃
   ============================= */
section {
  overflow: hidden;
}

.section {
  position: relative;
  padding: 4rem 2rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =============================
   ✅ cont2 섹션
   ============================= */

/* =============================
   ✅ 반응형
   ============================= */
@media (min-width: 797px) {
  nav ul {
    display: flex;
  }

  .menu-toggle {
    display: none;
  }

  .cont2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.notice {
  width: 100%;
  height: 10rem;
  padding: 1rem;
  background-color: var(--bg-dark);
}


/* =============================
   ✅ 푸터
   ============================= */
footer {
  background: var(--primary);
  color: white;
  padding: 2rem;
  text-align: center;
}

.section.scroll-animate {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.section.scroll-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 431px) {
  .mobile-break {
    display: none;
  }
}

@media (max-width: 600px) {
  .slide-btn {
    font-size: 1.5rem;
    padding: 0.5rem 1rem;
  }

  .prev-btn {
    left: 1rem;
  }

  .next-btn {
    right: 1rem;
  }
}

.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  background-color: rgba(0, 246, 255, 0.7);
  /* 네온색 */
  box-shadow: 0 3px 8px rgba(0, 246, 255, 0.7);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease-out;
  z-index: 9999;
  mix-blend-mode: difference;
  /* 또는 'screen', 'normal' 등 원하는 느낌으로 */
}

.top-btn {
  bottom: 40px;
}

.theme-toggle,
.top-btn {
  right: 20px;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background-color: #222;
  color: white;
  font-size: 20px;
  cursor: pointer;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.theme-toggle:hover,
.top-btn:hover {
  background-color: #444;
}

/* 공통 컨테이너: 오른쪽 하단 세로 정렬 */
.floating-buttons {
  position: fixed;
  right: 20px;
  bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  /* ✅ 오른쪽 정렬선 맞추기 */
  gap: 12px;
  z-index: 1000;
}

/* 공통 버튼 스타일 */
.floating-buttons button {
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background-color: #222;
  color: white;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s;
  padding: 0;
  /* ✅ 혹시라도 여백 들어갔으면 제거 */
}

.floating-buttons button:hover {
  background-color: #444;
}