/* =================================================================
   HOME PAGE DARK THEME 2025 - Bí ẩn & Hiện đại
   Giữ nguyên structure cũ, chỉ thay đổi màu sắc sang nền đen
   ================================================================= */

/* ==================== CSS VARIABLES - DARK THEME ==================== */
:root {
  /* Màu sẽ được override bởi inline styles từ WordPress settings */
  /* --primary-color và --secondary-color được set trong <head> */

  /* Dark Theme Colors */
  --bg-black: #000000;
  --bg-dark: #0a0a0a;
  --bg-card: #1a1a1a;
  --bg-darker: #141414;

  /* Text Colors */
  --text-white: #ffffff;
  --text-light: #e5e7eb;
  --text-gray: #9ca3af;
  --text-dark-gray: #6b7280;

  /* Gradients */
  --gradient-primary: linear-gradient(360deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  --gradient-dark: linear-gradient(180deg, #000000 0%, #0a0a0a 100%);
  --gradient-overlay: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.9) 100%);

  /* Shadows & Glows - sử dụng màu phụ từ settings */
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 5px 25px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.7);

  /* Border */
  --border-dark: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.12);

  /* Radius */
  --border-radius: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* ===== Fluid vertical rhythm — chuẩn hoá nhịp dọc, tự fit đa thiết bị =====
     Dùng clamp() thay cho px cứng + media query rời rạc: mọi section co giãn
     mượt theo viewport, không nhảy bậc, không tràn trên màn hình thấp. */
  --section-space: clamp(2.75rem, 6vw, 5.5rem);        /* 44px → 88px  : padding trên/dưới mỗi section */
  --section-space-tight: clamp(2.25rem, 4.5vw, 3.75rem); /* 36px → 60px : band gọn (newsletter) */
  --section-header-gap: clamp(1.75rem, 4vw, 3.25rem);  /* 28px → 52px  : header → nội dung */
  --section-title-size: clamp(1.6rem, 1rem + 2.6vw, 2.625rem); /* 25.6px → 42px */
  --section-desc-size: clamp(0.95rem, 0.9rem + 0.4vw, 1.125rem); /* 15px → 18px */
  --grid-gap: clamp(1.1rem, 2.4vw, 1.875rem);          /* 17.6px → 30px : gap lưới card đồng bộ */
}

/* ==================== IMAGE PERFORMANCE 2025 ==================== */
/* Removed content-visibility: auto — caused layout shifts during scroll */

/* GPU Acceleration hints - lightweight only */
.service-card,
.team-member,
.gallery-item,
.service-image,
.member-image {
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* Scroll reveal animation classes */
.scroll-reveal {
  opacity: 0;
  transform: translateY(25px) translateZ(0);
  transition:
    opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0) translateZ(0);
}

/* Section lớn chỉ fade opacity — tránh transform diện rộng gây giật khi cuộn */
.section.scroll-reveal {
  transform: none;
  transition: opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.section.scroll-reveal.revealed {
  transform: none;
}

/* Stagger delay for grid items */
.scroll-reveal:nth-child(1) {
  transition-delay: 0s;
}
.scroll-reveal:nth-child(2) {
  transition-delay: 0.08s;
}
.scroll-reveal:nth-child(3) {
  transition-delay: 0.16s;
}
.scroll-reveal:nth-child(4) {
  transition-delay: 0.24s;
}
.scroll-reveal:nth-child(5) {
  transition-delay: 0.32s;
}
.scroll-reveal:nth-child(6) {
  transition-delay: 0.4s;
}
.scroll-reveal:nth-child(7) {
  transition-delay: 0.48s;
}
.scroll-reveal:nth-child(8) {
  transition-delay: 0.56s;
}
.scroll-reveal:nth-child(9) {
  transition-delay: 0.64s;
}
.scroll-reveal:nth-child(10) {
  transition-delay: 0.72s;
}
.scroll-reveal:nth-child(11) {
  transition-delay: 0.8s;
}
.scroll-reveal:nth-child(12) {
  transition-delay: 0.88s;
}

/* Progressive Image Container - 2025 Optimized */
.img-progressive,
.gallery-item,
.service-image,
.member-image {
  position: relative;
  overflow: hidden;
}

/* Smooth fade-in for loaded images - GPU accelerated */
.gallery-item img,
.service-image img,
.member-image img {
  opacity: 0;
  transform: translateZ(0) scale(1.01);
  transition:
    opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-item.loaded img,
.service-image.loaded img,
.member-image.loaded img {
  opacity: 1;
  transform: translateZ(0) scale(1);
}

/* Instant load for images with src (no lazy) */
.gallery-item img[src]:not([data-src]),
.service-image img[src]:not([data-src]),
.member-image img[src]:not([data-src]) {
  opacity: 1;
  transform: translateZ(0) scale(1);
}

/* Minimal skeleton - no heavy animation */
.img-skeleton {
  background: var(--bg-darker);
}

/* ==================== GLOBAL RESET & BASE - DARK ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:
    'Montserrat',
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  color: var(--text-white);
  line-height: 1.6;
  overflow-x: hidden;
  background: var(--bg-black) !important;
  -webkit-font-smoothing: antialiased;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

body.modal-open {
  overflow: hidden;
}

body.loaded {
  overflow-x: hidden;
}

/* Web App Styling */
.app-container {
  position: relative;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

.webapp-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

html {
  scroll-behavior: smooth;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==================== SCROLL ANIMATIONS ==================== */
.scroll-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.5s ease-out,
    transform 0.5s ease-out;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.scroll-fade-in {
  opacity: 0;
  transition: opacity 1s ease-out;
}

.scroll-fade-in.revealed {
  opacity: 1;
}

/* ==================== WEB APP STRUCTURE - Prevent Reader Mode ==================== */
/* Use widget/ads/sidebar classes to prevent Safari Reader Mode */
#app-root,
.app-container,
.webapp-layout {
  display: block;
  position: relative;
  width: 100%;
}

.widget-dynamic,
.widget-container,
.app-module,
.app-component {
  display: block;
  position: relative;
}

[data-widget] {
  display: block;
  position: relative;
  min-height: 50px;
}

/* Specific widget IDs with negation keywords */
#hero-widget,
#about-widget-ads,
#features-sidebar,
#services-widget-menu,
#team-widget-ads,
#gallery-sidebar-widget,
#reviews-widget-ads,
#contact-widget-menu,
#newsletter-ads-widget {
  display: block;
  position: relative;
}

/* ==================== PRELOADER - DARK ==================== */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-black);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition:
    opacity 0.5s ease,
    visibility 0.5s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-icon {
  font-size: 60px;
  color: var(--secondary-color);
  animation: spin 2s linear infinite;
  filter: drop-shadow(0 0 30px var(--secondary-color));
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.preloader p {
  margin-top: 20px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-gray);
  letter-spacing: 1px;
}

/* ==================== HEADER - DARK FLOATING ==================== */
/* Chống block-theme ép max-width (is-layout-constrained) lên chrome cố định của plugin */
.header,
.mobile-menu,
.preloader {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  /* Ở đầu trang: trong suốt hoàn toàn, không viền — chữ như nổi trên nền 3D của hero */
  background: transparent;
  border: none;
  box-shadow: none;
  z-index: 99;
  transform: translateZ(0);
  transition:
    background-color 0.35s ease,
    backdrop-filter 0.35s ease,
    box-shadow 0.35s ease;
}

/* Khi cuộn xuống nội dung: thêm nền kính mờ để chữ vẫn đọc rõ (vẫn không viền) */
.header.scrolled {
  background: rgba(8, 8, 10, 0.8);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  border: none;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 20px;
}

.header .logo img {
  height: 40px;
  width: auto;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.1));
}

