/* transition.css */

/* 1. Thiết lập màn che chuyển trang */
.transition-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  z-index: 99999;
  transform: translateY(0);
  transition: transform 0.6s cubic-bezier(0.85, 0, 0.15, 1);
  pointer-events: none;
}

/* Khi tải trang xong, đẩy màn che lên trên */
.transition-overlay.finished {
  transform: translateY(-100%);
}

/* Khi chuẩn bị chuyển hướng, đưa màn che về vị trí cũ (che kín màn hình) */
.transition-overlay.active {
  transform: translateY(0);
}

/* 2. Hiệu ứng fade-in mượt cho toàn bộ body */
body {
  opacity: 0;
  animation: pageFadeIn 0.5s ease-out forwards;
  animation-delay: 0.15s;
}

@keyframes pageFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* 3. Style nổi bật cho mục menu đang hoạt động (Active menu item) */
nav a.active {
  color: #2563eb !important;
  font-weight: 700 !important;
  border-bottom: 2px solid #2563eb;
  padding-bottom: 4px;
}
