/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root, [data-theme="dark"] {
  --c-bg: #0a0a0f;
  --c-surface: #12121a;
  --c-card: #1a1a26;
  --c-text: #f0efe8;
  --c-text-muted: #8a8a9a;
  --c-accent-1: #FF3C5F;
  --c-accent-2: #FFD23F;
  --c-accent-3: #3CFFB0;
  --c-accent-4: #5C7CFA;
  --c-accent-5: #E64CFF;
  --c-nav-bg: rgba(10,10,15,0.7);
  --c-border: rgba(255,255,255,0.05);
  --c-border-hover: rgba(255,255,255,0.1);
  --c-glass-bg: rgba(255,255,255,0.04);
  --c-glass-border: rgba(255,255,255,0.12);
  --c-glass-shine: rgba(255,255,255,0.25);
  --c-glass-shadow: rgba(0,0,0,0.4);
  --c-overlay: rgba(10,10,15,0.95);
  --c-noise-opacity: 0.04;
  --font-display: 'Paytone One', sans-serif;
  --font-body: 'Be Vietnam Pro', sans-serif;
}

[data-theme="light"] {
  --c-bg: #f5f0fa;
  --c-surface: #ebe5f3;
  --c-card: #ffffff;
  --c-text: #1a1a2e;
  --c-text-muted: #6b6b8a;
  --c-accent-1: #e6335a;
  --c-accent-2: #e6b800;
  --c-accent-3: #00c97a;
  --c-accent-4: #4a6cf7;
  --c-accent-5: #c740e6;
  --c-nav-bg: rgba(245,240,250,0.8);
  --c-border: rgba(0,0,0,0.06);
  --c-border-hover: rgba(0,0,0,0.12);
  --c-glass-bg: rgba(255,255,255,0.5);
  --c-glass-border: rgba(255,255,255,0.7);
  --c-glass-shine: rgba(255,255,255,0.9);
  --c-glass-shadow: rgba(100,80,140,0.15);
  --c-overlay: rgba(245,240,250,0.97);
  --c-noise-opacity: 0.02;
}

html { scroll-behavior: smooth; }

body {
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-body);
  overflow-x: hidden;
  line-height: 1.6;
  transition: background 0.6s ease, color 0.4s ease;
}

/* ===== ANIMATED GRADIENT BACKGROUND ===== */
.gradient-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
.gradient-bg::before {
  content: '';
  position: absolute;
  inset: -50%;
  width: 200%;
  height: 200%;
  animation: gradientMove 18s ease-in-out infinite;
}
[data-theme="dark"] .gradient-bg::before {
  background: conic-gradient(
    from 0deg at 50% 50%,
    #0b1d3a 0deg, #0e3a5c 30deg, #147a8a 60deg, #2ab5a0 90deg,
    #c8d94a 120deg, #f5d547 150deg, #f5a623 180deg, #e8634a 210deg,
    #d94070 240deg, #a83ab5 270deg, #6b3fa0 300deg, #3a2d78 330deg, #0b1d3a 360deg
  );
  opacity: 0.18;
  filter: blur(100px);
}
[data-theme="light"] .gradient-bg::before {
  background: conic-gradient(
    from 0deg at 50% 50%,
    #e8dff5 0deg, #d4e7fa 60deg, #fce4ec 120deg,
    #f9e8d0 180deg, #d5f5e3 240deg, #e8dff5 300deg, #e8dff5 360deg
  );
  opacity: 0.7;
  filter: blur(80px);
}
@keyframes gradientMove {
  0% { transform: rotate(0deg) scale(1); }
  33% { transform: rotate(120deg) scale(1.05); }
  66% { transform: rotate(240deg) scale(0.95); }
  100% { transform: rotate(360deg) scale(1); }
}
.gradient-bg .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  animation: blobFloat 22s ease-in-out infinite;
}
.gradient-bg .blob:nth-child(1) { width: 60vw; height: 60vw; top: -20%; left: -10%; }
[data-theme="dark"] .gradient-bg .blob:nth-child(1) { background: radial-gradient(circle, rgba(92,124,250,0.25), transparent 70%); }
[data-theme="light"] .gradient-bg .blob:nth-child(1) { background: radial-gradient(circle, rgba(180,200,250,0.4), transparent 70%); }
.gradient-bg .blob:nth-child(2) { width: 50vw; height: 50vw; bottom: -15%; right: -10%; animation-delay: -8s; animation-direction: reverse; }
[data-theme="dark"] .gradient-bg .blob:nth-child(2) { background: radial-gradient(circle, rgba(230,76,255,0.2), transparent 70%); }
[data-theme="light"] .gradient-bg .blob:nth-child(2) { background: radial-gradient(circle, rgba(252,228,236,0.5), transparent 70%); }
.gradient-bg .blob:nth-child(3) { width: 40vw; height: 40vw; top: 40%; left: 30%; animation-delay: -14s; }
[data-theme="dark"] .gradient-bg .blob:nth-child(3) { background: radial-gradient(circle, rgba(255,210,63,0.12), transparent 70%); }
[data-theme="light"] .gradient-bg .blob:nth-child(3) { background: radial-gradient(circle, rgba(213,245,227,0.5), transparent 70%); }
@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(5vw, -4vh) scale(1.08); }
  50% { transform: translate(-3vw, 6vh) scale(0.95); }
  75% { transform: translate(4vw, 3vh) scale(1.04); }
}