.main-nav ul {
  display: flex;
  gap: 30px;
}

.main-nav a {
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  position: relative;
  padding: 8px 0;
  transition: color 0.25s ease;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--secondary-color);
  transition: width 0.3s ease;
}

.main-nav a:hover {
  color: #ffffff;
}

.main-nav a:hover::after {
  width: 100%;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 22px;
}

.phone-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
  color: var(--secondary-color);
  transition: var(--transition);
}

/* CTA header hiện đại — pill filled accent, chữ tối */
.header .header-cta .btn {
  padding: 11px 24px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: var(--secondary-color);
  color: #141414;
  border: none;
  box-shadow: 0 6px 20px color-mix(in srgb, var(--secondary-color) 40%, transparent);
}

.header .header-cta .btn:hover {
  background: color-mix(in srgb, var(--secondary-color) 88%, #fff);
  color: #141414;
  transform: translateY(-2px);
  box-shadow: 0 10px 26px color-mix(in srgb, var(--secondary-color) 52%, transparent);
}

.phone-link:hover {
  filter: drop-shadow(0 0 20px var(--secondary-color));
}

.phone-link i {
  font-size: 18px;
}

/* ==================== BUTTONS - DARK THEME ==================== */
.btn {
  padding: 12px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  transition: var(--transition);
  display: inline-block;
  text-align: center;
  cursor: pointer;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 0 25px var(--secondary-color);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 40px var(--secondary-color);
}

.btn-outline {
  box-shadow:
    var(--shadow-lg),
    0 0 30px var(--secondary-color);
  background: var(--secondary-color);
  color: var(--primary-color);
  border: none;
}

.btn-outline:hover {
  box-shadow:
    var(--shadow-lg),
    0 0 30px var(--secondary-color);
  background: var(--secondary-color);
  color: white;
  border: none;
  transform: translateY(-3px);
}

.mobile-menu-btn {
  display: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--secondary-color);
  transition: var(--transition);
}

.mobile-menu-btn:hover {
  filter: drop-shadow(0 0 20px var(--secondary-color));
}

/* ==================== MOBILE MENU - DARK ==================== */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 70%;
  max-width: 350px;
  height: 100%;
  background: var(--bg-dark);
  border-left: 1px solid var(--border-dark);
  z-index: 10000;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.8);
  overflow-y: auto;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid var(--border-dark);
}

.header-mobile-spacer {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 20px;
}

.mobile-menu-close {
  font-size: 28px;
  cursor: pointer;
  color: var(--text-white);
  transition: var(--transition);
}

.mobile-menu-close:hover {
  color: var(--primary-color);
}

.mobile-menu ul {
  padding: 20px 0;
}

.mobile-menu li {
  border-bottom: 1px solid var(--border-dark);
}

.mobile-menu a {
  display: block;
  padding: 15px 20px;
  font-weight: 600;
  color: var(--text-light);
  transition: var(--transition);
}

.mobile-menu a:hover {
  background: var(--bg-card);
  color: var(--primary-color);
  padding-left: 30px;
}

.mobile-menu-footer {
  padding: 20px;
  border-top: 1px solid var(--border-dark);
}

.mobile-menu-footer .phone-link {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-weight: 600;
  color: var(--secondary-color);
  padding: 10px;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #ffffff;
  font-size: 18px;
  box-shadow: var(--glow-primary);
}

.social-links a:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 30px var(--secondary-color);
}

/* ==================== HERO SECTION - CINEMATIC SCROLL ==================== */
/* Hero cao 320vh = 3 "đoạn" cuộn, mỗi đoạn 1 kiểu tóc; khung nhìn dính lại (sticky) */
.hero {
  position: relative;
  background: var(--bg-black);
}

.hero-cinema {
  height: 320vh;
}

.hero-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  min-height: 540px;
  overflow: hidden;
  display: flex;
  align-items: stretch;
}

