/* ============================================
   vestadesign — vestadesign.com.vn
   ============================================ */
:root {
  --bg: #f3f7fb;
  --bg-2: #ffffff;
  --bg-3: #e8eef6;
  --bg-card: #ffffff;
  --border: rgba(30, 55, 100, 0.1);
  --border-glow: rgba(0, 168, 150, 0.4);
  --text: #2c3a52;
  --text-muted: #64748b;
  --white: #0f1b33;
  --surface: #ffffff;
  --cyan: #00b8a0;
  --cyan-dim: #009e8a;
  --violet: #6b5ce7;
  --pink: #e84d8a;
  --orange: #f07830;
  --gradient: linear-gradient(135deg, #00c9a7 0%, #5b7cfa 50%, #7b61ff 100%);
  --gradient-btn: linear-gradient(135deg, #00c9a7, #5b7cfa);
  --shadow: 0 16px 48px rgba(30, 55, 100, 0.1);
  --radius: 18px;
  --radius-sm: 12px;
  --header-h: 76px;
  --font: "Be Vietnam Pro", system-ui, sans-serif;
  --font-display: "Orbitron", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  /* Fluid spacing & type */
  --container: min(1180px, calc(100% - 2rem));
  --section-y: clamp(3.5rem, 6vw, 6rem);
  --text-base: clamp(0.95rem, 0.9rem + 0.2vw, 1.05rem);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--safe-top));
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: var(--text-base);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
  padding-top: var(--safe-top);
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

/* Tránh overflow ngang toàn site */
main,
section,
.container {
  max-width: 100%;
}

/* Touch: vùng bấm tối thiểu */
@media (pointer: coarse) {
  .nav-link,
  .btn,
  .filter-btn,
  .faq-q,
  .float-btn,
  .portfolio-btn,
  .testimonial-nav button {
    min-height: 44px;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  border: none;
  outline: none;
  background: none;
}

.container {
  width: var(--container);
  margin-inline: auto;
  padding-inline: max(0px, env(safe-area-inset-left));
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Cursor glow */
.cursor-glow {
  pointer-events: none;
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 180, 160, 0.1) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  z-index: 0;
  opacity: 0;
  transition: opacity 0.3s;
}

body:hover .cursor-glow {
  opacity: 1;
}

/* Preloader */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 9999;
  display: grid;
  place-items: center;
  transition: opacity 0.5s, visibility 0.5s;
}

.preloader.hide {
  opacity: 0;
  visibility: hidden;
}

.preloader-logo {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 28px;
  margin: 0 auto 1.25rem;
  display: block;
  box-shadow: 0 12px 40px rgba(91, 124, 250, 0.2);
  border: 2px solid rgba(0, 184, 160, 0.25);
}

.preloader-bar {
  width: 180px;
  height: 3px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
}

.preloader-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--gradient-btn);
  animation: load 1.2s var(--ease) forwards;
}

@keyframes load {
  to {
    width: 100%;
  }
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  padding-top: var(--safe-top);
  transition: background 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  box-shadow: 0 4px 24px rgba(30, 55, 100, 0.08);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  z-index: 1001;
}

.logo-img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(0, 180, 160, 0.25);
  box-shadow: 0 4px 14px rgba(30, 55, 100, 0.12);
  flex-shrink: 0;
}

.logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--gradient-btn);
  display: grid;
  place-items: center;
  color: #06060c;
  font-size: 1rem;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  color: var(--white);
}

.logo-text .accent {
  color: var(--cyan);
  font-weight: 700;
}

.footer .logo-img {
  width: 48px;
  height: 48px;
  border-radius: 14px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav-link {
  padding: 0.45rem 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
  background: rgba(0, 184, 160, 0.08);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  border-radius: 99px;
  background: var(--gradient-btn);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.88rem;
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.header-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(91, 124, 250, 0.35);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1001;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.3s;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 1.6rem;
  border-radius: 99px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
  border: 1px solid transparent;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--gradient-btn);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(91, 124, 250, 0.28);
}

.btn-primary:hover {
  box-shadow: 0 12px 32px rgba(0, 180, 160, 0.3);
}

.btn-ghost {
  border-color: var(--border);
  background: var(--surface);
  color: var(--white);
  box-shadow: 0 2px 10px rgba(30, 55, 100, 0.05);
}

.btn-ghost:hover {
  border-color: var(--cyan);
  background: rgba(0, 184, 160, 0.08);
}

.btn-light {
  background: #ffffff;
  color: #0f1b33;
  box-shadow: 0 4px 16px rgba(15, 27, 51, 0.12);
}

.btn-dark {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.45);
  color: #ffffff;
}

.btn-dark:hover {
  background: rgba(255, 255, 255, 0.28);
}

.btn.full {
  width: 100%;
}

/* Section */
.section {
  padding: var(--section-y) 0;
  position: relative;
  z-index: 1;
}

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 3.5rem;
}

.section-tag {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border-radius: 99px;
  border: 1px solid var(--border-glow);
  background: rgba(0, 184, 160, 0.1);
  color: var(--cyan-dim);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 0.85rem;
  color: var(--white);
}

