:root {
  --primary: #00c4ff;
  --accent: #ff7a1a;
  --bg: #020612;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #000;
  color: #c7e8ff;
  font-family: "Segoe UI", system-ui, sans-serif;
  overflow-x: hidden;
  overflow-y: auto;
}

/* Cho phép scroll trên trang About */
body.page-about {
  overflow-y: auto;
  overflow-x: hidden;
}

/* NAV */

.top-nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 22px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
  background: linear-gradient(to bottom, rgba(0,0,0,0.85), transparent);
}

.nav-left a,
.nav-right a {
  color: #9bd8ff;
  text-decoration: none;
  margin-right: 40px;
  font-size: 18px;
  letter-spacing: 1px;
}

.nav-left a:last-child { margin-right: 0; }

.nav-left a:hover,
.nav-right a:hover {
  color: #ffffff;
}

.lang.active { color: #ffffff; font-weight: 600; }
.sep { color: #4fa4ff; }

/* HERO */

.hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

/* ảnh nền 3D + hiệu ứng động, zoom nhỏ máy bán hàng */
.hero-bg {
  position: absolute;
  inset: 0;
  background: #020612 url("../images/hero_neurax.jpg") center center no-repeat;
  /* làm máy nhỏ lại và nhường chỗ cho logo phía trên */
  background-size: 72% auto;
  background-position: center 54%;
  filter: saturate(1.05) contrast(1.05)
          drop-shadow(0 0 30px rgba(0, 196, 255, 0.6));
  animation:
    heroFloat 7s ease-in-out infinite,
    heroGlow 5s ease-in-out infinite;
}

/* overlay chữ & nút */

.hero-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding-bottom: 90px;
}

.hero-center {
  text-align: center;
}

.hero-title {
  margin: 0 0 26px;
  font-size: 64px;
  letter-spacing: 0.25em;
  color: #e5f7ff;
  text-shadow:
    0 0 25px rgba(0, 196, 255, 0.8),
    0 0 80px rgba(0, 0, 0, 0.9);
  text-transform: uppercase;
}


.buttons-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 100%;
  margin: 0 0 10px 0;
  padding: 0 40px;
}


.action-btn {
  padding: 18px 34px;
  font-size: 18px;
  border-radius: 18px;
  border: 2px solid rgba(0, 196, 255, 0.7);
  background: radial-gradient(circle at top left, rgba(0, 196, 255, 0.35), rgba(0, 16, 40, 0.85));
  color: #cbe9ff;
  cursor: pointer;
  letter-spacing: 1px;
  backdrop-filter: blur(14px);
  box-shadow:
    0 0 25px rgba(0, 196, 255, 0.35),
    0 0 80px rgba(0, 0, 0, 0.9);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  text-align: center;
  white-space: normal;      /* cho phép xuống dòng */
}

/* đảm bảo 2 nút cân đối ở desktop */
.action-btn-left,
.action-btn-right {
  flex: 1 1 0;
  max-width: 420px;
}


.action-btn:hover {
  transform: translateY(-4px);
  border-color: #00f0ff;
  box-shadow:
    0 0 40px rgba(0, 240, 255, 0.55),
    0 0 90px rgba(0, 0, 0, 0.9);
}

/* tag line dưới cùng màn hình */