/* Nền ánh sáng sân khấu phía sau nhân vật */
.hero-backdrop {
  position: absolute;
  inset: 0;
  /* Nền gradient chủ đạo↔phụ có chiều sâu: 2 quầng sáng thương hiệu 2 góc + tâm sáng nhẹ
     + vignette tối để nổi khối 3D, đủ tối để nhân vật (áo tối) vẫn nổi */
  background:
    radial-gradient(
      120% 95% at 82% 22%,
      color-mix(in srgb, var(--secondary-color) 26%, transparent),
      transparent 55%
    ),
    radial-gradient(
      110% 85% at 12% 82%,
      color-mix(in srgb, var(--primary-color) 24%, transparent),
      transparent 55%
    ),
    radial-gradient(70% 55% at 60% 38%, rgba(255, 255, 255, 0.06), transparent 62%),
    radial-gradient(140% 120% at 50% 50%, transparent 40%, rgba(0, 0, 0, 0.72) 100%),
    linear-gradient(160deg, #0b0b0d 0%, #08080a 50%, #030303 100%);
}

/* --- Intro: 3 lớp panel tách ra khi load trang --- */
.hero-intro-panels {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: flex;
  pointer-events: none;
}

.hero-panel {
  flex: 1;
  /* Gradient thương hiệu tối (chủ đạo→phụ) cho lớp intro, mỗi lớp lệch góc tạo chiều sâu */
  background:
    linear-gradient(
      160deg,
      color-mix(in srgb, var(--primary-color) 30%, #050505),
      color-mix(in srgb, var(--secondary-color) 26%, #050505)
    );
  transform: translateY(0);
}

.hero-panel:nth-child(2) {
  background:
    linear-gradient(
      160deg,
      color-mix(in srgb, var(--secondary-color) 26%, #060606),
      color-mix(in srgb, var(--primary-color) 24%, #040404)
    );
}

.hero-panel:nth-child(3) {
  background:
    linear-gradient(
      160deg,
      color-mix(in srgb, var(--primary-color) 22%, #050505),
      color-mix(in srgb, var(--secondary-color) 30%, #030303)
    );
}

.intro-play .hero-panel {
  animation: heroPanelUp 0.9s cubic-bezier(0.77, 0, 0.18, 1) forwards;
}

.intro-play .hero-panel:nth-child(2) {
  animation-delay: 0.12s;
}

.intro-play .hero-panel:nth-child(3) {
  animation-delay: 0.24s;
}

@keyframes heroPanelUp {
  to {
    transform: translateY(-101%);
  }
}

/* --- Layout 2 cột: chữ trái, nhân vật phải --- */
.hero-stage {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  align-items: center;
  gap: 24px;
  width: 100%;
  padding-top: 64px;
}

.hero-cinema .hero-content {
  text-align: left;
  margin: 0;
  max-width: 680px;
  align-self: start; /* bám mốc trên để canh badge ngang đầu nhân vật */
  padding-top: clamp(90px, 20vh, 175px);
}

/* Tiêu đề bự kiểu editorial (như trang tham chiếu) */
.hero-cinema .hero-content h1,
.hero-cinema .hero-content h2 {
  font-size: clamp(2.5rem, 7.4vw, 6.25rem);
  line-height: 0.96;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
  text-shadow: 0 6px 40px rgba(0, 0, 0, 0.9);
}

/* Tagline có icon barber — cỡ chữ nổi bật, không nhỏ */
.hero-cinema .hero-tagline {
  font-size: clamp(1.2rem, 1.8vw, 1.6rem);
  font-weight: 600;
  color: var(--text-light);
  letter-spacing: 0.01em;
  margin-bottom: 0;
}

/* Màn hình thấp: thu chữ thêm để badge trên + hint dưới không bị cắt */
@media (min-width: 769px) and (max-height: 780px) {
  .hero-cinema .hero-content h1,
  .hero-cinema .hero-content h2 {
    font-size: clamp(2.25rem, 5.2vw, 4.25rem);
    margin-bottom: 10px;
  }

  .hero-stage {
    padding-top: 72px;
  }
}

.hero-cinema .hero-btns {
  justify-content: flex-start;
  margin-top: 20px;
  gap: 14px;
}

/* Nút hero cao cấp — phân cấp rõ ràng, bỏ gradient 2 tông muddy.
   "Đặt lịch ngay" = filled accent (hành động chính), "Dịch vụ" = ghost kính. */
.hero-cinema .hero-btns .btn {
  padding: 15px 30px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition:
    transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.25s ease,
    background-color 0.25s ease,
    border-color 0.25s ease;
}

/* Ghost/kính — Dịch vụ của chúng tôi */
.hero-cinema .hero-btns .btn-primary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: none;
}

.hero-cinema .hero-btns .btn-primary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: none;
}

/* Filled accent — Đặt lịch ngay (hành động chính). Chữ tối để đọc rõ trên mọi tông accent sáng */
.hero-cinema .hero-btns .btn-outline {
  background: var(--secondary-color);
  color: #141414;
  border: none;
  box-shadow: 0 10px 28px color-mix(in srgb, var(--secondary-color) 45%, transparent);
}

.hero-cinema .hero-btns .btn-outline:hover {
  background: color-mix(in srgb, var(--secondary-color) 88%, #fff);
  color: #141414;
  border: none;
  transform: translateY(-2px);
  box-shadow: 0 14px 34px color-mix(in srgb, var(--secondary-color) 55%, transparent);
}

/* Chữ ẩn chờ intro, trồi lên lần lượt */
.hero-cinema .hero-copy > * {
  opacity: 0;
}

.intro-play .hero-copy > * {
  animation: heroRiseIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.intro-play .hero-copy > *:nth-child(1) {
  animation-delay: 0.55s;
}

.intro-play .hero-copy > *:nth-child(2) {
  animation-delay: 0.65s;
}

.intro-play .hero-copy > *:nth-child(3) {
  animation-delay: 0.75s;
}

.intro-play .hero-copy > *:nth-child(4) {
  animation-delay: 0.85s;
}

.intro-play .hero-copy > *:nth-child(5) {
  animation-delay: 0.95s;
}

@keyframes heroRiseIn {
  from {
    opacity: 0;
    transform: translateY(26px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Nhân vật --- */
.hero-figure {
  position: relative;
  min-width: 0;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero-char-wrap {
  position: relative;
  left: -70px; /* dịch nhân vật sang trái để ly rượu tách khỏi cột mẫu tóc */
  width: min(1360px, 90vw);
  flex-shrink: 0; /* không để flex co ảnh lại — người cần đủ lớn, phần trong suốt tràn ra ngoài */
  aspect-ratio: 2000 / 1118;
  margin-bottom: -6vh; /* đẩy cạnh dưới ảnh xuống dưới mép màn hình để không lộ đường cắt */
  opacity: 0;
  transform-origin: 50% 24%; /* zoom quanh vùng đầu để giữ mặt/tóc trong khung */
  will-change: transform;
  backface-visibility: hidden;
}

.intro-play .hero-char-wrap {
  animation: heroCharIn 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.45s forwards;
}

/* Trạng thái nghỉ sau intro — bỏ animation để inline-style của JS điều khiển được */
.hero-cinema.intro-done .hero-char-wrap,
.hero-cinema.intro-done .hero-copy > *,
.hero-cinema.intro-done .hero-hair-rail {
  opacity: 1;
  animation: none;
}

/* Panels đã cắt xong → ẩn hẳn (nếu không, gỡ intro-play sẽ reset chúng che stage) */
.hero-cinema.intro-done .hero-intro-panels {
  display: none;
}

/* Transition ngắn làm mượt chuyển động bám-cuộn (thay cho lerp rAF) */
.hero-cinema.intro-done .hero-char-wrap {
  transition: transform 0.14s linear;
}

.hero-cinema.intro-done .hero-copy {
  transition:
    transform 0.14s linear,
    opacity 0.14s linear;
}

.hero-cinema.intro-done .hero-hair-rail {
  transition: none;
}

@keyframes heroCharIn {
  from {
    opacity: 0;
    transform: translateY(34px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero-char {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.6s ease;
  will-change: opacity;
  filter: drop-shadow(0 24px 32px rgba(0, 0, 0, 0.55));
}

.hero-char.is-active {
  opacity: 1;
}

/* Sprite tóc bay từ thumbnail vào đầu nhân vật (điều khiển bằng JS/WAAPI) */
.hero-hair-fly {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
  z-index: 6;
}

/* --- Dãy thumbnail tóc cạnh mặt nhân vật --- */
.hero-hair-rail {
  position: absolute;
  left: 94%;
  top: 16%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 5;
  opacity: 0;
}

/* Showcase desktop: giãn khoảng cách để tên mẫu (phía trên) không đè thumbnail kề trên */
@media (min-width: 769px) {
  .hero-cinema.is-showcase .hero-hair-rail {
    gap: 46px;
  }
}

/* Showcase: mẫu đang chọn nổi bật (sáng + phóng), các mẫu khác mờ đi */
.hero-cinema.is-showcase .hero-hair-thumb {
  transition:
    opacity 0.4s ease,
    filter 0.4s ease,
    transform 0.4s ease,
    box-shadow 0.4s ease;
}

.hero-cinema.is-showcase .hero-hair-thumb:not(.is-current) {
  opacity: 0.35;
  filter: grayscale(0.4);
  transform: scale(0.92);
}

.hero-cinema.is-showcase .hero-hair-thumb.is-current {
  opacity: 1;
  transform: scale(1.16);
  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.45),
    0 0 22px color-mix(in srgb, var(--secondary-color) 75%, transparent),
    0 0 6px var(--secondary-color);
}

.intro-play .hero-hair-rail {
  animation: heroRailIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.9s forwards;
}

@keyframes heroRailIn {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-hair-thumb {
  position: relative;
  width: 82px;
  height: 82px;
  padding: 9px;
  border-radius: 16px;
  /* nền chip = ĐÚNG màu nền đã ghép vào ảnh (#E8EAEF) → liền mạch, không lộ viền khung */
  background: #e8eaef;
  border: none;
  cursor: pointer;
  transition:
    box-shadow 0.3s ease,
    transform 0.3s ease;
}

/* Tên kiểu tóc hiện phía trên mẫu đang active (fade-in + quét sáng màu chủ đạo) */
.hero-hair-name {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  white-space: nowrap;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.5s ease,
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  /* màu vàng (secondary) + quét sáng chạy ngang, kèm glow vàng để không bị chìm */
  color: var(--secondary-color);
  background: linear-gradient(
    100deg,
    var(--secondary-color) 0%,
    var(--secondary-color) 42%,
    #ffffff 50%,
    var(--secondary-color) 58%,
    var(--secondary-color) 100%
  );
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter:
    drop-shadow(0 1px 2px rgba(0, 0, 0, 0.85))
    drop-shadow(0 0 12px color-mix(in srgb, var(--secondary-color) 70%, transparent));
}

/* Chỉ mẫu đang active + đang showcase mới hiện tên, kèm fade-in và loop quét sáng */
.hero-cinema.is-showcase .hero-hair-thumb.is-current .hero-hair-name {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  animation: heroNameShine 2.2s ease-in-out infinite;
}

@keyframes heroNameShine {
  0% {
    background-position: 210% 0;
  }
  60%,
  100% {
    background-position: -60% 0;
  }
}

.hero-hair-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.hero-hair-thumb:hover {
  transform: scale(1.05);
  box-shadow: 0 0 18px color-mix(in srgb, var(--secondary-color) 55%, transparent);
}

.hero-hair-thumb.is-current {
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.45),
    0 0 18px color-mix(in srgb, var(--secondary-color) 70%, transparent);
  transform: scale(1.08);
}

/* --- Gợi ý cuộn (text trên, line trỏ xuống ở dưới) --- */
.hero-scroll-hint {
  position: static;
  margin: 22px auto 0;
  width: -moz-fit-content;
  width: fit-content;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-light);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.intro-play .hero-scroll-hint {
  opacity: 0.9;
}

.intro-play .hero-scroll-hint.is-hidden {
  opacity: 0;
}

/* Line dọc có vệt sáng chảy xuống = chỉ hướng cuộn xuống rõ ràng */
.hero-scroll-hint-line {
  position: relative;
  width: 2px;
  height: 44px;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 2px;
  overflow: hidden;
}

.hero-scroll-hint-line::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 45%;
  background: linear-gradient(180deg, transparent, var(--secondary-color));
  animation: heroHintFlow 1.5s ease-in-out infinite;
}

@keyframes heroHintFlow {
  0% {
    transform: translateY(-110%);
    opacity: 0;
  }

  30% {
    opacity: 1;
  }

  100% {
    transform: translateY(240%);
    opacity: 0;
  }
}

/* --- Dấu chấm chỉ kiểu tóc (hiện khi nhân vật vào giữa) --- */
.hero-dots {
  position: absolute;
  bottom: 44px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 12px;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.hero-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  transition:
    background-color 0.4s ease,
    transform 0.4s ease;
}

.hero-dot.is-current {
  background: var(--secondary-color);
  transform: scale(1.35);
  box-shadow: 0 0 12px var(--secondary-color);
}

/* Giảm chuyển động: bỏ intro + hiển thị ngay */
@media (prefers-reduced-motion: reduce) {
  .hero-intro-panels {
    display: none;
  }

  .hero-cinema .hero-copy > *,
  .hero-char-wrap,
  .hero-hair-rail {
    opacity: 1 !important;
    animation: none !important;
  }

  .hero-scroll-hint-line {
    animation: none;
  }

  .hero-dots {
    opacity: 1;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--text-white);
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-content .subtitle {
  display: inline-block;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 5px;
  color: var(--secondary-color);
  padding: 8px 14px;
  background: rgba(0, 0, 0, 0.4);
  border: 2px solid var(--secondary-color);
  border-radius: 50px;
  box-shadow: 0 0 30px var(--secondary-color);
  filter: drop-shadow(0 4px 15px var(--secondary-color));
}

.hero-content h1,
.hero-content h2 {
  font-size: 56px;
  font-weight: 900;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 5px 30px rgba(0, 0, 0, 0.8);
  letter-spacing: -1px;
}

.hero-content p {
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--text-light);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.hero-btns {
  display: inline-flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
}

/* ==================== SECTIONS - DARK ==================== */
.section {
  padding: var(--section-space) 0;
  background: var(--bg-black);
  position: relative;
}

.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, rgba(0, 212, 170, 0.03) 0%, transparent 70%);
  pointer-events: none;
}

.section:nth-child(even) {
  background: var(--bg-dark);
}

/* ===== Mỗi section vừa khít 1 màn hình (tablet trở lên) =====
   Section tối thiểu = 1 viewport, nội dung canh giữa theo chiều dọc.
   min-height cho phép section DÀI HƠN khi nội dung nhiều (không cắt cụt),
   nhưng section ngắn sẽ lấp đầy màn hình → hiển thị trọn vẹn, không lửng lơ.
   Mobile không ép (nội dung xếp dọc không thể nhét gọn 1 màn). */
@media (min-width: 769px) {
  .section {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .section > .container {
    width: 100%;
  }
}

.section-header {
  text-align: center;
  margin-bottom: var(--section-header-gap);
  position: relative;
  z-index: 1;
}

.section-header .subtitle {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 4px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
  padding: 10px 30px;
  position: relative;
  border: 2px solid var(--secondary-color);
  border-radius: 50px;
  box-shadow:
    0 0 20px rgb(255 230 107 / 20%),
    inset 0 0 20px rgba(255, 107, 107, 0.05);
  transition: var(--transition);
}

.section-header .subtitle:hover {
  box-shadow:
    0 0 30px var(--secondary-color),
    inset 0 0 30px var(--secondary-color);
  transform: translateY(-2px);
}

.section-title {
  font-size: var(--section-title-size);
  font-weight: 900;
  color: var(--text-white);
  margin-bottom: 20px;
  letter-spacing: -1px;
  line-height: 1.15;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin: 25px 0;
}

.divider-line {
  width: 50px;
  height: 2px;
  background: var(--gradient-primary);
  box-shadow: 0 0 15px var(--secondary-color);
}

.divider-icon {
  font-size: 24px;
  color: var(--secondary-color);
  filter: drop-shadow(0 0 20px var(--secondary-color));
}

.section-description {
  font-size: var(--section-desc-size);
  color: var(--text-gray);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ==================== ABOUT SECTION - MODERN REDESIGN ==================== */
.about-modern-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: center;
  position: relative;
  z-index: 1;
}

.about-stats-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--grid-gap);
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-dark);
  border-radius: 20px;
  padding: clamp(1rem, 2.2vh, 1.75rem) clamp(1rem, 2vw, 1.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(0.6rem, 1.6vh, 1.25rem);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.6s ease-out backwards;
}

.stat-card:nth-child(1) {
  animation-delay: 0.1s;
}

.stat-card:nth-child(2) {
  animation-delay: 0.2s;
}

.stat-card:nth-child(3) {
  animation-delay: 0.3s;
}

.stat-card:nth-child(4) {
  animation-delay: 0.4s;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px) translateZ(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0) translateZ(0);
  }
}

/* Smooth fade-in animation for scroll reveal */
@keyframes smoothFadeIn {
  0% {
    opacity: 0;
    transform: translateY(25px) translateZ(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0) translateZ(0);
  }
}

@keyframes smoothFadeInScale {
  0% {
    opacity: 0;
    transform: scale(0.95) translateZ(0);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateZ(0);
  }
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.stat-card:hover::before {
  opacity: 0.1;
}

.stat-card:hover {
  transform: translateY(-10px);
  border-color: var(--secondary-color);
  box-shadow: 0 10px 40px var(--secondary-color);
}

.stat-icon {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #ffffff;
  font-size: 32px;
  box-shadow: 0 5px 25px var(--secondary-color);
  transition: var(--transition);
  position: relative;
  z-index: 1;
}

.stat-card:hover .stat-icon {
  transform: rotateY(360deg);
  box-shadow: 0 8px 35px var(--secondary-color);
}

.stat-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.stat-number {
  font-size: 42px;
  font-weight: 900;
  background: var(--secondary-color);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 5px;
  line-height: 1;
}

.stat-label {
  font-size: 14px;
  color: var(--text-gray);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.about-image-modern {
  position: relative;
  border-radius: 25px;
  overflow: hidden;
  max-height: min(72vh, 620px);
  box-shadow:
    var(--shadow-lg),
    0 0 40px var(--secondary-color);
  border: 2px solid var(--border-light);
  transition: var(--transition);
}

.about-image-modern:hover {
  transform: scale(1.02);
  box-shadow:
    var(--shadow-lg),
    0 0 60px var(--secondary-color);
}

.about-image-modern img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-image-modern:hover img {
  transform: scale(1.08);
}

.about-cta-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 40px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, transparent 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.about-image-modern:hover .about-cta-overlay {
  opacity: 1;
}

.about-cta-overlay .btn {
  transform: translateY(20px);
  transition: transform 0.4s ease;
}

.about-image-modern:hover .about-cta-overlay .btn {
  transform: translateY(0);
}

/* ==================== FEATURES SECTION - MODERN REDESIGN ==================== */
.features-modern-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-gap);
  position: relative;
  z-index: 1;
}

.feature-card-modern {
  background: var(--bg-card);
  border: 1px solid var(--border-dark);
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  animation: fadeInUp 0.6s ease-out backwards;
}

.feature-card-modern:nth-child(1) {
  animation-delay: 0.1s;
}

.feature-card-modern:nth-child(2) {
  animation-delay: 0.2s;
}

.feature-card-modern:nth-child(3) {
  animation-delay: 0.3s;
}

.feature-card-modern:nth-child(4) {
  animation-delay: 0.4s;
}

.feature-card-modern:nth-child(5) {
  animation-delay: 0.5s;
}

.feature-card-modern:nth-child(6) {
  animation-delay: 0.6s;
}

.feature-card-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.feature-card-modern:hover::before {
  opacity: 0.08;
}

.feature-card-modern:hover {
  transform: translateY(-15px);
  border-color: var(--secondary-color);
  box-shadow: 0 15px 50px var(--secondary-color);
}

.feature-icon-wrapper {
  width: 90px;
  height: 90px;
  margin: 0 auto 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-darker);
  border: 2px solid var(--border-dark);
  position: relative;
  z-index: 1;
  transition: var(--transition);
}

.feature-card-modern:hover .feature-icon-wrapper {
  background: var(--gradient-primary);
  border-color: var(--secondary-color);
  transform: rotateY(360deg) scale(1.1);
  box-shadow: 0 0 35px var(--secondary-color);
}

.feature-icon-wrapper i {
  font-size: 40px;
  color: var(--secondary-color);
  transition: var(--transition);
}

.feature-card-modern:hover .feature-icon-wrapper i {
  color: #ffffff;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8));
}

.feature-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
  transition: var(--transition);
}

.feature-card-modern:hover .feature-title {
  color: var(--secondary-color);
}

.feature-desc {
  font-size: 14px;
  color: var(--text-gray);
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

/* ==================== SERVICES SECTION - DARK ==================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--grid-gap);
  position: relative;
  z-index: 1;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-dark);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow:
    var(--shadow-lg),
    0 0 30px var(--secondary-color);
  border-color: var(--secondary-color);
}

.service-image {
  position: relative;
  aspect-ratio: 16 / 9;
  max-height: 22vh;
  overflow: hidden;
  background: var(--bg-darker);
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card:hover .service-image img {
  transform: translateZ(0) scale(1.08);
}

.service-card h3 {
  padding: 14px 20px 6px;
  font-size: 19px;
  font-weight: 700;
  color: var(--text-white);
}

.service-card p {
  padding: 0 20px 8px;
  font-size: 14px;
  color: var(--text-gray);
  line-height: 1.55;
}

.service-price {
  display: block;
  padding: 6px 20px 16px;
  font-size: 22px;
  font-weight: 700;
  background: var(--secondary-color);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ==================== TEAM SECTION - DARK ==================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--grid-gap);
  position: relative;
  z-index: 1;
}

.team-member {
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.team-member:hover {
  transform: translateY(-10px);
  box-shadow:
    var(--shadow-lg),
    0 0 30px var(--secondary-color);
  border-color: var(--secondary-color);
}

.member-image {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.member-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.team-member:hover .member-image img {
  transform: translateZ(0) scale(1.08);
}

.member-social {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.team-member:hover .member-social {
  opacity: 1;
}

.member-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--secondary-color);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #ffffff;
  font-size: 16px;
  box-shadow: 0 0 20px var(--secondary-color);
}

.member-social a:hover {
  background: var(--gradient-primary);
  transform: scale(1.1);
}

.member-info {
  padding: 20px;
  display: inline-flex;
}

.member-info h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 10px;
}

/* Nút "Đặt lịch ngay!" ở card thợ — đồng bộ style với nút chính ở hero
   (nền accent đặc, chữ tối, bo góc mềm, shadow nhẹ thay cho gradient bóng cũ) */
.member-info .book-btn {
  width: 100%;
  padding: 14px 24px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  background: var(--secondary-color);
  color: #141414;
  border: none;
  box-shadow: 0 10px 28px color-mix(in srgb, var(--secondary-color) 40%, transparent);
  transition:
    transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.25s ease,
    background-color 0.25s ease;
}

.member-info .book-btn:hover {
  background: color-mix(in srgb, var(--secondary-color) 88%, #fff);
  color: #141414;
  transform: translateY(-2px);
  box-shadow: 0 14px 34px color-mix(in srgb, var(--secondary-color) 55%, transparent);
}

.member-info .book-btn:active {
  transform: translateY(0) scale(0.98);
}

/* ==================== GALLERY SECTION - DARK ==================== */
/* Gallery Section */
.gallery-section {
  background-color: var(--bg-dark);
  padding: var(--section-space) 0;
}

.gallery-grid {
  column-count: 3;
  column-gap: 20px;
  width: 100%;
}

@media (max-width: 768px) {
  .gallery-grid {
    column-count: unset;
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    gap: 10px;
    padding: 0 15px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    /* Hide scrollbar for cleaner look */
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .gallery-grid::-webkit-scrollbar {
    display: none;
  }

  .gallery-item {
    flex: 0 0 85%;
    max-width: 85%;
    scroll-snap-align: center;
    /* Chiều cao cố định — tránh nhảy layout khi ảnh lazy-load */
    aspect-ratio: 4 / 5;
    transition:
      transform 0.25s ease-out,
      opacity 0.25s ease-out;
    opacity: 0.55;
    transform: scale(0.92);
  }

  .gallery-grid .gallery-item img {
    height: 100%;
    object-fit: cover;
  }

  /* Active item - hiển thị ngay lập tức */
  .gallery-item.active {
    opacity: 1 !important;
    transform: scale(1) !important;
  }

  /* Đảm bảo ảnh trong active item hiện rõ */
  .gallery-item.active img {
    opacity: 1 !important;
  }
}

.gallery-item {
  margin-bottom: 20px;
  margin-left: 10px;
  break-inside: avoid;
  border-radius: 10px;
  background-color: var(--bg-dark);
  /* Ẩn alt text khi image loading */
  font-size: 0;
  line-height: 0;
  color: transparent;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  color: transparent;
}

.gallery-item:hover img {
  transform: translateZ(0) scale(1.03);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
  pointer-events: auto;
}

.gallery-zoom {
  color: var(--secondary-color);
  font-size: 40px;
  transition: transform 0.2s ease;
  transform: translateZ(0);
}

.gallery-item:hover .gallery-zoom {
  transform: translateZ(0) scale(1.1);
}

/* Gallery Controls */
.gallery-controls {
  display: none;
  position: absolute;
  width: 95%;
  justify-content: center;
  padding: 0 15px;
  pointer-events: none;
}

.gallery-nav {
  background: rgba(0, 0, 0, 0.6);
  border: none;
  color: var(--secondary-color);
  font-size: 24px;
  padding: 12px;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.3s ease;
  pointer-events: auto;
}

.gallery-nav:hover {
  background: rgba(0, 0, 0, 0.9);
}

@media (max-width: 576px) {
  .gallery-controls {
    display: flex;
  }

  .mobile-only {
    display: flex;
  }

  .gallery-grid {
    column-count: unset;
  }
}

/* ==================== REVIEWS SECTION - DARK ==================== */
.reviews-placeholder {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.shortcode-box {
  background: var(--bg-card);
  padding: 40px;
  border-radius: 15px;
  border: 1px solid var(--border-dark);
  box-shadow: var(--shadow-md);
}

/* ==================== FAQ SECTION - ACCORDION ==================== */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  z-index: 1;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-dark);
  border-radius: 16px;
  overflow: hidden;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    background 0.3s ease;
}

.faq-item:hover {
  border-color: color-mix(in srgb, var(--secondary-color) 35%, transparent);
}

.faq-item.is-open {
  border-color: color-mix(in srgb, var(--secondary-color) 55%, transparent);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.4);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(15px, 2.2vh, 22px) clamp(18px, 2.5vw, 26px);
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-size: clamp(15px, 1.6vw, 17px);
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-white);
  transition: color 0.25s ease;
}

.faq-question:hover {
  color: var(--secondary-color);
}

.faq-icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--bg-darker);
  border: 1px solid var(--border-dark);
  color: var(--secondary-color);
  font-size: 13px;
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.3s ease,
    color 0.3s ease;
}

.faq-item.is-open .faq-icon {
  transform: rotate(180deg);
  background: var(--secondary-color);
  color: #141414;
}

/* Animation mượt bằng max-height — JS đặt max-height = scrollHeight khi mở,
   về 0 khi đóng (mượt cả 2 chiều, không bị kẹt như kỹ thuật grid fr). */
.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-answer p {
  margin: 0;
  padding: 0 clamp(18px, 2.5vw, 26px) clamp(16px, 2.2vh, 22px);
  color: var(--text-gray);
  font-size: clamp(14px, 1.4vw, 15.5px);
  line-height: 1.75;
}

/* ==================== CONTACT SECTION - DARK ==================== */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 3.5vw, 3.75rem);
  position: relative;
  z-index: 1;
}

.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(0.75rem, 1.5vw, 1.25rem);
}

.contact-item {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
  padding: 25px;
  background: var(--bg-card);
  border: 1px solid var(--border-dark);
  border-radius: 12px;
  transition: var(--transition);
  flex: 1;
}

.contact-item:hover {
  background: var(--bg-darker);
  border-color: var(--secondary-color);
  transform: translateX(5px);
  box-shadow: 0 5px 25px var(--secondary-color);
}

.contact-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #ffffff;
  font-size: 24px;
  flex-shrink: 0;
  box-shadow: 0 5px 20px var(--secondary-color);
}