.section-head p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Reveal animation */
/* Reveal: mặc định HIỆN (tránh section bị ẩn nếu JS/cache lỗi).
   Chỉ ẩn tạm khi html.js và chưa .revealed */
[data-reveal] {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

html.js [data-reveal]:not(.revealed) {
  opacity: 0;
  transform: translateY(36px);
}

html.js [data-reveal].revealed,
[data-reveal].revealed {
  opacity: 1;
  transform: none;
}

/* An toàn: sau 2.5s luôn hiện dù JS không chạy */
@keyframes reveal-failsafe {
  to {
    opacity: 1;
    transform: none;
  }
}
html.js [data-reveal]:not(.revealed) {
  animation: reveal-failsafe 0.01s linear 2.5s forwards;
}

/* ========== HERO ========== */
.hero {
  min-height: 100vh;
  padding: calc(var(--header-h) + 2rem) 0 5rem;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(30, 55, 100, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 55, 100, 0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black, transparent);
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  animation: float 10s ease-in-out infinite;
}

.hero-orb-1 {
  width: 420px;
  height: 420px;
  background: var(--cyan);
  top: 10%;
  left: -5%;
  opacity: 0.18;
}

.hero-orb-2 {
  width: 360px;
  height: 360px;
  background: var(--violet);
  top: 30%;
  right: -8%;
  opacity: 0.14;
  animation-delay: -3s;
}

.hero-orb-3 {
  width: 280px;
  height: 280px;
  background: #7ec8ff;
  bottom: 5%;
  left: 40%;
  opacity: 0.2;
  animation-delay: -6s;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(20px, -30px);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 1rem;
  border-radius: 99px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 14px rgba(30, 55, 100, 0.06);
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(0, 184, 160, 0.5);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 10px transparent;
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.hero-desc {
  color: var(--text-muted);
  font-size: 1.08rem;
  max-width: 520px;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 2.75rem;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.stat strong {
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  font-variant-numeric: tabular-nums;
}

.stat span {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--cyan);
}

.stat p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.hero-visual {
  position: relative;
}

.hero-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow), 0 20px 60px rgba(91, 124, 250, 0.12);
}

.hero-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.hero-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 27, 51, 0.45) 0%, transparent 55%);
  pointer-events: none;
}

.floating-tag {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.9rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--white);
  box-shadow: 0 8px 24px rgba(30, 55, 100, 0.12);
  animation: float 5s ease-in-out infinite;
}

.floating-tag i {
  color: var(--cyan);
}

.tag-1 {
  top: 12%;
  left: -8%;
}

.tag-2 {
  top: 48%;
  right: -10%;
  animation-delay: -1.5s;
}

.tag-3 {
  bottom: 14%;
  left: 8%;
  animation-delay: -3s;
}

.scroll-hint {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  z-index: 2;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(6px);
  }
}

/* Clients */
.clients {
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
  overflow: hidden;
}

.clients-label {
  text-align: center;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.clients-track {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.clients-slide {
  display: flex;
  gap: 3.5rem;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.clients-slide span {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  color: var(--text-muted);
  font-size: 1.05rem;
  white-space: nowrap;
  opacity: 0.7;
}

.clients-slide i {
  font-size: 1.3rem;
  color: var(--cyan-dim);
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* Services */
.services {
  background: var(--bg);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.service-card {
  position: relative;
  padding: 1.75rem;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(30, 55, 100, 0.05);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 184, 160, 0.35);
  box-shadow: 0 20px 40px rgba(30, 55, 100, 0.1);
}

.service-card.featured {
  border-color: rgba(91, 124, 250, 0.4);
  background: linear-gradient(160deg, rgba(91, 124, 250, 0.08), #ffffff);
}

.service-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.25rem 0.7rem;
  border-radius: 99px;
  background: var(--gradient-btn);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(0, 184, 160, 0.1);
  border: 1px solid rgba(0, 184, 160, 0.2);
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  color: var(--cyan);
  margin-bottom: 1.2rem;
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.6rem;
}

.service-card > p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 1.1rem;
}

.service-card ul {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
}

.service-card li {
  font-size: 0.88rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.service-card li i {
  color: var(--cyan);
  font-size: 0.75rem;
}

.service-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--cyan);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap 0.2s;
}

.service-link:hover {
  gap: 0.7rem;
}

/* About */
.about {
  background: var(--bg-2);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-visual {
  position: relative;
  min-height: 480px;
}

.about-img-main {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  width: 85%;
  box-shadow: var(--shadow);
}

.about-img-main img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}

.about-img-float {
  position: absolute;
  right: 0;
  bottom: 8%;
  width: 48%;
  border-radius: 18px;
  overflow: hidden;
  border: 3px solid #ffffff;
  box-shadow: var(--shadow);
}

.about-img-float img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.about-experience {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 1.2rem 1.4rem;
  border-radius: 16px;
  background: var(--gradient-btn);
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  box-shadow: 0 12px 30px rgba(91, 124, 250, 0.3);
}

.about-experience strong {
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1;
}

.about-experience span {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.3;
}

.about-content .section-tag {
  margin-bottom: 1rem;
}

.about-content h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 1rem;
}

.about-content > p {
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
  margin-bottom: 2rem;
}

.about-feat {
  display: flex;
  gap: 0.75rem;
}

.about-feat > i {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(123, 97, 255, 0.15);
  color: var(--violet);
  display: grid;
  place-items: center;
}

.about-feat h4 {
  font-size: 0.95rem;
  color: var(--white);
  margin-bottom: 0.2rem;
}

.about-feat p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Portfolio */
.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.filter-btn {
  padding: 0.5rem 1.15rem;
  border-radius: 99px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: 0.25s;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--gradient-btn);
  color: #ffffff;
  border-color: transparent;
  font-weight: 600;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

a.portfolio-item {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.portfolio-open-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  align-self: flex-start;
  margin-top: 0.15rem;
}
.portfolio-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 4/3;
  cursor: pointer;
  transition: opacity 0.35s, transform 0.35s;
}

