/* ==== RESET CƠ BẢN ==== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #0b1b2b;
  background-color: #020818;
  line-height: 1.5;
}

/* ==== BIẾN MÀU ==== */
:root {
  --bg-body: #020818;
  --bg-card: #071628;
  --bg-soft: rgba(12, 31, 53, 0.9);
  --accent: #ff8ad9;
  --accent-soft: #ffd8f1;
  --accent-2: #4fd2ff;
  --text-main: #f5f8ff;
  --text-muted: #a9b5cc;
  --border-soft: rgba(255, 255, 255, 0.08);
  --radius-lg: 20px;
  --radius-xl: 26px;
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.4);
}

/* ==== LAYOUT CHUNG ==== */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ==== HEADER ==== */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: linear-gradient(
    to bottom,
    rgba(1, 6, 16, 0.9),
    rgba(1, 6, 16, 0.6),
    transparent
  );
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-main);
  font-weight: 600;
}

.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 20% 0, #ff9bd8, #4fd2ff);
  color: #041019;
  font-weight: 700;
  font-size: 16px;
}
.logo-image {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: block;
  background: radial-gradient(circle at 20% 0, #ff9bd8, #4fd2ff);
}

.logo-text {
  font-size: 16px;
}

/* NAVIGATION */
.nav {
  position: relative;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 14px;
  padding: 4px 0;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--accent-soft);
}

/* Nút hamburger mobile */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--text-main);
  border-radius: 999px;
}

/* ==== HERO SECTION ==== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: var(--text-main);
  padding-top: 72px; /* chừa chỗ cho header fixed */
}

.hero-video-wrapper {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: -2;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 154, 216, 0.25), transparent 55%),
    radial-gradient(circle at 80% 0%, rgba(79, 210, 255, 0.25), transparent 55%),
    linear-gradient(to bottom, rgba(2, 8, 24, 0.8), rgba(2, 8, 24, 0.9) 35%, #020818 100%);
  z-index: 1;
}

/* HERO CONTENT */
.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.3fr);
  gap: 32px;
  align-items: center;
  padding: 48px 16px 64px;
}

.hero-text h1 {
  font-size: clamp(32px, 4vw, 44px);
  margin: 0 0 12px;
}

.hero-tagline {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-soft);
  margin-bottom: 8px;
}

.hero-subtitle {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 420px;
  margin-bottom: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease,
    border-color 0.15s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #ff9bd8, #4fd2ff);
  color: #041019;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.6);
}

.btn-ghost {
  background: rgba(8, 21, 40, 0.7);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text-main);
}

.btn-ghost:hover {
  background: rgba(13, 31, 53, 0.9);
}

/* HERO CARD PHỤ BÊN PHẢI */
.hero-card {
  background: var(--bg-soft);
  border-radius: var(--radius-xl);
  padding: 20px 20px 22px;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(20px);
}

.hero-card-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(79, 210, 255, 0.15);
  color: var(--accent-2);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 6px;
}

.hero-card-title {
  margin: 0 0 8px;
  font-size: 18px;
}

.hero-card-text {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.hero-features {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 13px;
  color: var(--text-main);
}

.hero-features li + li {
  margin-top: 4px;
}

/* ==== SECTIONS CHUNG ==== */
.section {
  padding: 72px 0;
  background: #020818;
  color: var(--text-main);
}

.section:nth-of-type(even) {
  background: #020b1f;
}

.section-header {
  text-align: center;
  margin-bottom: 32px;
}

.section-header h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.section-header p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

/* ==== GAMES GRID ==== */
.section-games {
  position: relative;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.game-card {
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.game-thumb {
  width: 100%;
  padding-top: 60%;
  position: relative;
  background: radial-gradient(circle at 30% 0, #ff9bd8, #4fd2ff);
}

.game-thumb img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height:100%;
  object-fit: cover;
}

.game-body {
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.game-body h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.game-body p {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--text-muted);
}

.game-body footer
{
  display: flex;
  flex-direction: column;
  margin-bottom: auto;
}
.game-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.game-tags span {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--accent-soft);
}

.game-link {
  font-size: 13px;
  color: var(--accent-2);
  text-decoration: none;
}

.game-link.disabled {
  opacity: 0.6;
  cursor: default;
}

/* ==== ABOUT SECTION ==== */
.section-about {
  position: relative;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 24px;
}

.about-text p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 10px;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.about-panel {
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  padding: 16px 18px;
}

.about-panel h3 {
  margin: 0 0 10px;
  font-size: 15px;
}

.about-panel ul {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  color: var(--text-muted);
}

.about-panel li + li {
  margin-top: 4px;
}

/* ==== CONTACT SECTION ==== */
.section-contact {
  background: linear-gradient(to bottom, #020818, #020d20);
}

.contact-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
}

.contact-email a {
  color: var(--accent-soft);
  text-decoration: none;
  font-weight: 500;
}

.contact-email a:hover {
  text-decoration: underline;
}

.contact-links h3 {
  margin: 0 0 8px;
  font-size: 15px;
}

.contact-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
}

.contact-links li + li {
  margin-top: 6px;
}

.contact-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.contact-links a:hover {
  color: var(--accent-soft);
}

/* ==== FOOTER ==== */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #020814;
  color: var(--text-muted);
  font-size: 12px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
}

.footer-made {
  opacity: 0.8;
}

/* ==== CONTACT BUTTON ==== */
.contact-button-wrapper {
  position: fixed;
  bottom: 40px;
  right: 24px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.contact-button {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff9bd8, #4fd2ff);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #041019;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

.contact-button:active {
  transform: translateY(0);
}

.contact-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center;
}

.contact-menu {
  position: absolute;
  bottom: 88px;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.contact-menu.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.contact-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  color: var(--text-main);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transition: transform 0.15s ease, background 0.15s ease;
  min-width: 140px;
}

.contact-menu-item:hover {
  transform: translateX(-4px);
  background: rgba(12, 31, 53, 0.95);
}

.contact-menu-item svg {
  flex-shrink: 0;
}

/* ==== RESPONSIVE ==== */
@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: minmax(0, 1.3fr);
  }

  .hero-card {
    margin-top: 16px;
  }

  .games-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-inner {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .header-inner {
    padding: 8px 0;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    right: 0;
    top: 110%;
    flex-direction: column;
    background: rgba(6, 17, 35, 0.96);
    padding: 10px 14px;
    border-radius: 14px;
    border: 1px solid var(--border-soft);
    min-width: 150px;
    transform-origin: top right;
    transform: scale(0.9);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
  }

  .nav-links.show {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
  }

  .hero-content {
    padding-top: 40px;
    padding-bottom: 50px;
  }

  .section {
    padding: 56px 0;
  }

  .games-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }
}