/**
 * 3D Perspective & Spatial Depth Styles for HCN INVEST
 */
.perspective-container {
  perspective: 1200px;
  transform-style: preserve-3d;
}

/* 3D Tilt Card Base */
.tilt-card-3d {
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.tilt-glare {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.15), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
  mix-blend-mode: overlay;
}

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

.tilt-content-3d {
  transform: translateZ(28px);
  transform-style: preserve-3d;
}

/* 3D Rotating Gold Emblem */
.emblem-3d-wrap {
  width: 90px;
  height: 90px;
  margin: 0 auto 18px;
  perspective: 600px;
}

.emblem-3d-coin {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fde68a, #d97706 65%, #78350f 100%);
  border: 3px solid #fef3c7;
  box-shadow: 0 10px 25px rgba(217, 119, 6, 0.5), inset 0 2px 4px rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  animation: rotateCoin3D 8s infinite linear;
  transform-style: preserve-3d;
}

@keyframes rotateCoin3D {
  0%   { transform: rotateY(0deg) rotateX(10deg); }
  50%  { transform: rotateY(180deg) rotateX(-10deg); }
  100% { transform: rotateY(360deg) rotateX(10deg); }
}

/* 3D Isometric Workflow Grid */
.workflow-3d-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin: 40px 0;
  perspective: 1000px;
}

.workflow-3d-card {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.85) 0%, rgba(3, 7, 18, 0.95) 100%);
  border: 1px solid var(--color-glass-border);
  border-radius: var(--radius-lg);
  padding: 26px;
  position: relative;
  transform-style: preserve-3d;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.workflow-3d-card:hover {
  transform: translateY(-8px) rotateX(4deg);
  border-color: var(--color-emerald);
  box-shadow: 0 25px 50px rgba(16, 185, 129, 0.2);
}

.step-number-3d {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--color-emerald) 0%, var(--color-emerald-dark) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 900;
  box-shadow: 0 6px 15px var(--color-emerald-glow);
  transform: translateZ(35px);
  margin-bottom: 16px;
}

.workflow-3d-icon {
  font-size: 2.4rem;
  margin-bottom: 14px;
  transform: translateZ(30px);
  display: inline-block;
}

/* 3D Certificate Floating Effect */
.certificate-3d {
  transform-style: preserve-3d;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.certificate-3d:hover {
  transform: rotateX(3deg) rotateY(-3deg) translateZ(15px);
  box-shadow: 0 30px 70px rgba(245, 158, 11, 0.25);
}
