/* -----------------------------------------------------------
   style.css - [최종 통합본] Minimal Aesthetic & Linker Identity
   Updated: 2026-01-08 (Mobile Optimized, PC Preserved)
   ----------------------------------------------------------- */

/* ==================================================================== */
/* [01] 폰트 설정 및 초기화 (Reset & Base) */
/* ==================================================================== */
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");

:root {
  --apple-font: "Pretendard", -apple-system, BlinkMacSystemFont, system-ui,
    Roboto, "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR",
    "Malgun Gothic", sans-serif;
}

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

html {
  overflow-y: scroll;
  scroll-behavior: smooth;
}

body {
  font-family: var(--apple-font);
  letter-spacing: -0.02em;
  line-height: 1.6;
  color: #333;
  padding-top: 0px;
  -webkit-font-smoothing: antialiased;
}

/* ==================================================================== */
/* [02] 헤더 레이아웃 및 동작 (Header Logic) */
/* ==================================================================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 45px; /* PC 기본 높이 유지 */
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* 메인 페이지 전용 (처음에 숨김) */
header.hide-at-top {
  background: transparent;
  border-bottom: none;
  opacity: 0;
  transform: translateY(-20px);
}

header.hide-at-top:hover {
  opacity: 1;
  transform: translateY(0);
  background: rgba(255, 255, 255, 1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  cursor: pointer;
}

/* 스크롤 다운 시 (공통) */
header.scrolled {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0 40px;
}

.nav-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  width: 100%;
}

.logo {
  flex: 0 0 160px;
  display: flex;
  align-items: center;
}
.logo img {
  width: auto;
  height: 45px;
  object-fit: contain;
  transition: filter 0.3s ease;
}
.logo:hover img {
  filter: brightness(1.2);
}

/* ==================================================================== */
/* [03] 메인 메뉴 디자인 (Center Menu) */
/* ==================================================================== */
.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 40px;
  margin: 0 auto;
  padding: 0;
}
.nav-menu li {
  margin: 0 !important;
}

.nav-menu a {
  text-decoration: none;
  color: rgba(30, 30, 30, 0.6);
  font-weight: 500;
  font-size: 14px;
  font-family: var(--apple-font);
  padding: 10px 5px;
  position: relative;
  letter-spacing: -0.01em;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.nav-menu a:hover {
  color: #000;
  transform: translateY(-2px);
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.nav-menu a::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%) scale(0);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: #007bff;
  box-shadow: 0 0 8px rgba(0, 123, 255, 0.6);
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  opacity: 0;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  transform: translateX(-50%) scale(1);
  opacity: 1;
  bottom: 0px;
}

.nav-menu a.active {
  color: #007bff !important;
  font-weight: 500;
}

/* [모바일 전용] 헤더 및 네비게이션 최적화 */
@media (max-width: 768px) {
  header {
    height: 60px; /* 모바일에서만 터치 영역 확보를 위해 높이 증가 */
  }
  nav {
    padding: 0 20px; /* 좌우 여백 축소 */
  }
  .nav-menu {
    display: none; /* 중앙 메뉴 숨김 */
  }
  .logo {
    flex: 0 0 auto; /* 로고 크기 자동 조절 */
  }
  .logo img {
    height: 35px; /* 모바일 로고 크기 조정 */
  }
  .nav-group {
    justify-content: flex-end; /* 우측 버튼들을 오른쪽 끝으로 밀어냄 */
  }
  .right-utilities {
    width: auto;
    flex: 0 0 auto;
    min-width: auto;
  }
}

/* ==================================================================== */
/* [04] 우측 유틸리티 (Right Utilities) */
/* ==================================================================== */
.right-utilities {
  display: flex;
  align-items: center;
  gap: 20px;
  width: auto;
  min-width: 140px;
  justify-content: flex-end;
}
.lang-selector {
  font-size: 0.85rem;
  font-family: var(--apple-font);
  font-weight: 500;
  white-space: nowrap;
}
.lang-selector a {
  text-decoration: none;
  color: rgba(30, 30, 30, 0.4);
  margin: 0 4px;
  transition: color 0.3s;
}
.lang-selector a:hover {
  color: #007bff;
}

/* [모바일 전용] 아주 작은 화면에서 언어 선택기 숨김 (겹침 방지) */
@media (max-width: 400px) {
  .lang-selector {
    display: none;
  }
}

.my-menu-container {
  position: relative;
  display: flex;
  align-items: center;
}

.my-menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 5px;
  transition: all 0.3s ease;
}

.my-menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background-color: #333;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.my-menu-btn:hover span {
  background-color: #007bff;
}
.my-menu-btn:hover {
  transform: scale(1.1);
}

/* [모바일 전용] 햄버거 버튼 크기 확대 */
@media (max-width: 768px) {
  .my-menu-btn {
    padding: 10px;
  }
  .my-menu-btn span {
    width: 22px;
  }
}

.my-menu-dropdown {
  display: none;
  position: absolute;
  top: 40px;
  right: 0;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  min-width: 150px;
  padding: 10px 0;
  z-index: 2000;
  flex-direction: column;
  transform-origin: top right;
  animation: slideDown 0.2s ease-out;
}

