/* Overlay Styles */
.page-overlay {
  position: fixed;
  top: 64px; /* Height of the navbar */
  right: 0;
  bottom: 0;
  width: 75%; /* Same width as main content */
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  padding: 2rem;
}

@media (max-width: 768px) {
  .page-overlay {
    width: 100%;
  }
}

.overlay-content {
  max-width: 600px;
}

.overlay-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.overlay-subtitle {
  font-size: 1.25rem;
  opacity: 0.8;
  margin-bottom: 2rem;
}

.overlay-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
  transition: all 0.2s ease;
}

.overlay-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

.overlay-hidden {
  display: none;
}