/* ================= RESET ================= */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #000;
  font-family: 'Montserrat', sans-serif;

  /* 🔥 FIX ANDROID SWIPE */
  overflow-x: hidden;
  overflow-y: hidden;
  touch-action: pan-x pan-y;
  overscroll-behavior: none;
}

/* ❌ KHÔNG khóa touch-action trên desktop nữa */
/* @media (min-width: 769px) {
  html, body {
    touch-action: none;
  }
} */

/* ================= LOGO ================= */
.logo {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 9999;
}

.logo img {
  width: 70px;
  height: auto;
}

/* ================= SECTION ================= */
.section {
  position: absolute;
  width: 100vw;
  height: 100dvh;

  /* 🔥 FIX ANDROID */
  overflow-x: hidden;
  overflow-y: hidden;
  touch-action: pan-x pan-y;
  will-change: transform;
}

/* ================= HERO ================= */

.hero-title {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%) translateY(40px);
  opacity: 0;

  z-index: 6;
  text-align: center;
  color: #fff;
  font-family: 'Cormorant Garamond', serif;
  text-shadow: 0 12px 40px rgba(0,0,0,.6);
  pointer-events: none;

  transition: .8s cubic-bezier(.22,.61,.36,1);
}

.section.active .hero-title {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.hero-index {
  display: block;
  font-size: 40px;
  letter-spacing: 4px;
  opacity: .75;
  margin-bottom: 12px;
}

.hero-text {
  display: block;
  font-size: clamp(2.6rem, 7vw, 6.5rem);
  font-weight: 600;
  letter-spacing: 3px;
  line-height: 1.05;
}

/* ================= SLIDER ================= */
.horizontal {
  display: flex;
  width: 300vw;
  height: 100%;

  /* 🔥 QUAN TRỌNG */
  touch-action: pan-x;
  will-change: transform;
}

.slide {
  width: 100vw;
  height: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
}

.slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,.15),
    rgba(0,0,0,.55)
  );
}

/* ================= SWIPE DOWN INDICATOR ================= */
.swipe-down {
  position: absolute;
  left: 50%;
  bottom: 225px;
  transform: translateX(-50%);
  z-index: 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,.85);
  font-size: 11px;
  letter-spacing: 2px;
  opacity: .75;
  pointer-events: none;
}

.swipe-down svg {
  width: 22px;
  height: 22px;
  animation: bounceArrow 1.4s infinite;
}

@keyframes bounceArrow {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ================= INFO BOX ================= */
.info-box {
  position: absolute;
  left: 50%;
  bottom: 18%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 620px;
  z-index: 7;
}

.toggle-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  background: rgba(255,255,255,.22);
  backdrop-filter: blur(18px);
  padding: 16px 24px;
  border-radius: 26px;
  text-align: center;
  color: #fff;
  box-shadow: 0 22px 45px rgba(0,0,0,.4);
}

.toggle-content {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-10px);
  transition: .45s ease;
  background: rgba(255,255,255,.26);
  backdrop-filter: blur(22px);
  margin-top: 14px;
  padding: 0 22px;
  border-radius: 26px;
}

.info-box.active 

.toggle-content {
  max-height: 320px;
  opacity: 1;
  transform: translateY(0);
  padding: 20px 22px;
}



.toggle-content h4 {
  font-size: 12px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #ffd369;
  margin: 12px 0 6px;
}

.toggle-content p {
  font-size: 14px;
  color: #f8fafc;
  line-height: 1.6;
}

/* ================= BUTTON ================= */
/* ================= BUTTON ================= */
.buttons {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%) translateY(30px) scale(.96);
  opacity: 0;

  display: flex;
  gap: 14px;
  z-index: 8;

  transition: .6s cubic-bezier(.22,.61,.36,1);
}

/* khi section active */
.section.active .buttons {
  transform: translateX(-50%) translateY(0) scale(1);
  opacity: 1;
}

/* ===== BUTTON ITEM ===== */
.buttons a {
  padding: 14px 30px;
  background: rgba(255,255,255,.95);
  color: #000;
  text-decoration: none;
  border-radius: 999px;

  font-size: 13px;
  letter-spacing: 1px;

  box-shadow: 0 18px 40px rgba(0,0,0,.35);

  transition:
    transform .25s ease,
    box-shadow .25s ease,
    background .25s ease;
}

/* hover desktop */
.buttons a:hover {
  transform: translateY(-3px);
  box-shadow: 0 26px 60px rgba(0,0,0,.45);
  background: #fff;
}

/* tap mobile */
.buttons a:active {
  transform: translateY(0) scale(.96);
  box-shadow: 0 14px 28px rgba(0,0,0,.35);
}

.swipe-down {
  transition: opacity .3s ease, transform .3s ease;
}

.swipe-down.hidden {
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
}


/* ================= MOBILE ================= */
@media (max-width: 768px) {

  .logo img {
    width: 50px;
  }

  .hero-title {
    top: 12%;
    width: 94%;
  }

  .hero-index {
    font-size: 40px;
    letter-spacing: 3px;
    margin-bottom: 10px;
  }

  .hero-text {
    font-size: clamp(4.2rem, 11vw, 4.6rem);
    line-height: 1.02;
    letter-spacing: 1.5px;
  }

  .buttons {
    width: 82%;
    bottom: 45px;
    justify-content: center;
    gap: 16px;
  }

  .buttons a {
    flex: 1;
    text-align: center;
    padding: 18px 0;
    font-size: 15px;
    letter-spacing: 1.2px;
  }
}