/* [모바일 전용] 드롭다운 메뉴 위치 및 크기 보정 */
@media (max-width: 768px) {
  .my-menu-dropdown {
    top: 50px; /* 헤더 높이 60px 고려 */
    right: -10px;
    min-width: 200px;
  }
  .my-menu-dropdown a {
    font-size: 16px;
    padding: 15px 0;
  }
}

header.scrolled .my-menu-dropdown {
  background: #ffffff;
  border-color: #e0e0e0;
}

.my-menu-dropdown.show {
  display: flex;
}

.my-menu-dropdown a {
  font-family: var(--apple-font);
  font-size: 14px;
  color: #333;
  padding: 12px 0;
  text-align: center;
  text-decoration: none;
  transition: all 0.2s;
}

.my-menu-dropdown a:hover {
  background-color: rgba(0, 123, 255, 0.1);
  color: #007bff;
  font-weight: 600;
}

.my-menu-divider {
  height: 1px;
  background-color: #f1f1f1;
  margin: 5px 20px;
}

/* [추가] 모바일 전용 메뉴 클래스 */
/* PC에서는 완전히 숨김 */
.mobile-only-menu {
  display: none;
}

/* 모바일(900px 이하)에서만 표시 */
@media (max-width: 900px) {
  .mobile-only-menu {
    display: block;
    color: #555 !important;
    font-weight: 500;
    border-bottom: 1px solid #f9f9f9;
  }
  .mobile-only-menu:hover {
    color: #007bff !important;
    background-color: #f8f9fa;
  }
}

#auth-menu {
  display: none !important;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==================================================================== */
/* [05] 인트로 애니메이션 (Typewriter) */
/* ==================================================================== */
#intro-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.8s ease-in-out, visibility 0.8s;
}

.intro-slogan-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transform: scale(1.5);
  animation: zoomOutDock 1.5s cubic-bezier(0.22, 1, 0.36, 1) 2s forwards;
  will-change: transform;
}

.char {
  display: inline-block;
  opacity: 0;
  white-space: pre;
  animation: revealChar 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.text-blue .char {
  color: #007bff;
  font-weight: 800;
  text-shadow: 0 0 15px rgba(0, 123, 255, 0.3);
}

@keyframes revealChar {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes zoomOutDock {
  100% {
    transform: scale(1);
  }
}

body.intro-finished #intro-overlay {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ==================================================================== */
/* [06] 메인 히어로 섹션 */
/* ==================================================================== */
.hero-video-container {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: white;
  text-align: center;
}

.back-video {
  position: absolute;
  top: -5%;
  left: -5%;
  width: 110%;
  height: 110%;
  z-index: -1;
  object-fit: cover;
  filter: brightness(0.6);
}

.hero-overlay {
  z-index: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 75px;
  animation: fadeInUp 1.2s ease-out;
}

.slogan-light {
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 6px;
  display: block;
  margin-bottom: 15px;
}

.slogan-bold {
  font-family: "Montserrat", sans-serif;
  font-size: 4rem;
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 1.1;
  display: block;
  margin-top: -5px;
}

/* 색상 분리 로직 */
#intro-overlay .slogan-light {
  color: #333333;
}
#intro-overlay .slogan-bold {
  color: #000000;
}
.hero-overlay .slogan-light {
  color: rgba(255, 255, 255, 0.85);
}
.hero-overlay .slogan-bold {
  color: #ffffff;
}
.text-blue {
  color: #007bff !important;
  display: inline-block;
}

.link-switch-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0 40px;
  min-width: 160px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 100px;
  color: #fff;
  text-decoration: none;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 2px;
  transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.link-switch-btn:hover {
  background: #fff;
  border-color: #fff;
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

.link-switch-btn .btn-text {
  display: block;
}
.link-switch-btn .btn-icon {
  display: none;
  font-size: 1.2rem;
}
.link-switch-btn:hover .btn-text {
  display: none;
}
.link-switch-btn:hover .btn-icon {
  display: block;
  animation: arrowSlide 0.3s ease-out;
}

@media (max-width: 768px) {
  .slogan-light {
    font-size: 0.8rem;
    letter-spacing: 3px;
  }
  .slogan-bold {
    font-size: 2.8rem;
  }
  .hero-overlay {
    gap: 45px;
  }
  .link-switch-btn {
    height: 45px;
    font-size: 0.85rem;
    min-width: 140px;
  }
  .intro-slogan-wrapper {
    transform: scale(1.2);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes arrowSlide {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ==================================================================== */
/* [07] 메인 콘텐츠 (Core Values & SNS) */
/* ==================================================================== */
.core-values {
  padding: 120px 20px;
  background: #fff;
  text-align: center;
}
.section-title {
  font-family: "Montserrat", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 60px;
  color: #222;
}
.values-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}
.value-card {
  background: #fff;
  width: 320px;
  padding: 50px 30px;
  border-radius: 20px;
  border: 1px solid #eee;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.value-card .icon {
  font-size: 3rem;
  margin-bottom: 20px;
}
.value-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  font-weight: bold;
}
.value-card p {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 20px;
  word-break: keep-all;
}
.status-tag {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
}

.value-card.active {
  border-color: #007bff;
  background: linear-gradient(145deg, #ffffff, #f0f7ff);
}
.value-card.active .status-tag {
  background: #e7f1ff;
  color: #007bff;
}
.value-card.active:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 123, 255, 0.15);
}

.value-card.disabled {
  opacity: 0.7;
  filter: grayscale(100%);
  cursor: default;
}
.value-card.disabled .status-tag {
  background: #eee;
  color: #999;
}

.sns-connect {
  padding: 80px 20px;
  background: #f9f9f9;
  text-align: center;
}
.sns-connect h2 {
  font-family: "Montserrat", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #222;
}
.sns-connect p {
  font-family: "Montserrat", sans-serif;
  color: #666;
  margin-bottom: 35px;
  font-size: 1rem;
  font-weight: 400;
}
.sns-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.sns-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  text-decoration: none;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  color: #fff;
}
.sns-icon-btn svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
  display: block;
}
.sns-icon-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}
.sns-icon-btn.instagram {
  background: linear-gradient(
    45deg,
    #f09433,
    #e6683c,
    #dc2743,
    #cc2366,
    #bc1888
  );
}
.sns-icon-btn.line {
  background: #06c755;
}
.sns-icon-btn.whatsapp {
  background: #25d366;
}
.sns-icon-btn.kakao {
  background: #fee500;
  color: #3c1e1e;
}