.contact-item:nth-child(1) .contact-icon,
.contact-item:nth-child(4) .contact-icon {
  background: var(--secondary-color);
  box-shadow: 0 5px 20px rgba(255, 230, 107, 0.5);
}

.contact-text h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 8px;
}

.contact-text p,
.contact-text a {
  font-size: 15px;
  color: var(--text-gray);
  line-height: 1.7;
}

.contact-text a:hover {
  color: var(--secondary-color);
}

.contact-text .address-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-text .address-list li {
  position: relative;
  padding-left: 15px;
  margin-bottom: 10px;
  line-height: 1.7;
}

.contact-text .address-list li::before {
  content: '';
  position: absolute;
  left: 0;
  color: var(--secondary-color);
  font-weight: bold;
}

.contact-text .address-list li strong {
  color: var(--text-white);
  font-weight: 600;
}

.contact-text .address-list li a {
  color: var(--text-gray);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-text .address-list li a:hover {
  color: var(--secondary-color);
}

.contact-map {
  border-radius: 15px;
  overflow: hidden;
  height: clamp(320px, 48vh, 560px);
  min-height: 100%;
  border: 2px solid var(--border-dark);
  box-shadow:
    var(--shadow-lg),
    0 0 20px var(--secondary-color);
  transition: var(--transition);
}

.contact-map:hover {
  border-color: var(--secondary-color);
  box-shadow:
    var(--shadow-lg),
    0 0 35px var(--secondary-color);
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ==================== NEWSLETTER SECTION - DARK ==================== */
.newsletter-section {
  background: var(--gradient-primary);
  padding: var(--section-space-tight) 0;
  position: relative;
  overflow: hidden;
  box-shadow: var(--glow-primary);
}

.newsletter-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Mobile: tắt hiệu ứng xoay nền — tốn GPU, gây giật khi cuộn */
@media (max-width: 768px) {
  .newsletter-section::before {
    animation: none;
  }
}

.newsletter-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  z-index: 1;
}

.newsletter-text {
  color: #ffffff;
}

.newsletter-text h3 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 10px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.newsletter-text p {
  font-size: 16px;
  opacity: 0.95;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  flex: 1;
  max-width: 500px;
}

.newsletter-form input {
  flex: 1;
  padding: 15px 20px;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--bg-dark);
}

