/* Fallback font với metrics căn chỉnh theo Outfit - ngăn layout shift khi font chưa load */
@font-face {
  font-family: "Outfit Fallback";
  src: local("Arial");
  size-adjust: 97%;
  ascent-override: 95%;
  descent-override: 23%;
  line-gap-override: 0%;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --blur: blur(28px) saturate(180%);
  --glass-bg: rgba(255, 255, 255, 0.06);
  --glass-bg-hover: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.14);
  --glass-border-hover: rgba(255, 255, 255, 0.25);
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.5);
  --text-hint: rgba(255, 255, 255, 0.3);
  --accent-1: #a78bfa;
  --accent-2: #38bdf8;
  --accent-3: #34d399;
  --accent-4: #fb7185;
  --bg-body: #060614;
  --nav-bg: rgba(6, 6, 20, 0.5);
  --footer-border: rgba(255, 255, 255, 0.14);
  --mesh-op: 1;
}

/* ── LIGHT MODE ── */
html.light {
  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-bg-hover: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(0, 0, 0, 0.1);
  --glass-border-hover: rgba(0, 0, 0, 0.2);
  --text: #0f1117;
  --text-muted: rgba(15, 17, 23, 0.6);
  --text-hint: rgba(15, 17, 23, 0.38);
  --bg-body: #eef3ee;
  --nav-bg: rgba(238, 243, 238, 0.8);
  --footer-border: rgba(0, 0, 0, 0.1);
  --mesh-op: 0.25;
}

/* Body & base */
html.light body {
  background: var(--bg-body);
  color: #0f1117;
}

/* Nav */
html.light nav {
  background: var(--nav-bg);
  border-bottom-color: var(--glass-border);
}

html.light .nav-links a {
  color: rgba(15, 17, 23, 0.6);
}

html.light .nav-links a:hover {
  color: #0f1117;
}

html.light .nav-links a.active {
  color: #0f1117;
  border-bottom-color: #5ec41e;
}

html.light .nav-cta {
  background: rgba(94, 196, 30, 0.12) !important;
  border-color: rgba(94, 196, 30, 0.4) !important;
  color: #3a8a0f !important;
}

html.light .nav-cta:hover {
  color: #0f1117 !important;
}

/* Hero */
html.light .hero-tag {
  background: rgba(94, 196, 30, 0.1);
  border-color: rgba(94, 196, 30, 0.3);
  color: #3a8a0f;
}

html.light .page-hero-tag {
  background: rgba(94, 196, 30, 0.1);
  border-color: rgba(94, 196, 30, 0.3);
  color: #3a8a0f;
}

html.light .hero-home h1,
html.light .page-hero h1,
html.light .section-title,
html.light .about-text h2,
html.light .cta-box h2,
html.light .home-cta-box h2 {
  color: #0f1117;
}

