/* CSS Variables */
:root {
  --color-primary: #d38c37;
  --color-primary-darker: #b6752f;
  --color-background: #1f1f1f;
  --color-component-bg: #252525;
  --color-text-light: #a0a0a0;
  --color-text-white: #fff;
  --color-text-muted: #888;

  --radius-sm: 15px;
  --radius-md: 30px;

  --font-size-base: 0.8rem;
  --letter-spacing-base: 0.5;
  --line-height-base: 1.4;
  --font-family-base: Roboto Condensed, Arial, sans-serif;
  --gap-base: 2rem;

  /* Responsive Variables */
  --header-height: 100px;
  --section-padding: 40px;
  --container-padding: 2rem;
  --font-size-h1: 3rem;
  --font-size-h2: 2.2rem;
  --font-size-h3: 1.6rem;
  --font-size-h4: 1.4rem;
  --font-size-large: 1.5rem;
  --font-size-normal: 1.2rem;
  --font-size-small: 1.1rem;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body,
html {
  font-family: var(--font-family-base);
  color: var(--color-text-white);
  background-color: var(--color-background);
}

/* Common Utility Classes */
.highlight {
  color: var(--color-primary);
}

/* Mobile Menu Toggle - Hidden on Desktop */
.mobile-menu-toggle {
  display: none;
}

/* SECTION 1 */
.first-section {
  min-height: 100vh;
  width: 100%;
  position: relative;
  overflow: hidden;
}

/* Video Background */
#bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.1s ease-in;
}

#bg-video.is-loaded {
  opacity: 1;
}

/* Video overlay */
.first-section::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.2);
  z-index: 1;
}

/* Gradient Overlay */
.first-section::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(to top, var(--color-background) 10%, transparent);
  z-index: 2;
}

.first-section-text {
  position: absolute;
  bottom: 60px;
  left: 2rem;
  max-width: 550px;
  z-index: 3;
}

.first-section-text h2 {
  font-size: var(--font-size-h1);
  font-weight: 500;
  letter-spacing: var(--letter-spacing-base);
  font-family: var(--font-family-base);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  margin-bottom: var(--line-height-base);
}

.first-section-text p {
  font-size: var(--font-size-large);
  line-height: var(--line-height-base);
  font-weight: 500;
  letter-spacing: var(--letter-spacing-base);
  font-family: var(--font-family-base);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* NAVIGATION & HEADER */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem var(--container-padding);
  z-index: 10;
  height: var(--header-height);
  max-height: 120px;
  background-color: rgba(25, 25, 25, 0.3);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.5s ease-in-out;
}

.main-header.is-hidden {
  transform: translateY(-100%);
}

/* Logo */
.logo-image {
  width: 100px;
  height: auto;
  object-fit: contain;
}

/* Navigation Menu */
.navigation-menu {
  display: flex;
  align-items: center;
  gap: var(--gap-base);
}

.main-nav ul {
  display: flex;
  font-family: var(--font-family-base);
  list-style: none;
  font-size: var(--font-size-base);
  gap: 3rem;
}

.main-nav a {
  color: var(--color-text-white);
  text-decoration: none;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  transition: color 0.3s ease;
  position: relative;
  padding-bottom: 5px;
}

/* Navigation Hover Effect */
.main-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-text-white);
  transition: width 0.3s ease-out;
}

.main-nav a:hover::after {
  width: 100%;
  /* đường kẻ ngang xuất hiện khi hover */
}

/* Contact Button */
.cta-button {
  background-color: var(--color-primary);
  color: var(--color-text-white);
  padding: 0.8rem 2.5rem;
  border-radius: var(--radius-md);
  text-transform: uppercase;
  font-size: var(--font-size-base);
  letter-spacing: 1px;
  border: none;
  cursor: pointer;
  font-family: var(--font-family-base);
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: var(--color-primary-darker);
}

/* Contact Dropdown Container */
.contact-dropdown {
  position: relative;
  display: inline-block;
}