.tagline-bottom {
  position: absolute;
  bottom: 28px;
  left: 0;
  right: 0;
  margin: 0 auto;
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  background: linear-gradient(90deg, #4fd4ff, #0a8cff);
  -webkit-background-clip: text;
  color: transparent;
  text-shadow: none;
  letter-spacing: 0.18em;
  opacity: 0.3; /* 30% trong suốt, nhìn xuyên thấy nền */
}

/* ANIMATION – nhẹ nhàng giả 3D động */

@keyframes heroFloat {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(0, -10px, 0) scale(1.02); }
  100% { transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes heroGlow {
  0%   { filter: saturate(1.0) contrast(1.0) drop-shadow(0 0 18px rgba(0, 196, 255, 0.4)); }
  50%  { filter: saturate(1.1) contrast(1.1) drop-shadow(0 0 35px rgba(0, 220, 255, 0.9)); }
  100% { filter: saturate(1.0) contrast(1.0) drop-shadow(0 0 18px rgba(0, 196, 255, 0.4)); }
}

/* RESPONSIVE */


@media (max-width: 900px) {
  .top-nav { padding: 16px 20px; }
  .nav-left a, .nav-right a { margin-right: 18px; font-size: 15px; }
  .hero-title { font-size: 44px; letter-spacing: 0.14em; }

  /* xếp các nút & logo thành cột để nhìn rõ trên điện thoại */
  .buttons-row {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    gap: 14px;
  }

  .action-btn {
    width: 100%;
    max-width: 420px;
  }

  .hero-logo-3d img {
    width: 210px;
    animation-duration: 22s;
  }

  .tagline-bottom {
    font-size: 24px;
    letter-spacing: 0.14em;
    bottom: 20px;
    opacity: 0.35;
  }
}


/* --- override hero background: máy nhỏ hơn --- */
.hero-bg {
  position: absolute;
  inset: 0;
  background: #020612 url("../images/hero_neurax.jpg") center center no-repeat;
  /* thu nhỏ máy và kéo xuống một chút để chừa không gian logo phía trên */
  background-size: 62% auto;
  background-position: center 60%;
  filter: saturate(1.05) contrast(1.05)
          drop-shadow(0 0 30px rgba(0, 196, 255, 0.6));
  animation:
    heroFloat 7s ease-in-out infinite,
    heroGlow 5s ease-in-out infinite;
}

/* logo màu NeuraX dạng xiên 3D, nằm sau máy bán hàng */
.logo-3d {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 110px;
  pointer-events: none;
  z-index: 1; /* giữa nền và overlay */
}

.logo-3d img {
  width: 52vw;
  max-width: 720px;
  opacity: 0.25;
  transform:
    perspective(1400px)
    rotateZ(-18deg)
    rotateX(22deg)
    translateY(-40px);
  filter:
    drop-shadow(0 0 35px rgba(0, 196, 255, 0.85))
    drop-shadow(0 0 55px rgba(255, 122, 26, 0.75));
}

/* ẩn chữ NEURAX trắng, dùng logo màu thay thế */
.hero-title {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  overflow: hidden;
}

/* === v4 overrides === */

/* Cho phép cuộn dọc để trang About không bị cắt */
body {
  overflow-x: hidden;
  overflow-y: auto;
}

/* Hero background: máy nhỏ thêm chút, tụt xuống thấp hơn để chừa khoảng cho logo diagonal */
.hero-bg {
  position: absolute;
  inset: 0;
  background: #020612 url("../images/hero_neurax.jpg") center center no-repeat;
  background-size: 58% auto;
  background-position: 58% 63%; /* lệch về phải một chút để nhường chỗ logo bên trái */
  filter: saturate(1.05) contrast(1.05)
          drop-shadow(0 0 30px rgba(0, 196, 255, 0.65));
  animation:
    heroFloat 7s ease-in-out infinite,
    heroGlow 5s ease-in-out infinite;
}

/* Logo màu NeuraX: kê sát mép trái, xiên dài vào giữa, dạng panel 3D */
.logo-3d {
  position: absolute;
  top: 18vh;
  left: -8vw;
  z-index: 1;
  pointer-events: none;
}

.logo-3d img {
  width: 70vw;
  max-width: 980px;
  opacity: 0.32;
  transform-origin: left center;
  transform:
    perspective(1600px)
    rotateY(-35deg)
    rotateZ(-6deg)
    skewX(-4deg)
    translateY(-20px);
  filter:
    drop-shadow(0 0 26px rgba(0, 196, 255, 0.85))
    drop-shadow(0 0 40px rgba(255, 122, 26, 0.7));
}

/* Hero overlay: đẩy cụm NEURAX + nút xuống chút để không đè lên tâm logo diagonal */
.hero-overlay {
  padding-bottom: 90px;
  justify-content: flex-end;
}

/* Tagline dưới cùng giữ nguyên nhưng canh lại cho vừa mắt với layout mới */
.tagline-bottom {
  position: absolute;
  bottom: 28px;
  left: 0;
  right: 0;
  margin: 0 auto;
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  background: linear-gradient(90deg, #4fd4ff, #0a8cff);
  -webkit-background-clip: text;
  color: transparent;
  text-shadow: none;
  letter-spacing: 0.18em;
  opacity: 0.3; /* 30% trong suốt, nhìn xuyên thấy nền */
}

/* Responsive tweak cho logo diagonal trên mobile */
@media (max-width: 900px) {
  .logo-3d {
    top: 22vh;
    left: -18vw;
  }
  .logo-3d img {
    width: 110vw;
    opacity: 0.3;
    transform:
      perspective(1200px)
      rotateY(-32deg)
      rotateZ(-5deg)
      skewX(-4deg)
      translateY(-10px);
  }
}

/* === v5 overrides: bố cục giống mockup anh gửi === */

/* Máy bán hàng nhỏ hơn, nằm giữa, chừa không gian logo phía trên */
.hero-bg {
  position: absolute;
  inset: 0;
  background: #020612 url("../images/hero_neurax.jpg") center center no-repeat;
  background-size: 48% auto;          /* thu nhỏ máy */
  background-position: center 58%;    /* đẩy xuống chút */
  filter: saturate(1.05) contrast(1.05)
          drop-shadow(0 0 30px rgba(0, 196, 255, 0.7));
  animation:
    heroFloat 7s ease-in-out infinite,
    heroGlow 5s ease-in-out infinite;
}

/* Logo màu NEURAX rõ nét, nằm ngang, ở phía trên máy, giống giao diện mẫu */
.logo-main {
  position: absolute;
  top: 9vh;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  pointer-events: none;
}

.logo-main img {
  width: 52vw;
  max-width: 780px;
  opacity: 0.95;
  filter:
    drop-shadow(0 0 24px rgba(0, 196, 255, 0.9))
    drop-shadow(0 0 40px rgba(0, 0, 0, 0.9));
}

/* Ẩn chữ NEURAX text, chỉ dùng cho SEO */
.hero-title {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  overflow: hidden;
}

/* Điều chỉnh lại overlay để giống layout mockup */
.hero-overlay {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding-bottom: 90px;
}

@media (max-width: 900px) {
  .logo-main {
    top: 11vh;
  }
  .logo-main img {
    width: 80vw;
    max-width: none;
  }
  .hero-bg {
    background-size: 68% auto;
    background-position: center 60%;
  }
}

/* === v6: dùng video 3D cho máy bán hàng, quay chậm qua lại 30s === */

/* Nền hero: gradient tối, không dùng ảnh máy nữa */
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top center, #081426 0%, #020611 40%, #010309 100%);
  filter: saturate(1.0) contrast(1.02);
  animation: heroGlow 8s ease-in-out infinite;
}

/* Video máy bán hàng 3D ở chính giữa, quay qua trái / phải */
.vending-video-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -52%);
  width: 38vw;
  max-width: 620px;
  z-index: 2;
  filter: drop-shadow(0 0 26px rgba(0, 196, 255, 0.55));
}

