/* ==========================================================================
   Custom Agency Enhancements for dungcaxinh.com
   Typography, Responsive Sizing, Smooth Scrolling & Interactive Stacking
   ========================================================================== */

/* 1. TYPOGRAPHY - 100% Vietnamese Font Fix with Plus Jakarta Sans & Be Vietnam Pro */
@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600;1,700&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600;1,700&display=swap');

:root {
  --at-ff-body: 'Plus Jakarta Sans', 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  --at-ff-heading: 'Plus Jakarta Sans', 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  font-family: 'Plus Jakarta Sans', 'Be Vietnam Pro', sans-serif !important;
}

html, body {
  font-family: var(--at-ff-body);
  color: #0f172a;
  overflow-x: hidden;
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Force all headings and text elements to use the clean Vietnamese font */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.reveal-text, .split-word, .split-char,
.at-ff-heading, a, p, span, div, button, input {
  font-family: 'Plus Jakarta Sans', 'Be Vietnam Pro', sans-serif !important;
}

/* 2. BALANCED RESPONSIVE HEADING SIZES (Cho phần chữ to nhỏ lại vừa vặn hơn) */
.sec-1-home-3 h1,
h1.fw-900.lh-1 {
  font-size: clamp(1.85rem, 3.2vw, 2.75rem) !important;
  line-height: 1.18 !important;
  letter-spacing: -0.02em;
}

h2, .h2 {
  font-size: clamp(1.5rem, 2.4vw, 2.1rem) !important;
  line-height: 1.25 !important;
  letter-spacing: -0.015em;
}

h3, .h3 {
  font-size: clamp(1.25rem, 1.9vw, 1.65rem) !important;
  line-height: 1.32 !important;
}

h4, .h4 {
  font-size: clamp(1.1rem, 1.5vw, 1.35rem) !important;
  line-height: 1.38 !important;
}

/* Ticker stat big numbers */
.sec-5-home-3 .fz-ds-1 {
  font-size: clamp(1.9rem, 3.3vw, 2.7rem) !important;
}

/* Footer giant text */
.footer-3-connect-title {
  font-size: clamp(2.2rem, 5.5vw, 4.2rem) !important;
  letter-spacing: normal !important;
  line-height: 1.1 !important;
}

.footer-3-logo h1.fz-120 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem) !important;
}

/* 3. LENIS SMOOTH SCROLL SUPPORT */
html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

/* 4. SECTION 4: INTERACTIVE CARD DECK & TABS (Dịch Vụ Cốt Lõi) */
.sec-4-home-3 .section-title-pin {
  position: sticky;
  top: 120px;
  z-index: 20;
}

.sec-4-home-3 .navigation-sec4home3 {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sec-4-home-3 .navigation-sec4home3 li {
  cursor: pointer;
  list-style: none;
}

.sec-4-home-3 .navigation-sec4home3 .item {
  border-radius: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background-color: transparent;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  user-select: none;
}

.sec-4-home-3 .navigation-sec4home3 .item:hover {
  background-color: #f1f5f9;
  transform: translateX(4px);
}

.sec-4-home-3 .navigation-sec4home3 .item.active {
  background-color: #e2e8f0 !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  transform: translateX(8px);
}

.sec-4-home-3 .navigation-sec4home3 .item.active h6 {
  font-weight: 700 !important;
  color: #0f172a !important;
}

.sec-4-home-3 .navigation-sec4home3 .item.active svg {
  opacity: 1 !important;
  transform: translateX(6px);
  color: #0f172a !important;
}

.sec-4-home-3 .navigation-sec4home3 .item .content {
  width: 100%;
}

.sec-4-home-3 .navigation-sec4home3 .item .content svg {
  opacity: 0;
  margin-left: auto;
  transition: all 0.3s ease;
}

.sec-4-home-3 .at-about-svg-wrap {
  position: sticky;
  top: 420px;
  transition: opacity 0.3s ease;
}

/* Section 4 & Section 10: Smooth GSAP Pinned Stacking & Card Aesthetics */
.scroll-section .wrapper {
  position: relative;
  height: auto;
}

.scroll-section .list {
  position: relative;
  height: 100%;
}

.scroll-section .item {
  width: 100%;
  height: auto;
  min-height: 100vh;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-origin: center center;
}

.scroll-section .item:first-child {
  position: relative;
  height: 100%;
  min-height: 100vh;
}

.scroll-section .item:not(:first-child) {
  position: absolute;
}

.sec-4-home-3 .scroll-section .item .container {
  border-radius: 24px;
  border: 1.5px solid #e2e8f0;
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.08);
  background: #ffffff;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.sec-4-home-3 .scroll-section .item.active .container {
  border-color: #cbd5e1;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.12);
}