/* ==================================================================== */
/* [08] 서브 페이지 헤더 (About Hero) */
/* ==================================================================== */
.sub-hero {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  padding: 0 20px;
  text-align: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding-top: 27vh;
}

.sub-hero h1 {
  font-family: "Montserrat", sans-serif;
  font-size: 3.5rem;
  font-weight: 800;
  color: #007bff;
  margin: 0 0 15px 0;
  letter-spacing: -1px;
  line-height: 1.2;
  opacity: 0;
  animation: heroTextFadeUp 1.2s cubic-bezier(0.2, 1, 0.3, 1) forwards;
}

.sub-hero p {
  font-family: "Montserrat", sans-serif;
  font-size: 1.2rem;
  font-weight: 500;
  color: #333;
  letter-spacing: 1px;
  max-width: 800px;
  line-height: 1.6;
  word-break: keep-all;
  opacity: 0;
  animation: heroTextFadeUp 1.2s cubic-bezier(0.2, 1, 0.3, 1) 0.2s forwards;
}

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

@media (max-width: 768px) {
  .sub-hero {
    min-height: 50vh;
    padding-top: 5vh;
  }
  .sub-hero h1 {
    font-size: 2.2rem;
  }
  .sub-hero p {
    font-size: 1rem;
  }
}

