* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Roboto", sans-serif;
  line-height: 1.6;
  color: #333;
  background: linear-gradient(to bottom, #0f2027, #203a43, #2c5364);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  background: url("https://haitacdaichien.vn/static/uploads/sinh-nhat-4/652_697x385.png")
    no-repeat center/cover;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* --- Navbar cơ bản --- */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: #000; /* nền đen rõ ràng, không mờ */
  position: relative;
  z-index: 10;
}

.nav-brand h2 {
  color: #fff;
  font-size: 1.4rem;
  margin: 0;
}

/* --- Menu chính --- */
.nav-menu {
  display: flex;
  list-style: none;
  gap: 12px;
}

.nav-menu a {
  color: #fff;
  text-decoration: none;
  padding: 10px;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-menu a:hover {
  color: #ffd700;
}

/* --- Nút toggle (mobile) --- */
.menu-toggle {
  display: none;
  font-size: 1.5rem;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
}

/* --- Mobile layout --- */
@media (max-width: 768px) {
  .nav-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #111;
    flex-direction: column;
    width: 100%;
    text-align: center;
    display: none; /* ẩn mặc định */
    padding: 10px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
  }

  .nav-menu.active {
    display: flex; /* hiển thị khi mở menu */
  }

  .menu-toggle {
    display: block;
  }
}

.btn-download {
  background: #ffd700;
  color: #333 !important;
  border-radius: 5px;
  padding: 10px 20px;
}

.hero {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 0 20px;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.btn-hero {
  background: #ffd700;
  color: #333;
  padding: 15px 30px;
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  transition: transform 0.3s;
}

.btn-hero:hover {
  transform: scale(1.05);
}

/* Sections */
.section {
  padding: 80px 0;
  text-align: center;
}

.section h2 {
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: #fff;
}

.intro {
  background: #1a1a2e;
}

.intro p {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto 30px;
  color: #ddd;
}

.intro-img {
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Features */
.features {
  background: #16213e;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.feature-card {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  color: #333;
}

.feature-card i {
  font-size: 3rem;
  color: #ffd700;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

/* Characters */
.characters {
  background: #0f3460;
}

.characters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
}

.char-card {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  color: #333;
}

.char-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
}

.char-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

/* CTA */
.cta {
  background: #e94560;
  color: #fff;
}

.cta h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.cta p {
  font-size: 1.2rem;
  margin-bottom: 40px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cta-buttons a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: #333;
  padding: 15px 25px;
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  transition: background 0.3s;
}

.cta-buttons a:hover {
  background: #ffd700;
}

/* Footer */
.footer {
  background: #000;
  color: #fff;
  text-align: center;
  padding: 20px;
}

.footer a {
  color: #ffd700;
  text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-menu {
    flex-direction: column;
    gap: 10px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
}
.command-box {
  margin-top: 20px;
  background: #2d2d2d;
  color: #fff;
  padding: 20px;
  border-radius: 8px;
  text-align: left;
  font-size: 0.95rem;
  animation: fadeIn 0.4s ease;
}

.command {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.command code {
  background: #1a1a1a;
  padding: 10px;
  border-radius: 5px;
  flex-grow: 1;
  cursor: pointer;
  white-space: pre-wrap;
  word-break: break-all;
  font-family: "Courier New", monospace;
}

.command code:hover {
  background: #333;
}

.copy-btn {
  background: #ffd700;
  color: #333;
  border: none;
  padding: 8px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
}

.copy-btn:hover {
  background: #ffec99;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Giữ nguyên nút cũ, chỉ chỉnh hiệu ứng nhẹ */
.btn-platform {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: #333;
  padding: 15px 25px;
  border-radius: 50px;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn-platform:hover {
  transform: translateY(-3px);
  background: #ffd700;
}

/* Khối lệnh */
.command-box {
  margin-top: 25px;
  background: #2d2d2d;
  color: #fff;
  padding: 20px;
  border-radius: 10px;
  text-align: left;
  font-size: 0.95rem;
  animation: fadeIn 0.4s ease;
}

.command {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.command code {
  background: #1a1a1a;
  padding: 10px;
  border-radius: 5px;
  flex-grow: 1;
  cursor: pointer;
  white-space: pre-wrap;
  word-break: break-all;
  font-family: "Courier New", monospace;
}

.command code:hover {
  background: #333;
}

.copy-btn {
  background: #ffd700;
  color: #333;
  border: none;
  padding: 8px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s;
}

.copy-btn:hover {
  background: #ffec99;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
