/* Image Slider */
.slider-container {
  display: block;
  width: 100%;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.image-container {
  width: 100%;
  height: 100%;
  position: relative;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.5));
}

.slider {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  transition: all 1s ease;
}

.play-button {
  background-color: rgba(0, 0, 0, 0);
  color: white;
  border: none;
  padding-top: 10px;
  padding-left: 0px;
  cursor: pointer;
  z-index: 10;
  line-height: 42px;
  letter-spacing: 0px;
  font-weight: 700;
  font-size: 42px;
  text-transform: uppercase;
}

.play-upper {
  font-family: "Sora";
  line-height: 25px;
  letter-spacing: 0px;
  font-weight: 400;
  font-size: 13px;
  z-index: 10;
  position: relative;
}

.playBlock {
  z-index: 10;
  position: absolute;
  bottom: 56px;
  left: 56px;
  width: 400px;
  height: 100px;
  padding-left: 50px;
  padding-top: 37px;
  padding-bottom: 10px;
  background-color: #0000;
  color: white;
  backdrop-filter: blur(40px);
  box-shadow: 0px 0px 50px #0000006e;
  text-decoration: none;
  transition: background-color 0.2s ease-out;
}

.playBlock:hover {
  background-color: rgba(0, 0, 0, 0.5);
}
.slider-container.loading {
  opacity: 0;
  visibility: hidden;
}

.slider-container {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease-out;
}

/* Image Slider */

/* Worlds PAge */
.worlds {
  padding: 160px 78px 40px 78px;
}
.games {
  background: linear-gradient(rgba(0, 0, 0, 0.51), rgba(0, 0, 0, 0.73)),
    url("/assets/site/textures/background.png");
}

.worlds {
  /* background: linear-gradient(rgba(0, 0, 0, 0.91), rgba(0, 0, 0, 0.86)), url('/assets/site/textures/background12.png'); */
  background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.99)),
    url("/assets/site/textures/screenshots/screenshot.png");
  /* background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.99)), url('/assets/site/textures/dark/painterly button large.png'); */
  /* background-repeat: repeat-x; */
  background-size: contain;
  background-attachment: fixed;
}

.search-section {
  margin: 40px 0;
  text-align: center;
}

.search-input {
  width: 80%;
  max-width: 600px;
  padding: 15px 25px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  background: rgba(0, 0, 0, 0.3);
  color: white;
  font-size: 18px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
  outline: none;
}

.search-input:focus {
  /* border-color: rgba(255, 217, 0, 0.3); */
  box-shadow: 0 0 15px rgba(255, 217, 0, 0.07), 0 0 30px rgba(255, 217, 0, 0.05),
    inset 0 0 10px rgba(255, 217, 0, 0.03);
  /* background: rgba(20, 20, 20, 0.4); */
  /* letter-spacing: 0.5px; */
}

.filters {
  margin: 20px 0;
}

.filter-btn {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  padding: 8px 20px;
  margin: 0 5px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.filter-btn.active {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

.worlds-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(350px, 1fr));
  gap: 40px;
  padding: 40px;
  perspective: 1000px;
}

.world-card {
  background: rgba(0, 0, 0, 0.7);
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 0;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  transform-style: preserve-3d;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.world-card:hover {
  transform: translateY(-10px) rotateX(10deg);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 255, 255, 0.1);
}

.world-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  pointer-events: none;
}

.world-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.world-content {
  padding: 25px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
}

.world-title {
  font-family: "Oxanium", sans-serif;
  font-size: 28px;
  margin: 0 0 15px 0;
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.world-description {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 20px;
  line-height: 1.6;
  font-size: 16px;
}

.world-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  background: rgba(255, 255, 255, 0.1);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 14px;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Portal animation classes */
.world-card.portal-active {
  transform: scale(1.1) rotateY(180deg);
  opacity: 0;
  transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease-out;
}

/* Book spine effect */
.world-card::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 100%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), transparent);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 900px) {
  .worlds {
    padding: 120px 20px 20px 20px;
  }

  .search-input {
    width: 90%;
  }

  .worlds-grid {
    gap: 20px;
    padding: 10px;
  }
}
/* Worlds */

