/* ============================================
   VINFAST NINH BÌNH - Premium Design System
   Official VinFast Brand Colors
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* --- CSS Custom Properties --- */
:root {
  /* VinFast Brand Colors */
  --color-bg-primary: #f4f6f8;
  --color-bg-secondary: #ffffff;
  --color-bg-tertiary: #e2e8f0;
  --color-bg-card: rgba(255, 255, 255, 0.85);
  --color-bg-glass: rgba(0, 0, 0, 0.04);

  --color-text-primary: #0f172a;
  --color-text-secondary: rgba(15, 23, 42, 0.8);
  --color-text-tertiary: rgba(15, 23, 42, 0.5);

  --color-accent-primary: #1464F4;
  --color-accent-secondary: #0a46b5;
  --color-accent-gradient: linear-gradient(135deg, #1464F4 0%, #4facfe 100%);
  --color-accent-glow: rgba(20, 100, 244, 0.3);
  --color-accent-glow-strong: rgba(20, 100, 244, 0.5);

  --color-danger: #ef4444;
  --color-warning: #f59e0b;
  --color-success: #22c55e;

  --color-border: rgba(0, 0, 0, 0.08);
  --color-border-hover: rgba(0, 0, 0, 0.15);

  /* Typography — Be Vietnam Pro for Vietnamese */
  --font-primary: 'Be Vietnam Pro', 'Inter', sans-serif;
  --font-secondary: 'Inter', 'Be Vietnam Pro', sans-serif;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;
  --text-7xl: 4.5rem;
  --text-8xl: 6rem;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Borders */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.15);
  --shadow-glow: 0 0 30px var(--color-accent-glow);
  --shadow-glow-strong: 0 0 60px var(--color-accent-glow-strong);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  --transition-spring: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Z-index layers */
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-toast: 600;
}

[data-theme="dark"] {
  --color-bg-primary: #0b0f1a;
  --color-bg-secondary: #111827;
  --color-bg-tertiary: #1e293b;
  --color-bg-card: rgba(30, 41, 59, 0.5);
  --color-bg-glass: rgba(255, 255, 255, 0.06);

  --color-text-primary: #f1f5f9;
  --color-text-secondary: rgba(241, 245, 249, 0.72);
  --color-text-tertiary: rgba(241, 245, 249, 0.45);

  --color-border: rgba(255, 255, 255, 0.1);
  --color-border-hover: rgba(255, 255, 255, 0.2);
  
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.6);
}

.navbar-logo-img {
  filter: invert(1) brightness(0.2);
}

[data-theme="dark"] .navbar-logo-img {
  filter: none;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  font-size: 16px;
}

body {
  font-family: var(--font-secondary);
  background-color: var(--color-bg-primary);
  color: var(--color-text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-base);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
}

ul, ol {
  list-style: none;
}

/* --- Page Loading Animation --- */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.page-loader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-content {
  text-align: center;
}

.loader-logo {
  font-family: var(--font-primary);
  font-size: var(--text-4xl);
  font-weight: 800;
  background: var(--color-accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: pulse-glow 1.5s ease-in-out infinite;
}

.loader-bar {
  width: 200px;
  height: 3px;
  background: var(--color-bg-tertiary);
  border-radius: var(--radius-full);
  margin: var(--space-6) auto 0;
  overflow: hidden;
}

.loader-bar-fill {
  width: 0%;
  height: 100%;
  background: var(--color-accent-gradient);
  border-radius: var(--radius-full);
  animation: loading-bar 2s ease-in-out forwards;
}

@keyframes loading-bar {
  0% { width: 0%; }
  50% { width: 70%; }
  100% { width: 100%; }
}

@keyframes pulse-glow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* --- Navigation / Header --- */
section[id] {
  scroll-margin-top: 80px;
}

.navbar {
    position: absolute;
    top: 38px;
  left: 0;
  width: 100%;
  z-index: var(--z-fixed);
  padding: var(--space-4) var(--space-8);
  transition: all var(--transition-base);
}

.navbar.scrolled {
  background: var(--color-bg-card);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-3) var(--space-8);
}

/* Light theme (no data-theme attr): swap to teal logo when scrolled */
:root:not([data-theme="dark"]) .navbar.scrolled .logo-white {
  display: none !important;
}
:root:not([data-theme="dark"]) .navbar.scrolled .logo-teal {
  display: block !important;
}

