/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Montserrat", Arial, sans-serif;
  padding-top: 80px; /* chừa chỗ cho header fixed, nếu header cao hơn thì chỉnh số này */
}

/* GLOBAL VARS */
:root {
  --cube-size: 400px; /* dùng chung cho services cube & icon list */
}

/* HEADER GLASS + SHRINK ON SCROLL */
.header {
  width: 100%;
  position: fixed;        /* luôn bám trên cùng */
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;

  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(209, 213, 219, 0.9);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.14);

  transition:
    background 0.3s ease,
    box-shadow 0.3s ease;
}

/* Ẩn header khi scroll xuống (chỉ dùng cho mobile) */
.header--hidden {
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}

/* Desktop: luôn hiện, không cho ẩn */
@media (min-width: 769px) {
  .header--hidden {
    transform: none;
  }
}

/* padding lớn hơn khi chưa scroll */
.header .container {
  width: 90%;
  max-width: 1200px;
  margin: auto;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 22px 0;
  transition: padding 0.3s ease;
}

/* TRẠNG THÁI KHI ĐÃ SCROLL XUỐNG: glass rõ + shrink + bóng đổ */
.header.header--scrolled {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.14);
}

.header-toggle {
  display: none;
}

/* container thu nhỏ lại khi scroll */
.header.header--scrolled .container {
  padding: 12px 0;
}

/* Logo */
.logo img {
  height: 40px;
  display: block;
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  gap: 40px;
  position: relative;
}

/* Chấm cam trượt */
.nav-indicator {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #ff5a1a;
  transform: translate(-9999px, -9999px);
  transition: transform 0.25s ease;
}

/* Item menu */
.nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #1f252f;
  text-decoration: none;
  font-weight: 400;
}

.nav-item:hover {
  color: #203555;
}

.nav-item.active,
.nav-item.active:hover {
  color: #ff5a1a;
  font-weight: 500;
}

/* Actions (sign up) */
.actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-icon:hover {
  background: #ff5b1a52;
}

/* Nút Sign up */
.btn-primary {
  border: none;
  font-family: "Montserrat", Arial, sans-serif;
  border-radius: 999px;
  padding: 10px 40px;
  background: #d7e0f2;
  color: #20345d;
  font-weight: 300;
  font-size: 16px;
  cursor: pointer;
}

.btn-primary:hover {
  background: #ff5b1a52;
}

/* ================= HERO ================= */
.hero {
  background: #f7f8fa;
  padding: 60px 0 0 0;
  text-align: left;
}

@media (max-width: 768px) {
  .hero {
    padding-top: 20px; /* hoặc 0 nếu muốn sát hoàn toàn */
  }
}

/* Text block */
.hero-container {
  width: 85%;
  max-width: 1200px;
  margin: auto;
}

/* Title */
.hero-title {
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.35;
  color: #20345d;
  margin-bottom: 40px;

  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeIn 0.8s ease-out 0.2s forwards;
}

.hero-title2 {
  display: none;
}

@media (max-width: 768px) {
  .hero-title {
    display: none;
  }

  .hero-title2 {
    display: block;
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 23px;
    font-weight: 700;
    line-height: 1.35;
    color: #20345d;
    margin-bottom: 40px;

    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeIn 0.8s ease-out 0.2s forwards;
  }
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Nút trong hero */
.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 50px;
}

/* Button */
.hero-view-btn {
  padding: 12px 40px;
  font-family: "Montserrat", Arial, sans-serif;
  border-radius: 999px;
  border: 2px solid #c7d2e3;
  background: transparent;
  font-size: 16px;
  cursor: pointer;
  color: #20345d;
}

.hero-view-btn:hover {
  background: #e5ebf5;
}

/* Stats */
.hero-stats {
  display: flex;
  justify-content: space-between;
  padding: 25px 0;
  margin-top: 20px;
  border-top: 2px solid #d4dcea;
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 83px;
  font-weight: 500;
  color: #7a88a8;
}

.stat-label {
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 20px;
  color: #7a88a8;
  display: block;
  margin-top: 5px;
}

/* Hero banner */
.hero-banner {
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin: 10px auto 0 auto;
  border-radius: 10px;
  overflow: hidden;
  background: #eef2f7;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .hero-banner {
    height: 360px;
  }
}

/* Ảnh banner (crossfade 2 ảnh) */
.hero-banner-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;

  opacity: 0;
  transition: opacity 1s ease-in-out, transform 8s ease-out;
  transform: scale(1.03);
}

/* Ảnh đầu tiên */
.hero-banner-img-1 {
  opacity: 1;
}

/* Ảnh có .show thì fade-in */
.hero-banner-img.show {
  opacity: 1;
}

/* Glass card */
.hero-banner-card {
  position: absolute;
  right: 6%;
  top: 50%;

  max-width: 430px;
  padding: 28px 32px;
  border-radius: 32px;

  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  color: #111827;
  z-index: 5;
  pointer-events: auto;

  /* trạng thái ban đầu: ẩn, hơi thấp hơn */
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;

  font-family: "Montserrat", Arial, sans-serif;
}

/* lúc IntersectionObserver add .show lần đầu */
.hero-banner-card.show {
  opacity: 1;
  transform: translateY(-50%);
}

