/* Custom Fonts & Base */
body {
    font-family: 'Inter', sans-serif;
    background-color: #F4F1EE;
    color: #1A1A1A;
}

.serif {
    font-family: 'Playfair Display', serif;
}

/* Header Sticky Logic */
header {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Trạng thái khi cuộn chuột (sẽ dùng JS thêm class này) */
header.scrolled {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    background-color: rgba(244, 241, 238, 0.8); /* Màu nền trùng với body nhưng trong suốt */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Image Effects */
.reveal-img {
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-img:hover {
    transform: scale(1.02);
    filter: grayscale(0);
}

.gray-filter {
    filter: grayscale(0.5);
}

/* Nav Link Hover */
.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: #1A1A1A;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}
.sticky-nav-item {
  background-color: #F4F1EE; /* Trùng màu nền body */
  border-top: 1px solid rgba(0,0,0,1);
  transition: all 0.5s ease;
  z-index: 20;
}

/* Khoảng cách dính tăng dần để tạo hiệu ứng xếp lớp */
.nav-1 { top: 60px; }
.nav-2 { top: 110px; }
.nav-3 { top: 160px; }
.nav-4 { top: 210px; }

.sticky-nav-item:hover {
  background-color: #000;
  color: #fff;
}
.sticky-section-full {
  position: relative;
  /* Loại bỏ padding ngang của container cha nếu cần để tràn viền */
}

.sticky-full-container {
  position: relative;
  width: 100%;
}

.sticky-card-wide {
  position: sticky;
  top: 0;
  width: 100%;    /* Chiều ngang 100% */
  height: 100vh;  /* Chiều dọc 100% màn hình */
  overflow: hidden;
  display: flex;
  background-color: #F4F1EE;
  /* Hiệu ứng bóng đổ ngược lên trên để tạo chiều sâu khi các lớp chồng lên nhau */
  box-shadow: 0 -20px 50px rgba(0,0,0,0.1);
}

/* Thêm hiệu ứng chuyển tiếp cho ảnh khi thẻ được kích hoạt */
.sticky-card-wide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.5s ease;
}

.sticky-card-wide:hover img {
  transform: scale(1.05);
}