/* 기본 리셋 */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { width: 100%; height: 100%; overflow: hidden; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background: #0c1226;
  color: #f5f5f5;
}

/* 화면 전환 효과 - 흰색 불빛 */
.transition-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle, rgba(255,255,255,1) 0%, rgba(255,255,255,0.9) 100%);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease-out;
}

.transition-overlay.active {
  opacity: 1;
}

canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.scene {
  position: relative;
  z-index: 1;
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.center {
  text-align: center;
}

.title {
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  transition: transform 0.3s ease;
  user-select: none;
  
  /* 떠있는 느낌을 위한 그림자 효과 */
  text-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.5),
    0 5px 15px rgba(0, 0, 0, 0.3);
  
  /* 부드러운 떠오르는 애니메이션 */
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.sub {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 3rem;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.6s ease;
}

.scene.active .sub {
  opacity: 1;
  transform: translateY(0);
}

.link {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  user-select: none;
}

/* --- 자연스러운 호버 효과 버튼 스타일 --- */
.link.enter {
  display: inline-block;
  padding: 0.9rem 2.4rem;
  
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03); 
  color: rgba(255, 255, 255, 0.85);
  
  transition: all 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}

/* 호버 시: 부드럽게 확대 + 밝아지는 효과 */
.link.enter:hover {
  transform: scale(1.05);
  border-color: rgba(255, 255, 255, 0.8);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
}

/* 클릭 시: 살짝 축소되는 자연스러운 효과 */
.link.enter:active,
.link.enter.clicked {
  transform: scale(0.95);
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.75);
}
