/* ==========================================================
   floating.css - Scene 2: 3D Floating Space (Texts, Photos, Lanterns)
   ========================================================== */

#scene-floating {
  background: radial-gradient(
    circle at 50% 45%,
    #141b2f 0%,
    #090e1b 55%,
    #030408 100%
  );
  overflow: hidden;
  perspective: 1200px;
  z-index: 20;
}

/* Starfield in Scene 2 */
.floating-starfield {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

/* Ambient glow orb */
.ambient-glow-center {
  position: absolute;
  top: 40%;
  left: 50%;
  width: 350px;
  height: 350px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 200, 100, 0.12) 0%,
    rgba(255, 120, 160, 0.05) 50%,
    transparent 70%
  );
  filter: blur(40px);
  pointer-events: none;
  z-index: 2;
  animation: ambientPulse 8s ease-in-out infinite alternate;
}

@keyframes ambientPulse {
  0% {
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0.6;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.15);
    opacity: 0.9;
  }
}

/* Layering containers for depth control */
.floating-layer-back {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}

.floating-layer-middle {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
}

.floating-layer-front {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 7;
}

/* Floating Text Items */
.floating-text-item {
  position: absolute;
  white-space: nowrap;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: #fff;
  will-change: transform, opacity;
  user-select: none;
  pointer-events: none;
  text-shadow:
    0 0 12px rgba(255, 220, 150, 0.6),
    0 0 24px rgba(255, 160, 200, 0.3);
  transition: filter 0.3s ease;
}

.floating-text-item.special-name {
  font-size: clamp(20px, 5.5vw, 28px);
  font-weight: 700;
  color: #ffe699;
  text-shadow:
    0 0 16px rgba(255, 215, 0, 0.8),
    0 0 30px rgba(255, 105, 180, 0.6);
}

.floating-text-item.highlight {
  color: #ffb3c6;
  text-shadow: 0 0 14px rgba(255, 133, 161, 0.7);
}

/* Floating Photos */
.floating-photo-card {
  position: absolute;
  border-radius: 14px;
  overflow: hidden;
  padding: 5px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.35),
    rgba(255, 215, 0, 0.25)
  );
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.6),
    0 0 20px rgba(255, 220, 140, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.4);
  will-change: transform, opacity;
  pointer-events: auto;
  cursor: pointer;
  transition:
    transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.4s ease;
}

.floating-photo-card:hover {
  box-shadow:
    0 14px 40px rgba(0, 0, 0, 0.8),
    0 0 30px rgba(255, 220, 140, 0.6);
}

.floating-photo-inner {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  background: #111;
}

.floating-photo-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  transition: transform 0.4s ease;
}

.floating-photo-card:hover .floating-photo-inner img {
  transform: scale(1.05);
}

/* Floating Lanterns in Scene 2 */
.floating-lantern-item {
  position: absolute;
  pointer-events: none;
  will-change: transform, opacity;
}

.floating-lantern-item img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 20px rgba(255, 140, 40, 0.8));
}
