body {
  margin: 0;
  overflow: hidden;
  background-color: #000;
}

canvas {
  display: block;
}

#main-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 50px;
  background-color: #212121;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  box-sizing: border-box;
  z-index: 200;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.nav-title {
  font-size: 24px;
  font-weight: bold;
  color: white;
}

.nav-subtitle {
  font-size: 16px;
  color: #ecf0f1;
  opacity: 0.8;
}

.control-btn {
  position: fixed;
  top: 60px;
  left: 20px;
  z-index: 100;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-family: Arial, sans-serif;
  transition: background 0.3s;
}

.control-btn:hover {
  background: rgba(255, 255, 255, 1);
}

#arToggle {
  left: 260px;
}

.arrow-btn {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.arrow-btn:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: translateY(-50%) scale(1.1);
}

#prevModel {
  left: 20px;
}

#nextModel {
  right: 20px;
}

#model-info-card {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(40, 40, 40, 0.85);
  border-radius: 15px;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  z-index: 150;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  max-width: 500px;
  min-width: 300px;
  backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

#model-info-card.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

#model-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: #555;
  margin-right: 20px;
  background-size: cover;
  background-position: center;
  border: 2px solid #666;
  background-image: url('https://res.cloudinary.com/ddeh0i8j1/image/upload/v1748880250/%E4%BA%BA%E7%89%A9-01_ah8hiy.glb');
}

#model-details {
  color: white;
  font-family: Arial, sans-serif;
  flex: 1;
}

#model-details p {
  margin: 5px 0;
  line-height: 1.4;
}

#model-name {
  font-weight: bold;
  font-size: 18px;
}

#model-mbti {
  font-size: 16px;
}

#model-intro {
  font-size: 14px;
  color: #ccc;
}

.editable {
  color: #4fc3f7;
  font-weight: normal;
}

#welcome-page {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  transition: opacity 1.5s ease-in-out, transform 1.5s ease-in-out;
}

#welcome-page h1 {
  color: #fff;
  font-size: 4rem;
  font-weight: 300;
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.5rem;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  opacity: 0.9;
  transition: all 1s ease;
}

#enter-btn {
  padding: 15px 40px;
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
  border-radius: 30px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.5s ease;
  position: relative;
  overflow: hidden;
}

#enter-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}

#enter-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

#enter-btn:hover::after {
  left: 100%;
}

#main-content {
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.welcome-hidden #welcome-page {
  opacity: 0;
  pointer-events: none;
  transform: scale(1.2);
}

.content-visible #main-content {
  opacity: 1;
}