/* ========== ANIMATION KHI ĐỔI SLIDE (kiểu chat) ========== */

/* bubble cũ: trượt lên & mờ dần */
.hero-banner-card.slide-out {
  animation: heroCardSlideOut 0.35s ease forwards;
}

/* bubble mới: trượt từ dưới lên & hiện dần */
.hero-banner-card.slide-in {
  animation: heroCardSlideIn 0.45s ease forwards;
}

@keyframes heroCardSlideOut {
  0% {
    opacity: 1;
    transform: translateY(-50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-90%) scale(0.97);
  }
}

@keyframes heroCardSlideIn {
  0% {
    opacity: 0;
    transform: translateY(40px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateY(-50%) scale(1);
  }
}

/* Slider dots */
.hero-slider-dots {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 4;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: all 0.25s ease;
}

.hero-dot:hover {
  background: #ffffff;
}

.hero-dot.active {
  width: 22px;
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.12);
}

/* ================= CLIENT LOGOS ================= */

.client-logos-section {
  background: #f7f8fa;
  padding: 13px 0 13px;
}

.client-logos-container {
  width: 85%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Title căn trái */
.client-logos-title {
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 23px;
  font-weight: 400;
  color: #7a88a8;
  margin-bottom: 33px;
  letter-spacing: 0em;
  text-align: left;
}

/* Grid 2 hàng 7 logo */
.client-logos-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  row-gap: 30px;
  column-gap: 40px;
  align-items: center;
}

/* Logo tone xám đậm hơn nền 33% */
.client-logo {
  height: 100px;
  object-fit: contain;
  justify-self: center;

  color: #7a88a8;
  opacity: 0.75;
  transition: opacity 0.2s ease;
}

.client-logo:hover {
  opacity: 1;
}

/* SubTitle căn trái */
.client-logos-subtitle {
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 23px;
  font-weight: 400;
  color: #7a88a8;
  letter-spacing: 0em;
  text-align: center;
  padding-top: 30px;
}

