/* 3D Icons Styling */
.service-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.icon-wrapper {
  width: 120px;
  height: 120px;
  margin: 0 auto 1.5rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
}

/* Animation for 3D icons */
@keyframes float {
  0%, 100% {
    transform: translateY(0) rotateY(0);
  }
  50% {
    transform: translateY(-10px) rotateY(10deg);
  }
}

/* Service card hover effect */
.service-card:hover .icon-wrapper canvas {
  animation: float 3s ease-in-out infinite;
  filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.2));
}

/* Ensure proper rendering of WebGL canvas */
canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .icon-wrapper {
    width: 100px;
    height: 100px;
  }
}

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

/* Add subtle reflection effect */
.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 50%);
  pointer-events: none;
  border-radius: 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover::after {
  opacity: 1;
}