html.light .hero-home h1 .grad,
html.light .page-hero h1 .grad {
  background: linear-gradient(135deg, #0f1117 10%, #5ec41e 55%, #4aa316);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

html.light .hero-sub,
html.light .page-hero-sub {
  color: rgba(15, 17, 23, 0.6);
}

html.light .hero-stats {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(0, 0, 0, 0.1);
}

html.light .hero-stat {
  border-right-color: rgba(0, 0, 0, 0.08);
}

html.light .stat-num {
  background: linear-gradient(135deg, #0f1117, #2d2d2d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

html.light .stat-lbl {
  color: rgba(15, 17, 23, 0.4);
}

/* Buttons */
html.light .btn-ghost {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.15);
  color: #0f1117;
}

html.light .btn-ghost:hover {
  background: rgba(0, 0, 0, 0.1);
}

/* All glass cards */
html.light .glass,
html.light .service-card,
html.light .svc-card,
html.light .process-card,
html.light .value-card,
html.light .home-team-card,
html.light .team-card,
html.light .home-testi-card,
html.light .testi-card,
html.light .client-card,
html.light .home-cta-box,
html.light .cta-box,
html.light .ab-card,
html.light .float-card {
  background: rgba(255, 255, 255, 0.65);
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

html.light .glass:hover,
html.light .service-card:hover,
html.light .svc-card:hover,
html.light .home-team-card:hover,
html.light .team-card:hover,
html.light .home-testi-card:hover,
html.light .testi-card:hover,
html.light .client-card:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.15);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

/* All white text → dark */
html.light .svc-name,
html.light .process-title,
html.light .value-title,
html.light .member-name,
html.light .testi-name,
html.light .client-logo-name,
html.light .result-num,
html.light .stat-value,
html.light .tl-year,
html.light .chart-value,
html.light .feat-text strong,
html.light .about-story-text h2,
html.light [style*="color:white"],
html.light [style*="color: white"] {
  color: #0f1117 !important;
}

/* Muted text */
html.light .svc-desc,
html.light .process-desc,
html.light .value-desc,
html.light .member-role,
html.light .member-bio,
html.light .testi-quote,
html.light .testi-company,
html.light .client-desc,
html.light .client-logo-sector,
html.light .result-lbl,
html.light .section-sub,
html.light .about-text p,
html.light .feat-text,
html.light .tl-content p,
html.light .footer-brand p,
html.light [style*="color:var(--text-muted)"],
html.light [style*="color:rgba(255,255,255,0.5)"],
html.light [style*="color:rgba(255,255,255,.5)"],
html.light [style*="color:rgba(255,255,255,0.75)"],
html.light [style*="color:rgba(255,255,255,.75)"] {
  color: rgba(15, 17, 23, 0.6) !important;
}

/* Hint text */
html.light [style*="color:var(--text-hint)"],
html.light [style*="color:rgba(255,255,255,0.3)"],
html.light [style*="color:rgba(255,255,255,.3)"],
html.light [style*="color:rgba(255,255,255,0.4)"],
html.light [style*="color:rgba(255,255,255,.4)"],
html.light .footer-col h4,
html.light .footer-bottom p {
  color: rgba(15, 17, 23, 0.38) !important;
}

/* Footer */
html.light footer {
  border-top-color: var(--footer-border);
}

html.light .footer-bottom {
  border-top-color: var(--footer-border);
}

html.light .footer-col a {
  color: rgba(15, 17, 23, 0.6);
}

html.light .footer-col a:hover {
  color: #0f1117;
}

/* Metric bars bg */
html.light .metric-bar {
  background: rgba(0, 0, 0, 0.08);
}

/* Section tag sm */
html.light .section-tag-sm {
  color: #3a8a0f;
}

/* Service link */
html.light .svc-link {
  color: #3a8a0f;
}

/* Tags & pills */
html.light .tag {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
  color: rgba(15, 17, 23, 0.55);
}

html.light .skill-pill {
  background: rgba(94, 196, 30, 0.12);
  border-color: rgba(94, 196, 30, 0.25);
  color: #3a8a0f;
}

html.light .tech-pill {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
  color: rgba(15, 17, 23, 0.6);
}

html.light .tech-pill:hover {
  background: rgba(0, 0, 0, 0.09);
  color: #0f1117;
}

html.light .filter-btn {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
  color: rgba(15, 17, 23, 0.6);
}

html.light .filter-btn:hover,
.html.light .filter-btn.active {
  background: rgba(94, 196, 30, 0.12);
  border-color: rgba(94, 196, 30, 0.35);
  color: #3a8a0f;
}

html.light .logo-pill {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(0, 0, 0, 0.1);
}

html.light .logo-pill:hover {
  background: rgba(255, 255, 255, 0.95);
}

html.light .logo-pill-name {
  color: rgba(15, 17, 23, 0.65);
}

/* CTA */
html.light .cta-glow {
  background: radial-gradient(
    ellipse,
    rgba(94, 196, 30, 0.08),
    transparent 70%
  );
}

html.light .cta-box p {
  color: rgba(15, 17, 23, 0.6);
}

/* Avatar borders */
html.light .avatar,
html.light .home-av {
  border-color: rgba(0, 0, 0, 0.08);
}

/* Social btn */
html.light .social-btn {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
  color: rgba(15, 17, 23, 0.5);
}

html.light .social-btn:hover {
  background: rgba(0, 0, 0, 0.1);
  color: #0f1117;
}

/* Timeline border */
html.light .tl-item {
  border-bottom-color: rgba(0, 0, 0, 0.07);
}

html.light .tl-content h4 {
  color: #0f1117;
}

/* BG mesh & grain */
html.light .mesh {
  opacity: var(--mesh-op);
}

html.light .grain {
  opacity: 0.01;
}

/* Glow rings */
html.light .glow-ring {
  border-color: rgba(94, 196, 30, 0.15);
}

html.light .glow-ring-2 {
  border-color: rgba(94, 196, 30, 0.08);
}

/* Cursor */
html.light .cursor {
  background: #5ec41e;
  mix-blend-mode: multiply;
}

html.light .cursor-ring {
  border-color: rgba(94, 196, 30, 0.5);
}

/* Stars */
html.light .stars {
  color: #e6a817;
}

/* ── THEME TOGGLE ── */
.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--glass-bg);
  border: 0.5px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none;
  transition:
    background 0.2s,
    border-color 0.2s,
    transform 0.2s;
  font-size: 16px;
  flex-shrink: 0;
}

.theme-toggle:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  transform: scale(1.08);
}

.lang-toggle {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--glass-bg);
  border: 0.5px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none;
  transition:
    background 0.2s,
    border-color 0.2s,
    transform 0.2s;
  font-size: 16px;
  color: var(--text);
  flex-shrink: 0;
}

.lang-toggle:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  transform: scale(1.08);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Outfit", sans-serif;
  background: #060614;
  color: var(--text);
  overflow-x: hidden;
  cursor: none;
}

/* ── CURSOR ── */
.cursor {
  position: fixed;
  left: 0;
  top: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-1);
  pointer-events: none;
  z-index: 9999;
  will-change: transform;
  transition:
    width 0.3s,
    height 0.3s,
    opacity 0.3s;
  mix-blend-mode: screen;
}

.cursor-ring {
  position: fixed;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(167, 139, 250, 0.5);
  pointer-events: none;
  z-index: 9998;
  will-change: transform;
  /* Không có transition: transform — JS rAF đã xử lý easing rồi */
  transition:
    width 0.3s,
    height 0.3s;
}

/* ── BG ── */
.bg-scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.mesh {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  /* animation: meshFloat 12s ease-in-out infinite; */
}

.mesh-1 {
  width: 700px;
  height: 700px;
  background: radial-gradient(
    circle,
    rgba(139, 92, 246, 0.25),
    transparent 70%
  );
  top: -200px;
  left: -150px;
  animation-delay: 0s;
}

.mesh-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.2), transparent 70%);
  top: 30%;
  right: -100px;
  animation-delay: -4s;
}

.mesh-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(52, 211, 153, 0.15),
    transparent 70%
  );
  bottom: 10%;
  left: 20%;
  animation-delay: -8s;
}