/* Responsive */
@media (max-width: 992px) {
  .client-logos-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 600px) {
  .client-logos-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ================= SERVICES ================= */

.services-section {
  background-color: #f5f7fb;
  padding: 72px 0 100px;   /* bỏ padding ngang 120px */
}

.services-container {
  width: 85%;
  max-width: 1200px;
  margin: 0 auto;          /* canh giữa toàn section */
  display: flex;
  align-items: flex-start;
}

/* Cột trái */
.services-left {
  width: 330px;
  flex-shrink: 0;

  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 32px;
}

.services-title {
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 40px;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: #1f355a;
  margin: 0;
  text-align: left;
}

.services-icon-list {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: var(--cube-size);
  margin-top: 50px; /* tinh chỉnh icon khớp chiều cao cube */
}

.services-icon-list-middle {
  display: none;
}

/* Icon tròn */
.service-icon {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background-color: #ccd5e7;
  opacity: 0.6;
  transform: scale(0.9);
  cursor: pointer;
  transition:
    background 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease,
    opacity 0.25s ease;
}

/* Icon active */
.service-icon.active {
  background-color: #ff8b3d;
  opacity: 1;
  transform: scale(1.2);
  box-shadow: 0 0 0 4px rgba(255, 139, 61, 0.25);
}

/* Cột phải */
.services-right {
  display: flex;
  flex-direction: column;
  gap: 48px;
  flex: 1;
}

.services-intro {
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: #444f63;
  margin: 0 0 32px;
}

/* Hai cube */
.services-cards {
  display: flex;
  gap: 32px;
  align-items: center;
}

/* Kích thước 2 cube */
.cube-container {
  width: var(--cube-size);
  height: var(--cube-size);
  perspective: 3000px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Khối cube */
.cube {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transform: rotateX(0deg) rotateY(0deg);
  transition: transform 0.7s ease;
}

/* Mỗi mặt của cube */
.cube .face {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 0;
  background: #d5d9e4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: #1f355a;
}

/* Vị trí các mặt */
.cube .front  { transform: rotateY(  0deg) translateZ(calc(var(--cube-size) / 2)); }
.cube .back   { transform: rotateY(180deg) translateZ(calc(var(--cube-size) / 2)); }
.cube .right  { transform: rotateY( 90deg) translateZ(calc(var(--cube-size) / 2)); }
.cube .left   { transform: rotateY(-90deg) translateZ(calc(var(--cube-size) / 2)); }
.cube .top    { transform: rotateX( 90deg) translateZ(calc(var(--cube-size) / 2)); }
.cube .bottom { transform: rotateX(-90deg) translateZ(calc(var(--cube-size) / 2)); }

/* TEXT MARQUEE TRONG CUBE TRÁI */
.cube-text {
  position: relative;
  height: 100%;
  width: 100%;
  padding: 40px;

  display: flex;
  flex-direction: column;
  justify-content: space-between; /* ICON lên top — SUBTEXT xuống bottom */
  align-items: center;            /* căn giữa theo ngang */
  text-align: center;
}

/* Icon tròn nhỏ phía trên */
.cube-text-top {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cube-text-icon {
  width: 90px;
  height: 90px;
}

/* Vùng chứa marquee nghiêng nhẹ */
.cube-marquee-wrap {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  overflow: hidden;
  pointer-events: none;
  transform: translateY(-50%) rotate(-3deg);
  transform-origin: center;
  transition: transform 0.35s ease;
}

/* Marquee chạy ngược + stroke + đặt sát subtext */
.cube-marquee-wrap.reverse {
  position: absolute;
  left: 0;
  width: 100%;
  top: auto;
  bottom: 100px; /* điều chỉnh độ gần subtext */
  overflow: hidden;
  transform: rotate(3deg);
  transform-origin: center;
}

/* Dòng marquee ngược */
.cube-marquee.reverse {
  display: inline-block;
  white-space: nowrap;
  padding-left: 100%;
  animation: cubeMarqueeLoopReverse 22s linear infinite;

  /* STROKE */
  color: transparent;
  -webkit-text-stroke: 1px #1f355a;
  font-family: "Arial", sans-serif;
  font-size: 44px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

@keyframes cubeMarqueeLoopReverse {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(0%); }
}

/* Nội dung chạy vòng lặp */
.cube-marquee {
  display: inline-block; /* mấu chốt để chạy mượt */
  padding-left: 100%;
  white-space: nowrap;

  animation: cubeMarqueeLoop 16s linear infinite;

  font-family: "Montserrat", Arial, sans-serif;
  font-size: 44px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #1f355a;
}

@keyframes cubeMarqueeLoop {
  0%   { transform: translateX(0%); }
  100% { transform: translateX(-100%); }
}

/* Text nhỏ bên dưới dòng chạy */
.cube-subtext {
  margin-top: 50px;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  color: #4b566b;
}

/* FIX CHỮ BỊ NGƯỢC MẶT BACK */
.face.back .cube-text {
  transform: rotateZ(180deg);
}

.face.back .cube-image {
  transform: rotateZ(180deg);
}

/* Ảnh cube phải */
.cube-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

@media (max-width: 992px) {
  .services-container {
    width: 92%;
    flex-direction: column;
    gap: 24px;
  }

  .services-left {
    width: 100%;
  }

  .services-icon-list {
    flex-direction: row;
    height: auto;
    margin-top: 0;
    gap: 12px;
  }
}


/* ============ RESPONSIVE SERVICES ============ */

@media (max-width: 768px) {
  .services-section {
    padding: 36px 36px 36px;
  }

  .services-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
  }

  .services-left {
    width: 100%;
    align-items: flex-start;
  }

  .services-title {
    display: flex;
  }

  .services-right {
    width: 100%;
    margin-top: 0;
  }

  /* Ẩn cột icon dọc bên trái */
  .services-left .services-icon-list {
    display: none;
  }

  /* 2 cube + cụm icon xếp theo cột, icon nằm GIỮA */
  .services-cards {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 64px;      /* khoảng cách giữa cube – icon – cube (xa hơn chút) */
    margin-top: 12px;
  }

  .cube-container {
    --cube-size: 330px;
    margin: 0;
  }

  /* Cụm icon ngang, nằm giữa 2 cube */
  .services-icon-list {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: auto;
    margin: 0;     /* không cộng thêm khoảng trắng dọc */
    gap: 20px;
  }

  .service-icon {
    width: 63px;
    height: 63px;
    transform: scale(0.9);
  }

  .services-intro {
    order: 2;
    margin-top: 24px;
    text-align: left;
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 20px;
    line-height: 1.6;
    color: #444f63;
  }
}

/* ============== WORKS / PORTFOLIO SECTION (tone DBLStudio) ============== */

.portfolio-section {
  background-color: #f7f8fa;
  padding: 100px 120px 120px;
}

/* Header: Works / Featured projects + View all */
.works-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 28px;
}

.works-title-block {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.works-title {
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 40px;
  font-weight: 700;
  color: #20345d;
}

.works-subtitle {
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 16px;
  color: #7a88a8;
}

/* Nút View all */
.works-view-all-btn {
  padding: 8px 50px;
  border-radius: 999px;
  border: 1px solid #c7d2e3;
  background: #ffffff;
  font-size: 16px;
  font-family: "Montserrat", Arial, sans-serif;
  color: #20345d;
  cursor: pointer;
  transition: background 0.2s ease;
}

.works-view-all-btn:hover {
  background: #e5ebf5;
}

/* Divider */
.works-divider {
  height: 1px;
  width: 100%;
  background-color: #d4dcea;
  margin-bottom: 32px;
}

/* 2 HÀNG, mỗi hàng 4 project */
.works-row {
  display: flex;
  gap: 32px;
  margin-bottom: 36px;
}

/* Card chia đều, cho phép co giãn mượt */
.work-card {
  flex: 1;
  min-width: 0;
  transition:
    flex 0.35s ease,
    transform 0.35s ease;
}

/* Card panel */
.work-panel {
  background: #ffffff;
  border-radius: 28px;
  padding: 18px 18px 20px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
}

/* Header trong panel: tên + nút tròn mũi tên */
.work-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.work-name {
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: #20345d;
}

/* Nút tròn với mũi tên */
.work-cta-circle {
  width: 60px;
  height: 60px;
  border-radius: 999px;
  border: 1px solid #c7d2e3;
  background: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #20345d;
  opacity: 0;
  transform: translateY(4px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

/* SVG bên trong nút tròn */
.work-cta-circle .cta-arrow {
  width: 40px;
  height: 40px;
  display: block;
}

.work-cta-circle:hover {
  background: #ff5a1a;
  border-color: #ff5a1a;
  color: #ffffff;
}

/* Ảnh – card đứng ban đầu */
.work-image-wrap {
  border-radius: 18px;
  overflow: hidden;
  height: 320px;
  width: 100%;
  transition: width 0.35s ease;
}

.work-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

/* Zoom nhẹ nếu muốn */
.work-image-wrap:hover .work-image {
  transform: scale(1.04);
}

.work-desc {
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 13px;
  line-height: 1.6;
  color: #4b566b;
}

/* ============ RESPONSIVE WORK ============ */

@media (max-width: 768px) {
  .works-header {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    width: 100%;
  }

  .works-title-block {
    display: flex;
    flex-direction: column;
    align-items: left;
    text-align: left;
  }

  .works-view-all-btn {
    width: 100%;        /* full chiều ngang */
    display: block;
    padding: 14px 0;
    border: 1px solid #d0d7e5;
    border-radius: 999px;
    font-size: 16px;
    text-align: center;
  }
}

/* ================== STATE HOVER: GIÃN NGANG + CO DỌC ================== */

/* Card giãn ngang trong hàng của nó, không nhảy hàng */
.work-card:hover {
  flex: 1.7;
  transform: translateY(-3px);
}

/* hiện nút tròn mũi tên */
.work-card:hover .work-cta-circle {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
  .portfolio-section {
    padding: 72px 40px 96px;
  }

  .works-row {
    flex-wrap: wrap;
  }

  .work-card {
    flex: 1 1 calc(50% - 24px);
  }

  .work-card:hover {
    flex: 1 1 calc(50% - 24px);
    transform: translateY(-2px);
  }
}

@media (max-width: 768px) {
  .portfolio-section {
    padding: 48px 24px 72px;
  }

  .works-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .works-row {
    flex-direction: column;
  }

  .work-card {
    flex: 1 1 100%;
  }

  /* Trên mobile không cần giãn ngang để tránh giật */
  .work-card:hover {
    flex: 1 1 100%;
    transform: none;
  }
}

/* =============== STORE =============== */
/* Header store dùng chung layout với works
   nhưng chỉ áp trong phạm vi .store-section để không đè phần Works */

.store-section .works-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
  padding-bottom: 0px;
}

.store-section .works-title {
  font-size: 36px;
}

/* Nút View all – style giống nút ở phần works */
.store-view-all {
  padding: 8px 50px;
  border-radius: 999px;
  border: 1px solid #d4dcea;
  background: #fff;
  color: #20345d;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;

  display: inline-flex;
  align-items: center;
  gap: 6px;

  cursor: pointer;
  transition: background 0.2s ease;
}

.store-view-all:hover {
  background: #e5ebf5;
  border-color: #c3d2f0;
}

.store-section {
  background: #f7f8fa;
  padding: 0px 120px;
}

.store-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* GRID CHÍNH: 2 hàng × 4 cột như wireframe */
.store-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr 1fr;
  grid-template-rows: auto auto;
  column-gap: 24px;
  row-gap: 24px;
  margin-top: 10px;
}

/* Base card */
.store-card {
  background: #111827;
  border-radius: 24px;
  padding: 18px 18px 20px;
  transition: transform .35s ease, box-shadow .35s ease;
}

.store-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s ease;
}

/* Hover “nở” trong khả năng của grid: nhô nhẹ + zoom hình */
.store-card:hover {
  transform: translateY(-8px) scale(1.02);
}

.store-card:hover .store-card-image {
  transform: scale(1.06);
}

/* Tag */
.store-card-tag {
  font-size: 33px;
  font-weight: 700;
  font-family: "Montserrat", Arial, sans-serif;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 10px;
}

/* Card cao bên trái: chiếm 2 hàng, 1 cột */
.store-card-tall {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
}

.store-card-tall .store-card-price {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 12px;
}

.price-main {
  font-size: 22px;
  font-weight: 500;
  color: #9ca3af;
}

.price-label {
  font-size: 14px;
  color: #7a88a8;
}

/* Media blocks */
.store-card-media {
  border-radius: 18px;
  overflow: hidden;
  background: #dde4f0;
}

.store-card-media-tall {
  height: 320px;
  margin-bottom: 18px;
}

.store-card-media-main {
  height: 220px;
}

.store-card:hover .store-card-image {
  transform: scale(1.06);
}

/* Card rộng ở giữa: hàng 1, cột 2–3 */
.store-card-wide {
  grid-column: 2 / 4;
  grid-row: 1 / 2;
  padding: 18px 22px 20px;
}

.store-card-wide-content {
  display: grid;
  grid-template-columns: 1.1fr 1.1fr;
  gap: 16px;
  align-items: center;
}

.store-card-title {
  font-size: 22px;
  font-weight: 500;
  color: #9ca3af;
  margin-bottom: 6px;
}

.store-card-desc {
  font-size: 14px;
  color: #7a88a8;
  margin-bottom: 10px;
}

.store-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.store-chip {
  padding: 6px 12px;
  border-radius: 999px;
  background: #ffedd9;
  font-size: 11px;
  color: #b45309;
}

.store-chip-outline {
  background: transparent;
  border: 1px solid #c7d2e3;
  color: #4b566b;
}

/* Card CTA bên phải: hàng 1, cột 4 */
.store-card-cta {
  grid-column: 4 / 5;
  grid-row: 1 / 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.store-cta-btn {
  margin-top: 18px;
  align-self: flex-start;
  padding: 10px 22px;
  border-radius: 999px;
  border: none;
  background: #ff5a1a;
  color: #ffffff;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s ease;
}

.store-cta-btn:hover {
  background: #ff8b3d;
}

.store-cta-arrow {
  font-size: 14px;
}

/* 3 card nhỏ hàng dưới: cột 2,3,4 */
.store-product-1 {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
}

.store-product-2 {
  grid-column: 3 / 4;
  grid-row: 2 / 3;
}

.store-product-3 {
  grid-column: 4 / 5;
  grid-row: 2 / 3;
}

.store-product {
  border-radius: 22px;
  padding: 12px 12px 14px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.store-product-media {
  border-radius: 16px;
  overflow: hidden;
  height: 160px;
  background: #dde4f0;
}

.store-product-info {
  font-family: "Montserrat", Arial, sans-serif;
}

.store-product-name {
  font-size: 18px;
  font-weight: 600;
  color: #9ca3af;
  margin-bottom: 2px;
}

.store-product-meta {
  font-size: 14px;
  color: #7a88a8;
}

/* Responsive */
@media (max-width: 1024px) {
  .store-section {
    padding: 64px 40px 80px;
  }

  .store-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Reset lại span để grid 2 cột dễ đọc */
  .store-card-tall,
  .store-card-wide,
  .store-card-cta,
  .store-product-1,
  .store-product-2,
  .store-product-3 {
    grid-column: auto;
    grid-row: auto;
  }
}

/* ============ RESPONSIVE STORE ============ */
@media (max-width: 768px) {
  .store-section {
    padding: 0px 24px 0px;
  }

  .store-grid {
    grid-template-columns: 1fr;
  }

  .store-view-all {
    width: 100%;        /* full chiều ngang */
    display: block;
    padding: 14px 0;
    border: 1px solid #d0d7e5;
    border-radius: 999px;
    font-size: 16px;
    text-align: center;
  }
}

/* ================= FOOTER / CALL TO ACTION ================= */

.footer-section {
  background: #f5f7fb;
  margin-top: 0;
  padding-top: 33px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto 24px;
  background: #111827;
  border-radius: 20px;
  padding: 40px 48px 36px;
  color: #e5e7eb;
}

/* Hàng trên: heading + CTA */
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 28px;
}

.footer-heading {
  flex: 1;
}

.footer-kicker {
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 10px;
}

.footer-title {
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 40px;
  line-height: 1.3;
  font-weight: 700;
  color: #f9fafb;
}

.footer-title span {
  color: #ff5a1a; /* cam chủ đạo */
}

.footer-cta-wrap {
  flex-shrink: 0;
}

/* Nút CTA oval cam hai viền */
.footer-cta-btn {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  padding: 50px 70px;
  border-radius: 20px;
  border: none;
  background: #ff5a1a;
  color: #ffffff;
  cursor: pointer;
  font-family: "Montserrat", Arial, sans-serif;
  overflow: hidden;
}

.footer-cta-btn::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 18px;
  border: 4px solid #111827;
  opacity: 0.9;
}

.footer-cta-main {
  position: relative;
  font-size: 40px;
  font-weight: 900;
}

.footer-cta-sub {
  position: relative;
  margin-top: 2px;
  font-size: 20px;
  opacity: 0.9;
}

.footer-cta-btn:hover {
  background: #ff8b3d;
}

/* Divider trong khối tối */
.footer-divider {
  height: 1px;
  width: 100%;
  background: rgba(148, 163, 184, 0.55);
  margin: 24px 0 26px;
}

/* Hàng dưới: 4 cột */
.footer-bottom {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1.2fr;
  column-gap: 48px;
  row-gap: 24px;
}

.footer-col-title {
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #f9fafb;
  margin-bottom: 12px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li + li {
  margin-top: 6px;
}

.footer-links a {
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 13px;
  color: #9ca3af;
  text-decoration: none;
}

.footer-links a:hover {
  color: #e5e7eb;
}

.footer-address {
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 13px;
  color: #9ca3af;
  line-height: 1.7;
}

/* Thanh meta dưới cùng */
.footer-meta-bar {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 5px;
  padding-bottom: 32px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;

  font-family: "Montserrat", Arial, sans-serif;
  font-size: 16px;
  color: #6b7280;
}

.footer-meta-left a {
  color: #6b7280;
  text-decoration: none;
}

.footer-meta-left a:hover {
  color: #4b5563;
}

.footer-meta-left .dot {
  margin: 0 8px;
}

/* Responsive footer */
@media (max-width: 1024px) {
  .footer-section {
    padding: 33px 40px 32px;
  }

  .footer-inner {
    padding: 32px 28px 28px;
  }

  .footer-bottom {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .footer-section {
    padding: 30px 24px 28px;
  }

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-cta-wrap {
    width: 100%;
  }

  .footer-cta-btn {
    width: 100%;
    justify-content: center;
  }

  .footer-bottom {
    grid-template-columns: 1fr;
  }

  .footer-meta-bar {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 6px;
  }

  .footer-meta-left,
  .footer-meta-right {
    text-align: center;
    width: 100%;
  }
}

/* ================== GLOBAL POPUP (AUTH + QUOTE) ================== */

/* Overlay chung cho mọi modal (auth, quote, project) */
.dbl-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;

  display: none;                 /* JS set 'flex' khi mở */
  align-items: center;
  justify-content: center;

  background: rgba(0,0,0,0.45);
  padding: 16px;
  z-index: 9999;

  /* CHO PHÉP SCROLL NỘI DUNG MODAL (mobile + desktop) */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Box trắng chung (auth, quote) */
.dbl-modal-box {
  position: relative;
  top: auto;
  left: auto;
  transform: none;

  width: min(360px, calc(100% - 40px));
  max-width: 420px;
  padding: 24px 22px 26px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);

  max-height: none;
  overflow-y: visible;
  box-sizing: border-box;
}

/* Mobile: bó sát mép hơn 1 chút */
@media (max-width: 768px) {
  .dbl-modal-box {
    width: calc(100% - 32px);
    padding: 22px 18px 24px;
  }
}

/* Close button trong dbl-modal-box */
.dbl-modal-box .close {
  position: absolute;
  right: 18px;
  top: 16px;
  cursor: pointer;
  font-size: 22px;
  opacity: 0.6;
}

.dbl-modal-box .close:hover {
  opacity: 1;
}

.dbl-modal-box h2 {
  margin-bottom: 18px;
  font-size: 22px;
  font-weight: 600;
}

.dbl-modal-box input {
  width: 100%;
  padding: 12px;
  margin: 8px 0;
  border-radius: 10px;
  border: 1px solid #d6d6d6;
  font-size: 15px;
}

.dbl-modal-box button {
  width: 100%;
  padding: 12px;
  margin-top: 10px;
  background: #4c6ee9;
  border: none;
  color: white;
  border-radius: 10px;
  cursor: pointer;
  font-size: 15px;
}

.dbl-modal-box button:hover {
  background: #3b58c2;
}

.dbl-modal-box p {
  margin-top: 14px;
  font-size: 14px;
  text-align: center;
}

.dbl-modal-box a {
  color: #4c6ee9;
  cursor: pointer;
}

/* ================ PORTFOLIO PAGE ================ */

.pf-hero {
  background: #fef3ff;
  padding: 56px 0 48px;
}

.pf-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 0;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 16px;
}

.pf-hero-text {
  max-width: 520px;
}

.pf-hero-label {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #8a6bb8;
  margin-bottom: 8px;
}

.pf-hero-title {
  font-size: 36px;
  line-height: 1.2;
  color: #203555;
  margin-bottom: 12px;
}

.pf-hero-desc {
  font-size: 15px;
  color: #5a6270;
}

.pf-hero-badge {
  background: #fff;
  border-radius: 24px;
  padding: 20px 24px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
  max-width: 280px;
}

.pf-hero-badge span {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: #203555;
  color: #fff;
  font-size: 12px;
  margin-bottom: 10px;
}

.pf-hero-badge p {
  font-size: 14px;
  color: #4a5260;
}

/* Layout chính */

/* Giúp phần Portfolio align đúng độ rộng với footer */
.pf-main .container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding-left: 0;
  padding-right: 0;
}