.newsletter-form input::placeholder {
  color: var(--text-dark-gray);
}

.newsletter-form button {
  white-space: nowrap;
  background: var(--bg-dark);
  color: #ffffff;
  border: 2px solid transparent;
}

.newsletter-form button:hover {
  background: var(--bg-black);
  border-color: #ffffff;
  transform: translateY(-2px);
}

/* ==================== FOOTER - DARK ==================== */
.footer {
  background: linear-gradient(180deg, var(--bg-black) 0%, var(--bg-dark) 50%, #000000 100%);
  color: var(--text-light);
  padding: 70px 0 0;
  border-top: 2px solid var(--border-light);
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 50%, rgba(255, 107, 107, 0.03) 0%, transparent 70%);
  pointer-events: none;
}

.footer .container {
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 2.5fr;
  gap: 50px;
  margin-bottom: 50px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border-dark);
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-col h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 25px;
  color: var(--text-white);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  position: relative;
  padding-bottom: 15px;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 3px;
  box-shadow: 0 0 15px var(--secondary-color);
}

.footer-col .logo {
  width: 120px;
  margin-bottom: 20px;
  align-self: center;
  filter: drop-shadow(0 0 15px var(--secondary-color));
  transition: var(--transition);
}

.footer-col .logo:hover {
  filter: drop-shadow(0 0 25px var(--secondary-color));
  transform: scale(1.08);
}

