/* ============================================
   Navbar Component Styles
   ============================================ */

.navbar {
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-link {
  position: relative;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #2563eb;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Desktop nav links */
.nav-link-desktop {
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  padding: 8px 14px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.nav-link-desktop:hover {
  color: #2563eb;
  background: rgba(37, 99, 235, 0.06);
}

/* Mobile nav links */
.mobile-nav-link {
  display: block;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #374151;
  padding: 10px 14px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.mobile-nav-link:hover {
  color: #2563eb;
  background: rgba(37, 99, 235, 0.06);
}

/* Navbar scrolled state */
.navbar-scrolled {
  background: rgba(255, 255, 255, 0.97) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Mobile menu */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.mobile-menu.active {
  max-height: 500px;
}

/* Logo Switcher Dropdown */
.logo-dropdown {
  animation: dropdownFade 0.2s ease;
}

@keyframes dropdownFade {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.logo-switcher-btn {
  opacity: 0.5;
  transition: opacity 0.2s ease;
}

.logo-switcher-btn:hover {
  opacity: 1;
}

.logo-option {
  cursor: pointer;
  transition: all 0.15s ease;
}

.logo-option img {
  pointer-events: none;
}

/* ============================================
   Logo Sprite System
   Uses Logos4.png as source sprite.
   Original image: ~770x342px
   Layout:
     Top-left: cube icon + "StellarCode Studio" horizontal (~full width, top half)
     Bottom-left: small cube icon
     Bottom-center: "StellarCode Studio" text smaller
     Bottom-right: dark app icon
   ============================================ */

/* Navbar: horizontal logo with cube icon (top portion of sprite) */
.logo-sprite-navbar {
  width: 180px;
  height: 40px;
  background-image: url('../../../assets/images/Logos/Logos4.png');
  background-size: 440px auto;
  background-position: -2px -4px;
  background-repeat: no-repeat;
}

/* Footer: same horizontal logo, slightly smaller */
.logo-sprite-footer {
  width: 160px;
  height: 36px;
  background-image: url('../../../assets/images/Logos/Logos4.png');
  background-size: 400px auto;
  background-position: -2px -4px;
  background-repeat: no-repeat;
  filter: brightness(1.3);
}

/* About section: cube icon only (bottom-left of sprite) */
.logo-sprite-icon {
  width: 80px;
  height: 80px;
  background-image: url('../../../assets/images/Logos/Logos4.png');
  background-size: 440px auto;
  background-position: -6px -100px;
  background-repeat: no-repeat;
}

/* Dropdown options: keep using <img> tags for full preview */
