/* ============================================ */
/* SEÇÃO MODELOS 3D - REFATORADO */
/* Substitua TODO o conteúdo do models.css por este */
/* ============================================ */

.modelos-3d {
  padding: 80px 4%;
  background-color: #040615;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 40px 10px #ffffff1d;
}

.modelos-3d .interface {
  max-width: 1280px;
  margin: 0 auto;
}

.modelos-3d h2.titulo {
  text-align: center;
  margin-bottom: 60px;
  color: #fff;
  font-size: 38px;
}

.modelos-3d h2.titulo span {
  color: #986dff;
}

/* Grid dos modelos */
.modelos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Card individual do modelo - FUNDO QUASE TRANSPARENTE */
.modelo-card {
  background: rgba(19, 18, 26, 0.3); /* Fundo semi-transparente */
  border: 1px solid rgba(152, 109, 255, 0.2);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px); /* Efeito glassmorphism */
  -webkit-backdrop-filter: blur(10px);
}

.modelo-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(152, 109, 255, 0.05) 0%,
    rgba(19, 18, 26, 0.1) 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
}

.modelo-card:hover {
  border-color: rgba(152, 109, 255, 0.6);
  box-shadow: 0 12px 32px rgba(152, 109, 255, 0.2);
  transform: translateY(-8px);
  background: rgba(19, 18, 26, 0.4);
}

.modelo-card:hover::before {
  opacity: 1;
}

/* Canvas do modelo 3D */
.modelo-canvas {
  width: 100%;
  height: 400px;
  border-radius: 12px;
  background: transparent; /* Fundo transparente para ver partículas */
  position: relative;
  cursor: grab;
  margin-bottom: 20px;
  overflow: hidden;
  z-index: 2;
}

.modelo-canvas:active {
  cursor: grabbing;
}

.modelo-canvas canvas {
  border-radius: 12px;
}

/* Título do modelo */
.modelo-card h3 {
  color: #fff;
  font-size: 1.4rem;
  font-weight: 600;
  text-align: center;
  margin: 0;
  padding: 12px 0;
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* Responsivo Tablet */
@media screen and (max-width: 992px) {
  .modelos-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .modelo-card:last-child {
    grid-column: 1 / -1;
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
  }

  .modelo-canvas {
    height: 350px;
  }
}

/* Responsivo Mobile */
@media screen and (max-width: 768px) {
  .modelos-3d {
    padding: 60px 4%;
  }

  .modelos-3d h2.titulo {
    font-size: 28px;
    margin-bottom: 40px;
  }

  .modelos-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .modelo-card {
    padding: 20px;
  }

  .modelo-card:last-child {
    grid-column: auto;
    max-width: 100%;
  }

  .modelo-canvas {
    height: 300px;
  }

  .modelo-card h3 {
    font-size: 1.2rem;
  }
}

@media screen and (max-width: 480px) {
  .modelo-canvas {
    height: 260px;
  }

  .modelo-card h3 {
    font-size: 1.1rem;
  }

  .modelo-card {
    padding: 16px;
  }
}

/* ============================================ */
/* FIM DA SEÇÃO MODELOS 3D */
/* ============================================ */

/* ============================================ */
/* TEXTO ANIMADO - INSTRUÇÕES DOS MODELOS 3D */
/* Cole este código no final do seu models.css */
/* ============================================ */

.modelos-instrucao {
  text-align: center;
  font-size: 1.2rem;
  font-weight: 500;
  color: #c6c6c6;
  margin-top: 50px;
  position: relative;
  z-index: 2;

  /* Gradiente animado */
  background: linear-gradient(
    90deg,
    #c6c6c6 0%,
    #c6c6c6 30%,
    #986dff 50%,
    #c6c6c6 70%,
    #c6c6c6 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;

  animation: shimmer 3s linear infinite;
}

/* Animação de brilho roxo */
@keyframes shimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

/* Responsivo Mobile */
@media screen and (max-width: 768px) {
  .modelos-instrucao {
    font-size: 1rem;
    margin-top: 40px;
  }
}

@media screen and (max-width: 480px) {
  .modelos-instrucao {
    font-size: 0.95rem;
    margin-top: 35px;
  }
}

/* ============================================ */
/* FIM DO TEXTO ANIMADO */
/* ============================================ */