/* Page Transitions */
.page-enter-active,
.page-leave-active {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.page-enter-from {
  opacity: 0;
  transform: translateX(20px);
}

.page-leave-to {
  opacity: 0;
  transform: translateX(-20px);
}
/* Page Transitions */

/* Games Page Styles */
.games {
  padding: 160px 78px 40px 78px;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 40px;
  padding: 20px;
}

.game-image-container {
  position: relative;
  width: 100%;
  height: 200px;
}

.game-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Frame edges */
.frame-edge {
  position: absolute;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  z-index: 1;
  pointer-events: none;
}

.frame-top {
  top: -10px;
  left: -10px;
  right: -10px;
  height: 20px;
}

.frame-bottom {
  bottom: 0px;
  left: -10px;
  right: -10px;
  height: 10px;
}

.frame-left {
  left: 0px;
  top: 10px;
  bottom: 10px;
  width: 10px;
}

.frame-right {
  right: -10px;
  top: 10px;
  bottom: 10px;
  width: 20px;
}

/* Add decorative blurred frame with window cutout */

.game-card {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.game-content {
  padding: 20px;
}

.game-title {
  font-size: 24px;
  margin: 0 0 10px 0;
}

.game-description {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 15px;
  line-height: 1.4;
}

.game-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
  font-size: 14px;
}

.game-status {
  padding: 4px 8px;
  border-radius: 12px;
  font-weight: 500;
}

.game-status.playable {
  background: rgba(46, 204, 113, 0.2);
  color: #2ecc71;
}

.game-status.beta {
  background: rgba(241, 196, 15, 0.2);
  color: #f1c40f;
}

.game-status.in.development {
  background: rgba(52, 152, 219, 0.2);
  color: #3498db;
}

@media (max-width: 900px) {
  .games {
    padding: 120px 20px 20px 20px;
  }

  .games-grid {
    gap: 20px;
    padding: 10px;
  }
}

/* Assets Page Styles */
.assets-page {
  padding: 160px 78px 40px 78px;
  max-width: 1400px;
  margin: 0 auto;
  min-height: 100vh;
  /* background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.99)), url('/assets/site/textures/dark/grungeblack.png');
    
    background-repeat: repeat-x;
    background-repeat: repeat-x;
    background-size: 100vw 1000px; */
  /* background-size: 1000px 1000px; */

  /* background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.99)), url('/assets/site/textures/dark/asset library.png'); */
  /* background-size:contain; */
  /* background-repeat: no-repeat; */
  /* background-position: center; */

  /* background-attachment: fixed; */
  /* background-position: center; */
}

.asset-filters {
  margin: 2rem 0;
  text-align: center;
}

.search-input {
  width: 80%;
  max-width: 600px;
  padding: 1rem 1.5rem;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  background: rgba(0, 0, 0, 0.3);
  color: white;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 1rem 0;
}

.filter-btn {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  padding: 0.5rem 1.25rem;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.filter-btn.active {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

.assets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  padding: 1rem;
}

.asset-card {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.3s ease;
  color: white;
  text-decoration: none;
}

.asset-card:hover {
  transform: translateY(-5px);
}

.asset-preview {
  height: 200px;
  background: rgba(0, 0, 0, 0.2);
  position: relative;
}

.asset-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.placeholder-preview {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.5);
}

.asset-info {
  padding: 1.25rem;
  background: linear-gradient(
      rgba(0, 0, 0, 1),
      rgba(0, 0, 0, 0.384),
      rgba(0, 0, 0, 1)
    ),
    url("/assets/site/textures/dark/test5.png");
  background-repeat: repeat-x;
  background-position: bottom;
}

.asset-meta {
  display: flex;
  justify-content: space-between;
  margin: 0.5rem 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

.asset-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.tag {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.875rem;
}

.asset-card.skills {
  border-color: rgba(147, 88, 255, 0.3);
}

.asset-card.skills .asset-preview {
  background: linear-gradient(
    45deg,
    rgba(147, 88, 255, 0.1),
    rgba(147, 88, 255, 0.2)
  );
}

.asset-card.skills .asset-type {
  color: rgb(147, 88, 255);
}

@media (max-width: 900px) {
  .assets-page {
    padding: 120px 20px 20px 20px;
  }
  .assets-page h1 {
    margin-top: 70px;
    font-size: 44px;
    text-align: center;
  }
}

/* Game Detail Page Styles */
.game-detail {
  min-height: 100vh;
  background: #010106;
}

.game-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.game-hero-image {
  /* width: 100%; */
  /* height: 100%; */
  object-fit: cover;
  opacity: 0.7;
  width: calc(100% + 40px);
  height: calc(100% + 20px);
  margin: -10px 0 0 -20px;
  transform-origin: center center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(1, 1, 6, 0.95), transparent 50%),
    linear-gradient(45deg, rgba(1, 1, 6, 0.8), transparent);
}

.game-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 4rem;
  z-index: 2;
}

