/* ========== Base ========== */
:root {
  --bg: #0b1220;
  --panel: #0f172a;
  --soft: #111827;
  --card: #0b1220;
  --muted: #94a3b8;
  --line: #1f2937;
  --white: #e5e7eb;
  --accent: #40e0d0; /* turquoise */
  --accent-2: #7c3aed; /* violet */
}
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Ubuntu,
    "Helvetica Neue", Arial, sans-serif;
  color: var(--white);
  background: radial-gradient(
      1200px 600px at 80% -10%,
      rgba(124, 58, 237, 0.25),
      transparent 60%
    ),
    radial-gradient(
      1000px 500px at -10% 10%,
      rgba(64, 224, 208, 0.18),
      transparent 55%
    ),
    linear-gradient(180deg, #0b1220 0%, #0b1220 100%);
}
a {
  color: inherit;
}
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========== Buttons ========== */
.btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
}
.btn--primary {
  background: linear-gradient(90deg, var(--accent), #58d0ff);
  color: #0b1220;
  border: none;
  font-weight: 700;
}
.btn--primary:hover {
  filter: brightness(1.05) saturate(1.1) translateY(-1px);
}
.btn--ghost {
  background: transparent;
}
.btn--ghost:hover {
  background: #0f172a;
}

/* ========== Nav ========== */
.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(11, 18, 32, 0.7);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  object-fit: cover;
  background: #111827;
}
.brand__text {
  font-weight: 800;
  letter-spacing: 0.2px;
}
.menu {
  display: flex;
  gap: 16px;
}
.menu a {
  text-decoration: none;
  color: var(--muted);
}
.menu a:hover {
  color: #fff;
}

/* ========== Hero ========== */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: center;
  min-height: 420px;
  padding: 48px 0;
}
.hero__copy h1 {
  font-size: 44px;
  line-height: 1.1;
  margin: 0 0 12px;
}
.dot {
  color: var(--accent);
}
.hero__copy p {
  color: var(--muted);
  margin: 0 0 16px;
}
.hero__cta {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}
.hero__card {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.stat {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0.03)
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px;
  text-align: center;
}
.stat__num {
  font-size: 28px;
  font-weight: 800;
}
.stat__label {
  color: var(--muted);
  font-size: 13px;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(
      600px 200px at 70% 90%,
      rgba(124, 58, 237, 0.25),
      transparent 60%
    ),
    radial-gradient(
      400px 200px at 10% 100%,
      rgba(64, 224, 208, 0.24),
      transparent 60%
    );
  opacity: 0.6;
  pointer-events: none;
}
@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }
  .hero__card {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ========== Sections ========== */
.section {
  padding: 56px 0;
}
.section__title {
  font-size: 28px;
  margin: 0 0 16px;
}
.lead {
  color: #cbd5e1;
  max-width: 820px;
}

/* ========== Cards (Projects) ========== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.card {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.02)
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px;
}
.card__title {
  margin: 0 0 8px;
}
.card__desc {
  margin: 0 0 12px;
  color: var(--muted);
}
.badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.badges span {
  font-size: 12px;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 10px;
  border-radius: 999px;
  color: #d1d5db;
}

/* ========== Timeline (Schedule) ========== */
.section__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.filters {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #cbd5e1;
}
.filters input {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #e5e7eb;
  border-radius: 10px;
  padding: 8px;
}
.timeline {
  list-style: none;
  padding: 0;
  margin: 16px 0;
  display: grid;
  gap: 12px;
}
.timeline li {
  position: relative;
  padding: 14px 16px 14px 48px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.02)
  );
  border-radius: 14px;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 18px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(90deg, var(--accent), #58d0ff);
  box-shadow: 0 0 0 4px rgba(64, 224, 208, 0.18);
}
.timeline .meta {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}
.timeline .loc {
  font-size: 13px;
  color: #cbd5e1;
}

/* ========== Admin ========== */
.panel {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.02)
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px;
  margin: 16px 0;
}
.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.panel__title {
  margin: 0 0 8px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.form-grid textarea {
  grid-column: 1/-1;
  min-height: 96px;
}
.form-grid button {
  grid-column: 1/-1;
}
input,
select,
textarea {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px;
  color: #e5e7eb;
}
.list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.list li {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.02)
  );
}