#vending-video {
  width: 100%;
  height: auto;
  animation: rotatePingPong 30s ease-in-out infinite;
  transform-origin: center;
}

/* Quay từ phải -> trái -> phải trong 30s */
@keyframes rotatePingPong {
  0%   { transform: rotateY(16deg); }
  50%  { transform: rotateY(-16deg); }
  100% { transform: rotateY(16deg); }
}

/* Logo giữ phía trên, video và nút phía dưới vẫn như cũ */
.logo-main {
  position: absolute;
  top: 7vh;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  pointer-events: none;
}

.logo-main img {
  width: 50vw;
  max-width: 760px;
  opacity: 0.96;
  filter:
    drop-shadow(0 0 24px rgba(0, 196, 255, 0.9))
    drop-shadow(0 0 40px rgba(0, 0, 0, 0.95));
}

/* Overlay chữ + nút nằm phía trên video */
.hero-overlay {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding-bottom: 90px;
}

/* Mobile tweaks */
@media (max-width: 900px) {
  .vending-video-wrapper {
    width: 70vw;
    max-width: none;
    transform: translate(-50%, -48%);
  }

  .logo-main {
    top: 9vh;
  }

  .logo-main img {
    width: 78vw;
    max-width: none;
  }
}

/* === v7: tinh chỉnh size video & logo để khớp nhau hơn === */

/* Logo 3D mới ở giữa phía trên, rõ nét */
.logo-main {
  position: absolute;
  top: 6vh;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  pointer-events: none;
}

.logo-main img {
  width: 46vw;
  max-width: 720px;
  opacity: 0.98;
  filter:
    drop-shadow(0 0 20px rgba(0, 180, 255, 0.9))
    drop-shadow(0 0 32px rgba(0, 0, 0, 0.9));
}