/* Footer: always use teal logo on light, white on dark */
:root:not([data-theme="dark"]) .footer .logo-white {
  display: none !important;
}
:root:not([data-theme="dark"]) .footer .logo-teal {
  display: block !important;
}

/* Force white text on transparent overlay for the dark hero image */
.navbar:not(.scrolled) .navbar-menu a {
  color: rgba(255, 255, 255, 0.85);
}
.navbar:not(.scrolled) .navbar-menu a:hover,
.navbar:not(.scrolled) .navbar-menu a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}
.navbar:not(.scrolled) .theme-toggle {
  color: #fff !important;
}
.navbar:not(.scrolled) .btn-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}
.navbar:not(.scrolled) .btn-outline:hover {
  background: #fff;
  color: #000;
}
.navbar:not(.scrolled) .navbar-logo-img {
  filter: brightness(0) invert(1);
}

@media (max-width: 768px) {
  .navbar {
    padding: var(--space-3) var(--space-4);
  }
  .navbar-menu {
    display: none; /* Hide standard menu on very small mobile for now, or just make it scrollable */
  }
}

.navbar-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  cursor: pointer;
}

.navbar-logo-img {
  height: 36px;
  width: auto;
  transition: transform var(--transition-spring), filter var(--transition-base);
  filter: brightness(1);
}

.navbar-logo:hover .navbar-logo-img {
  transform: scale(1.05);
  filter: brightness(1.2) drop-shadow(0 0 10px var(--color-accent-glow));
}

/* Legacy logo support */
.logo-icon {
  width: 42px;
  height: 42px;
  background: var(--color-accent-gradient);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-primary);
  font-weight: 900;
  font-size: var(--text-xl);
  color: var(--color-bg-primary);
  box-shadow: var(--shadow-glow);
  transition: transform var(--transition-spring);
}

.logo-text {
  font-family: var(--font-primary);
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.navbar-menu a {
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: all var(--transition-base);
  position: relative;
}

.navbar-menu a:hover {
  color: var(--color-text-primary);
  background: var(--color-bg-glass);
}

.navbar-menu a.active {
  color: var(--color-accent-primary);
}

.navbar-cta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  font-family: var(--font-secondary);
  font-size: var(--text-sm);
  font-weight: 600;
  transition: all var(--transition-base);
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-accent-gradient);
  color: var(--color-bg-primary);
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-strong);
}

.btn-outline {
  background: transparent;
  color: var(--color-text-primary);
  border: 1px solid var(--color-border);
}

.btn-outline:hover {
  border-color: var(--color-accent-primary);
  background: rgba(0, 212, 170, 0.08);
  color: var(--color-accent-primary);
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
}

.btn-xl {
  padding: var(--space-5) var(--space-10);
  font-size: var(--text-lg);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-secondary);
  padding: var(--space-2) var(--space-3);
}

.btn-ghost:hover {
  color: var(--color-text-primary);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: var(--space-2);
  background: none;
  border: none;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-text-primary);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: var(--space-20) var(--space-8);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4);
  transform: scale(1.1);
  transition: transform 8s ease;
}

.hero:hover .hero-bg img {
  transform: scale(1.0);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 10, 0.3) 0%,
    rgba(10, 10, 10, 0.1) 40%,
    rgba(10, 10, 10, 0.5) 70%,
    rgba(10, 10, 10, 1) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--color-bg-glass);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  color: var(--color-accent-primary);
  font-weight: 500;
  margin-bottom: var(--space-8);
  backdrop-filter: blur(10px);
  animation: fade-up 0.8s ease forwards;
  opacity: 0;
}

.hero-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent-primary);
  animation: blink 2s ease infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero-title {
  font-family: var(--font-primary);
  font-size: clamp(2.5rem, 7vw, var(--text-8xl));
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: var(--space-6);
  color: #fff;
  animation: fade-up 0.8s ease 0.2s forwards;
  opacity: 0;
}

