@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Regular.ttf") format("ttf");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Medium.ttf") format("ttf");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-SemiBold.ttf") format("ttf");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "TTHoves";
  src: url("../fonts/TTHoves-DemiBold.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "TTHoves";
  src: url("../fonts/TTHoves-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

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

body {
  background: #231f20;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-image: radial-gradient(
    80% 50% at 50% -20%,
    rgba(111, 111, 111, 0.5),
    hsla(0, 0%, 100%, 0)
  );
  overflow-x: hidden;
}

.title-container {
  width: 100%;
  padding-top: 140px;
  padding-bottom: 40px;
  text-align: center;
  color: white;
  z-index: 1000;
  opacity: 0;
  animation: fadeIn 1s ease forwards;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  row-gap: 00px;
}

.title-container h1 {
  font-size: clamp(36px, 7vw, 70px);
  margin: 0;
  letter-spacing: 0.02em;
  color: #5e5e5e;
  font-weight: 700;
  font-family: "TTHoves", sans-serif;
  padding: 0px 20px;
  background: linear-gradient(270deg, #c1c1c1 -70%, #ffffff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: slideUp 0.8s ease forwards 1s;
  animation-delay: 0.8s;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.title-container h3 {
  font-size: clamp(16px, 3vw, 32px);
  margin: 0;
  letter-spacing: 0.02em;
  color: #fff;
  font-weight: 400;
  font-family: "TTHoves", sans-serif;

  animation: slideUp 0.8s ease forwards 1s;
  animation-delay: 0.8s;
  line-height: 1.2;
  letter-spacing: -0.02em;
  display: inline-block;
}

.title-container .shift-up {
  margin-top: -30px;
}

.title-container p {
  max-width: 60vw;
  line-height: 1.5;
  font-family: "Inter", sans-serif;
}

.title-container a h3 {
  font-size: 24px;
  margin: 0;
  position: relative;
  cursor: pointer;
}

.title-container a h3::before {
  content: attr(data-text);
  position: absolute;
  color: #a4d233;
  width: 0;
  overflow: hidden;
  transition: width 0.5s ease;
  white-space: nowrap;
}

.title-container a h3:hover::before {
  width: 100%;
}

@media (max-width: 768px) {
  .title-container p {
    max-width: 100%;
    font-size: 14px;
    text-align: left;
  }
  .title-container h1 {
    text-align: left;
  }
  .title-container {
    align-items: start;
  }
  .title-container .shift-up {
    margin-top: -20px;
  }
  .title-container div {
    padding: 0px 20px;
    width: 100%;
    text-align: left;
  }
  .title-container a h3 {
    font-size: 20px;
  }
}

.title-container .word1 {
  animation: slideUp 0.8s ease forwards 0.2s;
}

.title-container .word2 {
  animation: slideUp 0.8s ease forwards 0.4s;
}

.title-container .word3 {
  animation: slideUp 0.8s ease forwards 0.6s;
}

.title-container .word4 {
  animation: slideUp 0.8s ease forwards 0.8s;
}
.title-container .word5 {
  animation: slideUp 0.8s ease forwards 1s;
}

.title-container i {
  color: #a4d233;
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: slideUpGlow 0.8s ease forwards;
}

.title-container i:nth-of-type(1) {
  animation-delay: 0.4s;
}

.title-container i:nth-of-type(2) {
  animation-delay: 0.8s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@keyframes slideUpGlow {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    text-shadow: 0 0 10px rgba(164, 210, 51, 0.5);
  }
}

#scene-container {
  width: 100vw;
  position: relative;
  height: 70vh;
  cursor: move;
  overflow: hidden;
  transition: all 0.3s ease;
  z-index: 1;
}

#scene-container.expanded {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 2000;
}

#rotate-indicator {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 14px;
  display: none;
  align-items: center;
  gap: 12px;
  z-index: 2001;
  cursor: default;
}

#rotate-indicator svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

#rotate-indicator .rotate-icon {
  animation: rotate 2s linear infinite;
}

#rotate-indicator .expand-icon {
  cursor: pointer;
  transition: transform 0.3s ease;
}

#rotate-indicator .expand-icon.disabled {
  cursor: default;
  opacity: 0.5;
  pointer-events: none;
}