.game-detail .game-title {
  font-size: 4.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  font-family: "Oxanium", sans-serif;
  text-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.game-subtitle {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
  max-width: 600px;
}

.game-stats {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
}

.stat {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.game-actions {
  display: flex;
  gap: 1rem;
}

.primary-btn,
.secondary-btn {
  padding: 1rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
}

.primary-btn {
  background-image: linear-gradient(
    135deg,
    rgb(99, 102, 241),
    rgb(79, 70, 229)
  );
  color: white;
  box-shadow: 0 4px 20px rgba(79, 70, 229, 0.3);
  border: none;
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);

  background: linear-gradient(
      rgba(0, 0, 0, 0.118),
      rgba(0, 0, 0, 0.252),
      rgba(0, 0, 0, 0.074)
    ),
    url("/assets/site/textures/dark/painterly button large.png");
}
.secondary-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.game-content {
  padding: 4rem;
}

.game-section {
  margin-bottom: 4rem;
}

.game-detail h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  font-family: "Oxanium", sans-serif;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 2rem;
  backdrop-filter: blur(10px);
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 1rem;
}

.screenshot {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.screenshot:hover {
  transform: scale(1.02);
}

@media (max-width: 900px) {
  .game-info {
    /* padding: 2rem; */
    position: absolute;
    bottom: 0;
    left: 0;
    width: calc(100% - 128px);
    padding: 64px;
    z-index: 1;
    max-width: 600px;
  }

  .game-title {
    font-size: 3rem;
  }

  .game-content {
    padding: 2rem;
  }

  .screenshots-grid {
    grid-template-columns: 1fr;
  }
}
/* Game Detail Page Styles */

.babylon-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0;
  transition: opacity 1s ease;
}
.babylon-canvas.animate {
  animation: canvasAppear 9.5s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes canvasAppear {
  0% {
    transform: scale(0.01) translateY(500px);
  }
  60% {
    transform: scale(1) translateY(0);

    /* transform: scale(0.8) translateY(200px);  */
  }
  100% {
  }
}

.babylon-canvas.canvas-visible {
  opacity: 1;
}

/* video slider styles */
.video-slider-container {
  display: block;
  width: 100%;

  height: 100vh;
  position: relative;
  overflow: hidden;
  margin-bottom: -100vh;

  opacity: 1;
  filter: blur(0px);
  transition: opacity 0.5s ease-out, filter 0.5s ease-out;
}

.video-slider-container.loading {
  opacity: 0;
  filter: blur(30px);
  transition: opacity 0.5s ease-out, filter 0.5s ease-out;
}

.video-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.slider-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  transition: opacity 1s ease;
}

.video-content {
  position: absolute;
  bottom: 0;
  left: 0;
  /* width: 100%; */
  padding: 4rem;
  z-index: 1;
}