/* Video máy thu nhỏ lại một chút để cân với logo */
.vending-video-wrapper {
  position: absolute;
  top: 52%;
  left: 50%;
  transform: translate(-50%, -54%);
  width: 32vw;
  max-width: 540px;
  z-index: 2;
  filter: drop-shadow(0 0 26px rgba(0, 196, 255, 0.55));
}

/* Giảm góc quay chút cho mượt hơn, khớp với phối cảnh trong video */
@keyframes rotatePingPong {
  0%   { transform: rotateY(10deg); }
  50%  { transform: rotateY(-10deg); }
  100% { transform: rotateY(10deg); }
}

/* Tagline dưới cùng vẫn giữ */
.tagline-bottom {
  position: absolute;
  bottom: 28px;
  left: 0;
  right: 0;
  margin: 0 auto;
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  background: linear-gradient(90deg, #4fd4ff, #0a8cff);
  -webkit-background-clip: text;
  color: transparent;
  text-shadow: none;
  letter-spacing: 0.18em;
  opacity: 0.3; /* 30% trong suốt, nhìn xuyên thấy nền */
}

/* === v8: logo trong suốt, làm mềm viền video + nền === */

/* Logo giữ chính giữa phía trên, dùng PNG trong suốt nên không còn ô caro */
.logo-main {
  position: absolute;
  top: 7vh;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  pointer-events: none;
}

.logo-main img {
  width: 45vw;
  max-width: 720px;
  opacity: 0.98;
  filter:
    drop-shadow(0 0 18px rgba(0, 185, 255, 0.9))
    drop-shadow(0 0 32px rgba(0, 0, 0, 0.9));
}

/* Nền hero: thêm halo nhẹ phía sau logo + máy để giảm cảm giác tách lớp */
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 25%, rgba(0, 180, 255, 0.25) 0, rgba(1, 5, 15, 0.0) 40%),
    radial-gradient(circle at 50% 70%, rgba(0, 150, 255, 0.35) 0, rgba(1, 3, 9, 1) 55%);
  filter: saturate(1.0) contrast(1.03);
  animation: heroGlow 10s ease-in-out infinite;
}

/* Vùng chứa video: bo góc, ẩn viền, blend mượt vào nền */
.vending-video-wrapper {
  position: absolute;
  top: 52%;
  left: 50%;
  transform: translate(-50%, -54%);
  width: 32vw;
  max-width: 540px;
  z-index: 2;
  border-radius: 32px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 20%, rgba(0, 210, 255, 0.32) 0, rgba(0, 10, 20, 0.96) 75%);
  box-shadow:
    0 0 26px rgba(0, 196, 255, 0.45),
    0 0 60px rgba(0, 0, 0, 0.9);
}

#vending-video {
  display: block;
  width: 100%;
  height: auto;
  animation: rotatePingPong 30s ease-in-out infinite;
  transform-origin: center;
}

/* Giữ góc quay nhỏ để không lộ biên video */
@keyframes rotatePingPong {
  0%   { transform: rotateY(8deg); }
  50%  { transform: rotateY(-8deg); }
  100% { transform: rotateY(8deg); }
}

/* === V10: Tủ bán hàng 3D bằng CSS, quay tròn như bản V9 Ultra (không dùng video) === */

/* Ẩn wrapper video cũ, thay bằng khối 3D */
.vending-video-wrapper {
  display: none !important;
}

/* Khung chứa tủ 3D – nằm giữa màn hình, có chiều sâu (perspective) */
.vending-3d-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -56%);
  width: 18vw;
  max-width: 360px;
  height: 32vw;
  max-height: 640px;
  z-index: 2;
  perspective: 1400px;
}

/* Tủ 3D: transform-style 3D, quay tròn liên tục */
.vending-3d {
  position: relative;
  width: 260px;
  height: 460px;
  transform-style: preserve-3d;
  transform-origin: center center;
  animation: cabinetSpin 26s linear infinite;
  margin: 0 auto;
}

/* Mặt tủ chung */
.vending-3d .face {
  position: absolute;
  border-radius: 18px;
  box-shadow:
    0 0 22px rgba(0, 196, 255, 0.6),
    0 0 38px rgba(0, 0, 0, 0.9);
}

/* Thông số kích thước cơ bản */
.vending-3d .front,
.vending-3d .back {
  width: 260px;
  height: 460px;
}