.mesh-4 {
  width: 350px;
  height: 350px;
  background: radial-gradient(
    circle,
    rgba(251, 113, 133, 0.12),
    transparent 70%
  );
  top: 60%;
  left: 60%;
  animation-delay: -2s;
}

@keyframes meshFloat {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  25% {
    transform: translate(40px, -50px) scale(1.08);
  }

  50% {
    transform: translate(-20px, 30px) scale(0.94);
  }

  75% {
    transform: translate(30px, 20px) scale(1.04);
  }
}

/* ── SCROLL BAR ── */
.scroll-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  z-index: 200;
  box-shadow: 0 0 8px rgba(167, 139, 250, 0.5);
  transition: width 0.1s linear;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 48px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(6, 6, 20, 0.5);
  backdrop-filter: blur(32px) saturate(160%);
  -webkit-backdrop-filter: blur(32px) saturate(160%);
  border-bottom: 0.5px solid var(--glass-border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  cursor: none;
}

.logo-mark {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, #5ec41e, #4aa316);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: white;
  box-shadow: 0 0 20px rgba(94, 196, 30, 0.4);
}

.logo-text {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #5ec41e;
}

.logo-tagline {
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #5ec41e;
  margin-top: 2px;
  opacity: 0.8;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.2s;
  cursor: none;
  padding: 4px 0;
  border-bottom: 1.5px solid transparent;
  transition:
    color 0.2s,
    border-color 0.2s;
}

.nav-links a:hover {
  color: white;
}

.nav-links a.active {
  color: white;
  border-bottom-color: var(--accent-1);
}

.nav-cta {
  padding: 9px 22px;
  background: rgba(167, 139, 250, 0.15);
  border: 0.5px solid rgba(167, 139, 250, 0.4);
  border-radius: 100px;
  color: var(--accent-1) !important;
  font-weight: 500 !important;
  transition:
    background 0.2s,
    box-shadow 0.2s !important;
  border-bottom: none !important;
}

.nav-cta:hover {
  background: rgba(167, 139, 250, 0.25) !important;
  box-shadow: 0 0 20px rgba(167, 139, 250, 0.2);
  color: white !important;
}

.nav-cta.active {
  border-bottom: none !important;
}

/* ── PAGE SYSTEM ── */
.page {
  display: none;
  position: relative;
  z-index: 2;
  min-height: 100vh;
}

.page.active {
  display: block;
}

/* ── SHARED ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}

.page-hero {
  padding: 140px 48px 80px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(167, 139, 250, 0.1);
  border: 0.5px solid rgba(167, 139, 250, 0.3);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-1);
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.7s ease forwards 0.1s;
}

.page-hero h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  max-width: 760px;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.25s;
}

.page-hero h1 .grad {
  background: linear-gradient(
    135deg,
    #fff 20%,
    var(--accent-1) 50%,
    var(--accent-2)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-hero-sub {
  font-size: 17px;
  font-weight: 300;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.75;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.4s;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-tag-sm {
  display: inline-block;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-1);
  margin-bottom: 14px;
}

.section-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: white;
  margin-bottom: 14px;
}

.section-sub {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.75;
  font-weight: 300;
}

.glass {
  background: var(--glass-bg);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 0.5px solid var(--glass-border);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.3s,
    background 0.3s,
    border-color 0.3s,
    box-shadow 0.3s;
}

.glass::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.18),
    transparent
  );
  pointer-events: none;
}

.glass:hover {
  transform: translateY(-5px);
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.btn-primary {
  padding: 13px 30px;
  background: linear-gradient(135deg, var(--accent-1), #6d28d9);
  border: none;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  color: white;
  cursor: none;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 30px rgba(167, 139, 250, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(167, 139, 250, 0.5);
}

.btn-ghost {
  padding: 13px 30px;
  background: var(--glass-bg);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 0.5px solid var(--glass-border);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.8);
  cursor: none;
  transition:
    background 0.2s,
    border-color 0.2s,
    transform 0.2s;
}

.btn-ghost:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  transform: translateY(-2px);
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-3);
  box-shadow: 0 0 8px var(--accent-3);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(0.8);
  }
}

/* ── FOOTER ── */
footer {
  position: relative;
  z-index: 2;
  border-top: 0.5px solid var(--glass-border);
  padding: 60px 48px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  font-weight: 300;
  margin-top: 12px;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-hint);
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
  font-weight: 300;
  cursor: none;
}

.footer-col a:hover {
  color: white;
}

.footer-bottom {
  padding-top: 32px;
  border-top: 0.5px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--text-hint);
  font-weight: 300;
}

.footer-bottom a {
  text-decoration: none;
}

/* ═══════════════════════════════
           HOME PAGE
        ═══════════════════════════════ */
.hero-home {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 68px 48px 80px;
  position: relative;
}

.hero-home h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(36px, 5.5vw, 68px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  max-width: 880px;
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.9s ease forwards 0.4s;
}

.hero-home h1 .grad {
  background: linear-gradient(
    135deg,
    #fff 20%,
    var(--accent-1) 50%,
    var(--accent-2)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 15px;
  padding: 6px 16px;
  background: rgba(167, 139, 250, 0.1);
  border: 0.5px solid rgba(167, 139, 250, 0.3);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-1);
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.2s;
}

.hero-sub {
  font-size: clamp(16px, 2vw, 19px);
  font-weight: 300;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 48px;
  opacity: 0;
  animation: fadeUp 0.9s ease forwards 0.6s;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
  animation: fadeUp 0.9s ease forwards 0.8s;
}