.hero-title .gradient-text {
  background: var(--color-accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(var(--text-lg), 2vw, var(--text-xl));
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  margin: 0 auto var(--space-10);
  line-height: 1.7;
  animation: fade-up 0.8s ease 0.4s forwards;
  opacity: 0;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  animation: fade-up 0.8s ease 0.6s forwards;
  opacity: 0;
}

.hero-actions .btn-outline {
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
}

.hero-actions .btn-outline:hover {
  background: #fff !important;
  color: #000 !important;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-12);
  margin-top: var(--space-16);
  animation: fade-up 0.8s ease 0.8s forwards;
  opacity: 0;
}

.hero-stat {
  text-align: center;
}

.hero-stat-value {
  font-family: var(--font-primary);
  font-size: var(--text-4xl);
  font-weight: 800;
  background: var(--color-accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-stat-label {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.7);
  margin-top: var(--space-1);
  font-weight: 500;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-text-tertiary);
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  animation: float 3s ease-in-out infinite;
}

.scroll-indicator-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--color-accent-primary), transparent);
  animation: scroll-line 2s ease infinite;
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-10px); }
}

@keyframes scroll-line {
  0% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.5; transform: scaleY(0.5); }
  100% { opacity: 1; transform: scaleY(1); }
}

/* --- Section Styles --- */
.section {
  padding: var(--space-24) var(--space-8);
  position: relative;
}

.section-container {
  max-width: 1400px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-16);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-accent-primary);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: var(--space-4);
}

.section-label::before,
.section-label::after {
  content: '';
  width: 30px;
  height: 1px;
  background: var(--color-accent-primary);
  opacity: 0.5;
}

.section-title {
  font-family: var(--font-primary);
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: var(--space-4);
}

.section-desc {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* --- Car Models Grid --- */
.models-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.model-card {
  position: relative;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  transition: all var(--transition-slow);
  cursor: pointer;
}

.model-card:hover {
  border-color: var(--color-accent-primary);
  transform: translateY(-8px);
  box-shadow: var(--shadow-glow), var(--shadow-xl);
}

.model-card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.model-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.model-card:hover .model-card-image img {
  transform: scale(1.08);
}

.model-card-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(10, 10, 10, 0.9) 100%);
}

.model-card-badge {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  padding: var(--space-1) var(--space-3);
  background: var(--color-accent-gradient);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-bg-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.model-card-body {
  padding: var(--space-6);
}

.model-card-name {
  font-family: var(--font-primary);
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: var(--space-1);
}

.model-card-segment {
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
  margin-bottom: var(--space-4);
}

.model-card-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}

.model-spec {
  text-align: center;
}

.model-spec-value {
  font-family: var(--font-primary);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-accent-primary);
}

.model-spec-label {
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
  margin-top: var(--space-1);
}

.model-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--color-border);
}

.model-price {
  font-family: var(--font-primary);
  font-size: var(--text-xl);
  font-weight: 700;
}

.model-price span {
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
  font-weight: 400;
}

.model-card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-accent-primary);
  transition: gap var(--transition-base);
}

.model-card:hover .model-card-link {
  gap: var(--space-3);
}

/* Featured model - takes full width */
.model-card.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.model-card.featured .model-card-image {
  aspect-ratio: auto;
  min-height: 400px;
}

.model-card.featured .model-card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-10);
}

.model-card.featured .model-card-name {
  font-size: var(--text-4xl);
}

.model-card.featured .model-card-desc {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-6);
}

.model-card.featured .model-card-specs {
  border-top: none;
  padding-top: 0;
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

.model-card.featured .model-spec {
  text-align: left;
}

.model-card.featured .model-spec-value {
  font-size: var(--text-2xl);
}

/* --- Features Section --- */
.features-section {
  background: var(--color-bg-secondary);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.feature-card {
  padding: var(--space-8);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-accent-gradient);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.feature-card:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-4px);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: rgba(0, 212, 170, 0.1);
  border: 1px solid rgba(0, 212, 170, 0.2);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-6);
  font-size: var(--text-2xl);
}

.feature-title {
  font-family: var(--font-primary);
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-3);
}

.feature-desc {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* --- Interior Showcase --- */
.showcase {
  position: relative;
  overflow: hidden;
}

.showcase-image-wrapper {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  margin-bottom: var(--space-12);
}

.showcase-image-wrapper img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  transition: transform 6s ease;
}

.showcase-image-wrapper:hover img {
  transform: scale(1.05);
}

.showcase-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(10, 10, 10, 0.8) 0%,
    transparent 50%,
    rgba(10, 10, 10, 0.3) 100%
  );
  display: flex;
  align-items: center;
  padding: var(--space-12);
}

.showcase-text {
  max-width: 500px;
}

