/* solution.css */
/* Styles for the solution section with firefly molecules and protein model */

/* Solution Section */
.solution-section {
  min-height: 100vh;
  background: #12121b;
  position: relative;
  width: 100%;
  overflow: visible;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 0;
  transform: translateY(100vh);
  transition: transform 0.6s ease-in-out, opacity 0.6s ease-in-out;
  z-index: 50;
}

.solution-section.visible {
  opacity: 1;
  transform: translateY(0);
  transition: transform 0.6s ease-in-out, opacity 0.6s ease-in-out;
}

.solution-content {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  margin: 0 !important;
  padding: 0 !important;
}

.firefly-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.firefly-molecule {
  position: absolute;
  width: 8px;
  height: 8px;
  background: radial-gradient(circle, #00ff88 0%, #00cc66 100%);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(0,255,136,0.6);
  opacity: 0;
  animation: fireflyGlow 2s ease-in-out infinite;
}

@keyframes fireflyGlow {
  0%, 100% { 
    opacity: 0.3; 
    transform: scale(0.8);
  }
  50% { 
    opacity: 1; 
    transform: scale(1.2);
  }
}

.solution-card {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 2000px;
  padding: 2rem;
  margin: 0 !important;
}

.solution-title {
  font-size: 3rem;
  font-weight: 300;
  margin-bottom: 1rem;
  color: #e3d4ad !important;
  text-shadow: 0 6px 20px rgba(0,0,0,0.45);
}

.solution-description {
  font-size: 1.2rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.9);
  font-weight: 300;
  margin-bottom: 2rem;
}

.model-container {
  width: 100%;
  max-width: 2000px;
  margin: 0 auto !important;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.model-container model-viewer {
  width: 100% !important;
  height: 500px !important;
  background-color: transparent;
  border: none;
  display: block;
  max-width: none !important;
  min-width: 800px !important;
}

/* Fallback for when model-viewer doesn't load */
.model-container:empty::after {
  content: "Loading 3D Model...";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 600px;
  background-color: transparent;
  color: rgba(255,255,255,0.7);
  font-size: 1.2rem;
}

/* Responsive */
@media (max-width: 800px) {
  .solution-title { 
    font-size: 2rem; 
  }
  .solution-description { 
    font-size: 1rem; 
  }
  .model-container model-viewer { 
    height: 500px; 
  }
}