.hero-stats {
  display: flex;
  margin-top: 72px;
  background: var(--glass-bg);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 0.5px solid var(--glass-border);
  border-radius: 20px;
  overflow: hidden;
  opacity: 0;
  animation: fadeUp 0.9s ease forwards 1.1s;
  max-width: 680px;
  width: 100%;
}

.hero-stat {
  flex: 1;
  padding: 24px 28px;
  text-align: center;
  border-right: 0.5px solid var(--glass-border);
  position: relative;
}

.hero-stat:last-child {
  border-right: none;
}

.hero-stat::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent);
  pointer-events: none;
}

.stat-num {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, white, rgba(255, 255, 255, 0.7));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}

.stat-lbl {
  font-size: 12px;
  color: var(--text-hint);
  margin-top: 4px;
  letter-spacing: 0.02em;
}

/* Fix 2 mini cards bằng nhau */
.card-mini-1,
.card-mini-2 {
  min-height: 80px;
  /* chỉnh nếu muốn cao hơn */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Avatar row center */
.card-mini-2 > div:last-child {
  justify-content: center;
}

/* ═══════════════════════════════
           SERVICES PAGE
        ═══════════════════════════════ */
.services-full {
  padding-bottom: 100px;
}

.services-grid-full {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 60px;
}

.svc-card {
  padding: 40px 36px;
  cursor: none;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: space-between;
}

.svc-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 28px;
}

.ic-purple {
  background: rgba(167, 139, 250, 0.2);
  box-shadow: 0 0 24px rgba(167, 139, 250, 0.2);
}

.ic-blue {
  background: rgba(56, 189, 248, 0.2);
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.2);
}

.ic-green {
  background: rgba(52, 211, 153, 0.2);
  box-shadow: 0 0 24px rgba(52, 211, 153, 0.2);
}

.ic-pink {
  background: rgba(251, 113, 133, 0.2);
  box-shadow: 0 0 24px rgba(251, 113, 133, 0.2);
}

.ic-amber {
  background: rgba(251, 191, 36, 0.2);
  box-shadow: 0 0 24px rgba(251, 191, 36, 0.15);
}

.ic-teal {
  background: rgba(45, 212, 191, 0.2);
  box-shadow: 0 0 24px rgba(45, 212, 191, 0.2);
}

.ic-coral {
  background: rgba(251, 146, 60, 0.2);
  box-shadow: 0 0 24px rgba(251, 146, 60, 0.2);
}

.ic-indigo {
  background: rgba(99, 102, 241, 0.2);
  box-shadow: 0 0 24px rgba(99, 102, 241, 0.2);
}

.ic-rose {
  background: rgba(244, 63, 94, 0.2);
  box-shadow: 0 0 24px rgba(244, 63, 94, 0.2);
}

.svc-name {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: white;
  margin-bottom: 12px;
}

.svc-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.75;
  font-weight: 300;
  margin-bottom: 24px;
}

.svc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.tag {
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 0.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.04em;
}

.svc-link {
  font-size: 13px;
  color: var(--accent-1);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  transition: gap 0.2s;
}

.svc-link:hover {
  gap: 10px;
}

/* Process section */
.process-section {
  padding: 80px 0 100px;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.process-card {
  padding: 32px 28px;
  cursor: none;
  text-align: center;
}

.process-num {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  line-height: 1;
}

.process-title {
  font-size: 16px;
  font-weight: 600;
  color: white;
  margin-bottom: 8px;
}

.process-desc {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.7;
}

/* Tech stack */
.tech-section {
  padding: 0 0 100px;
}

.tech-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}

.svc-pill {
  padding: 8px 18px;
  background: var(--glass-bg);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 0.5px solid var(--glass-border);
  border-radius: 100px;
  font-size: 13px;
  font-family: "Outfit", sans-serif;
  color: var(--text-muted);
  cursor: none;
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s;
}

.svc-pill:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  color: white;
}

.svc-pill.active {
  background: linear-gradient(135deg, var(--accent-1), #6d28d9);
  border-color: rgba(167, 139, 250, 0.45);
  color: white;
}

.tech-pill {
  padding: 10px 20px;
  background: var(--glass-bg);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 0.5px solid var(--glass-border);
  border-radius: 100px;
  font-size: 13px;
  color: var(--text-muted);
  cursor: none;
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s;
}

.tech-pill:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  color: white;
}

/* ═══════════════════════════════
           ABOUT PAGE
        ═══════════════════════════════ */
.about-full {
  padding-bottom: 100px;
}

.about-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 0 0 80px;
}

.about-story-text {
}

.about-story-text h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 24px;
}

.about-story-text p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
  font-weight: 300;
  margin-bottom: 16px;
}

.about-visual-wrap {
  position: relative;
  height: 440px;
}

.ab-card {
  position: absolute;
  background: var(--glass-bg);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 0.5px solid var(--glass-border);
  border-radius: 20px;
  padding: 24px 28px;
}

.ab-main {
  top: 0;
  left: 0;
  right: 0;
}

.ab-mini1 {
  bottom: 80px;
  left: 10px;
  min-width: 160px;
}

.ab-mini2 {
  bottom: 20px;
  right: 10px;
  min-width: 170px;
}

.metric-bar {
  height: 4px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  margin: 8px 0;
  overflow: hidden;
}

.metric-fill {
  height: 100%;
  border-radius: 10px;
}

/* About page metric bars */
.ab-card .mf-1 {
  width: 88%;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
}

.ab-card .mf-2 {
  width: 95%;
  background: linear-gradient(90deg, var(--accent-2), var(--accent-3));
}