/* ===== NOISE OVERLAY ===== */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: var(--c-noise-opacity);
}

/* ===== LIQUID GLASS ===== */
.liquid-glass {
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}
.liquid-glass::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--c-glass-shine) 0%, transparent 40%, transparent 60%, rgba(255,255,255,0.05) 100%);
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 1;
  pointer-events: none;
}
.liquid-glass::after {
  content: '';
  position: absolute;
  top: -80%; left: -80%;
  width: 260%; height: 260%;
  border-radius: inherit;
  background: radial-gradient(ellipse at 30% 30%, rgba(255,255,255,0.3) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.6s ease;
  transform: rotate(-30deg) scale(0.5);
  z-index: 1;
  pointer-events: none;
}
.liquid-glass:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 32px var(--c-glass-shadow), 0 0 0 1px var(--c-glass-border), inset 0 1px 0 var(--c-glass-shine);
}
.liquid-glass:hover::before { opacity: 1; }
.liquid-glass:hover::after { opacity: 0.6; transform: rotate(-15deg) scale(1); }
.liquid-glass:active { transform: translateY(-1px) scale(1.01); transition-duration: 0.1s; }

/* ===== THEME TOGGLE ===== */
.theme-toggle {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 10000;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid var(--c-glass-border);
  background: var(--c-glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.4s ease, background 0.4s ease;
  box-shadow: 0 4px 20px var(--c-glass-shadow);
}
.theme-toggle:hover { transform: scale(1.12) rotate(15deg); box-shadow: 0 8px 30px var(--c-glass-shadow); }
.theme-toggle .icon-sun, .theme-toggle .icon-moon { transition: opacity 0.3s, transform 0.3s; position: absolute; }
[data-theme="dark"] .theme-toggle .icon-sun { opacity: 1; transform: rotate(0deg); }
[data-theme="dark"] .theme-toggle .icon-moon { opacity: 0; transform: rotate(90deg); }
[data-theme="light"] .theme-toggle .icon-sun { opacity: 0; transform: rotate(-90deg); }
[data-theme="light"] .theme-toggle .icon-moon { opacity: 1; transform: rotate(0deg); }

/* ===== LANGUAGE SWITCHER ===== */
.lang-switcher {
  display: flex !important;
  align-items: center;
  gap: 0;
  border-radius: 100px;
  border: 1px solid var(--c-glass-border);
  background: var(--c-glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  margin-right: 0.6rem;
  flex-shrink: 0;
  z-index: 102;
}
.lang-btn {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 0.7rem;
  border: none;
  background: transparent;
  color: var(--c-text-muted);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
  white-space: nowrap;
  line-height: 1;
}
.lang-btn.active { background: var(--c-accent-1); color: #fff; }
.lang-btn:not(.active):hover { background: rgba(255,255,255,0.06); color: var(--c-text); }
.lang-btn .flag-icon {
  width: 16px; height: 12px;
  border-radius: 2px;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

/* ===== i18n visibility ===== */
[data-lang="vi"] .lang-en { display: none; }
[data-lang="en"] .lang-vi { display: none; }

.lang-switcher-mobile {
  display: none !important;
  align-items: center;
  gap: 0;
  border-radius: 100px;
  border: 1px solid var(--c-glass-border);
  background: var(--c-glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  margin-top: 1rem;
}
.lang-switcher-mobile .lang-btn { padding: 0.55rem 1rem; font-size: 0.9rem; }

/* ===== NAV ===== */
nav.main-nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.5rem 3rem;
  display: flex; justify-content: space-between; align-items: center;
  background: var(--c-nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--c-border);
  transition: background 0.4s ease, border-color 0.4s ease;
}
.nav-logo {
  height: 36px;
  display: flex;
  align-items: center;
  position: relative;
}
.nav-logo img { height: 100%; width: auto; opacity: 0; }
.nav-logo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--c-accent-1), var(--c-accent-2), var(--c-accent-3));
  background-size: 200% 200%;
  animation: gradientShift 4s ease infinite;
  -webkit-mask: url('/assets/images/shared/shared-logo-1.png') left center / contain no-repeat;
  mask: url('/assets/images/shared/shared-logo-1.png') left center / contain no-repeat;
}
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  color: var(--c-text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
  transition: color 0.3s;
  letter-spacing: 0.03em;
}
.nav-links a:hover { color: var(--c-text); }
.nav-right {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
  z-index: 102;
}
.nav-cta {
  background: var(--c-accent-1);
  color: #fff;
  border: none;
  padding: 0.6rem 1.6rem;
  border-radius: 100px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: none;
}

/* ===== SECTION COMMON ===== */
section { padding: 7rem 2rem; }
.section-label {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-accent-2);
  font-weight: 600;
  margin-bottom: 1rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.section-desc {
  color: var(--c-text-muted);
  font-size: 1.05rem;
  max-width: 550px;
  font-weight: 300;
  line-height: 1.7;
}
.container { max-width: 1200px; margin: 0 auto; }

/* ===== BUTTONS ===== */
.btn-primary {
  background: linear-gradient(135deg, var(--c-accent-1), var(--c-accent-5));
  color: #fff;
  border: 1px solid transparent;
  padding: 1rem 2.5rem;
  border-radius: 100px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  z-index: 2;
}
.btn-primary.liquid-glass:hover {
  box-shadow: 0 12px 40px rgba(255,60,95,0.35), 0 0 0 1px rgba(255,255,255,0.15), inset 0 1px 0 rgba(255,255,255,0.3);
}
.btn-outline {
  background: var(--c-glass-bg);
  color: var(--c-text);
  border: 1.5px solid var(--c-glass-border);
  padding: 1rem 2.5rem;
  border-radius: 100px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  z-index: 2;
}
.btn-outline.liquid-glass:hover {
  border-color: var(--c-accent-2);
  background: rgba(255,210,63,0.08);
  box-shadow: 0 8px 32px var(--c-glass-shadow), 0 0 0 1px var(--c-glass-border), inset 0 1px 0 var(--c-glass-shine);
}
.btn-yt {
  display: inline-flex;
  align-items: center;
  background: #FF0000;
  color: #fff;
  border: 1px solid transparent;
  padding: 1rem 2.5rem;
  border-radius: 100px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  z-index: 2;
}
.btn-yt.liquid-glass:hover {
  box-shadow: 0 12px 40px rgba(255,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.15), inset 0 1px 0 rgba(255,255,255,0.3);
}

/* ===== STATS BAR ===== */
.stats-bar {
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  padding: 3.5rem 2rem;
  transition: background 0.4s ease, border-color 0.4s ease;
}
.stats-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stats-grid > div:nth-child(1) .stat-num { color: var(--c-accent-1); }
.stats-grid > div:nth-child(2) .stat-num { color: var(--c-accent-2); }
.stats-grid > div:nth-child(3) .stat-num { color: var(--c-accent-3); }
.stats-grid > div:nth-child(4) .stat-num { color: var(--c-accent-4); }
.stat-label { color: var(--c-text-muted); font-size: 0.85rem; letter-spacing: 0.05em; }

/* ===== TESTIMONIALS ===== */
.testimonials { background: transparent; }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 3.5rem;
}
.testimonial-card {
  background: var(--c-surface);
  border-radius: 20px;
  padding: 2.5rem;
  border: 1px solid var(--c-border);
  position: relative;
  transition: transform 0.4s, background 0.4s ease, border-color 0.4s ease;
}
.testimonial-card:hover { transform: translateY(-4px); }
.testimonial-quote { font-size: 2.5rem; line-height: 1; margin-bottom: 1rem; }
.testimonial-card:nth-child(1) .testimonial-quote { color: var(--c-accent-1); }
.testimonial-card:nth-child(2) .testimonial-quote { color: var(--c-accent-3); }
.testimonial-card:nth-child(3) .testimonial-quote { color: var(--c-accent-2); }
.testimonial-card p {
  color: var(--c-text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
  font-weight: 300;
  font-style: italic;
  margin-bottom: 1.5rem;
}
.testimonial-author { display: flex; align-items: center; gap: 0.8rem; }
.testimonial-avatar {
  width: 44px; height: 44px;
  min-width: 44px; min-height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  flex-shrink: 0;
  aspect-ratio: 1 / 1;
}
.testimonial-card:nth-child(1) .testimonial-avatar { background: linear-gradient(135deg, var(--c-accent-1), var(--c-accent-5)); }
.testimonial-card:nth-child(2) .testimonial-avatar { background: linear-gradient(135deg, var(--c-accent-4), var(--c-accent-3)); }
.testimonial-card:nth-child(3) .testimonial-avatar { background: linear-gradient(135deg, var(--c-accent-2), var(--c-accent-1)); }
.testimonial-name { font-weight: 600; font-size: 0.9rem; }
.testimonial-role { color: var(--c-text-muted); font-size: 0.8rem; }
.testimonial-role a {
  color: var(--c-text-muted) !important;
  text-decoration: underline;
  text-decoration-color: rgba(138,138,154,0.3);
  text-underline-offset: 2px;
  transition: color 0.3s, text-decoration-color 0.3s;
}
.testimonial-role a:hover { color: var(--c-text) !important; text-decoration-color: var(--c-text); }

/* ===== CTA ===== */
.cta {
  text-align: center;
  padding: 8rem 2rem;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(255,60,95,0.1) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 50%, rgba(92,124,250,0.1) 0%, transparent 60%);
}
.cta-content { position: relative; z-index: 2; }
.cta .section-title { font-size: clamp(2.2rem, 5vw, 3.8rem); margin-bottom: 1rem; }
.cta .section-title span {
  background: linear-gradient(135deg, var(--c-accent-1), var(--c-accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.cta .section-desc { margin: 0 auto 2.5rem; text-align: center; }
.cta-contacts {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}
.cta-contact-item { text-align: center; color: var(--c-text-muted); font-size: 0.85rem; }
.cta-contact-item strong { display: block; color: var(--c-text); font-size: 1rem; margin-top: 0.3rem; }

/* ===== FOOTER ===== */
.site-footer {
  border-top: 1px solid var(--c-border);
  padding: 4rem 3rem 2rem;
  transition: border-color 0.4s ease;
}
.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
}
.footer-brand .footer-logo-text {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
  background: linear-gradient(135deg, var(--c-accent-1), var(--c-accent-2), var(--c-accent-3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: gradientShift 4s ease infinite;
}
.footer-tagline {
  color: var(--c-text-muted);
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  font-weight: 300;
}
.footer-contact-info { display: flex; flex-direction: column; gap: 0.3rem; }
.footer-contact-info a {
  color: var(--c-text-muted);
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.3s;
}
.footer-contact-info a:hover { color: var(--c-text); }
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: 0.03em;
}
.footer-col nav { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col nav a {
  color: var(--c-text-muted);
  text-decoration: none;
  font-size: 0.82rem;
  transition: color 0.3s;
  font-weight: 300;
}
.footer-col nav a:hover { color: var(--c-text); }
.footer-bottom {
  max-width: 1200px;
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--c-border);
  text-align: center;
  font-size: 0.75rem;
  color: var(--c-text-muted);
}

/* ===== YOUTUBE FACADE ===== */
.yt-facade {
  position: absolute;
  inset: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.yt-play-btn {
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
  transition: transform 0.3s, filter 0.3s;
}
.yt-facade:hover .yt-play-btn {
  transform: scale(1.12);
  filter: drop-shadow(0 6px 20px rgba(0,0,0,0.5));
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -30px) scale(1.1); }
}

/* ===== REVEAL ANIMATION ===== */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.js-loaded .reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.js-loaded .reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== HAMBURGER ===== */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 101;
  padding: 4px;
}
.nav-hamburger span {
  width: 24px; height: 2px;
  background: var(--c-text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .stats-grid { gap: 1.5rem; }
}
@media (max-width: 768px) {
  nav.main-nav { padding: 1rem 1.5rem; }
  .nav-links {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%; height: 100vh;
    background: var(--c-overlay);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    z-index: 10000;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.3rem; color: var(--c-text); }
  .nav-hamburger { display: flex; z-index: 10001; }
  .nav-cta { display: none; }
  .nav-right { display: none !important; }
  .lang-switcher-mobile { display: flex !important; }
  section { padding: 4rem 1.2rem; }
  .section-title { font-size: clamp(1.6rem, 6vw, 2.2rem); }
  .section-desc { font-size: 0.95rem; }
  .stats-bar { padding: 2.5rem 1.2rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .stat-num { font-size: 2rem; }
  .testimonials-grid { display: none; }
  .testimonials-carousel-wrapper {
    display: block;
    margin-top: 2.5rem;
    overflow: hidden;
    position: relative;
  }
  .testimonials-track {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 1rem;
  }
  .testimonials-track::-webkit-scrollbar { display: none; }
  .testimonials-track .testimonial-card {
    min-width: 85vw; max-width: 85vw;
    scroll-snap-align: center;
    flex-shrink: 0;
    padding: 2rem 1.5rem;
  }
  .carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 1rem; }
  .carousel-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--c-border-hover);
    border: none; cursor: pointer;
    transition: background 0.3s, transform 0.3s;
    padding: 0;
  }
  .carousel-dot.active { background: var(--c-accent-1); transform: scale(1.3); }
  .cta { padding: 5rem 1.2rem; }
  .cta .section-title { font-size: clamp(1.6rem, 6vw, 2.4rem); }
  .cta-contacts { flex-direction: column; gap: 1.5rem; }
  .site-footer { padding: 3rem 1.5rem 1.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: span 2; }
  .footer-bottom { margin-top: 2rem; }
  .theme-toggle { bottom: 1.2rem; right: 1.2rem; width: 46px; height: 46px; }
}
@media (max-width: 380px) {
  .stat-num { font-size: 1.6rem; }
  .nav-logo { height: 28px; }
  .lang-btn { padding: 0.35rem 0.5rem; font-size: 0.7rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
}

/* ===== ACCESSIBILITY FIXES ===== */
/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.75rem 1.25rem;
  background: var(--c-accent-1);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;
}

/* Service card as <a> — reset link styles, keep card look */
a.service-card {
  display: block;
  text-decoration: none;
  color: inherit;
}
a.service-card:hover,
a.service-card:focus {
  outline: 2px solid var(--c-accent-1);
  outline-offset: 2px;
}

/* Portfolio link inside article */
.portfolio-link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}
.portfolio-link:focus {
  outline: 2px solid var(--c-accent-1);
  outline-offset: 3px;
  border-radius: 12px;
}

/* muted text contrast fix (WCAG AA) */
:root, [data-theme="dark"] {
  --c-text-muted: #9a9aaa;
}