.showcase-text h3 {
  font-family: var(--font-primary);
  font-size: var(--text-4xl);
  font-weight: 800;
  margin-bottom: var(--space-4);
  color: #fff;
}

.showcase-text p {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  margin-bottom: var(--space-6);
}

.showcase-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

.showcase-feature-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.9);
}

.showcase-feature-item .check {
  width: 20px;
  height: 20px;
  background: rgba(0, 212, 170, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent-primary);
  font-size: var(--text-xs);
  flex-shrink: 0;
}

/* --- Charging Network Section --- */
.charging-section {
  background: var(--color-bg-secondary);
}

.charging-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}

.charging-content h3 {
  font-family: var(--font-primary);
  font-size: var(--text-4xl);
  font-weight: 800;
  margin-bottom: var(--space-4);
  line-height: 1.2;
}

.charging-content p {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-8);
}

.charging-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

.charging-stat {
  padding: var(--space-5);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  transition: all var(--transition-base);
}

.charging-stat:hover {
  border-color: var(--color-accent-primary);
  box-shadow: 0 0 20px rgba(0, 212, 170, 0.1);
}

.charging-stat-value {
  font-family: var(--font-primary);
  font-size: var(--text-3xl);
  font-weight: 800;
  background: var(--color-accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.charging-stat-label {
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
  margin-top: var(--space-1);
}

.charging-image {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  position: relative;
}

.charging-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 450px;
  transition: transform 6s ease;
}

.charging-image:hover img {
  transform: scale(1.03);
}

/* --- Comparison / Specs Table --- */
.specs-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-2xl);
  border: 1px solid var(--color-border);
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.specs-table thead {
  background: var(--color-bg-tertiary);
}

.specs-table th {
  padding: var(--space-4) var(--space-5);
  text-align: left;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid var(--color-border);
}

.specs-table td {
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-secondary);
}

.specs-table tr:hover td {
  background: var(--color-bg-card);
}

.specs-table .model-name-cell {
  font-family: var(--font-primary);
  font-weight: 700;
  color: var(--color-text-primary);
  font-size: var(--text-base);
}

.specs-table .highlight {
  color: var(--color-accent-primary);
  font-weight: 600;
}

/* --- Testimonials --- */
.testimonials-track {
  display: flex;
  gap: var(--space-6);
  overflow-x: auto;
  padding-bottom: var(--space-4);
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.testimonials-track::-webkit-scrollbar {
  display: none;
}

.testimonial-card {
  min-width: 400px;
  flex-shrink: 0;
  padding: var(--space-8);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  scroll-snap-align: start;
  transition: all var(--transition-base);
}

.testimonial-card:hover {
  border-color: var(--color-border-hover);
}

.testimonial-stars {
  display: flex;
  gap: var(--space-1);
  margin-bottom: var(--space-4);
  color: #fbbf24;
  font-size: var(--text-lg);
}

.testimonial-text {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-6);
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--color-bg-primary);
}

.testimonial-info {
  display: flex;
  flex-direction: column;
}

.testimonial-name {
  font-weight: 600;
  font-size: var(--text-sm);
}

.testimonial-role {
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
}

/* --- Newsletter / CTA Section --- */
.cta-section {
  position: relative;
  overflow: hidden;
}

.cta-card {
  padding: var(--space-16) var(--space-12);
  background: linear-gradient(135deg, rgba(0, 212, 170, 0.08) 0%, rgba(14, 165, 233, 0.08) 100%);
  border: 1px solid rgba(0, 212, 170, 0.15);
  border-radius: var(--radius-2xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 212, 170, 0.05) 0%, transparent 50%);
  animation: rotate-slow 20s linear infinite;
}

@keyframes rotate-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.cta-card h3 {
  font-family: var(--font-primary);
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  font-weight: 800;
  margin-bottom: var(--space-4);
  position: relative;
  z-index: 1;
}

.cta-card p {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto var(--space-8);
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.cta-form {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  max-width: 500px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.cta-form input {
  flex: 1;
  padding: var(--space-4) var(--space-5);
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  color: var(--color-text-primary);
  font-family: var(--font-secondary);
  font-size: var(--text-base);
  outline: none;
  transition: all var(--transition-base);
}

.cta-form input::placeholder {
  color: var(--color-text-tertiary);
}

.cta-form input:focus {
  border-color: var(--color-accent-primary);
  box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.1);
}

/* --- Footer --- */
.footer {
  padding: var(--space-16) var(--space-8) var(--space-8);
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-secondary);
}