/* ==================================================================== */
/* [09] About 페이지 콘텐츠 (Mission, Philosophy) */
/* ==================================================================== */
.about-section {
  padding: 120px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.mission-container {
  position: relative;
  padding: 100px 20px;
  margin-bottom: 100px;
  text-align: center;
  overflow: hidden;
}
.mission-container::before {
  content: "LINKER";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  font-size: 18vw;
  color: rgba(0, 123, 255, 0.03);
  z-index: -1;
  white-space: nowrap;
  animation: floatingText 12s ease-in-out infinite alternate;
}
.mission-text {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.mission-label {
  display: inline-block;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: #007bff;
  letter-spacing: 4px;
  margin-bottom: 30px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}
.mission-title {
  font-family: "Montserrat", sans-serif;
  font-size: 3.2rem;
  line-height: 1.4;
  font-weight: 800;
  color: #222;
  margin-bottom: 50px;
  word-break: keep-all;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.2, 1, 0.3, 1);
  transition-delay: 0.2s;
}
.highlight-blue {
  background: linear-gradient(120deg, #007bff, #00c6ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}
.mission-desc {
  font-family: "Montserrat", sans-serif;
  font-size: 1.15rem;
  color: #555;
  line-height: 2;
  margin-bottom: 20px;
  letter-spacing: -0.3px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.2, 1, 0.3, 1);
  transition-delay: 0.4s;
}
.mission-container.active .mission-label,
.mission-container.active .mission-title,
.mission-container.active .mission-desc {
  opacity: 1;
  transform: translateY(0);
}

.philosophy-section {
  text-align: center;
  padding: 100px 0;
  background: #f9fbfc;
  border-radius: 30px;
  margin-top: 50px;
}
.philosophy-slogan {
  font-family: "Montserrat", sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: #333;
  margin-bottom: 30px;
}
.philosophy-slogan span {
  color: #007bff;
}
.philosophy-text {
  font-family: "Montserrat", sans-serif;
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.2rem;
  color: #555;
  line-height: 1.8;
  letter-spacing: -0.2px;
}

@keyframes floatingText {
  0% {
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    transform: translate(-50%, -50%) scale(1.05);
  }
}

@media (max-width: 768px) {
  .mission-title {
    font-size: 2.2rem;
  }
  .mission-desc {
    font-size: 1rem;
    text-align: left;
    word-break: keep-all;
  }
  .mission-container::before {
    font-size: 25vw;
  }
  .philosophy-slogan {
    font-size: 2rem;
  }
}

/* ==================================================================== */
/* [10] Spirit Section (3D Glass Orbs) - Renewal */
/* ==================================================================== */
.spirit-section {
  padding: 140px 20px 180px;
  background: radial-gradient(circle at 50% 0%, #ffffff 0%, #eef2f7 100%);
  overflow: hidden;
}
.spirit-container {
  max-width: 1000px;
  margin: 0 auto;
}
.spirit-header {
  text-align: center;
  margin-bottom: 120px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}
.spirit-header.visible {
  opacity: 1;
  transform: translateY(0);
}
.spirit-subtitle {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: #007bff;
  margin-bottom: 15px;
  text-transform: uppercase;
}
.spirit-title {
  font-family: "Montserrat", sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: #222;
  margin-bottom: 20px;
  letter-spacing: -1px;
  word-break: keep-all;
}
.spirit-desc {
  font-family: "Montserrat", sans-serif;
  font-size: 1.1rem;
  color: #666;
  line-height: 1.6;
  word-break: keep-all;
}

.spirit-grid {
  display: flex;
  flex-direction: column;
  gap: 80px;
  position: relative;
}

.spirit-card {
  position: relative;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(255, 255, 255, 0.95),
    rgba(230, 240, 255, 0.6) 60%
  );
  border: 2px solid rgba(255, 255, 255, 0.7);
  box-shadow: inset -10px -10px 30px rgba(0, 123, 255, 0.15),
    inset 15px 15px 30px rgba(255, 255, 255, 0.9),
    0 30px 60px rgba(0, 123, 255, 0.2), 0 0 20px rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  opacity: 0;
  transform: translateY(100px) scale(0.9);
  transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 1;
}
.spirit-card.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.spirit-card:hover {
  transform: translateY(-25px) scale(1.03) !important;
  box-shadow: inset -10px -10px 40px rgba(0, 123, 255, 0.2),
    inset 15px 15px 40px rgba(255, 255, 255, 1),
    0 50px 80px rgba(0, 123, 255, 0.3), 0 0 40px rgba(0, 123, 255, 0.2);
  z-index: 10;
}

.spirit-card:nth-child(even) {
  align-self: flex-end;
  margin-top: -100px;
}
.spirit-card:nth-child(odd):not(:first-child) {
  margin-top: -100px;
}

.card-content {
  position: relative;
  z-index: 2;
  width: 90%;
}
.card-bg-number {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: "Montserrat", sans-serif;
  font-size: 12rem;
  font-weight: 900;
  color: rgba(0, 123, 255, 0.04);
  z-index: 0;
  transition: all 0.5s ease;
  pointer-events: none;
}
.spirit-card:hover .card-bg-number {
  transform: translate(-50%, -50%) scale(1.1);
  color: rgba(0, 123, 255, 0.07);
}
.spirit-icon {
  font-size: 3rem;
  margin-bottom: 15px;
  display: inline-block;
  filter: drop-shadow(0 5px 10px rgba(0, 123, 255, 0.2));
}
.spirit-card h3 {
  font-family: "Montserrat", sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: #222;
  margin-bottom: 10px;
}
.card-slogan {
  font-family: "Montserrat", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #007bff;
  margin-bottom: 15px;
  font-style: italic;
}
.card-detail {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.6;
  word-break: keep-all;
}

/* Spline 3D Support */
.spirit-card.spline-card {
  overflow: hidden;
}
.spline-model {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}
.spirit-card.spline-card .card-content {
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.8);
  z-index: 5;
}

@media (max-width: 768px) {
  .spirit-section {
    padding: 100px 20px;
  }
  .spirit-header {
    margin-bottom: 60px;
  }
  .spirit-title {
    font-size: 2.2rem;
  }
  .spirit-grid {
    gap: 50px;
    align-items: center;
  }
  .spirit-card {
    width: 300px;
    height: 300px;
    padding: 25px;
  }
  .spirit-card:nth-child(even),
  .spirit-card:nth-child(odd):not(:first-child) {
    align-self: center;
    margin-top: 0;
  }
  .card-bg-number {
    font-size: 9rem;
  }
  .spirit-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
  }
  .spirit-card h3 {
    font-size: 1.2rem;
  }
  .card-detail {
    display: none;
  }
  .card-slogan {
    margin-bottom: 0;
  }
}

/* ==================================================================== */
/* [11] Booking & Forms */
/* ==================================================================== */
.reservation-hero {
  padding: 150px 20px 100px;
  background: #f8f9fa;
  min-height: 100vh;
  text-align: center;
}
.res-container {
  max-width: 1200px;
  margin: 0 auto;
}
.res-title {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 3rem;
  color: #333;
  margin-bottom: 15px;
}
.res-subtitle {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 60px;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  background: #fff;
  padding: 50px 30px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  text-decoration: none;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid transparent;
}
.service-card h3 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  margin: 20px 0 15px;
  color: #222;
}
.service-card p {
  color: #777;
  line-height: 1.6;
  margin-bottom: 20px;
}
.icon-box {
  width: 80px;
  height: 80px;
  background: #f0f7ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #007bff;
  margin-bottom: 10px;
  transition: all 0.4s ease;
}
.service-card.active {
  cursor: pointer;
}
.service-card.active:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 123, 255, 0.15);
  border-color: rgba(0, 123, 255, 0.3);
}
.service-card.active:hover .icon-box {
  background: #007bff;
  color: #fff;
  transform: scale(1.1);
}
.action-text {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: #007bff;
  margin-top: auto;
}
.service-card.disabled {
  cursor: default;
  opacity: 0.7;
  background: #fafafa;
}
.service-card.disabled .icon-box {
  background: #eee;
  color: #aaa;
}
.service-card.disabled h3,
.service-card.disabled p {
  color: #aaa;
}
.badge-coming {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #666;
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 20px;
}

