/* =================================================================
   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;
}

/* =================================================================
   Interactive Animated Career Roadmap (Dhaka to Global Remote)
   ================================================================= */
.roadmap-container {
  position: relative;
  margin-top: 30px;
}

/* Timeline Energy Rail */
.roadmap-rail-wrapper {
  position: relative;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  margin: 36px 0 28px 0;
  overflow: hidden;
}

.roadmap-rail-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 20%;
  background: linear-gradient(90deg, #00f2fe, #38bdf8, #34d399);
  border-radius: 999px;
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.6);
}

.roadmap-rail-beam {
  position: absolute;
  top: 0;
  left: -30%;
  width: 35%;
  height: 100%;
  background: linear-gradient(90deg, transparent, #ffffff, #00f2fe, transparent);
  animation: beamFlow 2.8s ease-in-out infinite;
}

@keyframes beamFlow {
  0% { left: -40%; }
  100% { left: 140%; }
}

/* Stepper Cards Grid (Desktop: 5 Columns) */
.roadmap-steps-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 35px;
}

.roadmap-step-card {
  background: rgba(17, 24, 39, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 20px 16px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  text-align: left;
  user-select: none;
}

.roadmap-step-card:hover {
  background: rgba(17, 24, 39, 0.9);
  border-color: rgba(0, 242, 254, 0.35);
  transform: translateY(-4px);
}

.roadmap-step-card.active {
  background: linear-gradient(145deg, rgba(14, 23, 42, 0.95), rgba(15, 28, 54, 0.95));
  border-color: var(--accent-cyan);
  box-shadow: 0 15px 35px -10px rgba(0, 242, 254, 0.25), 0 0 20px rgba(0, 242, 254, 0.15);
  transform: translateY(-5px);
}

.roadmap-step-card::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%) scale(0);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 10px solid var(--accent-cyan);
  transition: transform 0.3s ease;
}

.roadmap-step-card.active::after {
  transform: translateX(-50%) scale(1);
}

.roadmap-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.roadmap-node-badge {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 1.05rem;
  transition: all 0.3s ease;
}

.roadmap-step-card.active .roadmap-node-badge {
  background: rgba(0, 242, 254, 0.15);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 16px rgba(0, 242, 254, 0.4);
  animation: radarHalo 2s infinite;
}

@keyframes radarHalo {
  0% { box-shadow: 0 0 0 0 rgba(0, 242, 254, 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(0, 242, 254, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 242, 254, 0); }
}

.roadmap-step-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  font-weight: 700;
  color: #64748b;
  transition: color 0.3s ease;
}

.roadmap-step-card.active .roadmap-step-num {
  color: var(--accent-cyan);
}

.roadmap-step-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: #f1f5f9;
  line-height: 1.35;
}

.roadmap-step-card.active .roadmap-step-title {
  color: #ffffff;
}

.roadmap-step-timeline {
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 500;
}

.roadmap-step-card.active .roadmap-step-timeline {
  color: #38bdf8;
  font-weight: 600;
}

/* Interactive Career Flight Deck */
.roadmap-flightdeck {
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.85), rgba(8, 13, 25, 0.9));
  border: 1px solid rgba(0, 242, 254, 0.3);
  border-radius: 18px;
  padding: 36px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 35px rgba(0, 242, 254, 0.12);
  position: relative;
  overflow: hidden;
}

.roadmap-flightdeck::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #00f2fe, #38bdf8, #34d399, #c084fc, #f43f5e);
}

.flightdeck-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.flightdeck-phase-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  background: rgba(0, 242, 254, 0.12);
  border: 1px solid rgba(0, 242, 254, 0.28);
  border-radius: 999px;
  color: var(--accent-cyan);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.flightdeck-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
}

.flightdeck-target-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 20px;
  text-align: right;
}

.flightdeck-target-label {
  font-size: 0.75rem;
  color: #94a3b8;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.flightdeck-target-val {
  font-size: 1.45rem;
  font-weight: 800;
  color: #34d399;
  font-family: 'JetBrains Mono', monospace;
}

.flightdeck-content-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 30px;
  align-items: start;
}

.flightdeck-deliverables {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.flightdeck-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #cbd5e1;
}

.flightdeck-item i {
  color: var(--accent-cyan);
  margin-top: 3px;
  font-size: 1rem;
}

/* Bangladesh Freelancer Insider Pro-Tip Box */
.flightdeck-bd-tip {
  background: linear-gradient(145deg, rgba(6, 78, 59, 0.25), rgba(15, 23, 42, 0.6));
  border: 1px solid rgba(52, 211, 153, 0.35);
  border-radius: 14px;
  padding: 24px;
  position: relative;
}

.flightdeck-tip-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #34d399;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.flightdeck-tip-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
}

.flightdeck-tip-body {
  font-size: 0.88rem;
  line-height: 1.65;
  color: #cbd5e1;
  margin-bottom: 20px;
}

.flightdeck-cta-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

/* Mobile Responsive Adjustments for Roadmap */
@media (max-width: 992px) {
  .roadmap-steps-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .roadmap-rail-wrapper {
    display: none;
  }

  .roadmap-step-card::after {
    display: none;
  }

  .flightdeck-content-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .roadmap-flightdeck {
    padding: 24px 18px;
  }

  .flightdeck-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .flightdeck-target-box {
    text-align: left;
    width: 100%;
  }

  .flightdeck-title {
    font-size: 1.4rem;
  }
}