.pf-main {
  background: #f7f8fb;
  padding: 40px 0 24px;
}

.pf-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 32px;
  align-items: flex-start;
}

/* ========== PORTFOLIO SIDEBAR ========== */

.pf-sidebar {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Tiêu đề "Danh mục" */
.pf-sidebar-title {
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 23px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #203555;
}

/* Nút sidebar dạng card dài */
.pf-sidebar-item {
  display: flex;
  align-items: center;
  justify-content: space-between;

  width: 100%;
  padding: 12px 16px;
  border: none;
  border-radius: 10px;

  background: #ffffff;
  color: #4c5670;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 16px;
  cursor: pointer;

  transition:
    background 0.2s ease,
    color 0.2s.ease,
    box-shadow 0.2s ease,
    transform 0.15s ease;
}

/* Hover */
.pf-sidebar-item:hover {
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

/* Trạng thái ACTIVE (mục đang chọn) */
.pf-sidebar-item.active {
  background: #203555;
  color: #ffffff;
}

.pf-sidebar-item.active .pf-sidebar-icon {
  background: rgba(255, 255, 255, 0.18);
}

.pf-sidebar-item.active .pf-sidebar-icon img {
  filter: brightness(10);
}

/* Label text */
.pf-sidebar-label {
  flex: 1;
  text-align: left;
}

/* Icon bên phải */
.pf-sidebar-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #edf1ff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pf-sidebar-icon img {
  max-width: 18px;
  max-height: 18px;
  display: block;
}

/* Filter chips */

.pf-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.pf-filter-chip {
  border-radius: 999px;
  border: 1px solid #dde2f0;
  background: #fff;
  padding: 8px 14px;
  font-size: 13px;
  cursor: pointer;
  color: #4a5260;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.pf-filter-chip:hover {
  background: #f2f4fc;
}

.pf-filter-chip.active {
  background: #203555;
  color: #fff;
  border-color: #203555;
}

/* Grid */
.pf-grid { margin-bottom: 0 !important; }
.pf-pagination { margin-bottom: 0 !important; }
.pf-section, .pf-content { padding-bottom: 0 !important; }

.pf-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.pf-card {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.pf-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

/* Force ảnh vào khung 1:1 */
.pf-card-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 10px 10px 0 0;
}

/* Bên trong */
.pf-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.pf-card:hover .pf-card-image img {
  transform: scale(1.04);
}

.pf-card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pf-card-title {
  font-size: 15px;
  font-weight: 600;
  color: #203555;
}

.pf-card-tags {
  font-size: 13px;
  color: #7a8190;
}

.pf-card-cta {
  margin-top: 8px;
  align-self: flex-start;
  border-radius: 999px;
  border: none;
  background: #203555;
  color: #fff;
  font-size: 13px;
  padding: 7px 14px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}

.pf-card-cta:hover {
  background: #1a2742;
}

.pf-card-cta:active {
  transform: scale(0.97);
}

/* Footer */

.pf-footer {
  border-top: 1px solid #e3e6f0;
  background: #fff;
  padding: 18px 0;
}

.pf-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: #7a8190;
}