.footer-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

.footer-brand {
  max-width: 350px;
}

.footer-brand .logo-text {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
}

.footer-brand p {
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
  line-height: 1.7;
  margin-bottom: var(--space-6);
}

.footer-socials {
  display: flex;
  gap: var(--space-3);
}

.footer-socials a {
  width: 40px;
  height: 40px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  transition: all var(--transition-base);
}

.footer-socials a:hover {
  border-color: var(--color-accent-primary);
  color: var(--color-accent-primary);
  transform: translateY(-3px);
}

.footer-column h4 {
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-text-primary);
  margin-bottom: var(--space-6);
}

.footer-column a {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
  padding: var(--space-1) 0;
  transition: all var(--transition-base);
}

.footer-column a:hover {
  color: var(--color-accent-primary);
  transform: translateX(3px);
}

.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border);
}

.footer-bottom p {
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
}

.footer-bottom-links {
  display: flex;
  gap: var(--space-6);
}

.footer-bottom-links a {
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
}

.footer-bottom-links a:hover {
  color: var(--color-accent-primary);
}

/* --- Scroll Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger animations for children */
.stagger-children > *:nth-child(1) { transition-delay: 0.1s; }
.stagger-children > *:nth-child(2) { transition-delay: 0.2s; }
.stagger-children > *:nth-child(3) { transition-delay: 0.3s; }
.stagger-children > *:nth-child(4) { transition-delay: 0.4s; }
.stagger-children > *:nth-child(5) { transition-delay: 0.5s; }
.stagger-children > *:nth-child(6) { transition-delay: 0.6s; }

/* --- Particle Background --- */
.particles-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--color-accent-primary);
  border-radius: 50%;
  opacity: 0.3;
  animation: particle-float linear infinite;
}

@keyframes particle-float {
  0% {
    transform: translateY(100vh) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 0.3;
  }
  90% {
    opacity: 0.3;
  }
  100% {
    transform: translateY(-100px) translateX(50px);
    opacity: 0;
  }
}