.ab-card .mf-3 {
  width: 72%;
  background: linear-gradient(90deg, var(--accent-3), #10b981);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.value-card {
  padding: 36px 32px;
  cursor: none;
}

.value-icon {
  font-size: 28px;
  margin-bottom: 20px;
}

.value-title {
  font-size: 18px;
  font-weight: 600;
  color: white;
  margin-bottom: 10px;
}

.value-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  font-weight: 300;
}

.timeline {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.tl-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 32px;
  padding: 28px 0;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.06);
}

.tl-item:last-child {
  border-bottom: none;
}

.tl-year {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--accent-1);
  padding-top: 2px;
}

.tl-content h4 {
  font-size: 16px;
  font-weight: 500;
  color: white;
  margin-bottom: 6px;
}

.tl-content p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  font-weight: 300;
}

/* ═══════════════════════════════
           TEAM PAGE
        ═══════════════════════════════ */
.team-full {
  padding-bottom: 100px;
}

.team-grid-full {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 60px;
}

.team-card {
  background: var(--glass-bg);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 0.5px solid var(--glass-border);
  border-radius: 24px;
  padding: 40px 32px;
  cursor: none;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.3s,
    background 0.3s,
    border-color 0.3s,
    box-shadow 0.3s;
}

.team-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.18),
    transparent
  );
}

.team-card:hover {
  transform: translateY(-6px);
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

/* Founder card - full width highlight */
.team-card.founder {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px;
  align-items: center;
  padding: 48px;
}

.team-card.founder .avatar {
  width: 96px;
  height: 96px;
  font-size: 36px;
}

.team-card.founder .member-bio {
  display: block;
}

.avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: 600;
  font-family: "Playfair Display", serif;
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.av-1 {
  background: linear-gradient(
    135deg,
    rgba(167, 139, 250, 0.3),
    rgba(99, 102, 241, 0.2)
  );
}

.av-2 {
  background: linear-gradient(
    135deg,
    rgba(56, 189, 248, 0.3),
    rgba(14, 165, 233, 0.2)
  );
}

.av-3 {
  background: linear-gradient(
    135deg,
    rgba(52, 211, 153, 0.3),
    rgba(16, 185, 129, 0.2)
  );
}

.av-4 {
  background: linear-gradient(
    135deg,
    rgba(251, 113, 133, 0.3),
    rgba(244, 63, 94, 0.2)
  );
}

.av-5 {
  background: linear-gradient(
    135deg,
    rgba(45, 212, 191, 0.3),
    rgba(16, 185, 129, 0.2)
  );
}

.av-6 {
  background: linear-gradient(
    135deg,
    rgba(251, 191, 36, 0.3),
    rgba(245, 158, 11, 0.2)
  );
}

.member-name {
  font-size: 18px;
  font-weight: 600;
  color: white;
  margin-bottom: 4px;
}

.member-role {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.member-bio {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 20px;
  display: none;
}

.member-socials {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.founder .member-socials {
  justify-content: flex-start;
}

.social-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 0.5px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: none;
  transition: background 0.2s;
  text-decoration: none;
  color: var(--text-muted);
}

.social-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: white;
}

.member-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.skill-pill {
  padding: 3px 10px;
  background: rgba(167, 139, 250, 0.12);
  border: 0.5px solid rgba(167, 139, 250, 0.2);
  border-radius: 100px;
  font-size: 11px;
  color: var(--accent-1);
}

/* ═══════════════════════════════
           CLIENTS PAGE
        ═══════════════════════════════ */
.clients-full {
  padding-bottom: 100px;
}

.clients-featured {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 60px;
  margin-bottom: 60px;
}

.client-card {
  padding: 36px 32px;
  cursor: none;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: space-between;
}

.client-logo-area {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.client-logo-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  flex-shrink: 0;
}

.client-logo-name {
  font-size: 18px;
  font-weight: 600;
  color: white;
  letter-spacing: -0.01em;
}

.client-logo-sector {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.client-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.75;
  font-weight: 300;
  margin-bottom: 20px;
}

.client-results {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
}

.result-item {
}

.result-num {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: white;
}

.result-lbl {
  font-size: 11px;
  color: var(--text-hint);
  margin-top: 2px;
}

/* Logo wall */
.logo-wall {
  margin-top: 20px;
}

.logo-wall-title {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-hint);
  text-align: center;
  margin-bottom: 32px;
}

.logo-wall-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.logo-pill {
  background: var(--glass-bg);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 0.5px solid var(--glass-border);
  border-radius: 14px;
  padding: 20px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: none;
  transition:
    background 0.2s,
    border-color 0.2s,
    transform 0.2s;
}

.logo-pill:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  transform: translateY(-3px);
}

.logo-pill-icon {
  font-size: 20px;
}

.logo-pill-name {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
}

/* Testimonials */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.testi-card {
  padding: 32px;
  cursor: none;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: space-between;
}