.pf-footer-link {
  font-weight: 500;
  color: #203555;
}

/* Responsive cơ bản */

@media (max-width: 960px) {
  .pf-hero-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .pf-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .pf-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .pf-grid {
    grid-template-columns: 1fr;
  }
}

.pf-pagination {
  width: 100%;
  grid-column: 2 / 3;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  margin-bottom: 0;
}

.pf-page-btn {
  padding: 8px 16px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  background: #f9fafb;
  cursor: pointer;
  font-size: 14px;
  transition: 0.2s;
}

.pf-page-btn.active {
  background: #000;
  color: #fff;
  border-color: #000;
}

.pf-section,
.pf-wrapper,
.pf-content {
  position: relative;
}

/* ===== PROJECT MODAL – Behance style (desktop) ===== */

@media (min-width: 769px) {
  #projectModal {
    align-items: flex-start;
    padding: 40px 16px;
    overflow-y: auto;
    z-index: 4000;
  }
}

/* Khung trắng giữa màn hình */
.project-modal-box {
  position: relative;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 24px;
  padding: 24px 28px 32px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
  display: flex;
  flex-direction: column;
}

/* Header: tên + năm bên trái, CTA nhỏ bên phải */
.project-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-right: 32px;
}

.project-modal-info {
  flex: 1;
}

