/* 
 * Spline Integration Theme
 * Enhancing the 3D experience with optimized styles.
 */

#spline-scene-container {
  width: 100%;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  z-index: -2;
  /* Behinds the main content layers */
  background: #000;
  /* Dark fallback */
  overflow: hidden;
}

/* Loader Styles (Skill Pattern #8.6) */
.spline-loader-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  z-index: 10;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-left-color: #ff8c00;
  /* Main accent color */
  border-radius: 50%;
  animation: spline-spin 1s linear infinite;
}

@keyframes spline-spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Fade-in Effect for the scene */
#spline-scene-container canvas {
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== Hide Spline Watermark ===== */
.hero-spline-fullscreen a[href*="spline"],
.hero-spline-fullscreen a[href*="splinetool"],
.hero-spline-fullscreen>a,
.hero-spline-fullscreen div[style*="position: absolute"] a,
.hero-spline-container a[href*="spline"],
.hero-spline-container a[href*="splinetool"],
.hero-spline-container>a,
.hero-spline-container div[style*="position: absolute"] a {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* Spline is shown at full quality on all devices */