/* ========== Footer ========== */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 24px 0;
  margin-top: 40px;
  background: rgba(11, 18, 32, 0.6);
  backdrop-filter: blur(6px);
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer__links {
  display: flex;
  gap: 12px;
}

/* Nút TOP */
#btnTop {
  display: none; /* ẩn mặc định */
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 100;
  background: linear-gradient(135deg, #00f5d4, #00bbf9);
  color: #000;
  border: none;
  padding: 12px 18px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease-in-out;
}

#btnTop:hover {
  background: linear-gradient(135deg, #00bbf9, #00f5d4);
  transform: translateY(-3px);
}

/* ==== Bright buttons ==== */
.btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
  box-shadow: 0 6px 18px rgba(64, 224, 208, 0.18);
}
.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.btn--primary {
  background: linear-gradient(90deg, #40e0d0, #58d0ff);
  color: #0b1220;
  border: none;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(64, 224, 208, 0.35);
}
.btn--warning {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  color: #0b1220;
  border: none;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(245, 158, 11, 0.35);
}
.btn--danger {
  background: linear-gradient(90deg, #ef4444, #fb7185);
  color: #fff;
  border: none;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(239, 68, 68, 0.35);
}
.btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  color: #e5e7eb;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* banner khi đang sửa */
.edit-banner {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
  background: linear-gradient(
    90deg,
    rgba(245, 158, 11, 0.18),
    rgba(245, 158, 11, 0.08)
  );
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 8px 12px;
  border-radius: 10px;
  color: #fde68a;
}

/* Header luôn nổi trên hero */
.nav {
  position: sticky;
  top: 0;
  z-index: 120;
}

/* Overlay mờ, tối hơn và nằm trên content */
.nav__overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(8, 12, 24, 0.82); /* đậm hơn */
  backdrop-filter: blur(2px);
  z-index: 130; /* dưới menu, trên nội dung */
}

/* ===== Hamburger (mobile) ===== */
.hamburger {
  display: none;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  position: relative;
  cursor: pointer;
  border-radius: 10px;
}
.hamburger span {
  position: absolute;
  left: 9px;
  right: 9px;
  height: 2px;
  background: #e5e7eb;
  transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
}
.hamburger span:nth-child(1) {
  top: 12px;
}
.hamburger span:nth-child(2) {
  top: 19px;
}
.hamburger span:nth-child(3) {
  top: 26px;
}

/* trạng thái mở */
.nav.open .hamburger span:nth-child(1) {
  top: 19px;
  transform: rotate(45deg);
}
.nav.open .hamburger span:nth-child(2) {
  opacity: 0;
}
.nav.open .hamburger span:nth-child(3) {
  top: 19px;
  transform: rotate(-45deg);
}

/* overlay */
.nav__overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(2px);
}

/* Mobile menu */
/* @media (max-width: 768px) {
  .menu {
    position: fixed;
    top: 64px;
    right: 16px;
    left: 16px;
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.06),
      rgba(255, 255, 255, 0.02)
    );
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 12px;
    display: none;
    flex-direction: column;
    gap: 10px;
    z-index: 50;
  }
  .menu a {
    padding: 12px 10px;
    border-radius: 10px;
  }
  .menu a:hover {
    background: rgba(255, 255, 255, 0.06);
  }

  .hamburger {
    display: block;
  }
  .menu .btn {
    width: 100%;
    text-align: center;
  }

  .nav.open .menu {
    display: flex;
  }
  .nav.open .nav__overlay {
    display: block;
  }
} */

@media (max-width: 768px) {
  .menu {
    position: fixed;
    top: 64px;
    right: 16px;
    left: 16px;
    /* nền đậm hẳn + mờ nhẹ để chữ nổi bật */
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);

    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 12px;
    display: none;
    flex-direction: column;
    gap: 10px;
    z-index: 50;
  }

  .menu a {
    padding: 12px 10px;
    border-radius: 10px;
    color: #fff; /* chữ trắng */
    background: rgba(255, 255, 255, 0.05); /* thêm nền nhạt */
  }

  .menu a:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #67e8f9; /* đổi màu chữ khi hover */
  }

  .hamburger {
    display: block;
  }

  .menu .btn {
    width: 100%;
    text-align: center;
  }

  .nav.open .menu {
    display: flex;
  }

  .nav.open .nav__overlay {
    display: block;
  }
}