.footer-col .logo img {
  width: 100%;
  height: auto;
}

.footer-col > p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-gray);
  margin-bottom: 25px;
  text-align: center;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  font-size: 14px;
  color: var(--text-gray);
  display: flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
  padding: 6px 0;
}

.footer-col ul li a i {
  font-size: 12px;
  color: var(--secondary-color);
  min-width: 16px;
  text-align: center;
}

.footer-col ul li a:hover {
  color: var(--secondary-color);
  padding-left: 5px;
  text-shadow: 0 0 10px var(--secondary-color);
}

.footer-col ul li p {
  font-size: 14px;
  color: var(--text-gray);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.7;
}

.footer-col ul li p i {
  margin-top: 3px;
  color: var(--secondary-color);
  font-size: 14px;
  min-width: 16px;
  flex-shrink: 0;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  justify-content: center;
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border-dark);
  color: var(--text-white);
  font-size: 16px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.footer-social a::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: var(--gradient-primary);
  transform: translate(-50%, -50%);
  transition:
    width 0.4s ease,
    height 0.4s ease;
}

.footer-social a:hover::before {
  width: 100%;
  height: 100%;
}

.footer-social a i {
  position: relative;
  z-index: 1;
}

.footer-social a:hover {
  border-color: var(--secondary-color);
  transform: translateY(-5px) rotate(360deg);
  box-shadow: 0 8px 25px var(--secondary-color);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 25px 0;
  background: rgba(0, 0, 0, 0.4);
  margin: 0 -20px;
  padding-left: 20px;
  padding-right: 20px;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--text-gray);
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-gray);
  transition: var(--transition);
  position: relative;
  padding: 5px 0;
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width 0.3s ease;
}