/* Contact Dropdown Menu */
.contact-dropdown-menu {
  position: absolute;
  top: 60px;
  left: 0;
  right: 0;
  background: transparent;
  padding: 8px 0;
  margin-top: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 150;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-dropdown.active .contact-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Contact Dropdown Items */
.contact-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.8rem 1.5rem;
  background: #252525cc;
  backdrop-filter: blur(5px);
  color: var(--color-text-white);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: all 0.5s ease;
  border-radius: var(--radius-md);
  font-family: var(--font-family-base);
  box-sizing: border-box;
  text-transform: uppercase;
}

.contact-dropdown-item:hover {
  color: var(--color-primary);
  transform: translateY(-5px);
}

.contact-dropdown-item i {
  font-size: 1.2rem;
  text-align: center;
}

.contact-dropdown-item span {
  flex: 1;
  align-items: center;
  justify-content: center;
}

/* Language Switcher */
.divider {
  display: inline-block;
  width: 0.7px;
  height: 15px;
  background: var(--color-text-white);
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-family: var(--font-family-base);
}

.lang-switcher a {
  color: var(--color-text-white);
  text-decoration: none;
  font-size: var(--font-size-base);
}

/* SECTION 2 */
.second-section {
  width: 100%;
  position: relative;
  margin: var(--header-height) 0 100px 0;
  padding: 60px 0;
}

.second-section-content {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 0 2rem;
}

.second-section-text {
  text-align: center;
  max-width: 80%;
  width: 90%;
  z-index: 2;
  font-family: var(--font-family-base);
  padding: 1.2rem 1rem;
}

