/* Header Floating Pill */
.header {
  position: fixed;
  top: 24px;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: 95%;
  max-width: 1100px;
  z-index: 100;
  transition: all var(--transition-slow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  border-radius: 100px;
  padding: 8px 12px 8px 24px;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}



.header-nav {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: #475569;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: #0f172a;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.lang-selector {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  text-transform: uppercase;
}

.login-link {
  font-weight: 500;
}

.btn-testar {
  background-color: #020617;
  background-image: radial-gradient(rgba(255,255,255,0.3) 1px, transparent 1px);
  background-size: 8px 8px;
  color: #ffffff;
  border: 1px solid rgba(32, 66, 192, 0.6);
  box-shadow: 0 0 15px rgba(32, 66, 192, 0.3), inset 0 0 10px rgba(32, 66, 192, 0.2);
  padding: 10px 28px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-testar:hover {
  box-shadow: 0 0 25px rgba(32, 66, 192, 0.6), inset 0 0 15px rgba(32, 66, 192, 0.4);
  transform: translateY(-1px);
  color: #fff;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #0f172a;
  padding: 8px;
}

@media (max-width: 992px) {
  .header-nav, .header-actions {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
  .header-inner {
    padding: 8px 16px;
  }
}

/* Mobile Menu Overlay */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  z-index: 90; /* below header so header is still visible to close */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s ease;
}

.mobile-nav-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-inner {
  text-align: center;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

.mobile-nav-overlay.active .mobile-nav-inner {
  transform: translateY(0);
}

.mobile-nav-links {
  list-style: none;
  padding: 0;
  margin: 0 0 40px 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.mobile-nav-link {
  font-size: 1.5rem;
  font-weight: 600;
  color: #0f172a;
  text-decoration: none;
}