#rotate-indicator .expand-icon:not(.disabled):hover {
  transform: scale(1.1);
}

@keyframes rotate-once {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(180deg);
  }
}

#rotate-indicator .divider {
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.3);
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

#loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 1.2rem;
  display: none;
  text-align: center;
  width: 200px;
  z-index: 2002;
  pointer-events: none;
  padding: 20px;
}

#rotate-indicator {
  z-index: 100000000 !important;
}

.progress-container {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  margin: 10px 0;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(164, 210, 51, 0.2);
}

.progress-bar {
  width: 0%;
  height: 100%;
  background: #a4d233;
  transition: width 0.3s ease;
  box-shadow: 0 0 10px rgba(164, 210, 51, 0.5);
}

.loading-text {
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

#error {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #ef4444;
  color: white;
  padding: 1rem 2rem;
  border-radius: 4px;
  display: none;
}

.popup-box {
  position: fixed;
  background: white;
  padding: 15px 20px;
  border-radius: 12px;
  font-size: 16px;
  color: #333;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2002;
  box-shadow: 0 4px 15px rgba(89, 89, 89, 0.8);
  min-width: 200px;
  max-width: 350px;
}

.popup-box h3 {
  margin: 0 0 5px 0;
  font-size: 15px;
  font-weight: 600;
  color: #a4d233;
  font-family: "TTHoves", sans-serif;
  letter-spacing: -0.02em;
  line-height: 1;
  padding-bottom: 5px;
}

.popup-box p {
  margin: 0;
  font-size: 11px;
  color: #333;
  font-family: "Inter", sans-serif;
  letter-spacing: -0.005em;
  line-height: 1.2;
}

.button-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-direction: row;
  padding: 20px 0px;
}

.learn-more-btn {
  padding: 12px 32px;
  font-size: 18px;
  font-weight: 500;
  color: #ffffff;
  background: transparent;
  border: 2px solid #a4d233;
  border-radius: 30px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  animation: buttonPulse 2s infinite;
}

.gray-btn {
  background: #231f20;
  color: #fff;
  border: 2px solid #333;
}

.learn-more-btn:hover {
  background: #a4d233;
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(164, 210, 51, 0.5);
}

.learn-more-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200%;
  height: 200%;
  background: rgba(164, 210, 51, 0.1);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  animation: ripple 2s ease-out infinite;
}

@keyframes buttonPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(164, 210, 51, 0.4);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(164, 210, 51, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(164, 210, 51, 0);
  }
}

@keyframes ripple {
  0% {
    width: 0;
    height: 0;
    opacity: 0.5;
  }
  100% {
    width: 200%;
    height: 200%;
    opacity: 0;
  }
}

.header-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* GUI Styles */
.dg.main {
  z-index: 10000 !important;
}

.dg.ac {
  z-index: 1000000 !important;
}

.dg.main .close-button {
  z-index: 10001 !important;
}

.dg.main .property-name {
  overflow: visible !important;
}

.dg.main .c {
  overflow: visible !important;
}

.dg.main > ul {
  overflow: visible !important;
}

#circle-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.circle-name:hover {
  background: rgba(164, 210, 51, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.carousel-container {
  width: 100%;
  overflow-x: hidden;
  padding: 60px 0;
  -webkit-overflow-scrolling: touch;
  position: relative;
}

#circle-grid {
  display: flex;
  gap: 10px;
  padding: 0 20px;
  min-width: min-content;
  animation: scroll 30s linear infinite;
}

#circle-grid:hover {
  animation-play-state: paused;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-200px * 10 - 10px * 10));
  }
}

.circle-name {
  font-family: "TTHoves", sans-serif;
  font-weight: 700;
  padding: 15px 20px;
  text-align: left;
  border-radius: 8px;
  color: white;
  font-size: 24px;
  transition: all 0.3s ease;
  cursor: pointer;
  min-height: 50px;
  display: flex;
  align-items: center;
  white-space: nowrap;
  min-width: 200px;
  flex-shrink: 0;
}

.circle-name:hover {
  background: rgb(44, 44, 44);
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .circle-name {
    min-width: 160px;
    font-size: 13px;
  }
  @keyframes scroll {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(calc(-160px * 10 - 10px * 10));
    }
  }
}