/* Trạng thái ban đầu của các đoạn văn bản: ẩn đi */
.second-section-text>p {
  opacity: 0;
  transform: translateX(-35px);
  /* di chuyển sang trái */
  transition: opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Khi section được cuộn tới, các đoạn văn bản sẽ hiện ra */
.second-section-text.is-visible>p {
  opacity: 1;
  transform: translateX(0);
  /* di chuyển text về vị trí ban đầu */
}

/* Thêm độ trễ cho văn bản thứ hai để nó xuất hiện sau */
.second-section-text.is-visible>p:last-child {
  transition-delay: 0.5s;
}

.highlight {
  color: var(--color-primary);
}

.second-section-text .large-text {
  font-size: var(--font-size-h2);
  line-height: var(--line-height-base);
  margin-bottom: 0.7rem;
}

.second-section-text .normal-text {
  font-size: var(--font-size-normal);
  line-height: var(--line-height-base);
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 30px;
}

.second-section-image {
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.8s,
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.8s;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.second-section-image.is-visible {
  opacity: 1;
  transform: scale(1);
}

.second-section-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  border-radius: var(--radius-md);
  object-position: center;
}

/* ===== SECTION 3 ===== */
.scroll-video-section {
  min-height: 200vh;
  /* Giảm từ 300vh xuống 200vh để dừng sớm hơn */
  background-color: var(--color-background);
  position: relative;
  margin-top: 80px;
  --scroll-progress: 0;
}

.scroll-video-sticky-wrapper {
  height: 100vh;
  width: 100%;
  position: sticky;
  top: 0;
  overflow: hidden;
}

.video-wrapper {
  position: absolute;
  /* Định vị tuyệt đối để có thể di chuyển tự do */
  top: calc(10px + 70px * var(--scroll-progress));
  left: calc(5px + (40vw - 20px + 0.3rem - 5px) * var(--scroll-progress));
  width: calc((100vw - 30px) - (40vw - 20px + 0.3rem + 5px) * var(--scroll-progress));
  height: calc((100vh - 10px) - 90px * var(--scroll-progress));
  border-radius: var(--radius-md);
  overflow: hidden;
  z-index: 10;
}

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

.scroll-video-title {
  position: absolute;
  font-size: var(--font-size-h1);
  font-family: var(--font-family-base);
  line-height: 1.2;
  z-index: 20;
  transition: top 0.5s ease, left 0.5s ease, font-size 0.5s ease, text-shadow 0.5s ease;
  top: 30%;
  left: 30%;
  /* Dịch sang trái một chút so với vị trí trung tâm */
  transform: translate(-50%, -50%);
  color: var(--color-text-white);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Khi cuộn, di chuyển "lập tức" lên góc trái và chuyển màu đột ngột */
.scroll-video-section.is-active-scroll .scroll-video-title {
  top: 10px;
  left: 40px;
  transform: translate(0, 0);
  color: var(--color-primary);
  font-size: 2rem;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5), 0 0 10px rgba(211, 140, 55, 0.3);
  /* Chuyển thành màu vàng đột ngột và giảm kích thước chữ */
}

.scroll-video-descriptions {
  position: absolute;
  /* Vị trí cuối cùng: chiếm 1/3 bên trái */
  top: 80px;
  /* Căn lề trên bằng với video, cách tiêu đề một khoảng */
  left: 40px;
  width: calc(40vw - 80px);
  /* Thu hẹp lại còn 40% */
  height: calc(100vh - 100px);
  /* Chiều cao bằng với video (100vh - 80px top - 20px bottom) */
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  z-index: 5;
  opacity: 0;
  transition: opacity 0.5s ease-out;
  transition-delay: 0.5s;
  /* Xuất hiện sau khi video đã bắt đầu co lại */
  justify-content: center;
  /* Căn các khối giữa để đều với video */
  align-items: stretch;
  /* Cho phép các khối mở rộng theo chiều ngang */
}

/* Khi animation chạy, làm hiện phần mô tả */
.scroll-video-section.is-active-scroll .scroll-video-descriptions {
  opacity: 1;
}

.scroll-video-desc-box {
  background-color: var(--color-component-bg);
  padding: 1rem;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.5s ease;
  /* Tăng thời gian transition để mượt mà hơn */
  min-height: auto;
  /* Chiều cao tối thiểu cho khối đóng */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex-shrink: 0;
  /* Không cho khối bị co lại */
  overflow-y: auto;
  /* Thêm cuộn dọc khi nội dung dài */
}


/* Khối mở sẽ tự động mở rộng để lấp đầy không gian còn lại */
.scroll-video-desc-box--active {
  flex-grow: 1;
  /* Cho phép khối mở mở rộng để lấp đầy không gian */
  min-height: auto;
  /* Bỏ min-height cố định */
}

.scroll-video-desc-box h4 {
  font-size: var(--font-size-h4);
  font-family: var(--font-family-base);
  /* Áp dụng font Times New Roman */
  line-height: 1.5;
  /* Khoảng cách dòng cho tiêu đề */
  letter-spacing: 0.6px;
  /* Giãn cách giữa các ký tự */
  font-weight: 500;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Thêm khoảng cách dưới tiêu đề cho box có đoạn văn bản dài */
.scroll-video-desc-box--with-text h4 {
  margin-bottom: 1.8rem;
}

/* --- Icon Styles --- */
.scroll-video-desc-box h4 i {
  font-size: 2rem;
  color: var(--color-text-white);
  /* Màu trắng mặc định */
  flex-shrink: 0;
  /* Ngăn icon bị co lại */
}

.scroll-video-desc-box h4 .icon-orange {
  color: var(--color-primary);
  /* Màu cam cho icon đầu tiên */
}

.scroll-video-desc-box p {
  font-size: var(--font-size-small);
  font-family: var(--font-family-base);
  line-height: 1.6;
  /* Tăng line-height để dễ đọc hơn */
  letter-spacing: 0.5px;
  color: var(--color-text-light);
  margin-bottom: 2rem;
  /* Thêm khoảng cách giữa các đoạn văn */
}

.desc-text-content p:not(:last-child) {
  margin-bottom: 0.5rem;
  /* Thêm khoảng cách giữa các đoạn văn */
}

/* Hiệu ứng cho text bên trong accordion */
.accordion-content p {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease-out 0.3s, transform 0.5s ease-out 0.3s;
  /* Text xuất hiện sau khi container đã mở */
}

.accordion-content--active p {
  opacity: 1;
  transform: translateY(0);
  /* Text xuất hiện mượt mà */
}

/* ==== ACCORDION EFFECTS ==== */
.accordion-header span {
  font-size: 1.4rem;
  cursor: pointer;
  user-select: none;
  /* Ngăn việc select text khi click */
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
  transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.4s ease-out 0.2s,
    padding 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  /* Hiệu ứng xổ xuống mượt mà với delay cho opacity */
}

.accordion-content--active {
  max-height: 220px;
  /* Giới hạn chiều cao để ngăn tràn layout */
  opacity: 1;
  letter-spacing: 0.5px;
  flex-grow: 1;
  /* Cho phép nội dung mở rộng để lấp đầy không gian */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  /* Căn nội dung lên trên */
  overflow-y: auto;
  /* Thêm cuộn dọc cho nội dung accordion */
  padding: 1rem 0;
  /* Tăng padding để có không gian cho hiệu ứng */
}

/* Icon effects */
.accordion-icon {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s ease;
  color: var(--color-text-white);
}

.scroll-video-desc-box--active .accordion-icon {
  color: var(--color-primary);
  /* Màu vàng khi active */
  transform: rotate(-90deg);
  /* Xoay -90 độ để hướng lên phải */
}

/* Custom Scrollbar for Accordion */
.scroll-video-desc-box::-webkit-scrollbar,
.accordion-content::-webkit-scrollbar {
  width: 4px;
  /* Tăng độ rộng để dễ sử dụng hơn */
}

.scroll-video-desc-box::-webkit-scrollbar-track,
.accordion-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  /* Làm mờ track để không quá nổi bật */
  border-radius: 3px;
}

.scroll-video-desc-box::-webkit-scrollbar-thumb,
.accordion-content::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: 3px;
  transition: background 0.5s ease;
  /* Thêm hiệu ứng chuyển tiếp mượt mà */
}