/* 5. SECTION 10: ROADMAP AVATAR NAVIGATION & STEPS */
.home-3-section-10 .navigation-section-10 {
  display: flex;
  gap: 12px;
}

.home-3-section-10 .navigation-section-10 li {
  cursor: pointer;
  list-style: none;
}

.home-3-section-10 .navigation-section-10 .item {
  border-radius: 16px;
  overflow: hidden;
  opacity: 0.4;
  border: 2px solid transparent;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.home-3-section-10 .navigation-section-10 .item:hover {
  opacity: 0.8;
  transform: translateY(-2px);
}

.home-3-section-10 .navigation-section-10 .item.active {
  opacity: 1;
  border-color: #0f172a;
  transform: scale(1.08);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.15);
}

.home-3-section-10 .scroll-section .item .container {
  border-radius: 24px;
  border: 1.5px solid #e2e8f0;
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.08);
  background: #ffffff;
}

/* 6. MARQUEES (Infinite Gliding Animation) */
.agency-marquee {
  display: flex;
  overflow: hidden;
  user-select: none;
  gap: 2rem;
  width: 100%;
}

.agency-marquee-track {
  display: flex;
  flex-shrink: 0;
  gap: 2rem;
  align-items: center;
  min-width: 100%;
  animation: agencyScroll 25s linear infinite;
}

.agency-marquee-track:hover {
  animation-play-state: paused;
}

@keyframes agencyScroll {
  from { transform: translateX(0%); }
  to { transform: translateX(-100%); }
}

.agency-stats-marquee {
  display: flex;
  overflow: hidden;
  user-select: none;
  width: 100%;
}

.agency-stats-track {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  animation: statsScroll 30s linear infinite;
}

@keyframes statsScroll {
  from { transform: translateX(0%); }
  to { transform: translateX(-50%); }
}

/* 7. FLOATING ACTION BUTTONS (Facebook, Telegram, Zalo & Hotline) */
.floating-contact-group {
  position: fixed !important;
  bottom: 25px !important;
  right: 25px !important;
  z-index: 2147483647 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  pointer-events: auto !important;
}

.floating-btn {
  width: 50px !important;
  height: 50px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #ffffff !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35) !important;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  text-decoration: none !important;
  border: none !important;
}

.floating-btn:hover {
  transform: scale(1.12) !important;
  color: #ffffff !important;
}

.floating-btn.btn-fb { background: #1877F2 !important; }
.floating-btn.btn-tele { background: #229ED9 !important; }
.floating-btn.btn-zalo { background: #0068FF !important; }

.floating-btn.btn-hotline {
  background: #E11D48 !important;
  animation: pulse-ring 2s infinite !important;
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.7); }
  70% { box-shadow: 0 0 0 14px rgba(225, 29, 72, 0); }
  100% { box-shadow: 0 0 0 0 rgba(225, 29, 72, 0); }
}

/* 8. BACK TO TOP BUTTON */
.back-to-top-wrapper {
  position: fixed;
  bottom: 25px;
  left: 25px;
  z-index: 9990;
}

.back-to-top-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #0f172a;
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.back-to-top-btn:hover {
  background: #334155;
  transform: translateY(-3px);
}

/* 9. HEADER MENU NO-WRAP FIX (Khắc phục triệt để lỗi menu bị nhảy 2 dòng) */
.at-header-area .at-main-menu {
  width: 100%;
}

.at-header-area .at-main-menu nav ul {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-wrap: nowrap !important;
  gap: 2px !important;
  margin: 0 !important;
  padding: 0 !important;
}

.at-header-area .at-main-menu nav ul li {
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  list-style: none !important;
}

.at-header-area .at-main-menu nav ul li a {
  white-space: nowrap !important;
  text-wrap: nowrap !important;
  word-break: keep-all !important;
  padding: 8px 10px !important;
  font-size: 14.5px !important;
  font-weight: 600 !important;
  display: inline-flex !important;
  align-items: center !important;
}

@media (min-width: 1400px) {
  .at-header-area .at-main-menu nav ul {
    gap: 6px !important;
  }
  .at-header-area .at-main-menu nav ul li a {
    padding: 8px 14px !important;
    font-size: 15px !important;
  }
}

@media (min-width: 1600px) {
  .at-header-area .at-main-menu nav ul {
    gap: 12px !important;
  }
  .at-header-area .at-main-menu nav ul li a {
    padding: 10px 18px !important;
    font-size: 16px !important;
  }
}

.at-header-area .at-main-menu nav ul li a .at-link-swap,
.at-header-area .at-main-menu nav ul li a .at-link-swap .text-1,
.at-header-area .at-main-menu nav ul li a .at-link-swap .text-2 {
  white-space: nowrap !important;
  text-wrap: nowrap !important;
  word-break: keep-all !important;
  display: inline-block !important;
}