.footer-links a:hover {
  color: var(--secondary-color);
  text-shadow: 0 0 10px var(--secondary-color);
}

.footer-links a:hover::after {
  width: 100%;
}

.footer-address {
  display: flex;
  gap: 10px;
  justify-content: flex-start;
  line-height: 1.8;
  align-items: baseline;
}

.footer-address > i {
  color: var(--secondary-color);
  font-size: 14px;
  margin-bottom: 8px;
}

.footer-address .address-label {
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 5px;
}

.footer-address .address-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.footer-address .address-list li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 5px;
  padding-left: 15px;
  margin-bottom: 8px;
  line-height: 1.7;
}

.footer-address .address-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--secondary-color);
  font-weight: bold;
}

.footer-address .address-list li strong {
  color: var(--text-white);
  font-weight: 600;
}

.footer-address .address-list li a {
  color: var(--text-gray);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-address .address-list li a:hover {
  color: var(--secondary-color);
}

/* ==================== BACK TO TOP - DARK ==================== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #ffffff;
  font-size: 20px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  box-shadow: 0 0 25px var(--secondary-color);
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 40px var(--secondary-color);
}

/* ==================== MOBILE NATIVE NAVIGATION BAR ==================== */
.mobile-native-nav {
  display: none;
}

@media (max-width: 768px) {
  .mobile-native-nav {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    padding: env(safe-area-inset-bottom, 0);
    transform: translateY(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .mobile-native-nav.hidden {
    transform: translateY(100%);
  }

  .mobile-nav-container {
    background: rgba(10, 10, 10, 0.9);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.5);
    padding: 12px 0 8px;
  }

  .mobile-nav-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 500px;
    margin: 0 auto;
  }

  .mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    border-radius: 12px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    position: relative;
    min-width: 70px;
  }

  .mobile-nav-item:active {
    transform: scale(0.95);
  }

  .mobile-nav-item.active {
    color: var(--secondary-color);
  }

  .mobile-nav-item.active::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 0 0 3px 3px;
    box-shadow: 0 2px 10px var(--secondary-color);
  }

  .mobile-nav-icon {
    font-size: 22px;
    transition: transform 0.3s ease;
  }

  .mobile-nav-item:active .mobile-nav-icon {
    transform: scale(0.9);
  }

  .mobile-nav-item.active .mobile-nav-icon {
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--secondary-color);
  }

  .mobile-nav-text {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
  }

  /* Add bottom padding to body on mobile to prevent content being hidden by nav */
  body {
    padding-bottom: 80px;
  }
}

