/* =================================================================
   Freelance Center BD - 3D Transforms, Glow, and Keyframe Physics
   ================================================================= */

/* 3D Perspective Context */
.perspective-container {
  perspective: 1200px;
}

.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out, box-shadow 0.3s ease;
  will-change: transform;
  position: relative;
}

.tilt-card-inner {
  transform: translateZ(30px);
  transition: transform 0.3s ease;
}

.tilt-card:hover .tilt-card-inner {
  transform: translateZ(50px);
}

.tilt-card .service-icon {
  transform: translateZ(40px);
  transition: transform 0.3s ease;
}

.tilt-card:hover .service-icon {
  transform: translateZ(65px) scale(1.08);
}

/* Light Glare Overlay on Tilt Cards */
.tilt-glare {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.12), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: inherit;
}

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

/* 3D Floating Geometry Simulation */
.floating-3d {
  animation: float3D 6s ease-in-out infinite;
}

.floating-3d-delay {
  animation: float3D 7s ease-in-out 2s infinite;
}

@keyframes float3D {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-16px) rotate(2deg);
  }
  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

/* Neon Pulse Effect */
.neon-glow {
  position: relative;
}

.neon-glow::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #00f2fe, #4facfe, #7928ca, #00f2fe);
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  filter: blur(10px);
  transition: opacity 0.4s ease;
}

.neon-glow:hover::before {
  opacity: 0.8;
  animation: rotateGlow 8s linear infinite;
}

@keyframes rotateGlow {
  0% { filter: blur(10px) hue-rotate(0deg); }
  100% { filter: blur(10px) hue-rotate(360deg); }
}

/* Pulse Badge */
.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

/* Code Preview Frame with 3D Depth */
.mockup-3d-window {
  background: #0d121f;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7), 0 0 40px rgba(0, 242, 254, 0.1);
  overflow: hidden;
  transform: perspective(1000px) rotateY(-4deg) rotateX(2deg);
  transition: transform 0.5s ease;
}

.mockup-3d-window:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.mockup-header {
  background: #0a0e17;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mockup-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.mockup-dot.red { background: #ef4444; }
.mockup-dot.yellow { background: #f59e0b; }
.mockup-dot.green { background: #10b981; }

.mockup-body {
  padding: 24px;
}