/* Ẩn scrollbar khi không cần thiết */
.scroll-video-desc-box::-webkit-scrollbar-thumb:active,
.accordion-content::-webkit-scrollbar-thumb:active {
  background: var(--color-primary-darker);
}

/* --- Section 6 --- */
.team-section {
  min-height: 80vh;
  padding: 50px var(--section-padding);
  background-color: var(--color-background);
  margin-top: 80px;
}

.team-container {
  display: flex;
  gap: 1rem;
  /* Khoảng cách giữa 2 cột */
  align-items: stretch;
  /* Căn 2 cột có cùng chiều cao */
}

/* Cột mô tả bên trái */
.team-description {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.team-desc-block {
  background-color: var(--color-component-bg);
  padding: 1rem;
  /* Tăng padding để nội dung bên trong thoáng hơn */
  border-radius: 25px;
}

.team-description h2 {
  color: var(--color-primary);
  font-family: var(--font-family-base);
  font-size: var(--font-size-h2);
  font-weight: 500;
  margin-bottom: 2rem;
}

.team-description h3 {
  font-size: var(--font-size-h4);
  text-transform: uppercase;
  font-family: var(--font-family-base);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

.team-description p {
  color: var(--color-text-light);
  font-family: var(--font-family-base);
  font-size: var(--font-size-small);
  line-height: 1.7;
  letter-spacing: 0.5px;
}

/* Cột banner ảnh bên phải */
.image-marquee-wrapper {
  flex: 2;
  overflow: hidden;
  /* Đây là "cửa sổ" để nhìn vào banner */
  border-radius: var(--radius-md);
  /* Thêm bo góc cho khung chứa ảnh */
  cursor: grab;
  /* Con trỏ chuột khi hover */
  user-select: none;
  /* Ngăn select text khi drag */
}

.image-marquee {
  display: flex;
  gap: 1rem;
  /* JavaScript sẽ điều khiển animation */
  height: 100%;
  width: 200%;
  /* Đảm bảo container đủ rộng cho 2 bộ ảnh (5 ảnh + 5 ảnh lặp lại) */
}

.marquee-item {
  flex-shrink: 0;
  /* Quan trọng: để ảnh không bị co lại */
  width: calc(20% - 0.8rem);
  /* 5 ảnh = 100%, trừ đi gap */
  /* Tăng chiều rộng để ảnh có dạng ngang */
  height: 100%;
  border-radius: var(--radius-md);
  object-fit: cover;
  /* Đảm bảo ảnh lấp đầy mà không bị méo */
}


/* --- Section 7: Projects Stack --- */
.project-section {
  /* Chiều cao lớn để có không gian cuộn cho hiệu ứng */
  min-height: 300vh;
  background-color: var(--color-background);
  position: relative;
}

.project-container {
  display: flex;
  gap: 2rem;
  /* Dính lại trong suốt quá trình cuộn của section cha */
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 10px var(--section-padding);
  align-items: flex-start;
  /* Căn các cột lên trên cùng */
}

/* Cột trái */
.project-stack-column {
  flex: 2;
  display: flex;
  flex-direction: column;
}

.project-section-title {
  color: var(--color-primary);
  font-size: var(--font-size-h2);
  font-family: var(--font-family-base);
  font-weight: 500;
  margin-bottom: 2rem;
  flex-shrink: 0;
  /* Không cho tiêu đề bị co lại */
}

.project-image-stack {
  position: relative;
  /* Làm container cho các ảnh absolute */
  flex-grow: 1;
  /* Chiếm hết không gian dọc còn lại */
  width: 100%;

}

.project-image-card {
  position: absolute;
  /* Xếp chồng tất cả các ảnh lên nhau */
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  overflow: hidden;
  opacity: 0;
  /* Mặc định tất cả đều ẩn */
}

.project-image-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--radius-md);
}