.vending-3d .left,
.vending-3d .right {
  width: 110px;
  height: 460px;
}

.vending-3d .top,
.vending-3d .bottom {
  width: 260px;
  height: 110px;
}

/* Front: mặt kính + viền neon */
.vending-3d .front {
  background:
    radial-gradient(circle at 50% 20%, rgba(0, 255, 255, 0.42), rgba(0, 18, 40, 0.96)),
    linear-gradient(180deg, rgba(0, 230, 255, 0.75), rgba(0, 60, 130, 0.9));
  border: 2px solid rgba(0, 230, 255, 0.9);
  box-shadow:
    0 0 40px rgba(0, 220, 255, 0.75),
    0 0 80px rgba(0, 0, 0, 0.95);
  overflow: hidden;
  transform: translateZ(55px);
}

/* Mô phỏng khung kính bên trong */
.vending-3d .front::before {
  content: "";
  position: absolute;
  inset: 14px 22px 120px 22px;
  border-radius: 14px;
  border: 2px solid rgba(0, 255, 255, 0.85);
  box-shadow:
    inset 0 0 25px rgba(0, 255, 255, 0.85),
    0 0 30px rgba(0, 0, 0, 0.85);
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.45), transparent 55%),
    radial-gradient(circle at 80% 0%, rgba(117, 255, 255, 0.55), transparent 60%),
    linear-gradient(180deg, rgba(0, 45, 95, 0.85), rgba(0, 10, 24, 0.95));
}

/* Nút PUSH */
.vending-3d .front::after {
  content: "PUSH";
  position: absolute;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%);
  padding: 10px 32px;
  border-radius: 999px;
  border: 2px solid rgba(0, 230, 255, 0.9);
  color: #dffbff;
  font-size: 14px;
  letter-spacing: 0.24em;
  text-indent: 0.24em;
  text-transform: uppercase;
  background:
    radial-gradient(circle at 50% 0%, rgba(0, 255, 255, 0.4), rgba(0, 36, 80, 0.95));
  box-shadow:
    0 0 26px rgba(0, 240, 255, 0.8),
    0 0 40px rgba(0, 0, 0, 0.95);
}

/* Mặt sau: tối hơn, ít glow */
.vending-3d .back {
  background: radial-gradient(circle at 20% 20%, rgba(0, 90, 180, 0.6), rgba(0, 8, 20, 1));
  transform: rotateY(180deg) translateZ(55px);
  box-shadow:
    0 0 18px rgba(0, 120, 255, 0.45),
    0 0 40px rgba(0, 0, 0, 0.9);
}

/* Mặt bên trái */
.vending-3d .left {
  left: -55px;
  background: linear-gradient(90deg, rgba(0, 210, 255, 0.85), rgba(0, 36, 80, 0.95));
  transform: rotateY(-90deg) translateZ(130px);
}

/* Mặt bên phải (pha cam) */
.vending-3d .right {
  right: -55px;
  background: linear-gradient(270deg, rgba(255, 122, 26, 0.9), rgba(60, 10, 0, 0.95));
  box-shadow:
    0 0 26px rgba(255, 140, 40, 0.85),
    0 0 50px rgba(0, 0, 0, 0.95);
  transform: rotateY(90deg) translateZ(130px);
}

/* Mặt trên */
.vending-3d .top {
  top: -36px;
  background: linear-gradient(180deg, rgba(0, 255, 255, 0.9), rgba(0, 36, 80, 0.98));
  transform: rotateX(90deg) translateZ(178px);
}

/* Mặt dưới */
.vending-3d .bottom {
  bottom: -36px;
  background: linear-gradient(0deg, rgba(0, 12, 28, 1), rgba(0, 60, 120, 0.9));
  transform: rotateX(-90deg) translateZ(178px);
}

/* Quay mượt 360° quanh trục Y – giống cảm giác V9 Ultra */
@keyframes cabinetSpin {
  0%   { transform: rotateY(0deg); }
  100% { transform: rotateY(360deg); }
}

/* Logo NeuraX: xoay nhẹ & glow nhịp nhàng */
@keyframes logoTilt {
  0%   { transform: rotateY(-10deg) rotateX(8deg); }
  25%  { transform: rotateY(-4deg) rotateX(5deg); }
  50%  { transform: rotateY(6deg)  rotateX(4deg); }
  75%  { transform: rotateY(2deg)  rotateX(6deg); }
  100% { transform: rotateY(-10deg) rotateX(8deg); }
}