.video-title {
  font-size: 4.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  font-family: "Oxanium", sans-serif;
  text-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.video-description {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
  max-width: 600px;
  font-weight: 400;
  line-height: 1.6;
  font-family: Verdana, "Open Sans", Arial, "Helvetica Neue", Helvetica,
    sans-serif;
}

.game-stats {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
}

.stat {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.video-cta {
  display: flex;
  gap: 1.25rem;
  margin-top: 2rem;
  text-decoration: none;
}

.cta-button {
  padding: 1rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cta-button-2 {
  background: black;
  color: white;
  backdrop-filter: blur(10px);
  padding: 2rem 4rem;
}

.cta-button.primary {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: white;
  box-shadow: 0 4px 20px rgba(79, 70, 229, 0.3);

  /* background: url('/assets/site/textures/dark/painterly button large.png'); */
  background-size: contain;
  opacity: 1;
  background-repeat: no-repeat;
  background-position: center;
}

.cta-button.secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);

  background: linear-gradient(
      rgba(0, 0, 0, 0.118),
      rgba(0, 0, 0, 0.252),
      rgba(0, 0, 0, 0.074)
    ),
    url("/assets/site/textures/dark/painterly button large.png");
}

.cta-button:hover {
  transform: translateY(-2px);
}

.cta-button.primary:hover {
  background: linear-gradient(135deg, #4f46e5, #4338ca);
  box-shadow: 0 6px 25px rgba(79, 70, 229, 0.4);
}

.cta-button.secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.cta-button:active {
  transform: translateY(0);
}

.video-slider-container.loading {
  opacity: 0;
  visibility: hidden;
}
/* video slider styles */

/* Add to your existing video slider styles */
.model-container {
  position: absolute;
  right: 100px;
  bottom: 0;
  width: 400px;
  height: 600px;
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.6s ease-out;
}

.model-container.model-loaded {
  opacity: 1;
  transform: translateY(0);
}

.model-platform {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 20px;
  /* background: linear-gradient(to bottom, rgba(255,255,255,0.1), transparent); */
  border-radius: 50%;
  filter: blur(10px);
}

.content-wrapper {
  max-width: 600px;
  /* background: linear-gradient(to right, rgba(0,0,0,0.7), transparent); */
  /* padding: 40px; */
  border-radius: 15px;
}

.game-stats {
  display: flex;
  gap: 20px;
  margin: 20px 0;
}

.stat {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stat-icon {
  width: 24px;
  height: 24px;
}

.stat-value {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
}

.game-status {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
}

.game-status.playable {
  background-color: #4caf50;
}

.game-status.beta {
  background-color: #2196f3;
}

.game-status.development {
  background-color: #ffc107;
}

.slider-container {
  /* top: 200vh; */
}
.content {
  margin-top: 100vh;
}
.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;

  height: 100%;
  background: linear-gradient(
      to top right,
      rgba(1, 1, 6, 0.95),
      transparent 50%
    ),
    linear-gradient(45deg, rgba(1, 1, 6, 0.8), transparent);
  z-index: 1;
}

/* Builder Page Styles */
header-nav {
  transition: transform 0.3s ease-in-out;
}

.builder-page {
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.builder-nav {
  background: rgba(0, 0, 0, 0.8);
  /* background: linear-gradient(rgba(0, 0, 0, 0.51), rgba(0, 0, 0, 0.73)), url('/assets/site/textures/dark/painterly button.png') ; */
  /* background:  url('/assets/site/textures/dark/painterly button.png') ; */
  background-size: 500px 500px;
  background-repeat: 2;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

.builder-nav-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.builder-nav h2 {
  margin: 0;
  font-size: 1.5rem;
  white-space: nowrap;
  margin-right: 40px;
}

.editor-tabs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
  padding: 0.5rem 0;
}

/* Hide scrollbar for Chrome/Safari */
.editor-tabs::-webkit-scrollbar {
  display: none;
}

.editor-tab,
.nav-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.editor-tab:hover,
.nav-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.5);
}

.editor-tab.active {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
}

.nav-actions {
  display: flex;
  gap: 0.5rem;
  margin-left: auto;
}

.save-btn {
  background: rgba(255, 255, 255, 0.1);
}

.editor-container {
  flex: 1;
  margin-top: 80px;
  position: relative;
}

.editor-frame {
  width: 100%;
  height: calc(100vh - 80px);
  border: none;
  position: absolute;
  top: 0;
  left: 0;
}

/* Mobile Styles */
@media (max-width: 768px) {
  .builder-nav {
    padding: 0.5rem;
  }

  .builder-nav-content {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .builder-nav h2 {
    font-size: 1.2rem;
    flex: 1;
  }

  .editor-tabs {
    order: 3;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Two buttons per row */
    gap: 0.5rem;
    padding: 0.25rem 0;
    margin-top: 0.25rem;
  }

  .editor-tab {
    width: 100%;
    text-align: center;
  }

  .nav-actions {
    margin-left: 0;
    gap: 0.25rem;
  }

  .editor-tab,
  .nav-btn {
    padding: 0.35rem 0.75rem;
    font-size: 13px;
  }

  .editor-container {
    margin-top: 160px; /* Increased to account for taller navigation */
  }

  .editor-frame {
    height: calc(100vh - 160px);
  }
}

/* Small Mobile Styles */
@media (max-width: 380px) {
  .editor-tabs {
    grid-template-columns: 1fr; /* Stack buttons vertically on very small screens */
  }

  .builder-nav h2 {
    font-size: 1rem;
  }

  .editor-tab,
  .nav-btn {
    padding: 0.25rem 0.5rem;
    font-size: 12px;
  }

  .editor-container {
    margin-top: 200px; /* Further increased for vertical tabs */
  }

  .editor-frame {
    height: calc(100vh - 200px);
  }
}

/* Landscape Mode Styles */
@media (max-height: 500px) and (orientation: landscape) {
  .builder-nav {
    padding: 0.25rem 0.5rem;
  }

  .builder-nav-content {
    flex-wrap: nowrap;
  }

  .editor-tabs {
    display: flex;
    order: initial;
    width: auto;
    margin-top: 0;
  }

  .editor-container {
    margin-top: 50px;
  }

  .editor-frame {
    height: calc(100vh - 50px);
  }
}
/* Builder Page Styles */

/* World Detail Page Transitions */
.page-enter-active.world-detail-page,
.page-leave-active.world-detail-page {
  transition: opacity 1s ease;
}

.page-enter-from.world-detail-page {
  opacity: 0;
}

.page-leave-to.world-detail-page {
  opacity: 0;
}

/* Portal Transition Effect */
.portal-transition {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 100;
  background: radial-gradient(
    circle at center,
    transparent,
    rgba(0, 0, 0, 0.8)
  );
  opacity: 0;
  transition: opacity 1s ease;
}

.world-transition-active .portal-transition {
  opacity: 1;
}

/* World Detail Styles */
.world-detail-page {
  min-height: 100vh;
  padding: 120px 78px 40px;
  background: rgba(0, 0, 0, 0.8);
  animation: fadeIn 1s ease-out;
}

.world-header {
  text-align: center;
  margin-bottom: 40px;
}

.world-header h1 {
  font-size: 48px;
  margin-bottom: 20px;
  font-family: "Oxanium", sans-serif;
  animation: slideInDown 0.8s ease-out;
}

.world-content {
  max-width: 1200px;
  margin: 0 auto;
  opacity: 0;
  animation: revealContent 1s ease-out forwards;
  animation-delay: 0.5s;
}

.world-sections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 40px;
}

.section {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 30px;
  backdrop-filter: blur(10px);
  transform: translateY(50px);
  opacity: 0;
  animation: slideInUp 0.8s ease-out forwards;
}

.section:nth-child(2) {
  animation-delay: 0.2s;
}

.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.location-card {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 15px;
  transition: transform 0.3s ease;
}

.location-card:hover {
  transform: translateY(-5px);
}

.location-image {
  width: 100%;
  height: 120px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 10px;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes revealContent {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 900px) {
  .world-detail-page {
    padding: 100px 20px 40px;
  }

  .world-sections {
    grid-template-columns: 1fr;
  }

  .world-header h1 {
    font-size: 36px;
  }
}

.dark-content {
  background: linear-gradient(
      rgba(0, 0, 0, 0.918),
      rgba(0, 0, 0, 0.922),
      rgba(0, 0, 0, 0.844)
    ),
    url("/assets/site/textures/dark/test5.png");
  /* background: linear-gradient(rgba(0, 0, 0, 0.918), rgba(0, 0, 0, 0.222), rgba(0, 0, 0, 0.244)), url('/assets/site/textures/dark/painterly button large.png'); */
  background-size: contain;
  background-repeat: repeat;
  background-position: center;
  padding: 7%;
  background-attachment: fixed;
}

.light-content {
  background: linear-gradient(
      rgba(255, 255, 255, 0.918),
      rgba(255, 255, 255, 0.952),
      rgba(255, 255, 255, 0.974)
    ),
    url("/assets/site/textures/dark/test4.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  padding: 7%;
  color: black;
}

.green-flower-content {
  background: linear-gradient(
      rgba(0, 0, 0, 0.118),
      rgba(0, 0, 0, 0.252),
      rgba(0, 0, 0, 0.074)
    ),
    url("/assets/site/textures/background.png");
  background-size: contain;
  background-repeat: repeat;
  background-position: center;
  padding: 7%;
  /* background-attachment: fixed; */
}
.gold-content {
  background: linear-gradient(
      rgb(0, 0, 0),
      rgba(0, 0, 0, 0),
      rgba(0, 0, 0, 0.844)
    ),
    url("/assets/site/textures/dark/grung.png");
  /* background: linear-gradient(rgba(0, 0, 0, 0.918), rgba(0, 0, 0, 0.222), rgba(0, 0, 0, 0.244)), url('/assets/site/textures/dark/painterly button large.png'); */
  background-size: contain;
  background-repeat: repeat;
  background-position: center;
  padding: 7%;
}

/* Asset Detail Page */
.asset-detail-page {
  padding: 2rem 0;
  min-height: 100vh; /* Ensure minimum page height */
  margin-left: 7%;
  margin-right: 7%;
}

.back-nav {
  margin-bottom: 100px;
  /* Remove the large top margin that could cause jumping */
  /* margin-top: 200px; */
  position: sticky;
  top: 0;
  z-index: 10;
  /* background-color: #fff; */
  padding: 0.5rem 0;
  z-index: 1;
  position: relative;
}
.back-nav a {
  color: white;
  text-decoration: none;
}

.asset-title {
  margin-bottom: 0.5rem;
  height: 2.5rem; /* Fixed height instead of min-height */
  display: flex;
  align-items: center;
  transition: opacity 0.3s ease;
  z-index: 1;
  position: relative;
}

.asset-meta {
  color: #666;
  margin-bottom: 2rem;
  height: 1.5rem; /* Fixed height instead of min-height */
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: opacity 0.3s ease;
}

.asset-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  min-height: 450px; /* Fixed height instead of min-height */
}

.loading-indicator {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 450px; /* Match the height of asset-content */
}

.error-message {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 450px; /* Match the height of asset-content */
}

.viewer-container {
  background-color: rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  height: 400px; /* Fixed height instead of min-height */
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: opacity 0.3s ease;
}

.viewer-container.is-loading {
  position: relative;
}

.loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.7);
  z-index: 5;
  animation: fadeIn 0.3s ease;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  border-top-color: #818181c0;
  animation: spin 1s ease-in-out infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.model-controls {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  z-index: 10;
  display: flex;
  gap: 0.5rem;
}

.asset-image {
  max-width: 100%;
  max-height: 400px;
  object-fit: contain;
  transition: opacity 0.3s ease;
}

.asset-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: #666;
}

