.glossy-card-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
  perspective: 1000px;
  /* Performance optimizations */
  /* CSS containment for better performance */
  /* contain: layout style paint; */
  transform: translateZ(0); /* Force hardware acceleration */
}

.glossy-card {
  position: relative;
  width: 28rem;
  max-width: 28rem;
  /* height: 20rem; */
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.05) 25%,
    rgba(0, 0, 0, 0.1) 50%,
    rgba(255, 255, 255, 0.05) 75%,
    rgba(255, 255, 255, 0.1) 100%
  );
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  transform-style: preserve-3d;
  transition: transform 0.1s ease-out;
  overflow: hidden;
  z-index: 2;
  /* GPU acceleration optimizations */
  will-change: auto;
  backface-visibility: hidden; /* Prevent flickering */
}

/* Separate shadow div positioned as sibling */
.card-shadow {
  position: absolute;
  top: 80%;
  left: 50%;
  width: 200px;
  height: 70px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: color-mix(in srgb, var(--acme-shadow-color) 70%, transparent);
  filter: blur(16px);
  transition: transform 0.1s ease-out;
  z-index: -1;
  /* GPU acceleration optimizations */
  will-change: auto;
  backface-visibility: hidden; /* Prevent flickering */
}

.card-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transition: left 0.5s ease;
  z-index: 1;
}

.glossy-card:hover .card-shine {
  left: 100%;
}

/* Enhanced hover effects with matching shadow transformations */
.glossy-card:hover {
  transform: translateY(-5px) rotateX(5deg);
}

.glossy-card:hover .card-shadow {
  transform: translate(-50%, -50%) translateY(5px) rotateX(5deg);
  background: color-mix(in srgb, var(--acme-shadow-color) 50%, transparent);
  filter: blur(30px);
}

.glossy-card .badge {
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.glossy-card .btn {
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.glossy-card .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}
