/* ==========================================================================
   3D EFFECTS & SPECULAR HIGHLIGHTS
   Tasteful depth, subtle card tilt, ambient Three.js canvas layer
   ========================================================================== */

/* Three.js Background Canvas Layer */
#threejs-bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.65;
  transition: opacity 0.8s ease;
}

/* 3D Tilt Card Component */
.tilt-card-wrap {
  transform-style: preserve-3d;
  transform: perspective(1000px);
  transition: transform 0.25s cubic-bezier(0.2, 0, 0.2, 1);
  will-change: transform;
}

.tilt-glare {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(
    circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(255, 255, 255, 0.45) 0%,
    rgba(255, 255, 255, 0.05) 50%,
    rgba(255, 255, 255, 0) 80%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 5;
}

.brand-bento-card:hover .tilt-glare {
  opacity: 1;
}

/* Accent Glow Effect */
.card-accent-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--card-accent, #2F7D5C);
  opacity: 0.85;
  transition: height 0.2s ease, opacity 0.2s ease;
}

.brand-bento-card:hover .card-accent-glow {
  height: 4px;
  opacity: 1;
}

/* Subtle Floating Elements */
@keyframes float-subtle {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-4px); }
  100% { transform: translateY(0px); }
}

.float-item {
  animation: float-subtle 4s ease-in-out infinite;
}

/* Reduced Motion Fallback */
@media (prefers-reduced-motion: reduce) {
  #threejs-bg-canvas {
    display: none !important;
  }
  .tilt-card-wrap {
    transform: none !important;
    transition: none !important;
  }
  .float-item {
    animation: none !important;
  }
}