.portfolio-item.hide {
  display: none;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.portfolio-item:hover img {
  transform: scale(1.08);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 27, 51, 0.92) 0%, rgba(15, 27, 51, 0.35) 55%, transparent);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.4rem;
  opacity: 0;
  transition: opacity 0.35s;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-cat {
  font-size: 0.75rem;
  color: var(--cyan);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
}

.portfolio-overlay h3 {
  color: #ffffff;
  font-size: 1.15rem;
  margin-bottom: 0.3rem;
}

.portfolio-overlay p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.75rem;
}

.portfolio-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  align-self: flex-start;
}
.portfolio-btn,
.portfolio-link {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--gradient-btn);
  color: #ffffff;
  display: grid;
  place-items: center;
  cursor: pointer;
  border: 0;
  text-decoration: none;
  transition: transform 0.2s;
}
.portfolio-link {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.portfolio-btn:hover,
.portfolio-link:hover {
  transform: scale(1.1);
}
.portfolio-item.featured-project img {
  min-height: 240px;
  object-fit: cover;
}

/* Process */
.process {
  background: var(--bg-2);
  overflow: hidden;
}

.process-timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.2rem;
  position: relative;
}

.process-timeline::before {
  content: "";
  position: absolute;
  top: 48px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--violet), var(--pink), transparent);
  opacity: 0.4;
}

.process-step {
  text-align: center;
  position: relative;
  padding: 0 0.5rem;
}

.process-num {
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: var(--cyan);
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
  opacity: 0.8;
}

.process-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid rgba(0, 184, 160, 0.35);
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  color: var(--cyan);
  position: relative;
  z-index: 1;
  box-shadow: 0 8px 24px rgba(30, 55, 100, 0.08);
  transition: transform 0.3s, border-color 0.3s;
}

.process-step:hover .process-icon {
  transform: scale(1.1);
  border-color: var(--cyan);
}

.process-step h3 {
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.process-step p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}

