/* Global Styles and Theme */
body {
  font-family: "Outfit", sans-serif;
  overflow-x: hidden;
  transition: background-color 0.5s ease, color 0.5s ease;
}

.light-mode-bg {
  background-color: #f9fafb;
  color: #0b162c;
}

.dark-mode-bg {
  background-color: #0b162c;
  color: #ffffff;
}

.glass-panel {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark .glass-panel {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Home Page Canvas */
#hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.8;
}

/* Infinity Marquee Styles */
.marquee-container {
  display: flex;
  overflow: hidden;
  user-select: none;
  width: 100%;
  mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
}

.marquee-content {
  flex-shrink: 0;
  display: flex;
  justify-content: flex-start; /* Alineación consistente */
  align-items: center;
  /* min-width: 100%; Eliminado para evitar espacios grandes si el contenido es corto */
  gap: 4rem; /* Espacio entre logos internos */
  padding-right: 4rem; /* Espacio crítico para separar el final del Set 1 del inicio del Set 2 */
  animation: scroll 30s linear infinite; /* Ligeramente más lento para mejor legibilidad */
}

@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

/* Stop animation on hover */
.marquee-container:hover .marquee-content {
  animation-play-state: paused;
}

/* Variables */
:root {
  --sky-400: #22d3ee;
  --sky-500: #06b6d4;
}
/* Mobile Menu Hamburger Animation */
.hamburger-box {
  width: 24px;
  height: 24px;
  display: inline-block;
  position: relative;
}

.hamburger-line {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: currentColor;
  border-radius: 4px;
  transition: all 0.3s ease-in-out;
}

.hamburger-line:nth-child(1) {
  top: 4px;
}
.hamburger-line:nth-child(2) {
  top: 11px;
}
.hamburger-line:nth-child(3) {
  top: 18px;
}

.active .hamburger-line:nth-child(1) {
  top: 11px;
  transform: rotate(45deg);
}

.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: translateX(-20px);
}

.active .hamburger-line:nth-child(3) {
  top: 11px;
  transform: rotate(-45deg);
}

/* Mobile Menu Animation */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: block !important; /* Overriding hidden if necessary */
}

#mobile-menu.active {
  max-height: 500px; /* Large enough for content */
  opacity: 1;
  padding-bottom: 1rem;
}

/* Ensure button stays highlighted when menu is open */
#mobile-menu-btn.active {
  background-color: rgba(0, 0, 0, 0.1);
}

.dark #mobile-menu-btn.active {
  background-color: rgba(255, 255, 255, 0.1);
}