.job-form-section {
  padding: 140px 20px 100px;
  min-height: 100vh;
  background: #f4f6f9;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bg-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  font-size: 25vw;
  color: rgba(0, 123, 255, 0.03);
  white-space: nowrap;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}
.bg-shape {
  position: absolute;
  filter: blur(80px);
  z-index: 1;
  opacity: 0.5;
  animation: floatShape 20s infinite alternate;
}
.shape-1 {
  top: -10%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: #a1c4fd;
}
.shape-2 {
  bottom: -10%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: #c2e9fb;
  animation-delay: -5s;
}
.shape-3 {
  top: 40%;
  left: 40%;
  width: 300px;
  height: 300px;
  background: #e0c3fc;
  animation-delay: -10s;
}
@keyframes floatShape {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  100% {
    transform: translate(50px, 50px) rotate(20deg);
  }
}

.form-container {
  width: 100%;
  max-width: 600px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 30px 60px -10px rgba(0, 0, 0, 0.1);
  border-radius: 30px;
  padding: 50px 40px;
  position: relative;
  z-index: 10;
}
.form-header {
  text-align: center;
  margin-bottom: 40px;
}
.step-badge {
  display: inline-block;
  background: #eef6ff;
  color: #007bff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 15px;
  letter-spacing: 1px;
}
.form-header h2 {
  font-family: "Montserrat", sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: #222;
  margin-bottom: 10px;
}
.form-header p {
  color: #666;
  font-size: 0.95rem;
}
.detail-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-row {
  display: flex;
  gap: 15px;
}
.input-box {
  position: relative;
  width: 100%;
  background: #f7f9fc;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: all 0.3s ease;
}
.input-box.half {
  flex: 1;
}
.input-box:focus-within {
  background: #fff;
  border-color: #007bff;
  box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.1);
}
.input-box input,
.input-box textarea,
.input-box select {
  width: 100%;
  padding: 25px 15px 8px 15px;
  font-size: 1rem;
  color: #333;
  font-weight: 500;
  border: none;
  background: transparent;
  outline: none;
  font-family: inherit;
  resize: none;
  border-radius: 12px;
}
/* Select Box 특화 디자인 (통합됨) */
.input-box select {
  width: 100%;
  padding: 25px 40px 8px 15px; /* 화살표 공간 확보 */
  font-weight: 600;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: all 0.3s ease;
}
.input-box select:focus,
.input-box select:hover {
  border-color: #007bff;
}

.input-box label {
  position: absolute;
  left: 15px;
  top: 18px;
  color: #888;
  font-size: 0.95rem;
  font-weight: 400;
  pointer-events: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.input-box input:focus ~ label,
.input-box input:not(:placeholder-shown) ~ label,
.input-box textarea:focus ~ label,
.input-box textarea:not(:placeholder-shown) ~ label,
.input-box select:focus ~ label,
.input-box select:valid ~ label {
  top: 8px;
  left: 15px;
  font-size: 0.75rem;
  color: #007bff;
  font-weight: 700;
}
.input-box select:invalid {
  color: transparent;
}
.input-box select option {
  color: #333;
  background: #fff;
  padding: 10px;
}
.input-box select optgroup {
  font-style: normal;
  font-weight: 800;
  color: #007bff;
  background: #f0f7ff;
  font-family: "Gowun Dodum", sans-serif;
}
/* 커스텀 화살표 아이콘 (통합됨) */
.select-arrow {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23007bff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
  transition: transform 0.3s;
}
.input-box select:focus ~ .select-arrow {
  transform: translateY(-50%) rotate(180deg);
}

.checkbox-group {
  margin-top: 5px;
}
.custom-checkbox {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 0.9rem;
  color: #666;
}
.custom-checkbox input {
  display: none;
}
.checkmark {
  width: 18px;
  height: 18px;
  border: 2px solid #ddd;
  border-radius: 5px;
  margin-right: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.checkmark::after {
  content: "✔";
  font-size: 11px;
  color: white;
  display: none;
}
.custom-checkbox input:checked ~ .checkmark {
  background: #007bff;
  border-color: #007bff;
}
.custom-checkbox input:checked ~ .checkmark::after {
  display: block;
}
.submit-btn {
  width: 100%;
  padding: 16px;
  margin-top: 15px;
  background: linear-gradient(90deg, #007bff, #0056b3);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s;
  box-shadow: 0 10px 20px rgba(0, 123, 255, 0.25);
}
.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(0, 123, 255, 0.35);
}

@media (max-width: 768px) {
  .service-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
  .res-title {
    font-size: 2.2rem;
  }
  .form-container {
    padding: 40px 25px;
    width: 90%;
  }
  .form-row {
    flex-direction: column;
    gap: 20px;
  }
  .bg-watermark {
    font-size: 35vw;
  }
}

/* ==================================================================== */
/* [12] Modals (Login, Alert) */
/* ==================================================================== */
.modal-overlay {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
}
.modal-open {
  display: flex !important;
  animation: fadeIn 0.4s ease-out;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    backdrop-filter: blur(0px);
  }
  to {
    opacity: 1;
    backdrop-filter: blur(8px);
  }
}

.login-container {
  background: #ffffff;
  width: 420px;
  padding: 50px 40px;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  text-align: center;
  position: relative;
}
.login-logo {
  height: 60px;
  margin-bottom: -20px;
}
.login-container h2 {
  font-family: "Montserrat", sans-serif;
  color: #222;
  font-size: 1.7rem;
  margin-bottom: 5px;
  margin-top: 0;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.login-subtitle {
  font-family: "Montserrat", sans-serif;
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 40px;
  letter-spacing: 0.5px;
}
.login-subtitle span {
  color: #007bff;
  font-weight: 800;
}
.login-form input {
  width: 100%;
  padding: 16px;
  margin-bottom: 20px;
  background-color: #f8f9fa;
  border: 2px solid #f8f9fa;
  border-radius: 12px;
  font-size: 1rem;
  color: #333;
  box-sizing: border-box;
}
.login-form input:focus {
  outline: none;
  background-color: #fff;
  border-color: #007bff;
}
.login-form button {
  width: 100%;
  padding: 18px;
  background: linear-gradient(90deg, #007bff, #0056b3);
  color: white;
  font-size: 1.1rem;
  font-weight: bold;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
  margin-top: 10px;
}
.login-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 123, 255, 0.4);
}
.login-help {
  margin-top: 30px;
  font-size: 0.9rem;
  color: #aaa;
}
.login-help a {
  text-decoration: none;
  color: #666;
  margin: 0 8px;
}
.login-help a:hover {
  color: #007bff;
  font-weight: bold;
}

.blur-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  background-color: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.4s ease;
}
.blur-modal-overlay.open {
  display: flex;
  opacity: 1;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}