@keyframes logoGlow {
  0%, 100% {
    filter:
      drop-shadow(0 3px 4px rgba(0,0,0,0.95))
      drop-shadow(0 0 14px rgba(20,184,255,0.7))
      drop-shadow(0 0 26px rgba(20,184,255,0.45));
  }
  50% {
    filter:
      drop-shadow(0 3px 4px rgba(0,0,0,0.95))
      drop-shadow(0 0 22px rgba(20,244,255,0.95))
      drop-shadow(0 0 40px rgba(20,184,255,0.75));
  }
}

@keyframes logoSweep {
  0%, 15% {
    opacity: 0;
    transform: translateX(-40%);
  }
  35%, 55% {
    opacity: 0.9;
    transform: translateX(18%);
  }
  75%, 100% {
    opacity: 0;
    transform: translateX(40%);
  }
}


/* Mobile: scale tủ cho vừa màn hình */
@media (max-width: 900px) {
  .vending-3d-wrapper {
    width: 52vw;
    height: 82vw;
    max-width: none;
    max-height: none;
    transform: translate(-50%, -54%);
  }

  .vending-3d {
    transform-origin: center center;
    transform: scale(0.9);
  }
}

/* === Hero buttons tách hai bên & logo 3D ở giữa === */

.buttons-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 100%;
  margin: 0 0 10px 0;
  padding: 0 40px;
}



.hero-logo-3d {
  width: 220px;
  height: 90px;
  flex-shrink: 0;
  background-image: url("../images/logo_neurax_color.png");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  opacity: 0.15;
  filter: drop-shadow(0 0 12px rgba(0,196,255,0.4))
          drop-shadow(0 0 26px rgba(0,0,0,0.6));
  transform-origin: center center;
  animation: cabinetSpin 26s linear infinite;
  transform-style: preserve-3d;
}


/* Đảm bảo nút hai bên không quá to khi co giãn */
.action-btn-left,
.action-btn-right {
  flex: 1 1 0;
}

/* Trên mobile, xếp lại cho dễ đọc: logo lên trên, 2 nút ở dưới dạng cột */
@media (max-width: 900px) {
  
.buttons-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 100%;
  margin: 0 0 10px 0;
  padding: 0 40px;
}


  
.hero-logo-3d {
  width: 220px;
  height: 90px;
  flex-shrink: 0;
  background-image: url("../images/logo_neurax_color.png");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  opacity: 0.15;
  filter: drop-shadow(0 0 12px rgba(0,196,255,0.4))
          drop-shadow(0 0 26px rgba(0,0,0,0.6));
  transform-origin: center center;
  animation: cabinetSpin 26s linear infinite;
  transform-style: preserve-3d;
}


  .action-btn-left,
  .action-btn-right {
    width: 100%;
  }
}

/* === V3 tweak: buttons sát cạnh, logo chữ nổi 3D ở giữa === */

/* Kéo hai nút ra gần sát cạnh màn hình */
.buttons-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 100%;
  margin: 0 0 10px 0;
  padding: 0 40px;
}

/* Nút hai bên co giãn nhưng không tràn */
.action-btn-left,
.action-btn-right {
  flex: 1 1 0;
  max-width: 420px;
}

/* Logo chữ NEURAX dạng 3D, không dùng ảnh nền nữa */
.hero-logo-3d {
  flex: 0 0 auto;
  min-width: 230px;
  text-align: center;
  font-weight: 800;
  font-size: 40px;
  letter-spacing: 0.32em;
  text-indent: 0.32em;
  text-transform: uppercase;
  color: transparent;
  background-image: linear-gradient(180deg, #5ee7ff, #16a3ff 55%, #fb923c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 4px 0 rgba(4, 30, 48, 0.9))
          drop-shadow(0 0 18px rgba(34, 211, 238, 0.8));
  text-shadow:
    0 1px 0 rgba(15, 23, 42, 0.9),
    0 2px 0 rgba(15, 23, 42, 0.85),
    0 3px 0 rgba(15, 23, 42, 0.8),
    0 4px 6px rgba(0, 0, 0, 0.9);
  transform-origin: center center;
  transform-style: preserve-3d;
  animation: cabinetSpin 26s linear infinite;
  pointer-events: none;
}

/* Mobile: xếp logo trên, hai nút dưới cho dễ bấm */
@media (max-width: 900px) {
  .buttons-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 100%;
  margin: 0 0 10px 0;
  padding: 0 40px;
}

  .hero-logo-3d {
    font-size: 32px;
    letter-spacing: 0.26em;
    text-indent: 0.26em;
    animation-duration: 22s;
  }

  .action-btn-left,
  .action-btn-right {
    max-width: none;
    width: 100%;
  }
}