/* HIỂN THỊ ẢNH ĐANG ACTIVE */
.project-image-card.is-active {
  opacity: 1;
  /* Thêm hiệu ứng chuyển động mượt mà */
  transition: opacity 0.6s ease-in-out;
}

/* Cột phải */
.project-description-column {
  flex: 1;
  padding-top: calc(2rem + 2rem);
  /* Bù cho chiều cao của tiêu đề cột trái */
}

.project-description-sticky-content h3 {
  font-size: var(--font-size-h3);
  font-weight: 500;
  letter-spacing: 0.5px;
  line-height: 1.4;
  margin-bottom: 1.5rem;
  font-family: var(--font-family-base);
  text-transform: uppercase;
}

.project-description-sticky-content p {
  color: var(--color-text-light);
  font-family: var(--font-family-base);
  font-size: var(--font-size-small);
  line-height: 1.4;
  letter-spacing: 0.5px;
  margin-bottom: 0.8rem;
}

/* SECTION 8 - TEAM CONSULTATION */
.team-consultation {
  color: var(--color-text-white);
  padding: 0 var(--section-padding);
  font-family: var(--font-family-base);
  background: var(--color-background);
  margin: 50px 0;
}

.team-wrapper {
  display: flex;
  align-items: stretch;
  background-color: #101010;
  border-radius: var(--radius-md);
  overflow: hidden;
  /* Quan trọng: để bo góc cho phần tử con hoạt động */
  height: 50%;
}

.team-image {
  flex: 1;
  text-align: center;
}

.team-image img {
  width: 100%;
  height: 100%;
  /* Quan trọng: cao bằng container */
  object-fit: cover;
  display: block;
  /* Xóa khoảng trống thừa dưới ảnh */
}

.team-content {
  flex: 1;
  padding: 50px;
  /* Thêm padding cho nội dung form */
}

.team-content h2 {
  font-size: var(--font-size-h2);
  font-family: var(--font-family-base);
  margin-bottom: 2rem;
  font-weight: 500;
}

.team-content p {
  font-size: var(--font-size-small);
  margin-bottom: 10px;
  line-height: 1.6;
  color: var(--color-text-light);
  font-family: var(--font-family-base);
}

.orange-text {
  color: var(--color-primary);
  font-weight: 500;
}

.consultation-form {
  width: 100%;
  max-width: 80%;
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}

.consultation-form input,
.consultation-form select {
  padding: 14px 0;
  border: none;
  border-bottom: 1px solid #444;
  background: transparent;
  color: var(--color-text-white);
  font-size: 1rem;
  outline: none;
  /* Loại bỏ border mặc định khi focus */
}

.consultation-form input:focus,
.consultation-form select:focus {
  outline: none;
  /* Đảm bảo không có outline khi focus */
  border-bottom: 1px solid var(--color-primary);
  /* Thay đổi màu border-bottom khi focus */
}