.asset-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  height: 400px; /* Fixed height to match viewer */
  overflow-y: auto; /* Allow scrolling if content is too long */
}

.actions {
  display: flex;
  gap: 1rem;
  margin-top: auto;
}

#model-viewer-container {
  cursor: grabbing;
}

@media (max-width: 768px) {
  .asset-content {
    grid-template-columns: 1fr;
  }

  .video-title {
    max-width: 60vw;
  }
}

/* Simple animation for video content */
.video-title,
.video-description,
.video-cta {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.video-slider-container[data-animating="true"] .video-title,
.video-slider-container[data-animating="true"] .video-description,
.video-slider-container[data-animating="true"] .video-cta {
  opacity: 0;
  transform: translateY(20px);
}

/* Global Text Animations */
h1,
h2,
h3,
h4,
h5,
h6,
p,
.btn,
.cta-button {
  opacity: 0;
  transform: translateY(20px);
  animation: textFadeIn 0.4s ease-out forwards;
}

/* Apply staggered animation delay for better visual flow */
h1,
h2,
h3,
h4,
h5,
h6 {
  animation-delay: 0.1s;
}

p {
  animation-delay: 0.3s;
}

.btn,
.cta-button {
  animation-delay: 0.5s;
}

@keyframes textFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Prevent animations when user prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  h1,
  h2,
  h3,
  h4,
  h5,
  h6,
  p,
  .btn,
  .cta-button {
    animation: none;
    opacity: 1;
    transform: translateY(0);
  }
}