.stars {
  color: #fbbf24;
  font-size: 13px;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.testi-quote {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.75;
  font-weight: 300;
  margin-bottom: 24px;
  font-style: italic;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testi-av {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
}

.ta-1 {
  background: rgba(167, 139, 250, 0.25);
  color: var(--accent-1);
}

.ta-2 {
  background: rgba(56, 189, 248, 0.25);
  color: var(--accent-2);
}

.ta-3 {
  background: rgba(52, 211, 153, 0.25);
  color: var(--accent-3);
}

.ta-4 {
  background: rgba(251, 113, 133, 0.25);
  color: var(--accent-4);
}

.ta-5 {
  background: rgba(251, 191, 36, 0.25);
  color: #fbbf24;
}

.ta-6 {
  background: rgba(45, 212, 191, 0.25);
  color: #2dd4bf;
}

.testi-name {
  font-size: 14px;
  font-weight: 500;
  color: white;
}

.testi-company {
  font-size: 12px;
  color: var(--text-hint);
}

/* Industry tags filter */
.filter-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 40px 0 32px;
}

.filter-btn {
  padding: 8px 18px;
  background: var(--glass-bg);
  border: 0.5px solid var(--glass-border);
  border-radius: 100px;
  font-size: 13px;
  color: var(--text-muted);
  cursor: none;
  transition: all 0.2s;
}

.filter-btn:hover,
.filter-btn.active {
  background: rgba(167, 139, 250, 0.15);
  border-color: rgba(167, 139, 250, 0.35);
  color: var(--accent-1);
}

/* CTA box */
.cta-box {
  background: var(--glass-bg);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 0.5px solid var(--glass-border);
  border-radius: 32px;
  padding: 72px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-top: 80px;
}

.cta-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(167, 139, 250, 0.5),
    transparent
  );
}

.cta-glow {
  position: absolute;
  width: 500px;
  height: 300px;
  background: radial-gradient(
    ellipse,
    rgba(167, 139, 250, 0.12),
    transparent 70%
  );
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.cta-box h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  position: relative;
}

.cta-box p {
  font-size: 16px;
  color: var(--text-muted);
  font-weight: 300;
  max-width: 440px;
  margin: 0 auto 40px;
  line-height: 1.7;
  position: relative;
}

.cta-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

/* ── HOME PAGE SECTIONS CSS ── */
.services-home {
  padding-top: 120px;
  padding-bottom: 120px;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 48px;
  padding-right: 48px;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  background: var(--glass-bg);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 0.5px solid var(--glass-border);
  border-radius: 24px;
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.3s,
    background 0.3s,
    border-color 0.3s,
    box-shadow 0.3s;
  cursor: none;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
}

.service-card:hover {
  transform: translateY(-6px);
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.5),
    0 1px 0 rgba(255, 255, 255, 0.1) inset;
}

.home-about {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 48px 120px;
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-visual {
  position: relative;
  height: 480px;
}

.float-card {
  position: absolute;
  background: var(--glass-bg);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 0.5px solid var(--glass-border);
  border-radius: 20px;
  padding: 20px 24px;
  transition: transform 0.3s;
}

.float-card:hover,
.ab-card:hover {
  transform: scale(1.02);
  background-color: #060614;
  z-index: 10000;
}

.float-card:hover > div,
.ab-card:hover > div {
  color: white !important;
}

.card-main {
  top: 0;
  left: 0;
  right: 20px;
  padding: 32px;
}

.card-mini-1 {
  bottom: 60px;
  left: 20px;
  min-width: 180px;
}

.card-mini-2 {
  bottom: 20px;
  right: 0;
  min-width: 160px;
}

.glow-ring {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 1px solid rgba(167, 139, 250, 0.15);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: ringPulse 4s ease-in-out infinite;
}

.glow-ring-2 {
  width: 380px;
  height: 380px;
  border-color: rgba(56, 189, 248, 0.08);
  animation-delay: -2s;
}

@keyframes ringPulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }

  50% {
    transform: translate(-50%, -50%) scale(1.06);
    opacity: 0.6;
  }
}

.about-text h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(28px, 3.5vw, 46px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.about-text p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
  font-weight: 300;
  margin-bottom: 16px;
}

.feature-list {
  list-style: none;
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.feat-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.15);
  border: 0.5px solid rgba(52, 211, 153, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 11px;
  color: var(--accent-3);
}

.feat-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
}

.feat-text strong {
  color: white;
  font-weight: 500;
}

/* Home page metric bars */
.float-card .mf-1 {
  width: 82%;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
}

.float-card .mf-2 {
  width: 91%;
  background: linear-gradient(90deg, var(--accent-2), var(--accent-3));
}

.float-card .mf-3 {
  width: 67%;
  background: linear-gradient(90deg, var(--accent-3), #10b981);
}

.home-team {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 48px 120px;
}

.home-team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.home-team-card {
  background: var(--glass-bg);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 0.5px solid var(--glass-border);
  border-radius: 24px;
  padding: 32px 24px;
  text-align: center;
  transition:
    transform 0.3s,
    background 0.3s,
    border-color 0.3s;
  cursor: none;
  position: relative;
  overflow: hidden;
}

.home-team-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.18),
    transparent
  );
}

.home-team-card:hover {
  transform: translateY(-5px);
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
}

.home-av {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 600;
  font-family: "Playfair Display", serif;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hav-1 {
  background: linear-gradient(
    135deg,
    rgba(167, 139, 250, 0.3),
    rgba(99, 102, 241, 0.2)
  );
}

.hav-2 {
  background: linear-gradient(
    135deg,
    rgba(56, 189, 248, 0.3),
    rgba(14, 165, 233, 0.2)
  );
}

.hav-3 {
  background: linear-gradient(
    135deg,
    rgba(52, 211, 153, 0.3),
    rgba(16, 185, 129, 0.2)
  );
}

.hav-4 {
  background: linear-gradient(
    135deg,
    rgba(251, 113, 133, 0.3),
    rgba(244, 63, 94, 0.2)
  );
}

.hav-5 {
  background: linear-gradient(
    135deg,
    rgba(45, 212, 191, 0.3),
    rgba(16, 185, 129, 0.2)
  );
}

.hav-6 {
  background: linear-gradient(
    135deg,
    rgba(251, 191, 36, 0.3),
    rgba(245, 158, 11, 0.2)
  );
}

.home-testi {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 48px 120px;
}

.home-testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.home-testi-card {
  background: var(--glass-bg);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 0.5px solid var(--glass-border);
  border-radius: 24px;
  padding: 32px;
  transition:
    transform 0.3s,
    border-color 0.3s;
  cursor: none;
}

.home-testi-card:hover {
  transform: translateY(-4px);
  border-color: var(--glass-border-hover);
}

.home-testi-info {
}

.home-cta {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 48px 100px;
}

.home-cta-box {
  background: var(--glass-bg);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 0.5px solid var(--glass-border);
  border-radius: 32px;
  padding: 72px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.home-cta-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(167, 139, 250, 0.5),
    transparent
  );
}

