body {
  margin: 0;
  background-color: black;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  overflow: hidden;
}

/* Progress bar */
.loading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: rgba(0,0,0,0.1);
  z-index: 9999;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: #4CAF50;
  transition: width 0.3s;
}

.progress-text {
  position: fixed;
  top: 10px;
  right: 10px;
  color: white;
  background: rgba(0,0,0,0.7);
  padding: 5px 10px;
  border-radius: 3px;
}

/* Page container styles */
.page {
  display: none;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background-color: black;
  justify-content: center;
  align-items: center;
}

/* Active page visibility */
.page.active {
  display: flex;
}

/* Video container styles */
.video-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.video-container video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.video-container .cover-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* SVG Mask Styles */
.svg-mask-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.svg-mask-container svg {
  width: 100%;
  height: 100%;
}

.svg-mask-container path {
  pointer-events: all;
  cursor: pointer;
  /* transition: fill 0.3s ease; */
}

.svg-mask-container path:hover {
  fill: rgba(0,0,0,0.4);
}

/* Popup Styles */
.popup-container {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.popup-content {
  background: white;
  padding: 20px;
  max-width: 20%;
  max-height: 80%;
  overflow: auto;
  position: relative;
}

.popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #333;
  color: white;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
}

/* Control buttons */
.controls {
  position: fixed;
  bottom: 20px;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 10px;
  z-index: 100;
}

button {
  background-color: #333;
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 5px;
  cursor: pointer;
}

button:hover {
  background-color: #555;
}

.threejs-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

#model3d-container {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 1;
}

#info {
  position: absolute;
  top: 10px;
  left: 10px;
  color: white;
  background: rgba(0,0,0,0.5);
  padding: 10px;
  font-family: Arial;
  border-radius: 5px;
}


/* Mobile-specific styles */
@media (max-width: 768px) {
  .video-container video {
    object-fit: cover;
  }

  .popup-content {
    max-width: 90%;
    max-height: 90%;
    padding: 15px;
  }

  .controls {
    bottom: 10px;
    gap: 5px;
  }

  button {
    padding: 8px 15px;
    font-size: 14px;
  }

  /* Disable hover effects on mobile */
  .svg-mask-container path:hover {
    fill: none;
  }
}