.project-modal-title {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
}

.project-modal-meta {
  margin: 0;
  font-size: 13px;
  color: #64748b;
}

/* CTA nhỏ gọn bên phải */
.project-modal-cta-btn {
  border: none;
  border-radius: 999px;
  padding: 6px 14px;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  cursor: pointer;
  background: #ff6a1a;
  color: #ffffff;
  white-space: nowrap;
}

/* Hình full-width */
.project-modal-image-wrap {
  width: 100%;
  margin: 16px 0;
  background: none;
  padding: 0;
}

.project-modal-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  border-radius: 14px;
}

/* =================== MOBILE: NAV + HERO BUTTONS + MODALS =================== */

@media (max-width: 768px) {
  /* PROJECT MODAL (mobile) – chỉ chỉnh bên trong box, không đụng layout desktop */
  .project-modal-box {
    padding: 18px 16px 24px;
    border-radius: 18px;
  }

  .project-modal-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .project-modal-title {
    font-size: 18px;
  }

  .project-modal-cta-btn {
    align-self: flex-start;
  }

  /* NAV MOBILE */
  .nav-indicator {
    display: none;
  }

  .header.menu-open .nav {
    gap: 18px;
    padding: 24px 0;
  }

  .header.menu-open .nav-item {
    font-size: 24px;
    padding: 6px 0;
    font-weight: 300;
    color: #203555;
  }

  .header .container {
    padding: 12px 16px;
  }

  /* Nút toggle */
  .header-toggle {
    display: flex;
    margin-left: auto;
    width: 32px;
    height: 24px;
    flex-direction: column;
    justify-content: space-between;
    padding: 0;
    border: none;
    background: none;
  }

  .header-toggle span {
    width: 100%;
    height: 3px;
    border-radius: 999px;
    background: #224068;
  }

  /* Ẩn menu ngang + CTA */
  .nav,
  .actions {
    display: none;
  }

  /* Menu khi mở */
  .header.menu-open .nav {
    position: absolute;
    top: 64px;
    left: 16px;
    right: 16px;
    display: flex;
    flex-direction: column;
    background: #fff;
    padding: 20px;
    border-radius: 13px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.15);
    gap: 34px;
  }

  .header.menu-open .nav-indicator {
    display: none !important;
  }

  /* Hero buttons: xếp dọc */
  .hero-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }

  .hero-view-btn {
    width: 100%;
    text-align: center;
  }

  #projectModal .project-modal-image {
    width: 100%;
    border-radius: 12px;
  }
}

