:root {
  --cream: #FAF9F6;
  --blush: #C9A227; /* Màu chữ nhấn */
  --blush-soft: #f4dcd6;
  --taupe: #5c5957; /* Màu chữ chính */
  --bg-color: #e6d6d1;
  --text-color: var(--taupe);
  --font-serif: "Patrick Hand", cursive, sans-serif;
  --font-sans: "Inter", "Helvetica Neue", system-ui, sans-serif;
}

/* Chế độ ban đêm */
body.night-mode {
  --bg-color: #050a15;
  --text-color: var(--cream);
  --taupe: #FAF9F6; /* Đảo màu chữ taupe thành sáng */
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-sans);
  font-weight: 300;
  letter-spacing: 0.01em;
  touch-action: manipulation; /* Tối ưu cảm ứng mobile */
  transition: background-color 1s ease, color 1s ease;
  overflow-x: hidden;
}

h1, h2, h3, h4, .font-serif {
  font-family: var(--font-serif);
  font-weight: 400;
}

a { text-decoration: none; color: inherit; }

/* Các class tiện ích tự viết lại từ Tailwind */
.text-center { text-align: center; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.relative { position: relative; }
.absolute { position: absolute; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.min-h-screen { min-height: 100vh; }
.italic { font-style: italic; }
.text-blush { color: var(--blush); }

/* Nút Arch 3D (Samsung 3D Button) từ code cũ của bạn */
.nav-arch {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 9999px 9999px 9999px 9999px / 60% 60% 40% 40%;
  border: 1px solid rgba(201, 162, 39, 0.4);
  background: rgba(250, 249, 246, 0.75);
  backdrop-filter: blur(8px);
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 4px 15px rgba(92, 89, 87, 0.1);
  width: 200px;
  height: 300px;
  margin: 10px;
}

body.night-mode .nav-arch {
  border: 1px solid rgba(250, 249, 246, 0.2);
  background: rgba(11, 22, 44, 0.6);
}

.hover-arch-lift:hover {
  box-shadow: 0 15px 35px 5px rgba(201, 162, 39, 0.35), inset 0 2px 6px rgba(255, 255, 255, 0.6);
  transform: translateY(-8px) scale(1.02);
}

/* Menu Top & Footer */
.site-nav { 
  position: fixed; /* ĐÃ SỬA: Đổi từ absolute sang fixed để ghim dính lên top */
  top: 0; left: 0; right: 0; 
  padding: 1.5rem 2rem; /* Thu nhỏ đệm trên/dưới một xíu cho menu thanh thoát hơn khi lướt */
  z-index: 99; /* Đẩy lớp này lên cao nhất để không bị bất kỳ ảnh nào đè lên */
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  
/* ĐÃ SỬA: Bỏ màu nền, chỉ giữ lại hiệu ứng kính mờ (blur) */
  background: transparent; 
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  
  /* Bỏ viền nếu bồ muốn nó tan biến hoàn toàn vào trang web */
  border-bottom: none; 
  transition: all 0.5s ease;
}

/* Xóa luôn phần đổi màu nền của night-mode cho menu nếu bồ muốn nó trong suốt tuyệt đối */
body.night-mode .site-nav {
  background: transparent; 
  border-bottom: none;
}

.menu-links { display: none; gap: 2rem; text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.2em; }
@media (min-width: 768px) { .menu-links { display: flex; } }
.menu-links a:hover { color: var(--blush); }

/* Animation từ code cũ */
@keyframes fade-up { 0% { opacity: 0; transform: translateY(20px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes letter-rise { 0% { opacity: 0; transform: translateY(30px); filter: blur(8px); } 100% { opacity: 1; transform: translateY(0); filter: blur(0); } }

.animate-fade-up { animation: fade-up 1.2s ease-out both; }
.animate-letter-rise { animation: letter-rise 1.6s cubic-bezier(0.22, 1, 0.36, 1) both; }

/* Magic Cursor & Particles */
.magic-particle {
  pointer-events: none;
  position: fixed;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: mouse-trail 0.7s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes mouse-trail {
  0% { opacity: 0.8; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(var(--drift-x, -50%), calc(-50% + 50px)) scale(0.2); }
}

/* --- LƯỚI ẢNH GALLERY CỐ ĐỊNH (NGAY HÀNG THẲNG LỐI) --- */
.gallery-section { padding: 4rem 1rem; max-width: 1200px; margin: 0 auto; }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Mobile 3 cột */
    gap: 4px;
}
@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(6, 1fr); /* PC 6 cột */
        gap: 16px;
    }
}

.gallery-item {
    /* CHỖ CHỈNH SỐ 1: BẠN SỬA TỈ LỆ ẢNH Ở ĐÂY */
    /* - Nhập 1 / 1 nếu thích ảnh vuông vức */
    /* - Nhập 3 / 4 nếu thích ảnh dọc */
    aspect-ratio: 1 / 1; 

    overflow: hidden;
    cursor: pointer;
    border-radius: 12px;
    background-color: #2a2a2a;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    
    /* CHỖ CHỈNH SỐ 2: BẠN SỬA ĐỘ CẮT TRÊN/DƯỚI Ở ĐÂY (thay số 5%) */
    /* - 0%: Lấy sát đỉnh đầu (cắt dồn hết phần thừa xuống dưới chân) */
    /* - 5%: Chừa 1 chút xíu không gian trên đỉnh đầu cho thoáng, vẫn giữ mặt */
    /* - 50%: Cắt đều cả đầu lẫn chân (dễ bị mất mặt nhất) */
    object-position: center 5%; 
    
    transition: transform 0.6s ease-out;
}

.gallery-item:hover img { 
    transform: scale(1.1); 
}

/* --- KHU VỰC VIDEO --- */
.video-section { padding: 4rem 1rem; text-align: center; background: rgba(201, 162, 39, 0.05); }
.video-container {
    max-width: 800px;
    margin: 2rem auto;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    background: #000;
}
.video-container iframe, .video-container video { width: 100%; height: 100%; border: none; }

/* =========================================
   HIỆU ỨNG THỜI TIẾT (TUYẾT NGÀY / ĐOM ĐÓM ĐÊM)
========================================= */
@keyframes firefly {
  0%, 100% { opacity: 0; transform: translate3d(0, 0, 0) scale(0.7); }
  50% { opacity: var(--max-opacity, 0.8); transform: translate3d(var(--drift, 0px), var(--drift-y, -20px), 0) scale(1.2); }
}

.particle-night {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #fffbd6 0%, #fef08a 40%, transparent 80%);
  box-shadow: 0 0 8px #fef08a, 0 0 15px #fef08a;
  pointer-events: none;
  animation: firefly ease-in-out infinite;
}

@keyframes dandelion {
  0% { transform: translate3d(0, -10vh, 0) scale(0.85); opacity: 0; }
  10% { opacity: var(--max-opacity, 1); }
  90% { opacity: var(--max-opacity, 1); }
  100% { transform: translate3d(var(--drift, 0px), 110vh, 0) scale(1); opacity: 0; }
}

.particle-day {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255,255,255,1) 0%, rgba(255,255,255,0.9) 40%, transparent 75%);
  box-shadow: 0 0 5px rgba(92, 89, 87, 0.25), 0 0 12px rgba(201, 162, 39, 0.4);
  pointer-events: none;
  animation: dandelion linear infinite;
}

/* --- Lệnh dàn hàng ngang cho khối nút bấm trên màn hình PC --- */
@media (min-width: 768px) {
    .md\:flex-row { 
        flex-direction: row !important; 
    }
    .md\:flex-wrap { 
        flex-wrap: wrap; 
    }
}

/* --- 1. SƯƠNG MÙ: Ép đặc lại từ 85% để "nuốt" luôn mép cắt của ảnh --- */
.hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  /* Chỉnh lại: Dày màu nền từ mức 85% trở xuống để chôn vùi cái viền ảnh dưới đáy */
  background: linear-gradient(to bottom, transparent 0%, transparent 40%, var(--bg-color) 85%, var(--bg-color) 100%);
  transition: background 1s ease;
}

body.night-mode .hero-overlay {
  /* Ban đêm cũng ép đặc lại từ 85% */
  background: linear-gradient(to bottom, transparent 0%, rgba(5, 10, 21, 0.6) 50%, var(--bg-color) 90%, var(--bg-color) 100%);
}

/* --- 2. XÓA SỔ 3 KHÚC: Ép các phần bên dưới phải trong suốt 100% --- */
.gallery-section, .video-section { 
  background: transparent !important; 
  background-color: transparent !important;
  border: none !important;
}

/* Thêm xíu CSS cho phần text của khu vực Video để nó canh giữa đẹp hơn */
.video-section {
  padding: 4rem 1rem; 
  text-align: center;
}