/* Content Section Styles */
.content-section {
  padding: 60px 7%;
  position: relative;
  overflow: hidden;
}

/* Section Backgrounds */
.dark-content {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.97), rgba(0, 0, 0, 0.92)),
    url("/assets/site/textures/dark/test5.png");
  background-size: cover;
  color: white;

  background-attachment: fixed;
}

/* Section Headers */
.section-title {
  font-size: 4.5rem;
  margin-bottom: 60px;
  text-transform: uppercase;
  text-align: center;
  background: linear-gradient(135deg, #fff, rgba(255, 255, 255, 0.7));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  /* font-weight: 900; */
}

.section-title:after {
  content: "";
  display: block;
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, transparent, #fff, transparent);
  margin: 20px auto;
}

/* Feature Cards */
.feature-card {
  max-width: 900px;

  /* margin: 40px auto; */
  margin: 40px;
  padding: 40px;

  max-width: 30vw;
  margin-left: 10%;

  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transform: translateY(20px);
  opacity: 0;
  animation: cardFadeIn 0.6s ease-out forwards;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.23s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  background: rgba(255, 255, 255, 0.05);
}

/* Card Content */
.section-subtitle {
  font-size: 2.2rem;
  margin-bottom: 25px;
  color: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  gap: 15px;
}

.section-subtitle:before {
  content: "";
  display: block;
  width: 30px;
  height: 2px;
  background: currentColor;
}

.section-text {
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.8);
  font-family: "Sora", sans-serif;
  /* font-family: Verdana, "Open Sans", Arial, "Helvetica Neue", Helvetica, sans-serif; */
  /* letter-spacing: -0.4px; */
  font-weight: 400;
  /* line-height: 1.6; */
  /* font-size: 18px; */
}