/* Đặt box làm mốc tương đối */
#projectModal .project-modal-box {
  position: relative;
}

/* Nút X to, nổi bật, bám sát góc card – desktop + tablet */
#projectModal .project-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;

  width: 40px;
  height: 40px;
  border-radius: 999px;

  border: none;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.18);

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 24px;
  line-height: 1;
  color: #64748b;
  cursor: pointer;

  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.1s ease;
}

#projectModal .project-modal-close:hover {
  background: #ff5a1a;
  color: #ffffff;
  transform: scale(1.05);
}

/* Mobile: hơi nhỏ lại, sát mép hơn chút */
@media (max-width: 768px) {
  #projectModal .project-modal-close {
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    font-size: 22px;
  }
}

/* PROJECT MODAL: để overlay scroll, box cao theo nội dung */
#projectModal.dbl-modal {
  align-items: flex-start;
  overflow-y: auto;  /* Ghi đè overflow-y: hidden cũ trên mobile */
}

/* Box trắng – không giới hạn chiều cao, để overlay lo phần scroll */
#projectModal .project-modal-box {
  max-height: none;
  overflow-y: visible;
}

/* FIX: chặn trượt ngang trên mobile */
html, body {
  overflow-x: hidden !important;
  width: 100%;
  max-width: 100%;
}