/* Logo NeuraX chuẩn màu, đặt ảnh PNG trong suốt, quay cùng tủ */
.hero-logo-3d {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 260px;
}

.hero-logo-3d {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 260px;
  position: relative;
}

.hero-logo-3d::before {
  content: "";
  position: absolute;
  inset: -18px;
  border-radius: 40px;
  background:
    radial-gradient(circle at 0% 50%, rgba(0, 196, 255, 0.0), transparent 55%),
    radial-gradient(circle at 50% 50%, rgba(0, 196, 255, 0.35), transparent 60%),
    radial-gradient(circle at 100% 50%, rgba(255, 122, 26, 0.55), transparent 55%);
  mix-blend-mode: screen;
  opacity: 0;
  pointer-events: none;
  animation: logoSweep 5.2s ease-in-out infinite;
}

.hero-logo-3d img {
  width: 240px;
  height: auto;
  object-fit: contain;
  transform-origin: center center;
  transform-style: preserve-3d;
  animation:
    logoTilt 24s ease-in-out infinite,
    logoGlow 6s ease-in-out infinite;
  filter:
    drop-shadow(0 3px 4px rgba(0,0,0,0.9))
    drop-shadow(0 0 18px rgba(20,184,255,0.9))
    drop-shadow(0 0 30px rgba(20,184,255,0.6));
}

/* Mobile: logo nhỏ lại, nút xếp cột */
@media (max-width: 900px) {
  .buttons-row {
    flex-direction: column;
    padding: 0 16px;
    gap: 16px;
  }

  .hero-logo-3d {
    min-width: 0;
  }

  .hero-logo-3d img {
    width: 200px;
    animation-duration: 22s;
  }
}


/* ==== OVERRIDE: Logo NEURAX giữ nguyên màu & kiểu gốc ==== */
.hero-logo-3d {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 260px;
}

.hero-logo-3d img {
  width: 260px;
  height: auto;
  object-fit: contain;
  transform-origin: center center;
  transform-style: preserve-3d;
  animation: cabinetSpin 26s linear infinite;
  /* Không chỉnh màu, không gradient, giữ nguyên đúng ảnh gốc */
  filter: none;
  opacity: 1;
}


/* === Hero buttons & 3D NeuraX logo (extruded + neon) === */
.buttons-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 100%;
  margin: 0 0 10px 0;
  padding: 0 40px;
}

.action-btn-left,
.action-btn-right {
  flex: 1 1 0;
  max-width: 420px;
}

.hero-logo-3d {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 260px;
}

.hero-logo-3d img {
  width: 260px;
  height: auto;
  object-fit: contain;
  transform-origin: center center;
  transform-style: preserve-3d;
  animation: cabinetSpin 26s linear infinite;
  /* neon glow xung quanh nhưng giữ nguyên màu logo */
  filter:
    drop-shadow(0 4px 3px rgba(0,0,0,0.85))           /* bóng đổ tạo độ dày */
    drop-shadow(0 0 12px rgba(34,211,238,0.9))        /* viền neon gần */
    drop-shadow(0 0 24px rgba(56,189,248,0.8))        /* halo rộng hơn */
    drop-shadow(0 0 40px rgba(56,189,248,0.35));      /* ánh sáng xa */
}

/* Mobile layout */
@media (max-width: 900px) {
  .buttons-row {
    flex-direction: column;
    padding: 0 16px;
    gap: 16px;
  }

  .hero-logo-3d {
    min-width: 0;
  }

  .hero-logo-3d img {
    width: 210px;
    animation-duration: 22s;
  }

  .action-btn-left,
  .action-btn-right {
    max-width: none;
    width: 100%;
  }
}


/* Lưới 7x3 ô sản phẩm trên mặt kính tủ */
.vending-3d .front .front-slots {
  position: absolute;
  inset: 22px 30px 130px 30px; /* ăn theo khung kính ::before nhưng chừa mép */
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(7, 1fr);
  gap: 8px 10px;
  pointer-events: none;
}

