/* Main Container - Fixed Spacing */
.main-container {
  position: relative;
  width: 100%;
  min-height: calc(100vh - 120px); /* Adjust based on your header/footer */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start; /* Changed from center to prevent extra space */
  padding: 20px;
}

/* Canvas Background - Non-blocking */
.canvas-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

#neuralCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Logo Slider - Compact Layout */
.logo-slider {
  width: 95%;
  max-width: 91%;
  margin: 20px auto;
  padding: 20px 0; /* Reduced padding */
  background: rgba(15, 23, 42, 0.8);
  border-radius: 12px;
  position: relative;
  z-index: 2;
}

/* Slider Track - Tight Layout */
.slider-track {
  display: flex;
  width: calc(150px * 14); /* Reduced width */
  animation: scroll 30s linear infinite; /* Faster animation */
  padding: 10px 0;
}

/* Logo Items - Compact Size */
.logo-item {
  width: 120px;
  height: 120px;
  margin: 0 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.logo-img {
  height: 50px;
  width: auto;
  max-width: 80px;
}

/* Responsive Adjustments */
@media (min-width: 768px) {
  .main-container {
    padding: 30px;
  }
  
  .logo-slider {
    padding: 30px 0;
  }
  
  .logo-item {
    width: 150px;
    height: 150px;
  }
  
  .logo-img {
    height: 60px;
    max-width: 100px;
  }
}

@media (min-width: 1024px) {
  .logo-item {
    width: 180px;
    height: 160px;
  }
}

/* Style Selector - Fixed Position */
.style-selector {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
}

/* Animation */
@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-150px * 7)); } /* Matches reduced width */
}