/* 3D Cube Panel for Future Certifications */
.future-certs-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  border-radius: 15px;
  box-shadow: 0px 20px 60px rgba(0,0,0, 0.5);
  padding: 2rem 1.5rem 2.5rem 1.5rem;
  min-width: 360px;
  max-width: 460px;
  margin-left: 0;
  margin-top: 0;
  height: 460px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  pointer-events: auto !important;
  z-index: 1;
}
.future-certs-panel-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.5rem;
  text-align: center;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg,#646cff,#00bcd4,#4caf50,#ff4081,#ffc107,#9c27b0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.container.cube-panel {
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
}
.box-card {
  width: 200px;
  height: 200px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 1s ease;
  cursor: pointer;
  animation: rotateLeftRight 15s infinite linear;
}
.face {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  font-weight: bold;
  backface-visibility: visible;
  border-radius: 12px;
  background: transparent;
  border: none;
  transition: all 0.3s ease;
  overflow: hidden;
}
.face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}
.face::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
  top: -100%;
  left: -100%;
  transition: all 0.5s ease;
  transform: translateZ(20px);
}
.face::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
      135deg,
      transparent 0%,
      rgba(255, 255, 255, 0.05) 50%,
      transparent 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}
.face:hover::before {
  top: 100%;
  left: 100%;
}
.face:hover::after {
  opacity: 1;
}
.front {
  transform: rotateY(0deg) translateZ(100px);
  border-color: #646cff;
}
.back {
  transform: rotateY(180deg) translateZ(100px);
  border-color: #00bcd4;
}
.right {
  transform: rotateY(90deg) translateZ(100px);
  border-color: #4caf50;
}
.left {
  transform: rotateY(-90deg) translateZ(100px);
  border-color: #ff4081;
}
top {
  transform: rotateX(90deg) translateZ(100px);
  border-color: #ffc107;
}
.bottom {
  transform: rotateX(-90deg) translateZ(100px);
  border-color: #9c27b0;
}
@keyframes rotateLeftRight {
  0% {
    transform: rotateY(0deg);
  }
  100% {
    transform: rotateY(360deg);
  }
}

@keyframes rotateYcube {
  0% {
    transform: rotateY(0deg);
  }
  100% {
    transform: rotateY(360deg);
  }
}
@media (max-width: 768px) {
  .box-card {
    width: 150px;
    height: 150px;
  }
  .front { transform: translateZ(75px); }
  .back { transform: translateZ(-75px) rotateY(180deg); }
  .right { transform: translateX(75px) rotateY(90deg); }
  .left { transform: translateX(-75px) rotateY(-90deg); }
  .top { transform: translateY(-75px) rotateX(90deg); }
  .bottom { transform: translateY(75px) rotateX(-90deg); }
}