@media (max-width: 1100px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.price-card {
  position: relative;
  padding: 2rem 1.75rem;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(30, 55, 100, 0.05);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, border-color 0.3s;
}

.price-card:hover {
  transform: translateY(-6px);
}

.price-card.popular {
  border-color: rgba(0, 184, 160, 0.45);
  background: linear-gradient(180deg, rgba(0, 184, 160, 0.08), #ffffff);
  transform: scale(1.03);
  z-index: 1;
  box-shadow: 0 12px 36px rgba(91, 124, 250, 0.12);
}

.price-card.popular:hover {
  transform: scale(1.05) translateY(-4px);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.3rem 1rem;
  border-radius: 99px;
  background: var(--gradient-btn);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.price-header h3 {
  font-size: 1.35rem;
  color: var(--white);
  margin-bottom: 0.25rem;
}

.price-header > p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.price-from {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.price strong {
  font-size: 3rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}

.price-unit {
  font-size: 1rem;
  color: var(--cyan);
  font-weight: 600;
}

.price-features {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-bottom: 1.75rem;
}

.price-features li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.92rem;
}

.price-features li i {
  color: var(--cyan);
  width: 16px;
}

.price-features li.muted {
  color: var(--text-muted);
  opacity: 0.55;
}

.price-features li.muted i {
  color: var(--pink);
}

.pricing-note {
  text-align: center;
  margin-top: 2.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.pricing-note a {
  color: var(--cyan);
  font-weight: 600;
}

/* Testimonials */
.testimonials {
  background: var(--bg-2);
}

.testimonial-slider {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.testimonial-track {
  display: flex;
  gap: 1.4rem;
  transition: transform 0.5s var(--ease);
  will-change: transform;
}

.testimonial-card {
  flex: 0 0 calc(33.333% - 0.94rem);
  min-width: 0;
  max-width: 100%;
  padding: 1.75rem;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(30, 55, 100, 0.05);
  box-sizing: border-box;
}

.stars {
  color: #ffc107;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

.testimonial-card > p {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.4rem;
  min-height: 100px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.testimonial-author img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(0, 184, 160, 0.4);
}

.testimonial-author strong {
  display: block;
  color: var(--white);
  font-size: 0.95rem;
}

.testimonial-author span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.testimonial-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.testimonial-nav button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--white);
  cursor: pointer;
  transition: 0.2s;
  display: grid;
  place-items: center;
}

.testimonial-nav button:hover {
  border-color: var(--cyan);
  background: rgba(0, 184, 160, 0.1);
  color: var(--cyan);
}

.testimonial-dots {
  display: flex;
  gap: 0.4rem;
}

.testimonial-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  padding: 0;
  border: none;
  cursor: pointer;
  transition: 0.2s;
}

.testimonial-dots button.active {
  background: var(--cyan);
  width: 24px;
  border-radius: 4px;
}

/* CTA banner */
.cta-banner {
  padding: 0 0 0;
  position: relative;
  z-index: 1;
}

.cta-inner {
  margin: 0 auto;
  padding: 3rem 2.5rem;
  border-radius: 24px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  box-shadow: 0 20px 50px rgba(91, 124, 250, 0.25);
}

.cta-inner h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  color: #ffffff;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.cta-inner p {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.cta-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Contact */
.contact {
  padding-top: 5rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-card {
  display: flex;
  gap: 1rem;
  padding: 1.15rem;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: 0 4px 16px rgba(30, 55, 100, 0.04);
  align-items: flex-start;
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(0, 184, 160, 0.1);
  color: var(--cyan);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.contact-card h4 {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 0.2rem;
}

.contact-card a,
.contact-card p {
  color: var(--white);
  font-weight: 600;
  font-size: 0.98rem;
}

.contact-card a:hover {
  color: var(--cyan);
}

.contact-social {
  display: flex;
  gap: 0.6rem;
  margin: 0.5rem 0;
}

.contact-social a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--text-muted);
  background: var(--surface);
  transition: 0.25s;
}

.contact-social a:hover {
  background: var(--gradient-btn);
  color: #ffffff;
  border-color: transparent;
}

.contact-social a.social-fb:hover {
  background: #1877f2;
}

.contact-social a.social-zalo:hover {
  background: #0068ff;
}

.contact-map {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-top: 0.5rem;
}

.contact-map img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  filter: brightness(0.95) saturate(0.95);
}

.map-badge {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  padding: 0.5rem 0.9rem;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--border);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(30, 55, 100, 0.12);
}

.map-badge i {
  color: var(--pink);
}

.contact-form {
  padding: 2rem;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: 0 12px 40px rgba(30, 55, 100, 0.08);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1.1rem;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: #f5f8fc;
  border: 1px solid var(--border);
  color: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #94a3b8;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 184, 160, 0.15);
  background: #ffffff;
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='%2364748b'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}

.form-group select option {
  background: #ffffff;
  color: var(--white);
}

.form-group.checkbox label {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.form-group.checkbox input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--cyan);
  cursor: pointer;
  flex-shrink: 0;
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
  border-color: var(--pink);
}

.error-msg {
  display: none;
  font-size: 0.78rem;
  color: var(--pink);
  margin-top: 0.35rem;
}

.form-group.error .error-msg {
  display: block;
}

.form-note {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.form-note a {
  color: var(--cyan);
  font-weight: 600;
}

/* FAQ */
.faq {
  background: var(--bg-2);
  padding-bottom: 6rem;
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: 0 2px 12px rgba(30, 55, 100, 0.04);
  overflow: hidden;
  transition: border-color 0.25s;
}

.faq-item.open {
  border-color: rgba(0, 184, 160, 0.4);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.35rem;
  text-align: left;
  font-weight: 600;
  color: var(--white);
  cursor: pointer;
  transition: background 0.2s;
}

.faq-q:hover {
  background: rgba(0, 184, 160, 0.04);
}

.faq-q i {
  color: var(--cyan);
  transition: transform 0.3s;
  flex-shrink: 0;
}

.faq-item.open .faq-q i {
  transform: rotate(45deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}

.faq-a p {
  padding: 0 1.35rem 1.2rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Footer */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 1.1rem 0 1.25rem;
  max-width: 280px;
}

.footer-hotline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--cyan);
}

.footer-hotline:hover {
  color: var(--white);
}

.footer-domain {
  margin-top: 0.65rem;
  font-size: 0.9rem;
}

.footer-domain a {
  color: var(--cyan);
  font-weight: 600;
}

.footer-domain a:hover {
  color: var(--white);
}

.footer-credit {
  margin: 0.65rem 0 0.35rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.5;
}

.footer-credit a {
  color: var(--cyan);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 184, 160, 0.35);
  transition: color 0.2s, border-color 0.2s;
}

.footer-credit a:hover {
  color: #5eead4;
  border-bottom-color: #5eead4;
}

.footer-social {
  margin-top: 1.1rem;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 1.1rem;
}

.footer-col a,
.footer-col p {
  display: block;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.55rem;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--cyan);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.25rem 0;
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-bottom a {
  color: var(--cyan);
}

/* Float actions */
.float-actions {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  align-items: flex-end;
}

.float-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(30, 55, 100, 0.2);
  cursor: pointer;
  position: relative;
  transition: transform 0.2s;
  border: none;
}

.float-btn:hover {
  transform: scale(1.08);
}

.float-btn.call {
  background: linear-gradient(135deg, #00c853, #00b8a0);
  color: #ffffff;
  animation: ring 2.5s ease infinite;
}

@keyframes ring {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(0, 184, 160, 0.45);
  }
  50% {
    box-shadow: 0 0 0 12px transparent;
  }
}

