/* Global */
html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden !important;
}

body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  max-width: 100%;
  overflow-x: hidden !important;
}

/* Slideout (desktop default) */
.slideout {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 480px;
  height: 100%;
  background: #0b1120;
  color: white;
  box-shadow: -2px 0 14px rgba(0, 0, 0, 0.6);
  transition: right 0.35s ease;
  z-index: 60;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.slideout.active {
  right: 0;
}

/* Overlay */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 50;
}

.overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Sticky header */
header.sticky-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(8px);
}

/* Logos Marquee */
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.logo-track {
  animation: marquee 28s linear infinite;
  display: flex;
  will-change: transform;
  overflow: hidden;
}

.logo-track:hover {
  animation-play-state: paused;
}

.logo-track img { 
  transition: transform 0.25s ease, opacity 0.25s ease; 
}
.logo-track img:hover { 
  transform: scale(2.15); 
  opacity: 1; 
}

/* Mobile Fixes */
@media (max-width: 480px) {
  
  /* Prevent child elements from overflowing */
  .slideout * {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Correct mobile slideout width + hidden position */
  .slideout {
    width: 90vw !important;
    max-width: 90vw !important;
    right: -90vw !important;
  }

  /* Visible state */
  .slideout.active {
    right: 0 !important;
  }
}