.blur-modal-content {
  width: 100%;
  max-width: 1100px;
  padding: 30px 20px;
  max-height: 95vh;
  overflow-y: auto;
  color: #222;
  text-align: center;
  transform: translateY(20px);
  transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.blur-modal-content::-webkit-scrollbar {
  display: none;
}
.blur-modal-overlay.open .blur-modal-content {
  transform: translateY(0);
}
.fullscreen-close-btn {
  position: absolute;
  top: 25px;
  right: 30px;
  background: none;
  border: none;
  font-size: 2.5rem;
  color: #555;
  cursor: pointer;
  transition: all 0.3s;
  z-index: 100;
}
.fullscreen-close-btn:hover {
  color: #000;
  transform: rotate(90deg);
}
.modal-header-text {
  margin-bottom: 30px;
  margin-top: 10px;
}
.modal-tag {
  font-size: 0.85rem;
  font-weight: 800;
  color: #007bff;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 10px;
}
.modal-header-text h2 {
  font-family: "Montserrat", sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 10px;
  line-height: 1.2;
  color: #222;
}
.modal-header-text p {
  font-size: 1.05rem;
  color: #555;
  font-weight: 500;
  line-height: 1.5;
  word-break: keep-all;
}
.modal-grid-body {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-bottom: 50px;
  text-align: center;
}
.grid-item {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 40px;
  padding: 35px 20px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}
.grid-item:hover {
  background: #ffffff;
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 50px rgba(0, 123, 255, 0.2);
  border-color: #007bff;
}
.grid-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 65px;
  height: 65px;
  font-size: 2rem;
  background: #f0f7ff;
  border-radius: 50%;
  margin-bottom: 20px;
  box-shadow: inset 0 0 10px rgba(0, 123, 255, 0.1);
}
.grid-item h4 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: #222;
  letter-spacing: -0.5px;
}
.grid-item p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
  margin: 0;
  word-break: break-all;
  overflow-wrap: break-word;
  white-space: normal;
}
.modal-bottom-btn {
  display: inline-block;
  padding: 20px 50px;
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  color: #ffffff !important;
  font-size: 1.2rem;
  font-weight: 800;
  border-radius: 100px;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(0, 123, 255, 0.4);
  transition: all 0.3s ease;
  margin-top: 10px;
}
.modal-bottom-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(0, 123, 255, 0.6);
  background: linear-gradient(135deg, #0069d9 0%, #004494 100%);
}

@media (max-width: 1024px) {
  .modal-grid-body {
    grid-template-columns: 1fr;
    gap: 15px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }
  .grid-item {
    flex-direction: row;
    text-align: left;
    border-radius: 25px;
    padding: 25px;
    align-items: flex-start;
  }
  .grid-icon {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    margin-bottom: 0;
    margin-right: 20px;
    flex-shrink: 0;
  }
  .modal-bottom-btn {
    width: 100%;
    padding: 18px 20px;
    font-size: 1.1rem;
    max-width: 400px;
  }
  .modal-header-text h2 {
    font-size: 2rem;
  }
  .fullscreen-close-btn {
    top: 20px;
    right: 20px;
    font-size: 2.5rem;
  }
}

/* ==================================================================== */
/* [13] 알림창 (Alert) */
/* ==================================================================== */
.custom-alert-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.custom-alert-overlay.show {
  display: flex;
  opacity: 1;
}
.custom-alert-box {
  background: #fff;
  width: 340px;
  padding: 40px 30px;
  border-radius: 25px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  transform: scale(0.8);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.custom-alert-overlay.show .custom-alert-box {
  transform: scale(1);
}
.alert-icon-circle {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* [추가] 에러 상태일 때 테두리(원) 제거 */
.alert-icon-circle.error {
  border: none !important;
  box-shadow: none !important;
}

/* [추가] X 아이콘 크기 조정 */
.alert-icon-circle.error svg {
  width: 60px;
  height: 60px;
  transform: scale(1.1);
}

.alert-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: block;
  stroke-width: 3;
  stroke: #fff;
  stroke-miterlimit: 10;
  box-shadow: inset 0px 0px 0px #007bff;
  animation: fill 0.4s ease-in-out 0.4s forwards,
    scale 0.3s ease-in-out 0.9s both;
}
.alert-circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 3;
  stroke-miterlimit: 10;
  stroke: #007bff;
  fill: none;
  animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}