.float-btn.zalo {
  background: linear-gradient(135deg, #0068ff, #00a3ff);
  color: #ffffff;
}

/* ========== Khung chat Zalo (IME tiếng Việt) ========== */
.zalo-chat {
  position: fixed;
  right: 1.25rem;
  bottom: 5.5rem;
  z-index: 1200;
  width: min(380px, calc(100vw - 1.5rem));
  max-height: min(560px, calc(100vh - 7rem));
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(15, 27, 51, 0.22);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.98);
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  /* Quan trọng: không chặn sự kiện bàn phím / IME */
  pointer-events: none;
}
.zalo-chat.open {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}
.zalo-chat-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.95rem 1rem;
  background: linear-gradient(135deg, #0068ff, #00a3ff);
  color: #fff;
}
.zalo-chat-brand {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  min-width: 0;
}
.zalo-chat-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}
.zalo-chat-brand strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
}
.zalo-chat-brand span {
  display: block;
  font-size: 0.75rem;
  opacity: 0.92;
  line-height: 1.35;
}
.zalo-chat-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.zalo-chat-close:hover {
  background: rgba(255, 255, 255, 0.3);
}
.zalo-chat-body {
  padding: 0.9rem 1rem 1rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--bg);
}
.zalo-bubble.bot {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px 14px 14px 4px;
  padding: 0.75rem 0.9rem;
  font-size: 0.88rem;
  color: var(--text);
  margin-bottom: 0.9rem;
  line-height: 1.55;
  box-shadow: 0 2px 10px rgba(30, 55, 100, 0.05);
}
.zalo-chat-form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.zalo-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}
.zalo-field input,
.zalo-field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff !important;
  color: var(--text) !important;
  font: inherit;
  font-weight: 500;
  line-height: 1.5;
  /* IME / tiếng Việt */
  ime-mode: active;
  -webkit-user-select: text;
  user-select: text;
  pointer-events: auto !important;
  touch-action: manipulation;
  caret-color: var(--cyan);
}
.zalo-field textarea {
  resize: vertical;
  min-height: 96px;
}
.zalo-field input:focus,
.zalo-field textarea:focus {
  outline: none;
  border-color: #0068ff;
  box-shadow: 0 0 0 3px rgba(0, 104, 255, 0.15);
}
.zalo-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.4;
}
.zalo-hint.error {
  color: #e11d48;
}
.zalo-actions {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.zalo-actions .btn.full {
  width: 100%;
}

/* Form contact cũng bật IME tiếng Việt */
.form-group input,
.form-group textarea,
.form-group select {
  ime-mode: active;
  -webkit-user-select: text;
  user-select: text;
  pointer-events: auto;
}

@media (max-width: 480px) {
  .zalo-chat {
    right: 0.65rem;
    left: 0.65rem;
    width: auto;
    bottom: 5.25rem;
    max-height: min(70vh, 520px);
  }
}

.float-btn.fb {
  background: linear-gradient(135deg, #1877f2, #3b8dff);
  color: #ffffff;
}

.float-btn.top {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--white);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: 0.3s;
}

.float-btn.top.show {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.float-label {
  position: absolute;
  right: calc(100% + 10px);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--white);
  padding: 0.35rem 0.7rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  box-shadow: 0 4px 14px rgba(30, 55, 100, 0.1);
}

.float-btn:hover .float-label {
  opacity: 1;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
}

.modal.open {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 27, 51, 0.45);
  backdrop-filter: blur(6px);
  cursor: pointer;
}

.modal-content {
  position: relative;
  width: min(720px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(30, 55, 100, 0.2);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.35s var(--ease);
}

.modal.open .modal-content {
  transform: none;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--white);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 2;
  transition: 0.2s;
  box-shadow: 0 4px 12px rgba(30, 55, 100, 0.15);
}

.modal-close:hover {
  background: var(--pink);
  color: #ffffff;
}

.modal-body img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 20px 20px 0 0;
}

.modal-body .modal-info {
  padding: 1.75rem;
}