/* ==================== UTILITY CLASSES ==================== */
.text-center {
  text-align: center;
  margin: 50px;
}

.mt-20 {
  margin-top: 20px;
}

.mb-20 {
  margin-bottom: 20px;
}

.mobile-only {
  display: none;
}

/* ==================== RESPONSIVE - DARK THEME ==================== */
@media (max-width: 1024px) {
  .main-nav {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero-content h1,
  .hero-content h2 {
    font-size: 42px;
  }

  .about-content,
  .features-content,
  .contact-container,
  .about-modern-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .features-modern-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-map {
    height: 350px;
  }

  .contact-info {
    min-height: unset;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .mobile-only {
    display: flex;
  }

  .header .container {
    padding: 10px 20px;
  }

  .header .logo img {
    height: 40px;
  }

  .header-cta .phone-link {
    display: none;
  }

  .hero-cinema {
    height: 300vh;
  }

  .hero-sticky {
    min-height: 100vh;
    min-height: 100svh;
  }

  /* Mobile: chữ trên (nén gọn), nhân vật lấp phần còn lại; chừa chỗ cho bottom bar */
  .hero-stage {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-top: 64px;
    padding-bottom: calc(112px + env(safe-area-inset-bottom, 0px));
  }

  .hero-cinema .hero-content {
    text-align: center;
    margin: 0 auto;
    flex: 0 0 auto;
    align-self: auto; /* bỏ canh-đầu của desktop */
    padding-top: 0;
  }

  .hero-cinema .hero-content .subtitle {
    font-size: 11px;
    letter-spacing: 3px;
    padding: 6px 12px;
    margin-bottom: 12px;
  }

  .hero-cinema .hero-content p {
    margin-bottom: 4px;
  }

  .hero-cinema .hero-btns {
    justify-content: center;
    margin-top: 12px;
    flex-direction: row;
    gap: 10px;
  }

  .hero-cinema .hero-btns .btn {
    padding: 10px 16px;
    font-size: 13px;
  }

  .hero-figure {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
  }

  .hero-char-wrap {
    left: 0; /* bỏ dịch trái của desktop trên mobile */
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    margin-bottom: 0;
  }

  .hero-char {
    object-fit: cover;
  }

  /* Mobile: rail dọc bên TRÁI nhân vật khi nghỉ (hạ xuống 1 chút, khỏi sát nút) */
  .hero-hair-rail {
    left: 0;
    right: auto;
    top: 84px;
    gap: 10px;
  }

  /* Mobile showcase: rail thành hàng NGANG phía trên đầu (cao hơn để không che tóc thật) */
  .hero-cinema.is-showcase .hero-hair-rail {
    left: 50%;
    right: auto;
    top: -120px;
    transform: translateX(-50%);
    flex-direction: row;
    gap: 12px;
    opacity: 1;
    pointer-events: auto;
  }

  .hero-hair-thumb {
    width: 56px;
    height: 56px;
    padding: 7px;
    border-radius: 12px;
  }

  /* Mobile cột dọc (nghỉ): KHÔNG hiện tên mẫu (tránh đè lên nút) — chỉ hiện khi showcase hàng ngang */
  .hero-cinema:not(.is-showcase) .hero-hair-name {
    display: none;
  }

  /* Mobile: ẩn nút Đặt lịch ở header (đã có ở thanh native dưới) */
  .header .header-cta .btn {
    display: none;
  }

  /* Bottom bar mobile che gợi ý cuộn — ẩn luôn */
  .hero-scroll-hint {
    display: none;
  }

  /* Mobile: chữ vẫn to nhưng gọn hơn để nhân vật đủ chỗ */
  .hero-cinema .hero-content h1,
  .hero-cinema .hero-content h2 {
    font-size: 2.4rem;
    margin-bottom: 10px;
  }

  .hero-content h1,
  .hero-content h2 {
    font-size: 32px;
  }

  .hero-content p {
    font-size: 16px;
  }

  .hero-btns {
    flex-direction: column;
  }

  .services-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .about-stats-cards {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .features-modern-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .stat-card {
    padding: 25px 20px;
  }

  .stat-icon {
    width: 60px;
    height: 60px;
    font-size: 28px;
  }

  .stat-number {
    font-size: 36px;
  }

  .newsletter-container {
    flex-direction: column;
    text-align: center;
  }

  .newsletter-form {
    max-width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 35px;
    margin-bottom: 40px;
    padding-bottom: 40px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .logo-url {
    height: 50%;
    width: 50%;
  }

  .back-to-top {
    bottom: 100px;
  }
}

@media (max-width: 480px) {
  .btn {
    padding: 10px 20px;
    font-size: 13px;
  }

  .hero-content h1,
  .hero-content h2 {
    font-size: 24px;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .back-to-top {
    right: 20px;
    width: 45px;
    height: 45px;
  }
}

/* Service Image Carousel */
.service-img-carousel {
  transition: opacity 0.3s ease-in-out;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==================== REDUCED MOTION ==================== */
@media (prefers-reduced-motion: reduce) {
  .scroll-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .newsletter-section::before,
  .preloader-icon {
    animation: none;
  }

  .slide {
    transition: none;
  }

  .faq-answer,
  .faq-icon {
    transition: none;
  }
}
