/* Floating navbar */
.floating-navbar {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 92%;
  max-width: 1200px;
  background: rgba(26, 31, 58, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  border-radius: 16px;
  padding: 18px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.15);
}

/* Brand */
.navbar-brand {
  color: var(--text-primary);
  font-weight: 800;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-icon {
  font-size: 1.3rem;
  background: linear-gradient(135deg, var(--primary-gradient-start), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,100% { transform: scale(1); opacity:1; }
  50% { transform: scale(1.15); opacity:0.8; }
}

/* Links container */
.nav-buttons {
  display: flex;
  gap: 60px; /* Increased gap between links */
  align-items: center;
}

/* Individual links */
.nav-link {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  position: relative;
  padding: 8px 0;
  transition: color 0.3s;
}

/* Hover color */
.nav-link:hover {
  color: var(--accent-secondary);
}

/* Animated underline */
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--accent-secondary);
  border-radius: 2px;
  transition: width 0.3s ease;
}

/* Line grows left to right on hover */
.nav-link:hover::after {
  width: 100%;
}

/* Active link color */
.nav-link.active {
  color: var(--accent-secondary);
}

/* Hamburger toggle for mobile */
.navbar-toggler {
  display: none;
  background: rgba(102, 126, 234, 0.25);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 1.5rem;
  cursor: pointer;
}

.navbar-toggler:hover {
  background: rgba(102, 126, 234, 0.4);
}

@media (max-width: 768px) {
  .navbar-toggler {
    display: block;
  }

  .nav-buttons {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    gap: 16px;
    margin-top: 12px;
    background: rgba(26, 31, 58, 0.95);
    padding: 16px 0;
    border-radius: 12px;
    text-align: center;
  }

  .nav-buttons.show {
    display: flex;
  }
}