/* --- Contact Modal --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: var(--z-modal-backdrop);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 90%;
  max-width: 550px;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-10);
  z-index: var(--z-modal);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.modal.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.modal-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 36px;
  height: 36px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-secondary);
  font-size: var(--text-lg);
  cursor: pointer;
  transition: all var(--transition-base);
}

.modal-close:hover {
  border-color: var(--color-danger);
  color: var(--color-danger);
}

.modal h3 {
  font-family: var(--font-primary);
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.modal p {
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
  margin-bottom: var(--space-6);
}

.form-group {
  margin-bottom: var(--space-4);
}

.form-group label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  margin-bottom: var(--space-2);
  color: var(--color-text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: var(--color-bg-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  color: var(--color-text-primary);
  font-family: var(--font-secondary);
  font-size: var(--text-sm);
  outline: none;
  transition: all var(--transition-base);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-accent-primary);
  box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.1);
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

/* Toast notification */
.toast {
  position: fixed;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  padding: var(--space-4) var(--space-6);
  background: var(--color-bg-tertiary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  color: var(--color-text-primary);
  font-size: var(--text-sm);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  z-index: var(--z-toast);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  backdrop-filter: blur(20px);
}

.toast.visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.toast.success {
  border-color: rgba(46, 213, 115, 0.3);
}

.toast.success::before {
  content: '✓';
  width: 24px;
  height: 24px;
  background: rgba(46, 213, 115, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-success);
  font-size: var(--text-xs);
  font-weight: 700;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .models-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .model-card.featured {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .charging-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }

  .hero-stats {
    gap: var(--space-8);
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: var(--space-3) var(--space-4);
  }

  .navbar.scrolled {
    padding: var(--space-2) var(--space-4);
  }

  .navbar-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 350px;
    height: 100vh;
    background: var(--color-bg-secondary);
    border-left: 1px solid var(--color-border);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-20) var(--space-6);
    gap: var(--space-1);
    transition: right var(--transition-base);
    z-index: var(--z-modal);
    overflow-y: auto;
  }

  .navbar-menu.open {
    right: 0;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
  }

  .navbar-menu a {
    font-size: var(--text-lg);
    width: 100%;
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-lg);
  }

  .navbar-cta {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  /* Hero mobile */
  .hero {
    padding: var(--space-16) var(--space-4) var(--space-12);
    min-height: 90vh;
  }

  .hero-title {
    font-size: var(--text-4xl);
    letter-spacing: -1px;
  }

  .hero-subtitle {
    font-size: var(--text-base);
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: var(--space-6);
    margin-top: var(--space-8);
  }

  .hero-stat {
    flex: 0 0 calc(50% - var(--space-3));
  }

  .hero-actions {
    flex-direction: column;
    gap: var(--space-3);
  }

  .hero-actions .btn {
    width: 100%;
  }

  /* Models mobile */
  .models-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .model-card.featured {
    grid-template-columns: 1fr;
  }

  .model-card.featured .model-card-image {
    min-height: 200px;
  }

  .model-card-body {
    padding: var(--space-4);
  }

  .model-card-footer {
    padding: var(--space-3) var(--space-4);
  }

  /* Features mobile */
  .features-grid {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }

  .feature-card {
    padding: var(--space-5);
  }

  /* Showcase/Interior mobile */
  .showcase-image-wrapper {
    display: flex;
    flex-direction: column;
    background: #111111; /* Soft dark background to keep white text readable */
  }

  .showcase-image-overlay {
    position: relative;
    padding: var(--space-6);
    background: transparent; /* Remove the desktop gradient */
  }

  .showcase-text h3 {
    font-size: var(--text-2xl);
  }

  .showcase-features {
    grid-template-columns: 1fr;
    gap: var(--space-2);
  }

  .showcase-image-wrapper img {
    height: 280px;
  }

  /* Charging mobile */
  .charging-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .charging-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }

  .charging-image {
    order: -1;
  }

  .charging-image img {
    height: 200px;
  }

  /* Comparison table mobile */
  .specs-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: var(--space-4) 0;
    padding-bottom: var(--space-2);
    border-radius: var(--radius-xl);
  }

  .specs-table {
    font-size: var(--text-sm);
    min-width: 600px;
  }

  .specs-table th,
  .specs-table td {
    padding: var(--space-3);
    white-space: nowrap;
  }

  /* Testimonials mobile */
  .testimonials-track {
    gap: var(--space-4);
  }

  .testimonial-card {
    min-width: 280px;
    padding: var(--space-5);
  }

  /* CTA mobile */
  .cta-form {
    flex-direction: column;
    gap: var(--space-3);
  }

  .cta-form input,
  .cta-form .btn {
    width: 100%;
  }

  /* Footer mobile */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-4);
    text-align: center;
  }

  /* Sections mobile */
  .section {
    padding: var(--space-12) var(--space-4);
  }

  .section-header {
    margin-bottom: var(--space-8);
  }

  .section-title {
    font-size: var(--text-2xl);
  }

  /* Modal mobile */
  .modal {
    width: 95% !important;
    max-width: 95% !important;
    max-height: 90vh;
    padding: var(--space-6) !important;
    margin: auto;
  }

  .modal h3 {
    font-size: var(--text-xl);
  }

  /* Back to top */
  

  /* Scroll indicator hidden on mobile */
  .scroll-indicator {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: var(--text-3xl);
  }

  .hero-stat-value {
    font-size: var(--text-2xl);
  }

  .hero-stat-label {
    font-size: var(--text-xs);
  }

  .model-card-specs {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-2);
  }

  .model-spec-value {
    font-size: var(--text-base);
  }

  .model-spec-label {
    font-size: 0.65rem;
  }

  .model-card-name {
    font-size: var(--text-xl);
  }

  .model-price {
    font-size: var(--text-base);
  }

  .feature-icon {
    font-size: var(--text-2xl);
  }

  .feature-title {
    font-size: var(--text-base);
  }

  .charging-stat-value {
    font-size: var(--text-xl);
  }

  .navbar-logo-img {
    height: 28px;
  }

  .cta-card h3 {
    font-size: var(--text-xl);
  }
}

/* --- Touch enhancements --- */
@media (hover: none) {
  .model-card:hover {
    transform: none;
  }

  .model-card:active {
    transform: scale(0.98);
    border-color: var(--color-accent-primary);
  }

  .btn:hover {
    transform: none;
  }

  .btn:active {
    transform: scale(0.97);
  }
}

/* ==========================================================================
   MARQUEE REVIEWS (CSS Auto Scroll)
   ========================================================================== */