.home-cta-box h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.home-cta-box p {
  font-size: 16px;
  color: var(--text-muted);
  font-weight: 300;
  max-width: 440px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav {
    padding: 0 24px;
  }

  .container,
  .page-hero {
    padding-left: 24px;
    padding-right: 24px;
  }

  .services-grid-full,
  .values-grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-story {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-visual-wrap {
    height: 280px;
  }

  .team-grid-full {
    grid-template-columns: 1fr 1fr;
  }

  .team-card.founder {
    grid-column: 1/-1;
    grid-template-columns: 1fr;
    text-align: center;
  }

  .founder .member-socials {
    justify-content: center;
  }

  .clients-featured,
  .testi-grid {
    grid-template-columns: 1fr;
  }

  .logo-wall-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .process-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* nav .nav-links li:not(:last-child) {
    display: none;
  } */
}

@media (max-width: 600px) {
  .services-grid-full,
  .values-grid,
  .team-grid-full {
    grid-template-columns: 1fr;
  }

  .logo-wall-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    display: none;
  }

  body {
    cursor: auto;
  }

  .cursor,
  .cursor-ring {
    display: none;
  }
}

/* ═══════════════════════════════
           HOME TESTI - REMOVE AVATAR MOBILE
        ═══════════════════════════════ */

@media (max-width: 768px) {
  /* bỏ avatar */
  .home-testi-card .testi-av {
    display: none;
  }

  /* căn lại author */
  .home-testi-card .testi-author {
    justify-content: center;
    text-align: center;
  }

  /* card gọn hơn */
  .home-testi-card {
    padding: 20px 16px;
  }

  /* text rộng hơn */
  .home-testi-card .testi-quote {
    font-size: 13px;
    line-height: 1.6;
  }

  /* tên + company */
  .home-testi-card .testi-name {
    font-size: 13px;
  }

  .home-testi-card .testi-company {
    font-size: 11px;
  }
}

/* ═══════════════════════════════
           IMPROVED RESPONSIVE (ADD ONLY)
        ═══════════════════════════════ */