/* Animations */
@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Staggered Animation Delays */
.feature-card:nth-child(1) {
  animation-delay: 0.2s;
}
.feature-card:nth-child(2) {
  animation-delay: 0.4s;
}
.feature-card:nth-child(3) {
  animation-delay: 0.6s;
}

/* Responsive Design */
@media (max-width: 768px) {
  .content-section {
    padding: 60px 5%;
  }

  .section-title {
    font-size: 3rem;
  }

  .section-subtitle {
    font-size: 1.8rem;
  }

  .feature-card {
    padding: 30px;
    margin: 30px auto;
  }
}

/* Optional: Add section transitions */
.content-section {
  position: relative;
}

.content-section::before {
  content: "";
  position: absolute;
  top: -50px;
  left: 0;
  right: 0;
  height: 50px;
  background: inherit;
  filter: blur(20px);
}

/* Optional: Add subtle particle effects */
.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  pointer-events: none;
}

.feature-card-container {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.feature-card {
  flex: 1;
  margin-top: 0px;
}

.inline-video-slider {
  width: 600px !important;
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .feature-card-container {
    flex-direction: column-reverse;
  }

  .inline-video-slider {
    width: 90vw !important;
    order: -1; /* This moves the video slider above the feature card */
  }
  .feature-card {
    max-width: 100%;
  }
  .mobile-moment {
    font-size: 1.2rem;
  }
}

/* Contact Page */
.contact-page {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.97), rgba(0, 0, 0, 0.1)),
    url("/assets/site/textures/dark/painterly button.png");
  background-size: cover;
  color: white;

  background-attachment: fixed;
}

#sceneExplorer {
  z-index: 1111 !important;
  background: #4444442e !important;
}
#inspector-host {
  z-index: 1111 !important;
}
#actionTabs {
  background: #4444442e !important;
  z-index: 1111 !important;
}

.container-asset-detail {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  padding-top: 150px;
}

.contact-paper {
  /* background: rgba(255, 255, 255, 0.9); */
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-top: 2rem;
}

.contact-paper h1 {
  text-align: center;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.description {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--text-color);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 500;
  color: var(--text-color);
}