.alert-check {
  transform-origin: 50% 50%;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}
/* ==================================================================== */
/* [긴급 수정] 에러 시 파란 원(box-shadow) 애니메이션 강제 제거 */
/* ==================================================================== */

/* 에러 상태일 때, SVG 자체에 걸린 파란색 그림자/채우기 효과 제거 */
.alert-icon-circle.error .alert-icon {
  box-shadow: none !important; /* 파란 그림자 삭제 */
  animation: none !important; /* 파란색 차오르는 애니메이션 정지 */
}

/* 에러 상태일 때 X자만 보이도록 설정 */
.alert-icon-circle.error {
  background: transparent !important;
  border: none !important;
}
/* [추가] X자 패스 스타일 & 애니메이션 */
.alert-cross {
  stroke: #dc3545; /* 빨간색 */
  stroke-width: 4; /* 선 두께 */
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: drawCross 0.4s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

@keyframes stroke {
  100% {
    stroke-dashoffset: 0;
  }
}
@keyframes scale {
  0%,
  100% {
    transform: none;
  }
  50% {
    transform: scale3d(1.1, 1.1, 1);
  }
}
@keyframes fill {
  100% {
    box-shadow: inset 0px 0px 0px 50px #007bff;
  }
}
@keyframes drawCross {
  to {
    stroke-dashoffset: 0;
  }
}

.custom-alert-box h3 {
  font-family: "Montserrat", sans-serif;
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 10px;
  font-weight: 800;
}
.custom-alert-box p {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.5;
  margin-bottom: 25px;
}
.alert-confirm-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(90deg, #007bff, #0056b3);
  color: white;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
  transition: transform 0.2s;
}
.alert-confirm-btn:hover {
  transform: translateY(-2px);
}
.alert-btn-group {
  display: flex;
  gap: 10px;
  width: 100%;
  margin-top: 5px;
}
.alert-btn {
  flex: 1;
  padding: 14px;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s;
}
.alert-btn:hover {
  transform: translateY(-2px);
}
.btn-cancel {
  background: #f1f3f5;
  color: #555;
}
.btn-logout {
  background: #333;
  color: #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* --- Success Card --- */
.success-card {
  background: white;
  width: 320px;
  padding: 40px 30px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  animation: popUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.success-icon {
  width: 70px;
  height: 70px;
  background: #e8f5e9;
  color: #28a745;
  border-radius: 50%;
  font-size: 35px;
  line-height: 70px;
  margin: 0 auto 20px;
  font-weight: bold;
}
.success-card h3 {
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 10px;
}
.success-card p {
  color: #666;
  margin-bottom: 25px;
  font-size: 0.95rem;
}
.success-btn {
  width: 100%;
  padding: 14px;
  background: #28a745;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}
.success-btn:hover {
  background: #218838;
}
@keyframes popUp {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* ==================================================================== */
/* [14] 푸터 & About Page Override (Background) */
/* ==================================================================== */
footer {
  background: #333;
  color: #fff;
  padding: 60px 20px;
  text-align: center;
  font-size: 0.9rem;
}
footer p {
  margin-bottom: 10px;
  opacity: 0.8;
}

/* About 페이지 배경 통합 */
body.about-page-bg {
  background: radial-gradient(circle at 50% 0%, #ffffff 0%, #eef2f7 100%);
  background-attachment: fixed;
  min-height: 100vh;
}
body.about-page-bg .sub-hero,
body.about-page-bg .about-section,
body.about-page-bg .spirit-section,
body.about-page-bg .philosophy-section {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
body.about-page-bg .philosophy-section {
  margin-top: 0;
  padding-top: 0;
}

/* ==================================================================== */
/* [15] 마이페이지 (My Page) 스타일 - 세련된 UI 및 버튼 위치 개선 */
/* ==================================================================== */
.mypage-hero {
  padding: 150px 0 100px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  min-height: 100vh;
}

.mypage-card {
  background: #fff;
  border-radius: 30px;
  padding: 50px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
  max-width: 800px;
  margin: 0 auto;
}

/* [수정] 프로필 헤더: 버튼 위치 조정을 위해 flexbox 구조 최적화 */
.user-profile-header {
  display: flex;
  align-items: center; /* 수직 중앙 정렬 */
  justify-content: space-between; /* 정보는 왼쪽, 버튼은 오른쪽 */
  gap: 25px;
  border-bottom: 1px solid #eee;
  padding-bottom: 40px;
  margin-bottom: 30px;
  position: relative;
}

.profile-img-container {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  background: #f0f4f8;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.profile-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-icon {
  font-size: 50px;
  background: #f0f4f8;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

/* [수정] 유저 정보 영역: 버튼과 나란히 배치되도록 너비 설정 */
.user-info-text {
  flex: 1;
}

.user-info-text h2 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 5px;
  color: #222;
}
.user-info-text p {
  color: #888;
  font-size: 1rem;
}

/* [수정] 상단 프로필 버튼 그룹: 위치를 아래로 내림 (absolute 제거) */
/* [수정] 다른 요소에 영향을 주지 않고 버튼 그룹만 아래로 이동 */
.header-btn-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;

  /* 주석: transform을 사용하여 버튼들만 원래 위치에서 아래로 30px 이동시킵니다 */
  transform: translateY(55px);

  /* 주석: 만약 더 내리고 싶다면 위 숫자 30px를 40px, 50px로 키워보세요 */
}

/* 모바일 환경 대응 */
@media (max-width: 768px) {
  .header-btn-group {
    transform: translateY(
      0
    ); /* 모바일에서는 원래 위치로 복구 (중앙 정렬을 위해) */
    margin-top: 20px;
    justify-content: center;
    width: 100%;
  }
}
.header-btn-group button {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid #e0e0e0;
}

/* 로그아웃 버튼 */
.logout-pill-btn {
  background: #fff;
  color: #dc3545;
  border-color: #ffc2c7 !important;
}
.logout-pill-btn:hover {
  background: #fff5f5 !important;
  border-color: #dc3545 !important;
}

/* 사진 변경 버튼 */
.photo-change-btn {
  background: #fff;
  color: #444;
}
.photo-change-btn:hover {
  background: #f8f9fa !important;
  border-color: #007bff !important;
  color: #007bff !important;
}

/* 저장된 이력서 버튼 (LINKER 강조형) */
.resume-list-toggle-btn {
  background: #007bff !important;
  color: #ffffff !important;
  border-color: #007bff !important;
  box-shadow: 0 4px 10px rgba(0, 123, 255, 0.2);
}
.resume-list-toggle-btn:hover {
  background: #0056b3 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 123, 255, 0.3);
}

/* [개선] 이력서 목록 보관함 디자인 */
#resume-list-container {
  margin-top: 20px;
  padding: 25px !important;
  background: #ffffff !important;
  border: 1px solid #eee;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border-radius: 16px !important;
  animation: slideDown 0.3s ease-out;
}

#resume-list-container h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 20px;
}

#resume-list li {
  padding: 15px !important;
  margin-bottom: 12px;
  background: #fcfcfc;
  border: 1px solid #f0f0f0 !important;
  border-radius: 12px;
  transition: all 0.2s ease;
}

#resume-list li:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border-color: #007bff !important;
}

/* 리스트 내부 로드/삭제 버튼 */
.resume-action-group {
  display: flex;
  gap: 8px;
}

.btn-resume-load {
  background: #eef6ff;
  color: #007bff;
  border: none;
  padding: 6px 14px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  transition: 0.2s;
}
.btn-resume-load:hover {
  background: #007bff;
  color: #fff;
}

.btn-resume-delete {
  background: #fff0f0;
  color: #ff4d4d;
  border: none;
  padding: 6px 14px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  transition: 0.2s;
}
.btn-resume-delete:hover {
  background: #ff4d4d;
  color: #fff;
}

/* 프로필 상세 정보 */
.profile-details {
  margin-top: 20px;
  animation: fadeIn 0.4s ease-out;
}
.detail-row {
  display: flex;
  justify-content: space-between;
  padding: 18px 0;
  border-bottom: 1px solid #f5f5f5;
  font-size: 1rem;
}
.detail-row .label {
  color: #888;
  font-weight: 500;
}
.detail-row .value {
  color: #333;
  font-weight: 700;
}

#edit-mode .input-box {
  margin-bottom: 20px;
}

/* 메뉴 그리드 */
.mypage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
.menu-item-card {
  border: 1px solid #f1f1f1;
  padding: 35px;
  border-radius: 20px;
  transition: 0.3s;
  position: relative;
  overflow: hidden;
  background: #fff;
}
.menu-item-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
  border-color: #007bff;
}
.menu-item-card.disabled {
  background: #fafafa;
  opacity: 0.7;
  cursor: not-allowed;
}
.menu-item-card.disabled:hover {
  transform: none;
  box-shadow: none;
  border-color: #f1f1f1;
}

.coming-soon-tag {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #999;
  color: #fff;
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: 10px;
  font-weight: 700;
}

.menu-item-card h3 {
  margin-bottom: 15px;
  color: #222;
  font-weight: 700;
}
.menu-item-card p {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 25px;
}

.menu-action-btn {
  display: inline-block;
  background: #007bff;
  color: #fff;
  padding: 12px 30px;
  border: none;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  transition: 0.3s;
  cursor: pointer;
  font-size: 0.95rem;
}
.menu-action-btn.grey {
  background: #e9ecef;
  color: #666;
}
.menu-action-btn.grey:hover {
  background: #dee2e6;
  color: #333;
}
.menu-action-btn:hover:not(.grey) {
  background: #0056b3;
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .mypage-grid {
    grid-template-columns: 1fr;
  }
  .user-profile-header {
    flex-direction: column;
    text-align: center;
  }
  .header-btn-group {
    position: relative;
    flex-direction: row;
    justify-content: center;
    margin-top: 20px;
  }
  .detail-row {
    font-size: 0.95rem;
  }
}
