#cat3d-container {
  width: 100%;
  max-width: 1000px;
  backdrop-filter: blur(10px);
  border: 1px solid rgb(0, 0, 0, 0.5);
  border-radius: 10px;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  margin: -15px auto 40px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#cat3d-container:hover {
  background: rgb(0, 0, 0, 0.3);
  border-color: #00ff88;
}

.cat3d-header {
  padding: 10px 15px;
  background: rgb(255, 255, 255, 0.1);
  text-align: center;
  border-bottom: 1px solid rgb(0, 0, 0, 0.5);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 1.4rem;
  color: #ffffff;
  text-shadow: 0 0 3px rgb(0, 0, 0, 0.9);
  font-family: 'FredokaOne', sans-serif;
  letter-spacing: 1px;
  z-index: 2;
}

#cat3d-container:hover .cat3d-header {
  background: rgb(0, 0, 0, 0.2);
  border-color: #00ff88;
}

.cat3d-content {
  background: rgb(0, 0, 0, 0.1);
  width: 100%;
  height: 500px;
  position: relative;
  overflow: hidden;
}

.cat3d-content canvas {
  position: absolute;
  top: 0;

/* Cursor styling for 3D model rotation */
.cat3d-content:after {
  content: "↻";
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  opacity: 0.7;
  transition: opacity 0.3s;
  pointer-events: none;
}

.cat3d-content:hover:after {
  opacity: 1;
}

  left: 0;
  width: 100% !important;
  height: 100% !important;
}

/* Mobile adaptations */
@media screen and (max-width: 768px) {
  #cat3d-container {
    width: 95%;
    margin: -10px auto 30px;
  }
  
  .cat3d-header {
    font-size: 1.2rem;
    padding: 8px 10px;
  }
  
  .cat3d-content {
    height: 350px;
  }
  
  .cat3d-content:after {
    width: 25px;
    height: 25px;
    font-size: 16px;
  }
}

@media screen and (max-width: 768px) {
  #cat3d-container {
    width: 90%;
  }
  
  .cat3d-header {
    font-size: 1rem;
    padding: 6px 8px;
  }
  
  .cat3d-content {
    height: 280px;
  }
}
}