/* Tablet (≤1024px) */
@media (max-width: 1024px) {
  .container,
  .page-hero,
  .services-home,
  .home-about,
  .home-team,
  .home-testi,
  .home-cta {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }

  .hero-home {
    padding: 100px 24px 60px;
  }

  .hero-home h1 {
    font-size: clamp(28px, 6vw, 48px);
  }

  .services-grid,
  .services-grid-full {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-visual {
    height: 320px;
  }

  .home-team-grid,
  .team-grid-full {
    grid-template-columns: repeat(2, 1fr);
  }

  .logo-wall-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Mobile (≤768px) */
@media (max-width: 768px) {
  nav {
    padding: 0 16px;
    height: 60px;
  }

  .logo-text {
    font-size: 16px;
  }

  /* 👉 FIX NAV: show menu dạng row scroll */
  .nav-links {
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .nav-links li {
    flex-shrink: 0;
  }

  .nav-links a {
    font-size: 13px;
  }

  .hero-home {
    padding: 90px 16px 50px;
  }

  .hero-sub {
    font-size: 15px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn-primary,
  .btn-ghost {
    width: 100%;
    text-align: center;
  }

  .services-grid,
  .services-grid-full,
  .values-grid,
  .home-team-grid,
  .team-grid-full {
    grid-template-columns: 1fr;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }

  .clients-featured,
  .testi-grid {
    grid-template-columns: 1fr;
  }

  .logo-wall-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .cta-box,
  .home-cta-box {
    padding: 40px 20px;
  }
}

/* Small mobile (≤480px) */
@media (max-width: 480px) {
  .hero-home h1 {
    font-size: 26px;
  }

  .section-title {
    font-size: 24px;
  }

  .page-hero h1 {
    font-size: 28px;
  }

  .page-hero {
    padding: 120px 16px 60px;
  }

  .svc-card,
  .service-card,
  .team-card,
  .testi-card {
    padding: 24px 20px;
  }

  .vision-container {
    padding: 30px !important;
  }

  .culture-container {
    padding: 0px !important;
  }

  .vision-content,
  .culture-content {
    display: flex !important;
    flex-direction: column;
  }

  .card-mini-1 {
    left: 20px;
    bottom: 300px;
  }

  .about-visual-wrap {
    margin-top: 20px;
  }

  .ab-mini1 {
    left: -20px;
    bottom: 0px;
  }

  .ab-mini2 {
    right: -20px;
    bottom: 200px;
  }

  .home-testi-grid {
    grid-template-columns: repeat(1, 1fr);
  }

  .home-testi-info {
    width: 100%;
    text-align: right;
    padding-right: 20px;
  }

  .testi-author {
    width: 100%;
    justify-content: flex-end;
  }

  .value-icon,
  .value-title {
    display: inline;
  }
}

/* ═══════════════════════════════
           CLIENTS / TESTIMONIAL MOBILE FIX
        ═══════════════════════════════ */

@media (max-width: 768px) {
  /* Section spacing */
  .clients-full {
    padding-bottom: 60px;
  }

  /* Card spacing gọn hơn */
  .client-card {
    padding: 24px 20px;
  }

  .client-logo-area {
    gap: 10px;
    margin-bottom: 14px;
  }

  .client-logo-icon {
    width: 42px;
    height: 42px;
    font-size: 16px;
  }

  .client-logo-name {
    font-size: 16px;
  }

  .client-desc {
    font-size: 13px;
    margin-bottom: 16px;
  }

  /* 👉 Result hiển thị đẹp hơn trên mobile */
  .client-results {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .result-num {
    font-size: 16px;
  }

  .result-lbl {
    font-size: 10px;
  }

  /* Testimonials */
  .testi-card {
    padding: 24px 20px;
  }

  .testi-quote {
    font-size: 13px;
    line-height: 1.6;
  }

  .testi-author {
    gap: 10px;
  }

  .testi-av {
    width: 34px;
    height: 34px;
    font-size: 12px;
  }

  .testi-name {
    font-size: 13px;
  }

  .testi-company {
    font-size: 11px;
  }

  /* Stars nhỏ lại cho gọn */
  .stars {
    font-size: 12px;
    letter-spacing: 1px;
  }
}

/* Extra small */
@media (max-width: 480px) {
  .client-results {
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
  }

  .result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: column;
  }
}

/* ═══════════════════════════════
                   CONTACT PAGE RESPONSIVE
                ═══════════════════════════════ */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 40px;
  align-items: start;
}

.contact-name-email {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 600px) {
  .contact-layout {
    gap: 20px;
  }

  .contact-name-email {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  #page-contact .glass {
    padding: 24px 18px !important;
  }

  #page-contact .container {
    padding-bottom: 60px !important;
  }
}

/* Base */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.nav-menu {
  display: flex;
  align-items: center;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 20px;
}

.nav-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: #333;
  display: block;
  transition: 0.3s;
}

.nav-links li.active > a {
  color: var(--text);
  font-weight: bold;
}

/* Language toggle — mobile in hamburger, desktop in nav bar */
.nav-lang-item {
  display: none;
}

/* Mobile */
@media (max-width: 768px) {
  .nav-menu > .lang-toggle {
    display: none;
  }

  .nav-lang-item {
    display: flex !important;
    justify-content: flex-end;
    width: 100%;
    border-top: 0.5px solid var(--glass-border);
    margin-top: 12px;
    padding-top: 16px;
  }

  .nav-menu {
    flex-direction: row;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    width: 35vw;
    height: 100dvh;
    flex-direction: column;
    background: var(--bg-body);
    padding: 24px;
    opacity: 0;
    transform: translateX(100%);
    pointer-events: none;
    transition: all 0.3s ease;
  }

  .nav-links.open {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
  }

  .nav-links li {
    width: 100%;
    text-align: right;
    opacity: 1;
  }

  .nav-links a {
    font-size: 15px;
  }
}

.vision-card {
  height: 100%;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: space-between;
}

/* ── SCROLL ANIMATION CLASSES ── */
.anim-ready {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.6s ease var(--anim-delay, 0s),
    transform 0.6s ease var(--anim-delay, 0s);
  will-change: opacity, transform;
}

.anim-in {
  opacity: 1;
  transform: translateY(0);
  will-change: auto;
}

/* ── iOS / TOUCH DEVICE PERFORMANCE FIXES ── */
/* Áp dụng cho mọi touch device (iOS, Android) dùng hover: none */
@media (hover: none) and (pointer: coarse) {
  /* Ẩn cursor custom — touch không cần */
  .cursor,
  .cursor-ring {
    display: none !important;
  }

  /* body cursor: none gây lỗi render trên iOS — reset về auto */
  body {
    cursor: auto;
  }

  /* Tắt grain animation — element 400%x400% liên tục shift = quá tốn GPU trên iOS 26 */
  .grain {
    animation: none;
  }

  /* Tắt backdrop-filter trên tất cả glass elements — iOS 26 "Liquid Glass" OS đã dùng
     blur nặng ở cấp hệ điều hành, web stack thêm 14 lớp blur = GPU overflow */
  :root {
    --blur: none;
  }

  .glass,
  .svc-card,
  .process-card,
  .value-card,
  .team-card,
  .client-card,
  .testi-card,
  .tl-item {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(15, 15, 35, 0.88);
  }

  nav {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(6, 6, 20, 0.92);
  }

  /* Tắt mesh filter blur nặng trên mobile */
  .mesh {
    filter: blur(60px);
    opacity: 0.6;
  }

  /* Scroll bar ẩn trên mobile — không cần và tốn repaint */
  .scroll-bar {
    display: none;
  }
}

/* ── iOS 26 LIQUID GLASS SPECIFIC FIX ── */
/* iOS 26+ Safari báo cáo OS version qua userAgent, detect bằng JS class */
html.ios-26 .glass,
html.ios-26 .svc-card,
html.ios-26 .process-card,
html.ios-26 .value-card,
html.ios-26 .team-card,
html.ios-26 .client-card,
html.ios-26 .testi-card,
html.ios-26 nav {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

html.ios-26 .grain {
  animation: none;
  display: none;
}

/* ── PREFER REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  .grain {
    animation: none;
  }

  .anim-ready {
    opacity: 1;
    transform: none;
    transition: none;
  }

  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