.testimonials-track.marquee-enabled {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: var(--space-6);
  overflow: hidden;
  width: max-content;
  animation: marquee-reviews 25s linear infinite;
  padding: var(--space-4) 0;
}

/* Pause animation on hover */
.testimonials-track.marquee-enabled:hover {
  animation-play-state: paused;
}

@keyframes marquee-reviews {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); } 
}

.testimonial-card {
  width: 400px; /* Fixed width to make marquee work smoothly */
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .testimonial-card {
    width: 300px;
  }
}

/* ==========================================================================
   HANDOVER & SALES SECTION
   ========================================================================== */
.handover-section {
  background: var(--color-bg-secondary);
  border-top: 1px solid var(--color-border);
}

.handover-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: var(--space-12);
  align-items: center;
}

.handover-gallery {
  min-width: 0; /* Fixes CSS Grid blowout from marquee */
}

@media (max-width: 900px) {
  .handover-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

.sale-profile-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-xl);
}

.profile-header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--color-border);
}

.profile-avatar {
  width: 70px;
  height: 70px;
  background: var(--color-accent-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2rem;
  flex-shrink: 0;
}

.profile-title h4 {
  font-size: 2rem;
  font-family: var(--font-primary);
  font-weight: 800;
  margin-bottom: var(--space-1);
}

.profile-role {
  font-size: var(--text-sm);
  color: var(--color-accent-primary);
  font-weight: 600;
}

.profile-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.detail-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-base);
  color: var(--color-text-secondary);
}

.detail-icon {
  width: 32px;
  height: 32px;
  background: var(--color-bg-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-actions {
  display: flex;
  gap: var(--space-3);
}

/* Handover Marquee */
.handover-marquee-container {
  overflow: hidden;
  position: relative;
  width: 100%;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.handover-marquee-track {
  display: flex;
  gap: var(--space-4);
  width: max-content;
  animation: handover-marquee 20s linear infinite;
}

.handover-img-wrapper {
  width: 280px;
  height: 200px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: var(--shadow-md);
  border: 4px solid var(--color-bg-card);
}

.handover-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.handover-img-wrapper:hover img {
  transform: scale(1.1);
}

@keyframes handover-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); } 
}

/* ==========================================================================
   ABOUT SALE SECTION
   ========================================================================== */
.about-sale-section {
  background: var(--color-bg-primary);
  padding: var(--space-20) 0;
  overflow: hidden;
}

.about-sale-grid {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: var(--space-12);
  align-items: center;
}

.about-sale-img-col {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.sale-img-border {
  position: relative;
  border-radius: var(--radius-2xl);
  padding: 8px;
  background: linear-gradient(135deg, var(--color-accent-primary), var(--color-border));
  box-shadow: var(--shadow-xl);
}

.sale-img-border img {
  width: 100%;
  max-width: 400px;
  border-radius: var(--radius-xl);
  display: block;
  object-fit: cover;
  aspect-ratio: 3/4;
}

.sale-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--color-bg-card);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  border: 1px solid var(--color-border);
  animation: float 3s ease-in-out infinite;
}

.sale-badge .badge-icon {
  font-size: 2rem;
}

.sale-badge .badge-text {
  font-weight: 700;
  font-family: var(--font-primary);
  color: var(--color-text-primary);
  line-height: 1.2;
}

.sale-intro-text {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-8);
  font-style: italic;
  padding-left: var(--space-4);
  border-left: 4px solid var(--color-accent-primary);
}

.commitments-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.commitments-list li {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  background: var(--color-bg-secondary);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--color-border);
}

.commitments-list li:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent-primary);
}

