/**
 * 3D Security Icons Showcase
 * Floating security elements with 3D rotation effects
 */

#security-showcase {
  perspective: 1200px;
  perspective-origin: center center;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #fafafa 0%, #e4e4e7 100%);
}

.dark #security-showcase {
  background: linear-gradient(135deg, #0a0a0a 0%, #16213e 100%);
}

#security-showcase canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.security-icon-wrapper {
  position: absolute;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.3s ease;
  z-index: 10;
}

#security-showcase .security-icon {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 20px;
  background: linear-gradient(145deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(244, 244, 245, 0.9) 100%);
  border: 1px solid rgba(99, 102, 241, 0.22);
  box-shadow:
    0 16px 48px rgba(99, 102, 241, 0.14),
    0 6px 20px rgba(15, 23, 42, 0.06),
    inset 0 1px 1px rgba(255, 255, 255, 1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  transform: translateZ(30px);
}

.dark #security-showcase .security-icon {
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.15) 0%,
    rgba(255, 255, 255, 0.08) 100%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow:
    0 20px 60px rgba(99, 102, 241, 0.3),
    0 10px 30px rgba(99, 102, 241, 0.2),
    inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

#security-showcase .security-icon svg {
  width: 40px;
  height: 40px;
  stroke: #3f3f46;
  stroke-width: 2;
  fill: none;
  position: relative;
  z-index: 2;
}

.dark #security-showcase .security-icon svg {
  stroke: #ffffff;
}

#security-showcase .icon-label {
  position: absolute;
  bottom: -32px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 600;
  color: #18181b;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
  background: rgba(99, 102, 241, 0.12);
  padding: 4px 12px;
  border-radius: 12px;
  border: 1px solid rgba(99, 102, 241, 0.28);
  backdrop-filter: blur(10px);
  font-family: 'Poppins', sans-serif;
  opacity: 0;
  animation: labelFadeIn 0.6s ease forwards;
  text-shadow: none;
}

.dark #security-showcase .icon-label {
  color: #ffffff;
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(99, 102, 241, 0.3);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

@keyframes labelFadeIn {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.security-icon-wrapper.icon-shield .icon-label {
  animation-delay: 0.3s;
}

.security-icon-wrapper.icon-lock .icon-label {
  animation-delay: 0.5s;
}

.security-icon-wrapper.icon-check .icon-label {
  animation-delay: 0.7s;
}

.icon-shield {
  top: 20%;
  left: 15%;
}

.icon-lock {
  top: 40%;
  right: 20%;
}

.icon-check {
  bottom: 20%;
  left: 36%;
}

.security-icon::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 20px;
  background: linear-gradient(135deg,
    rgba(99, 102, 241, 0.5),
    rgba(59, 130, 246, 0.5));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
  filter: blur(15px);
}

.security-icon:hover::before {
  opacity: 1;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) translateZ(30px);
  }
  50% {
    transform: translateY(-15px) translateZ(30px);
  }
}

@keyframes pulse {
  0%, 100% {
    box-shadow:
      0 20px 60px rgba(99, 102, 241, 0.3),
      0 10px 30px rgba(99, 102, 241, 0.2),
      inset 0 1px 2px rgba(255, 255, 255, 0.3);
  }
  50% {
    box-shadow:
      0 20px 60px rgba(99, 102, 241, 0.5),
      0 10px 30px rgba(99, 102, 241, 0.4),
      0 0 40px rgba(99, 102, 241, 0.3),
      inset 0 1px 2px rgba(255, 255, 255, 0.4);
  }
}

@keyframes pulseLight {
  0%, 100% {
    box-shadow:
      0 14px 40px rgba(99, 102, 241, 0.16),
      0 6px 18px rgba(59, 130, 246, 0.1),
      inset 0 1px 1px rgba(255, 255, 255, 1);
  }
  50% {
    box-shadow:
      0 18px 48px rgba(99, 102, 241, 0.24),
      0 8px 22px rgba(59, 130, 246, 0.14),
      inset 0 1px 2px rgba(255, 255, 255, 1);
  }
}

.security-icon-wrapper.icon-shield .security-icon {
  animation: float 3s ease-in-out infinite, pulseLight 2s ease-in-out infinite;
}

.security-icon-wrapper.icon-lock .security-icon {
  animation: float 3.5s ease-in-out infinite 0.5s, pulseLight 2.5s ease-in-out infinite 0.3s;
}

.security-icon-wrapper.icon-check .security-icon {
  animation: float 4s ease-in-out infinite 1s, pulseLight 3s ease-in-out infinite 0.6s;
}

.dark .security-icon-wrapper.icon-shield .security-icon {
  animation: float 3s ease-in-out infinite, pulse 2s ease-in-out infinite;
}

.dark .security-icon-wrapper.icon-lock .security-icon {
  animation: float 3.5s ease-in-out infinite 0.5s, pulse 2.5s ease-in-out infinite 0.3s;
}

.dark .security-icon-wrapper.icon-check .security-icon {
  animation: float 4s ease-in-out infinite 1s, pulse 3s ease-in-out infinite 0.6s;
}

@media (max-width: 768px) {
  .security-icon {
    width: 60px;
    height: 60px;
  }

  #security-showcase .security-icon svg {
    width: 30px;
    height: 30px;
  }

  .icon-label {
    font-size: 9px;
    padding: 3px 8px;
    bottom: -28px;
  }
}