.modal-body .modal-cat {
  color: var(--cyan);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.modal-body h3 {
  font-size: 1.5rem;
  color: var(--white);
  margin: 0.4rem 0 0.75rem;
}

.modal-body p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.modal-tags span {
  padding: 0.3rem 0.75rem;
  border-radius: 99px;
  background: rgba(0, 184, 160, 0.1);
  border: 1px solid rgba(0, 184, 160, 0.25);
  font-size: 0.78rem;
  color: var(--cyan-dim);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  padding: 1rem 1.5rem;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid rgba(0, 184, 160, 0.4);
  color: var(--white);
  font-weight: 500;
  box-shadow: 0 12px 36px rgba(30, 55, 100, 0.15);
  z-index: 3000;
  opacity: 0;
  transition: 0.4s var(--ease);
  max-width: 90%;
  text-align: center;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast.error {
  border-color: rgba(255, 77, 154, 0.5);
}

/* ============================================
   RESPONSIVE SYSTEM
   Desktop ≥1200 | Laptop ≤1199 | Tablet ≤1024
   Mobile ≤768   | Small ≤480
   ============================================ */

/* ----- Large laptop / small desktop ----- */
@media (max-width: 1199px) {
  .nav-link {
    padding: 0.4rem 0.55rem;
    font-size: 0.82rem;
  }

  .header-cta {
    padding: 0.55rem 0.9rem;
    font-size: 0.8rem;
  }

  .services-grid,
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-timeline {
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
  }

  .process-step p {
    font-size: 0.8rem;
  }

  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 1.5rem;
  }
}

/* ----- Tablet (portrait + landscape) ----- */
@media (max-width: 1024px) {
  :root {
    --header-h: 70px;
    --container: min(100%, calc(100% - 2.5rem));
  }

  .hero {
    min-height: auto;
    padding: calc(var(--header-h) + 1.5rem) 0 3.5rem;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 2.25rem;
    text-align: center;
  }

  .hero-desc {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    max-width: min(520px, 100%);
    margin: 0 auto;
  }

  .hero-badge {
    margin-inline: auto;
  }

  .floating-tag {
    font-size: 0.72rem;
    padding: 0.4rem 0.7rem;
  }

  .tag-1 {
    left: 0;
    top: 8%;
  }

  .tag-2 {
    right: 0;
  }

  .tag-3 {
    left: 4%;
    bottom: 10%;
  }

  .services-grid,
  .portfolio-grid,
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.1rem;
  }

  .price-card.popular {
    transform: none;
  }

  .price-card.popular:hover {
    transform: translateY(-6px);
  }

  .process-timeline {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem 1rem;
  }

  .process-timeline::before {
    display: none;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-visual {
    max-width: min(480px, 100%);
    margin: 0 auto;
    min-height: 400px;
  }

  .about-content {
    text-align: center;
  }

  .about-content .btn {
    margin-inline: auto;
  }

  .about-features {
    text-align: left;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .testimonial-card {
    flex: 0 0 calc(50% - 0.7rem);
  }

  .section-head {
    margin-bottom: 2.5rem;
  }

  .cursor-glow {
    display: none;
  }
}

/* Nav hamburger sớm hơn (menu 7 mục chật trên tablet landscape) */
@media (max-width: 980px) {
  .nav-toggle {
    display: flex;
  }

  .header-cta span {
    display: none;
  }

  .header-cta {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
    margin-left: auto;
    margin-right: 0.35rem;
  }

  .nav {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.35rem;
    padding: calc(var(--safe-top) + 4rem) 1.5rem calc(var(--safe-bottom) + 2rem);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s, visibility 0.3s;
  }

  .nav.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-link {
    font-size: 1.15rem;
    padding: 0.85rem 1.5rem;
    width: min(280px, 80vw);
    text-align: center;
  }

  .logo-text {
    font-size: 0.95rem;
  }
}

/* ----- Mobile ----- */
@media (max-width: 768px) {
  :root {
    --header-h: 64px;
    --container: min(100%, calc(100% - 1.5rem));
    --section-y: clamp(3rem, 8vw, 4rem);
  }

  .hero {
    padding: calc(var(--header-h) + 1.25rem) 0 2.5rem;
  }

  .hero h1 {
    font-size: clamp(1.75rem, 7vw, 2.25rem);
  }

  .hero-desc {
    font-size: 0.98rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-stats {
    gap: 1rem 1.5rem;
    justify-content: space-around;
  }

  .stat strong {
    font-size: 1.6rem;
  }

  .floating-tag {
    display: none;
  }

  .services-grid,
  .portfolio-grid,
  .pricing-grid,
  .about-features {
    grid-template-columns: 1fr;
  }

  .process-timeline {
    grid-template-columns: 1fr 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .testimonial-card {
    flex: 0 0 100%;
  }

  .testimonial-card > p {
    min-height: 0;
  }

  .cta-inner {
    flex-direction: column;
    text-align: center;
    padding: 1.75rem 1.25rem;
  }

  .cta-actions {
    justify-content: center;
    width: 100%;
  }

  .cta-actions .btn {
    flex: 1 1 auto;
    min-width: min(100%, 140px);
  }

  .scroll-hint {
    display: none;
  }

  .about-visual {
    min-height: 340px;
  }

  .about-img-main {
    width: 88%;
  }

  .contact-form {
    padding: 1.35rem 1.15rem;
  }

  /* iOS: font ≥16px tránh zoom khi focus input */
  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px;
  }

  .portfolio-overlay {
    opacity: 1;
    background: linear-gradient(
      to top,
      rgba(15, 27, 51, 0.92) 0%,
      rgba(15, 27, 51, 0.35) 55%,
      transparent
    );
  }

  .portfolio-overlay p {
    display: none;
  }

  .portfolio-overlay h3 {
    font-size: 1rem;
  }

  .modal {
    padding: 0.75rem;
    align-items: flex-end;
  }

  .modal-content {
    max-height: 92dvh;
    border-radius: 16px 16px 12px 12px;
  }

  .modal-body .modal-info {
    padding: 1.25rem;
  }

  .float-actions {
    bottom: calc(1rem + var(--safe-bottom));
    right: calc(0.85rem + var(--safe-right));
  }

  .float-label {
    display: none;
  }

  .footer-bottom .container {
    flex-direction: column;
    text-align: center;
  }

  .section-head h2 {
    font-size: clamp(1.45rem, 5.5vw, 1.9rem);
  }

  .filter-btn {
    font-size: 0.82rem;
    padding: 0.45rem 0.9rem;
  }

  .price strong {
    font-size: 2.5rem;
  }
}

/* ----- Small phones ----- */
@media (max-width: 480px) {
  :root {
    --container: min(100%, calc(100% - 1.25rem));
  }

  .process-timeline {
    grid-template-columns: 1fr;
  }

  .process-step {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 0.85rem;
    text-align: left;
    padding: 0.85rem;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    border: 1px solid var(--border);
  }

  .process-num {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    align-self: end;
  }

  .process-icon {
    grid-column: 1;
    grid-row: 1 / span 2;
    margin: 0;
    width: 52px;
    height: 52px;
    font-size: 1.1rem;
    align-self: center;
  }

  .process-step h3 {
    grid-column: 2;
    grid-row: 2;
    margin: 0;
  }

  .process-step p {
    grid-column: 1 / -1;
    margin-top: 0.65rem;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    width: 100%;
  }

  .stat p {
    font-size: 0.72rem;
    line-height: 1.25;
  }

  .stat strong {
    font-size: 1.35rem;
  }

  .stat span {
    font-size: 1.1rem;
  }

  .float-btn {
    width: 48px;
    height: 48px;
  }

  .float-actions {
    gap: 0.5rem;
  }

  .header-inner {
    gap: 0.5rem;
  }

  .logo-img {
    width: 38px;
    height: 38px;
  }

  .clients-slide {
    gap: 2rem;
  }

  .clients-slide span {
    font-size: 0.92rem;
  }

  .toast {
    bottom: calc(1rem + var(--safe-bottom));
    left: 0.75rem;
    right: 0.75rem;
    width: auto;
    max-width: none;
    transform: translateY(100px);
  }

  .toast.show {
    transform: translateY(0);
  }
}

/* ----- Tablet landscape only ----- */
@media (min-width: 769px) and (max-width: 1024px) and (orientation: landscape) {
  .hero {
    min-height: auto;
  }

  .hero-content {
    grid-template-columns: 1.1fr 0.9fr;
    text-align: left;
    align-items: center;
  }

  .hero-badge,
  .hero-desc {
    margin-inline: 0;
  }

  .hero-actions,
  .hero-stats {
    justify-content: flex-start;
  }

  .about-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ----- Desktop large: giữ 3 cột ----- */
@media (min-width: 1200px) {
  .services-grid,
  .portfolio-grid,
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .process-timeline {
    grid-template-columns: repeat(5, 1fr);
  }

  .testimonial-card {
    flex: 0 0 calc(33.333% - 0.94rem);
  }
}

/* Hover chỉ khi hỗ trợ hover thật (không phải cảm ứng) */
@media (hover: none) {
  .service-card:hover,
  .price-card:hover,
  .portfolio-item:hover {
    transform: none;
  }

  .portfolio-item:hover img {
    transform: none;
  }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ========== Live chat Ly Ly (vestadesign) ========== */
.vesta-chat{position:fixed;right:1rem;bottom:1rem;z-index:9990;font-family:var(--font);pointer-events:none}
.vesta-chat > *{pointer-events:auto}
.vesta-chat-fab{
  width:60px;height:60px;border-radius:50%;border:0;cursor:pointer;color:#fff;
  background:var(--gradient-btn);box-shadow:0 12px 32px rgba(0,184,160,.4);
  font-size:1.4rem;display:grid;place-items:center;position:relative;transition:.2s var(--ease);
  margin-left:auto;
}
.vesta-chat-fab:hover{transform:scale(1.06)}
.vesta-chat-fab.is-open{background:linear-gradient(135deg,#1a2d4d,#0f1b33)}
.vesta-chat-fab-badge{
  position:absolute;top:-2px;right:-2px;min-width:20px;height:20px;padding:0 5px;
  border-radius:999px;background:#ef4444;color:#fff;font-size:.7rem;font-weight:800;
  display:grid;place-items:center;border:2px solid #fff;
}
.vesta-chat-panel{
  position:absolute;right:0;bottom:74px;
  width:min(94vw,420px);height:auto;max-height:min(70vh,480px);
  background:#fff;border:1px solid var(--border);border-radius:22px;
  box-shadow:0 24px 60px rgba(30,55,100,.18);
  display:none;flex-direction:column;overflow:hidden;
  transition:width .25s var(--ease), height .25s var(--ease), max-height .25s var(--ease);
}
/* Mở panel: chỉ khi có class is-open — không bị display:flex ghi đè [hidden] */
.vesta-chat-panel.is-open{display:flex}
.vesta-chat-panel[hidden]{display:none!important}
.vesta-chat-panel.is-room{
  width:min(96vw,480px);
  height:min(86vh,720px);
  max-height:min(86vh,720px);
}
.vesta-chat-head{
  display:flex;align-items:center;justify-content:space-between;gap:.75rem;
  padding:1rem 1.1rem;background:linear-gradient(135deg,#0f1b33,#1a2d4d);color:#fff;flex-shrink:0;
}
.vesta-chat-head strong{display:block;font-size:1.05rem;color:#fff}
.vesta-chat-head small{display:block;opacity:.78;font-size:.78rem;margin-top:.2rem;line-height:1.35;color:#c8d6e8}
.vesta-chat-close{
  width:38px;height:38px;border:0;border-radius:12px;background:rgba(255,255,255,.12);
  color:#fff;cursor:pointer;display:grid;place-items:center;flex-shrink:0;z-index:2;
  position:relative;
}
.vesta-chat-close:hover{background:rgba(255,255,255,.22)}
.vesta-chat-backdrop{
  position:fixed;inset:0;background:rgba(15,27,51,.28);z-index:9985;
  border:0;padding:0;cursor:pointer;
}
.vesta-chat-backdrop[hidden]{display:none!important}
.vesta-chat-gate{padding:1.15rem 1.15rem 1.25rem;display:flex;flex-direction:column;gap:.85rem;overflow:auto}
.vesta-chat-gate-note{font-size:.92rem;color:var(--text-muted);line-height:1.55;margin:0}
.vesta-chat-field{display:flex;flex-direction:column;gap:.35rem;font-size:.82rem;font-weight:600;color:var(--text-muted)}
.vesta-chat-field input{
  border:1px solid var(--border);border-radius:12px;padding:.8rem .95rem;background:#f8fafc;color:var(--text);font-weight:500;
}
.vesta-chat-field input:focus{outline:none;border-color:rgba(0,184,160,.55);box-shadow:0 0 0 3px rgba(0,184,160,.12)}
.vesta-chat-err{color:#dc2626;font-size:.85rem;margin:0}
.vesta-chat-btn{
  border:0;border-radius:12px;padding:.9rem 1rem;font-weight:700;cursor:pointer;color:#fff;
  background:var(--gradient-btn);display:inline-flex;align-items:center;justify-content:center;gap:.45rem;
}
.vesta-chat-btn:disabled{opacity:.65;cursor:wait}
.vesta-chat-room{display:none;flex-direction:column;flex:1;min-height:0}
.vesta-chat-panel.is-room .vesta-chat-room{display:flex}
.vesta-chat-panel.is-room .vesta-chat-gate{display:none!important}
.vesta-chat-msgs{
  flex:1;overflow-y:auto;overflow-x:hidden;padding:1rem 1.05rem;
  display:flex;flex-direction:column;gap:.75rem;background:#f1f5f9;min-height:0;
  -webkit-overflow-scrolling:touch;
}
.vesta-chat-msg{display:flex}
.vesta-chat-msg.me{justify-content:flex-end}
.vesta-chat-bubble{
  max-width:92%;padding:.75rem .95rem;border-radius:16px;background:#fff;
  border:1px solid var(--border);box-shadow:0 2px 10px rgba(30,55,100,.05);
}
.vesta-chat-msg.me .vesta-chat-bubble{background:linear-gradient(135deg,#e6faf6,#d1f5ee);border-color:rgba(0,184,160,.25)}
.vesta-chat-msg.admin .vesta-chat-bubble{background:#ecfdf5;border-color:rgba(16,185,129,.28)}
.vesta-chat-msg.ai .vesta-chat-bubble{background:#fff}
.vesta-chat-who{display:block;font-size:.68rem;font-weight:700;color:var(--text-muted);margin-bottom:.3rem;letter-spacing:.02em}
.vesta-chat-text{font-size:.95rem;line-height:1.58;color:var(--text);word-break:break-word}
.vesta-chat-compose{display:flex;gap:.5rem;padding:.75rem .9rem;border-top:1px solid var(--border);background:#fff;flex-shrink:0}
.vesta-chat-compose input{
  flex:1;border:1px solid var(--border);border-radius:14px;padding:.8rem .95rem;background:#f8fafc;font-size:.95rem;color:var(--text);
}
.vesta-chat-compose input:focus{outline:none;border-color:rgba(0,184,160,.5)}
.vesta-chat-send{
  width:48px;height:48px;border:0;border-radius:14px;background:var(--gradient-btn);color:#fff;cursor:pointer;
  display:grid;place-items:center;flex-shrink:0;
}
.vesta-chat-foot{
  display:flex;justify-content:space-between;align-items:center;padding:.4rem 1rem .55rem;
  font-size:.75rem;color:var(--text-muted);background:#fff;border-top:1px solid rgba(30,55,100,.04);flex-shrink:0;
}
.vesta-chat-link{background:none;border:0;color:var(--cyan-dim);font-weight:600;cursor:pointer;font-size:.75rem;padding:0}
/* hide old Zalo float when AI chat present — keep panel in DOM for legacy */
body:has(.vesta-chat) .zalo-float-wrap,
body:has(.vesta-chat) .float-actions .zalo{/* keep both if needed */}
@media(max-width:520px){
  .vesta-chat{right:.5rem;bottom:.5rem;left:.5rem}
  .vesta-chat-fab{margin-left:auto}
  .vesta-chat-panel.is-open,.vesta-chat-panel.is-open.is-room{
    right:0;left:0;width:100%;
    height:min(88vh,780px);max-height:min(88vh,780px);
    bottom:70px;border-radius:18px;
  }
  .vesta-chat-panel.is-open:not(.is-room){height:auto;max-height:min(75vh,520px)}
}