.vending-3d .front .front-slots .slot-cell {
  border-radius: 6px;
  border: 1.4px solid rgba(0, 255, 255, 0.35);
  box-shadow:
    0 0 8px rgba(0, 220, 255, 0.4),
    inset 0 0 6px rgba(0, 160, 255, 0.35);
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.16), transparent 60%),
    radial-gradient(circle at 50% 80%, rgba(0, 120, 255, 0.28), transparent 70%);
  opacity: 0.95;
}

/* trên màn hình nhỏ, thu gọn một chút cho đỡ dày */
@media (max-width: 900px) {
  .vending-3d .front .front-slots {
    inset: 18px 24px 120px 24px;
    gap: 6px 8px;
  }

  .vending-3d .front .front-slots .slot-cell {
    border-width: 1.2px;
  }
}


/* Mobile: đẩy khối nút + logo lên cao hơn để luôn nằm ngay trên nắp dưới */
@media (max-width: 900px) {
  .hero-overlay {
    padding-bottom: 130px;
  }
}

/* =============================
   ABOUT PAGE – 3D LOGO BACKDROP
   ============================= */
body.page-about{
  position: relative;
  overflow-x: hidden;
}

/* 3D logo watermark - fixed background chìm */
body.page-about::before{
  content: "";
  position: fixed;
  inset: 0;
  background: url("assets/images/logo_neurax_3d.png") center center / min(1200px, 88vw) auto no-repeat;
  opacity: 0.08;
  transform: translateY(0);
  filter:
    drop-shadow(0 0 30px rgba(0, 210, 255, .25))
    drop-shadow(0 0 42px rgba(255, 140, 0, .15));
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 0;
  animation: aboutGlowPulse 8s ease-in-out infinite;
}

@keyframes aboutGlowPulse {
  0%, 100% {
    opacity: 0.08;
    filter:
      drop-shadow(0 0 30px rgba(0, 210, 255, .25))
      drop-shadow(0 0 42px rgba(255, 140, 0, .15));
  }
  50% {
    opacity: 0.12;
    filter:
      drop-shadow(0 0 40px rgba(0, 210, 255, .35))
      drop-shadow(0 0 55px rgba(255, 140, 0, .22));
  }
}

/* Glow nền nhẹ - bỏ vạch neon, chỉ giữ glow */
body.page-about::after{
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
  background-image:
    radial-gradient(60% 45% at 50% 18%, rgba(0, 210, 255, .20), transparent 62%),
    radial-gradient(45% 35% at 65% 55%, rgba(255, 140, 0, .12), transparent 60%);
  background-size:
    100% 100%,
    100% 100%;
  background-position:
    50% 0%,
    50% 0%;
  animation: aboutGlowFloat 10s ease-in-out infinite;
}

@keyframes aboutGlowFloat {
  0%, 100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

/* Keep all content above the backdrop */
body.page-about .top-nav,
body.page-about main,
body.page-about section,
body.page-about footer,
body.page-about .container{
  position: relative;
  z-index: 2;
}

/* Ensure page content renders above the fixed backdrop layers */
body.page-about > *{
  position: relative;
  z-index: 2;
}

/* Contact box style - như trong ảnh */
body.page-about .contact-box {
  margin-top: 24px;
  padding: 20px 24px;
  border-radius: 12px;
  background: radial-gradient(circle at 0% 0%, rgba(0, 200, 255, 0.16), transparent 65%);
  border: 1px solid rgba(0, 200, 255, 0.4);
  max-width: 960px;
  box-shadow:
    0 0 20px rgba(0, 200, 255, 0.15),
    inset 0 0 20px rgba(0, 200, 255, 0.05);
}

body.page-about .contact-box p {
  margin: 6px 0;
  color: #d7ecff;
  font-size: 16px;
  line-height: 1.6;
}

body.page-about .contact-label {
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #cbe9ff;
  margin-bottom: 8px;
  font-size: 17px;
}

body.page-about .contact-box strong {
  color: #ffffff;
  font-weight: 600;
}

/* Responsive cho contact box */
@media (max-width: 900px) {
  body.page-about .contact-box {
    padding: 16px 18px;
    margin-top: 20px;
  }
  
  body.page-about .contact-box p {
    font-size: 15px;
  }
}