.form-input {
  padding: 0.75rem;
  border: 1px solid var(--border-color, #ddd);
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  background: rgba(255, 255, 255, 0.8);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(var(--primary-color-rgb), 0.2);
}

textarea.form-input {
  resize: vertical;
  min-height: 120px;
}

.submit-button {
  background-color: var(--primary-color);
  color: white;
  padding: 1rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.submit-button:hover:not(:disabled) {
  background-color: var(--primary-color-dark, #0056b3);
}

.submit-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.alert {
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
}

.alert.success {
  background-color: rgba(76, 175, 80, 0.1);
  border: 1px solid #4caf50;
  color: #2e7d32;
}

.alert.error {
  background-color: rgba(244, 67, 54, 0.1);
  border: 1px solid #f44336;
  color: #d32f2f;
}

/* Sign in  */
.sign-in-btn {
  background-color: #6d6d6d23;
  color: white;
  border: 1px solid white;
  border-radius: 5px;
  padding: 10px 20px;
  font-family: "Oxanium", sans-serif;
  font-weight: 900;
  font-size: 18px;
  cursor: pointer;
  transition: background-color 0.2s;
  margin-left: auto;
  text-transform: uppercase;
  --shadow-color: 207deg 100% 0%;
  box-shadow: 0px 0px 0px hsl(var(--shadow-color) / 0.34),
    0px 0.2px 0.2px -0.4px hsl(var(--shadow-color) / 0.34),
    0px 0.4px 0.5px -0.7px hsl(var(--shadow-color) / 0.34),
    0px 0.7px 0.8px -1.1px hsl(var(--shadow-color) / 0.34),
    -0.1px 1.1px 1.2px -1.4px hsl(var(--shadow-color) / 0.34),
    -0.1px 1.7px 1.9px -1.8px hsl(var(--shadow-color) / 0.34),
    -0.1px 2.6px 2.9px -2.1px hsl(var(--shadow-color) / 0.34),
    -0.2px 3.9px 4.4px -2.5px hsl(var(--shadow-color) / 0.34);

  /* box-shadow: 0px 0px 50px rgba(0, 0, 0, 0.49); */
  transition: all 0.2s ease;
}

.sign-in-btn:hover {
  background-color: #02010a49;
  background: #ffffff;
  color: #02010ade;

  /* --shadow-color: 227deg 100% 4%; */
  /* box-shadow: 0px -1px 1.1px hsl(var(--shadow-color) / 0.34),
    0.1px -5.8px 6.5px -0.4px hsl(var(--shadow-color) / 0.34),
    0.1px -10.9px 12.3px -0.7px hsl(var(--shadow-color) / 0.34),
    0.2px -17.9px 20.1px -1.1px hsl(var(--shadow-color) / 0.34),
    0.3px -28.6px 32.2px -1.4px hsl(var(--shadow-color) / 0.34),
    0.4px -44.7px 50.3px -1.8px hsl(var(--shadow-color) / 0.34),
    0.6px -67.9px 76.4px -2.1px hsl(var(--shadow-color) / 0.34),
    0.9px -100px 112.5px -2.5px hsl(var(--shadow-color) / 0.34); */
}

@media (max-width: 900px) {
  .sign-in-btn {
    position: absolute;
    top: 10px;
    right: 80px;
    padding: 8px 16px;
    font-size: 16px;
  }
}

/* Asset Upload Modal */
.filters-left {
  display: flex;
  gap: 1rem;
}
.upload-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px);
  display: grid;
  place-items: center;
  z-index: 10;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease !important;
}
.modal-active {
  opacity: 1;
  visibility: visible;
}
.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px);
  transition: opacity 0.3s ease, visibility 0.3s ease !important;
}

.modal-content {
  background: rgb(0, 0, 0);
  padding: 2rem;
  border-radius: 8px;
  max-width: 500px;
}
.dropzone {
  border: 2px dashed #ccc;
  padding: 2rem;
  text-align: center;
  margin: 1rem 0;
}
.upload-btn {
  font-family: "Oxanium", sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
  color: white;
  padding: 1.25rem 1.25rem;
  margin-left: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  background: rgba(0, 0, 0, 0.3);
  color: white;
  /* font-size: 1.1rem; */
}
.upload-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}