.commit-icon {
  font-size: 2rem;
  background: rgba(20, 100, 244, 0.1);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

[data-theme="dark"] .commit-icon {
  background: rgba(20, 100, 244, 0.2);
}

.commit-text strong {
  display: block;
  font-size: var(--text-lg);
  color: var(--color-text-primary);
  margin-bottom: var(--space-1);
}

.commit-text span {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

@media (max-width: 900px) {
  .about-sale-grid {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }
  
  .sale-img-border img {
    max-width: 320px;
  }
}
/* ============ FLOATING CONTACTS — Premium Redesign ============ */
.floating-contacts {
    position: fixed;
    bottom: 100px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    z-index: 998;
}

.fab-btn {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #fff;
    font-size: 0;
    border: none;
    cursor: pointer;
    overflow: visible;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.fab-btn svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.fab-label {
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%) translateX(8px);
    background: var(--color-bg-secondary);
    color: var(--color-text-primary);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font-secondary);
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    border: 1px solid var(--color-border);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.fab-btn:hover .fab-label {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

/* Phone button */
.fab-phone {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.4), 0 0 0 0 rgba(34, 197, 94, 0.4);
    animation: fab-ring-green 2.5s ease-in-out infinite;
}

.fab-phone:hover {
    transform: scale(1.12) translateY(-2px);
    box-shadow: 0 8px 30px rgba(34, 197, 94, 0.5);
    animation: none;
}

/* Zalo button */
.fab-zalo {
    background: linear-gradient(135deg, #0068FF 0%, #0050cc 100%);
    box-shadow: 0 4px 20px rgba(0, 104, 255, 0.35), 0 0 0 0 rgba(0, 104, 255, 0.35);
    animation: fab-ring-blue 2.5s ease-in-out 1.2s infinite;
}

.fab-zalo:hover {
    transform: scale(1.12) translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 104, 255, 0.5);
    animation: none;
}

/* Ring pulse animations */
@keyframes fab-ring-green {
    0% { box-shadow: 0 4px 20px rgba(34, 197, 94, 0.4), 0 0 0 0 rgba(34, 197, 94, 0.35); }
    40% { box-shadow: 0 4px 20px rgba(34, 197, 94, 0.4), 0 0 0 12px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 4px 20px rgba(34, 197, 94, 0.4), 0 0 0 0 rgba(34, 197, 94, 0); }
}

@keyframes fab-ring-blue {
    0% { box-shadow: 0 4px 20px rgba(0, 104, 255, 0.35), 0 0 0 0 rgba(0, 104, 255, 0.3); }
    40% { box-shadow: 0 4px 20px rgba(0, 104, 255, 0.35), 0 0 0 12px rgba(0, 104, 255, 0); }
    100% { box-shadow: 0 4px 20px rgba(0, 104, 255, 0.35), 0 0 0 0 rgba(0, 104, 255, 0); }
}

@media (max-width: 768px) {
    .floating-contacts {
        bottom: 80px;
        right: 16px;
        gap: 12px;
    }
    .fab-btn {
        width: 50px;
        height: 50px;
    }
    .fab-btn svg {
        width: 22px;
        height: 22px;
    }
    .fab-label {
        display: none;
    }
}

/* ============ PREMIUM FLOATING ACTION GROUP ============ */
.floating-action-group {
    position: fixed;
    bottom: 40px;
    right: 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 16px;
    z-index: 998;
}

.fab-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-bg-secondary);
    color: var(--color-text-primary);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.fab-circle:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.fab-circle.back-to-top {
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.fab-circle.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.fab-pill {
    display: flex;
    align-items: center;
    height: 48px;
    padding: 0 16px;
    border-radius: 99px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    font-family: var(--font-primary);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.fab-pill:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    filter: brightness(1.1);
}

.fab-icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
}

.fab-icon-box svg {
    width: 22px;
    height: 22px;
}

.fab-zalo {
    background: linear-gradient(135deg, #0068FF, #0050cc);
}

.fab-phone {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

@media (max-width: 768px) {
    .floating-action-group {
        bottom: 24px;
        right: 16px;
        gap: 12px;
    }
    .fab-text {
        font-size: 13px;
    }
    .fab-pill {
        height: 44px;
        padding: 0 14px;
    }
    .fab-icon-box svg {
        width: 20px;
        height: 20px;
    }
}


/* ============ PREMIUM TOP BAR ============ */
.top-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 38px;
    background: rgba(10, 15, 25, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: rgba(255, 255, 255, 0.9);
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    font-size: 13px;
    font-weight: 500;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.top-bar-left, .top-bar-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.top-bar-item {
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.3px;
    letter-spacing: 0.2px;
}

.top-bar-icon {
    width: 16px;
    height: 16px;
    margin-bottom: 2px;
    color: var(--color-primary);
}

.top-bar a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.top-bar a:hover {
    color: var(--color-primary);
}

/* Expand navbar styles smoothly */
/* Removed fixed top gap hack */

html .navbar.scrolled {
    position: fixed !important;
    top: 0 !important;
}

@media (max-width: 768px) {
    .top-bar {
        display: none !important;
    }
    html .navbar {
        position: fixed !important;
        top: 0 !important;
    }
}