/* Tùy chỉnh dropdown của select */
.consultation-form select option {
  background-color: var(--color-component-bg);
  /* Nền trắng cho dropdown */
  color: var(--color-text-white);
  /* Chữ đen cho dropdown */
  padding: 10px;
  /* Thêm padding cho các option */
}

/* Hiệu ứng hover cho option */
.consultation-form select option:hover {
  background-color: var(--color-primary);
  /* Nền cam khi hover */
  color: var(--color-text-white);
  /* Chữ trắng khi hover */
}

/* Hiệu ứng khi option được chọn */
.consultation-form select option:checked {
  background-color: var(--color-primary);
  /* Nền cam khi được chọn */
  color: var(--color-text-white);
  /* Chữ trắng khi được chọn */
}

.phone-input {
  display: flex;
  gap: 20px;
}

.consultation-form button {
  background: var(--color-primary);
  font-family: var(--font-family-base);
  color: var(--color-text-white);
  padding: 20px 0;
  font-size: 1.1rem;
  border: none;
  border-radius: 40px;
  cursor: pointer;
  transition: background 0.3s ease;
  margin: 20px 0 1px 0;
}

.consultation-form button:hover {
  background: var(--color-primary-darker);
}

.privacy-check {
  font-size: 0.8rem;
  font-family: var(--font-family-base);
  color: #bbb;
  display: flex;
  align-items: center;
  gap: 10px;
}

.privacy-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.privacy-check a {
  color: var(--color-text-white);
  text-decoration: none;
}

.privacy-check a:hover {
  text-decoration: underline;
}

/* Call Button Fixed*/
.fixed-call-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background-color: var(--color-primary);
  /* Màu vàng cam chủ đạo */
  color: var(--color-text-white);
  border-radius: 50%;
  /* Bo tròn thành hình tròn */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  text-decoration: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  z-index: 200;
  transition: transform 0.3s ease;
}

/* Hiệu ứng nổi lên khi hover */
.fixed-call-button:hover {
  transform: scale(1.2);
}

/* Hiệu ứng vòng tròn tỏa ra */
.fixed-call-button::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background-color: var(--color-primary);
  border-radius: 50%;
  /* Gọi animation đã định nghĩa ở dưới */
  animation: pulse-effect 2s infinite ease-out;
}

/* Định nghĩa animation tỏa sáng */
@keyframes pulse-effect {
  0% {
    /* Bắt đầu từ kích thước gốc, độ mờ 70% */
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.7;
  }

  100% {
    /* Kết thúc ở kích thước lớn hơn 2.5 lần, và mờ hẳn đi */
    transform: translate(-50%, -50%) scale(2);
    opacity: 0;
  }
}

/* ===== PHONE POPUP ===== */
.phone-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.phone-popup.active {
  opacity: 1;
  visibility: visible;
}

.popup-content {
  background-color: var(--color-background);
  border-radius: var(--radius-md);
  padding: 2rem;
  max-width: 500px;
  transform: scale(0.2);
  transition: transform 0.3s ease;
}

.phone-popup.active .popup-content {
  transform: scale(1);
}

.popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.popup-header h3 {
  color: var(--color-text-white);
  font-size: 1.2rem;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 1rem;
  font-family: var(--font-family-base);
}

.popup-close {
  position: absolute;
  right: 10px;
  background: none;
  top: 10px;
  border: none;
  color: var(--color-text-white);
  font-size: 1.7rem;
  cursor: pointer;
  padding: 0;
  border-radius: 50%;
  transition: all 0.4s ease;
}

.popup-body {
  display: flex;
  gap: 1.5rem;
  padding: 1rem;
  background-color: var(--color-component-bg);
  border-radius: var(--radius-md);
}

.whatsapp-section {
  display: flex;
  justify-content: center;
  /* căn giữa theo chiều ngang */
  align-items: center;
  /* căn giữa theo chiều dọc */
}

.whatsapp-button {
  background-color: #25D366;
  max-height: 40px;
  color: var(--color-text-white);
  border: none;
  border-radius: var(--radius-md);
  padding: 0.8rem 1.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  font-family: var(--font-family-base);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
  gap: 0.5rem;
}