a.hero-view-btn,
button.hero-view-btn {
  text-decoration: none !important;
}
.works-view-all-btn {
  text-decoration: none !important;
}

.works-view-all-btn:hover {
  text-decoration: none !important;
}

/* MOBILE: chỉ hiện 2 stat đầu tiên + dàn ngang */
@media (max-width: 768px) {
  /* Ẩn mục 3–5 */
  .hero-stats .stat-item:nth-child(3),
  .hero-stats .stat-item:nth-child(4),
  .hero-stats .stat-item:nth-child(5) {
    display: none !important;
  }

  /* DÀN NGANG */
  .hero-stats {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 60px; /* chỉnh khoảng cách giữa 134 và 343 */
    padding: 20px 0;
  }

  /* Font nhỏ lại cho vừa */
  .stat-item {
    text-align: center;
  }

  .stat-number {
    font-size: 48px !important;
    line-height: 1.1;
  }

  .stat-label {
    font-size: 14px !important;
  }
}

/* MOBILE NHỎ HƠN 480px — tránh tràn */
@media (max-width: 480px) {
  .stat-number {
    font-size: 64px !important;
  }

  .stat-label {
    font-size: 16px !important;
  }

  .hero-stats {
    gap: 60px;
  }
}

@media (max-width: 768px) {
  .hero-banner-card {
    max-width: 88%;
    padding: 18px 20px;
  }

  .hero-banner-img-2,
  .hero-slider-dots {
    display: none;
  }

  .hero-card-title {
    font-size: 18px;
  }

  .hero-card-text-1,
  .hero-card-text-2,
  .hero-card-highlight {
    font-size: 13px;
  }
}

/* MOBILE: quote popup bám lên top */
@media (max-width: 768px) {
  /* nền modal: đẩy flex lên phía trên */
  #quoteModal.dbl-modal {
    align-items: flex-start;   /* dính lên trên */
    justify-content: center;   /* vẫn canh giữa theo ngang */
    padding-top: 80px;         /* chừa khoảng dưới header */
    padding-bottom: 16px;
  }

  /* hộp trắng bên trong: bỏ căn giữa 50% */
  #quoteModal .dbl-modal-box {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    margin-top: 0;
    width: calc(100% - 32px);  /* ôm sát hai bên như hiện tại */
    max-width: 420px;
  }
}

/* PROJECT MODAL: bám lên trên màn hình trên mobile */
@media (max-width: 768px) {
  #projectModal.dbl-modal {
    align-items: flex-start;   /* dính lên trên thay vì giữa */
    justify-content: center;
    padding-top: 72px;         /* chừa chỗ dưới thanh địa chỉ */
    padding-bottom: 16px;
  }
}

/* ===========================
   MOBILE: Client Logos Slider
   =========================== */
@media (max-width: 768px) {
  .client-logos-subtitle {
    display: none;
  }

  .client-logos-grid {
    display: flex;
    overflow-x: hidden;        /* chỉ cho auto-scroll, không cần user kéo */
    gap: 28px;
    padding: 8px 16px 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;     /* Firefox */
  }

  .client-logos-grid::-webkit-scrollbar {
    display: none;
  }

  .client-logos-grid .client-logo {
    width: 120px;
    height: auto;
    flex-shrink: 0;            /* mỗi logo giữ nguyên width, nối thành dải dài */
    opacity: 0.75;
    transition: opacity 0.2s ease;
  }

  .client-logos-grid .client-logo:hover {
    opacity: 1;
  }

  .client-logos-title {
    text-align: center;
    margin-bottom: 12px;
  }

  .client-logos-subtitle {
    text-align: center;
    margin-top: 12px;
    opacity: 0.6;
  }
}
