.overlay {
  height: 100%;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  background: rgba(0, 36, 82, 0.85);
  backdrop-filter: blur(8px);
  z-index: 9999;

  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.overlay.show {
  opacity: 1;
  visibility: visible;
}

/* ========= NAVIGATION CENTER ========= */
.overlay-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1.2vw;
}

.overlay-content a {
  color: #fff;
  font-size: 1.5vw;
  font-weight: 300;
  text-decoration: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.overlay.show .overlay-content a {
  opacity: 1;
  transform: translateY(0);
  width: max-content;
  margin: auto;
  border-bottom: 2px dotted rgba(0, 36, 82, 0);
}

.overlay.show .overlay-content a:hover {
  border-bottom: 3px dotted rgba(37, 99, 179, 0.85);
}

/* Stagger each item */
.overlay-content a:nth-child(1) {
  transition-delay: 0.2s;
}
.overlay-content a:nth-child(2) {
  transition-delay: 0.35s;
}
.overlay-content a:nth-child(3) {
  transition-delay: 0.5s;
}
.overlay-content a:nth-child(4) {
  transition-delay: 0.65s;
}
.overlay-content a:nth-child(5) {
  transition-delay: 0.8s;
}
.overlay-content a:nth-child(6) {
  transition-delay: 0.95s;
}
.overlay-content a:nth-child(7) {
  transition-delay: 1s;
}

.overlay-content a:nth-child(8) {
  transition-delay: 1.2s;
}

.close-btn {
  position: absolute;
  top: 30px;
  right: 30px;
  font-size: 42px;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
}

.open-menu {
  cursor: pointer;
}