.whatsapp-button:hover {
  background-color: #20b358;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.whatsapp-button i {
  font-size: 1.2rem;
}

.qr-section {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.qr-section span {
  font-size: 0.9rem;
  font-weight: 500;
  font-family: var(--font-family-base);
  margin-bottom: 0.7rem;
  color: var(--color-text-white);
}

.qr-image {
  width: 150px;
  height: 150px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

/* Phone Popup Overlay */
.phone-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 250;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.phone-popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* FOOTER */
.site-footer {
  background: #101010;
  color: var(--color-text-white);
  padding: 15px var(--container-padding);
  font-family: var(--font-family-base);
  max-width: 100%;
  overflow-x: hidden;
}

.footer-wrapper {
  display: flex;
  justify-content: flex-start;
  margin-top: 20px;
  gap: 60px;
  max-width: 100%;
  flex-wrap: wrap;
}

/* Footer Columns */
.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 15px;
}

.footer-column ul li a {
  color: var(--color-text-white);
  text-decoration: none;
  font-size: 0.8rem;
  transition: all 0.3s ease;
  position: relative;
  padding-bottom: 5px;
  letter-spacing: 0.5px;
}

/* Footer Links Hover Effect */
.footer-column ul li a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-text-white);
  transition: width 0.3s ease-out;
}

.footer-column ul li a:hover::after {
  width: 100%;
}

.footer-column h4 {
  font-size: 0.8rem;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--color-text-white);
  letter-spacing: 0.5px;
}

.footer-column p {
  font-size: 0.7rem;
  color: #969696;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

/* Footer Brand */
.footer-brand h2 {
  font-size: 30px;
  font-weight: 500;
  margin-bottom: 8px;
}

.footer-brand p {
  font-size: 0.7rem;
  color: var(--color-text-light);
}

/* Footer Social Icons */
.footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  margin-bottom: 15px;
  color: #969696;
}

.footer-socials a {
  color: #000;
  font-size: 16px;
  transition: transform 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background-color: #fff;
  border-radius: 50%;
  margin: 0 6px;
}

.footer-socials a:hover {
  transform: scale(1.2);
}

/* ===== PHONE POPUP ===== */
.phone-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.phone-popup.active {
  opacity: 1;
  visibility: visible;
}

.popup-content {
  background-color: var(--color-background);
  border-radius: var(--radius-md);
  padding: 2rem;
  max-width: 500px;
  transform: scale(0.2);
  transition: transform 0.3s ease;
}

.phone-popup.active .popup-content {
  transform: scale(1);
}

.popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.popup-header h3 {
  color: var(--color-text-white);
  font-size: 1.2rem;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 1rem;
  font-family: var(--font-family-base);
}

.popup-close {
  position: absolute;
  right: 10px;
  background: none;
  top: 10px;
  border: none;
  color: var(--color-text-white);
  font-size: 1.7rem;
  cursor: pointer;
  padding: 0;
  border-radius: 50%;
  transition: all 0.4s ease;
}

.popup-body {
  display: flex;
  gap: 1.5rem;
  padding: 1rem;
  background-color: var(--color-component-bg);
  border-radius: var(--radius-md);
}

.whatsapp-section {
  display: flex;
  justify-content: center;
  /* căn giữa theo chiều ngang */
  align-items: center;
  /* căn giữa theo chiều dọc */
}

.whatsapp-button {
  background-color: #25D366;
  max-height: 40px;
  color: var(--color-text-white);
  border: none;
  border-radius: var(--radius-md);
  padding: 0.8rem 1.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  font-family: var(--font-family-base);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
  gap: 0.5rem;
}

.whatsapp-button:hover {
  background-color: #20b358;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.whatsapp-button i {
  font-size: 1.2rem;
}

.qr-section {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.qr-section span {
  font-size: 0.9rem;
  font-weight: 500;
  font-family: var(--font-family-base);
  margin-bottom: 0.7rem;
  color: var(--color-text-white);
}

.qr-image {
  width: 150px;
  height: 150px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

/* Phone Popup Overlay */
.phone-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 250;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.phone-popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* CUSTOM SCROLLBAR */
::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: var(--color-background);
}

::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: 4px;
}