/* =====================================================
   HOA LONG INVEST — Design System & Styles
   ===================================================== */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&display=swap');

/* ===================== CSS Variables ===================== */
:root {
  /* Primary Colors */
  --eco-green: #018045;
  --dark-navy: #0A274B;
  --cool-gray: #D5D5D5;

  /* Supplementary Colors */
  --green-dark: #005629;
  --green-bright: #00B752;
  --green-neon: #00FF6D;
  --green-lime: #72BD44;
  --white: #FFFFFF;
  --navy-blue: #0E4E9A;
  --steel-blue: #6F8FA7;
  --light-blue-gray: #E5E9F2;
  --orange: #F79429;
  --gold: #FFD700;

  /* Derived */
  --bg-primary: #FFFFFF;
  --bg-secondary: #F5F7FA;
  --bg-dark: #0A274B;
  --bg-darker: #061A33;
  --text-primary: #0A274B;
  --text-secondary: #4A5568;
  --text-muted: #6F8FA7;
  --text-light: #E5E9F2;
  --border-color: rgba(213, 213, 213, 0.5);

  /* Gradients */
  --gradient-green: linear-gradient(135deg, #005629 0%, #018045 50%, #00B752 100%);
  --gradient-navy: linear-gradient(135deg, #061A33 0%, #0A274B 50%, #0E4E9A 100%);
  --gradient-hero: linear-gradient(135deg, rgba(10, 39, 75, 0.92) 0%, rgba(1, 128, 69, 0.85) 100%);
  --gradient-card: linear-gradient(145deg, rgba(255, 255, 255, 0.9) 0%, rgba(229, 233, 242, 0.6) 100%);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(10, 39, 75, 0.06);
  --shadow-md: 0 4px 20px rgba(10, 39, 75, 0.1);
  --shadow-lg: 0 8px 40px rgba(10, 39, 75, 0.15);
  --shadow-xl: 0 16px 60px rgba(10, 39, 75, 0.2);
  --shadow-green: 0 4px 30px rgba(1, 128, 69, 0.25);
  --shadow-glow: 0 0 30px rgba(0, 255, 109, 0.3);

  /* Typography */
  --font-heading: 'Roboto', sans-serif;
  --font-body: 'Roboto', sans-serif;

  /* Spacing */
  --section-padding: 40px 0;
  --container-width: 1280px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
}

/* ===================== CSS Reset ===================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

ul,
ol {
  list-style: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

/* ===================== Utility Classes ===================== */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.text-center {
  text-align: center !important;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--eco-green);
  margin-bottom: 16px;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 2px;
  background: var(--gradient-green);
  border-radius: 2px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--dark-navy);
  line-height: 1.2;
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 650px;
  line-height: 1.8;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.btn-primary {
  background: var(--gradient-green);
  color: var(--white);
  box-shadow: var(--shadow-green);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-primary:hover::after {
  left: 100%;
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(4px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--dark-navy);
  color: var(--white);
}

.btn-dark:hover {
  background: var(--navy-blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ===================== Scroll Animations ===================== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* ===================== TOP BAR ===================== */
.top-bar {
  background: var(--bg-darker);
  height: 40px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.75);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.top-bar .container {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.top-bar-left a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.75);
  transition: color var(--transition-fast);
}

.top-bar-left a:hover {
  color: var(--green-neon);
}

.top-bar-left svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.auth-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--white) !important;
  font-weight: 600;
  transition: color var(--transition-fast) !important;
}

.auth-link:hover {
  color: var(--green-neon) !important;
}

.auth-link svg {
  width: 14px;
  height: 14px;
}

.auth-divider {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.8rem;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  transition: all var(--transition-fast);
}

.social-links a:hover {
  background: var(--eco-green);
  color: var(--white);
  transform: translateY(-1px);
}

.social-links a svg {
  width: 13px;
  height: 13px;
}

.lang-selector {
  position: relative;
}

.lang-current {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lang-selector:hover .lang-current {
  background: rgba(255, 255, 255, 0.15);
}

.lang-current svg {
  width: 14px;
  height: 14px;
}

.lang-current .chevron {
  width: 12px;
  height: 12px;
  transition: transform var(--transition-base);
}

.lang-selector:hover .chevron {
  transform: rotate(180deg);
}

.lang-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: var(--dark-navy);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 8px 0;
  min-width: 120px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-fast);
  z-index: 100;
}

.lang-selector:hover .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: block;
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.lang-option:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--green-neon);
}

/* ===================== HEADER / NAVBAR ===================== */
.header {
  position: sticky;
  top: -41px;
  /* Height of top-bar (40px) + border (1px) */
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

.header.scrolled {
  /* JS will still add this class for navbar background/shadow changes */
}

.header.scrolled .navbar {
  background: rgba(10, 39, 75, 0.97);
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
  padding: 8px 0;
}

.navbar {
  background: var(--white);
  padding: 12px 0;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  transition: all var(--transition-base);
}

.scrolled-logo {
  display: none;
}

.header.scrolled .default-logo {
  display: none;
}

.header.scrolled .scrolled-logo {
  display: block;
}

.logo:hover .logo-img {
  transform: scale(1.03);
}

.logo-text .brand-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 1px;
  line-height: 1.1;
}

.logo-text .brand-tagline {
  font-size: 0.6rem;
  color: var(--green-bright);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--dark-navy);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  white-space: nowrap;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 20px;
  height: 2px;
  background: var(--eco-green);
  border-radius: 2px;
  transition: transform var(--transition-base);
}

.nav-links a:hover {
  color: var(--eco-green);
  background: rgba(1, 128, 69, 0.08);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: translateX(-50%) scaleX(1);
}

.nav-links a.active {
  color: var(--eco-green);
}

.header.scrolled .nav-links a {
  color: rgba(255, 255, 255, 0.85);
}

.header.scrolled .nav-links a::after {
  background: var(--green-bright);
}

.header.scrolled .nav-links a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.header.scrolled .nav-links a.active {
  color: var(--green-bright);
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  z-index: 1010;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark-navy);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.header.scrolled .hamburger span {
  background: var(--white);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(6, 26, 51, 0.95);
  backdrop-filter: blur(20px);
  z-index: 999;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.mobile-menu-overlay.active {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 1;
}

.mobile-menu-overlay .nav-links {
  flex-direction: column;
  gap: 8px;
}

.mobile-menu-overlay .nav-links a {
  font-size: 1.1rem;
  padding: 12px 32px;
}

/* ===================== HERO SECTION ===================== */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  width: 100%;
}

.hero-bg {
  width: 100%;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: auto;
  display: block;
}

.hero .container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  z-index: 2;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  display: none;
}

/* Animated particles */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: rgba(0, 255, 109, 0.3);
  border-radius: 50%;
  animation: float-particle 8s infinite ease-in-out;
}

@keyframes float-particle {

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

  25% {
    opacity: 1;
  }

  50% {
    transform: translateY(-100px) translateX(50px);
    opacity: 0.6;
  }

  75% {
    opacity: 0.3;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 140px;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  background: rgba(1, 128, 69, 0.15);
  border: 1px solid rgba(0, 183, 82, 0.3);
  color: var(--green-bright);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 28px;
  backdrop-filter: blur(8px);
  animation: pulse-badge 3s infinite;
}

@keyframes pulse-badge {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(0, 183, 82, 0.2);
  }

  50% {
    box-shadow: 0 0 0 12px rgba(0, 183, 82, 0);
  }
}

.hero-badge svg {
  width: 14px;
  height: 14px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5.5vw, 3.8rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 24px;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--green-bright), var(--green-neon));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.hero-stats {
  display: flex;
  gap: 48px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-stat {
  text-align: left;
}

.hero-stat .number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}

.hero-stat .number span {
  color: var(--green-bright);
}

.hero-stat .label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 4px;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: bounce-scroll 2s infinite;
}

.scroll-indicator .mouse {
  width: 24px;
  height: 38px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 14px;
  position: relative;
}

.scroll-indicator .mouse::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 8px;
  background: var(--green-bright);
  border-radius: 3px;
  animation: scroll-dot 2s infinite;
}

@keyframes scroll-dot {
  0% {
    opacity: 1;
    top: 6px;
  }

  100% {
    opacity: 0;
    top: 22px;
  }
}

@keyframes bounce-scroll {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

/* ===================== ABOUT SECTION ===================== */
.about {
  padding: var(--section-padding);
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.about::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(1, 128, 69, 0.05) 0%, transparent 70%);
  border-radius: 50%;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-content {
  position: relative;
}

.about-content .section-subtitle {
  margin-bottom: 32px;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 36px;
}

.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  transition: all var(--transition-base);
}

.about-feature:hover {
  background: var(--light-blue-gray);
  transform: translateX(4px);
}

.about-feature .icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: var(--radius-sm);
  background: var(--gradient-green);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.about-feature .icon svg {
  width: 18px;
  height: 18px;
}

.about-feature .text h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark-navy);
  margin-bottom: 2px;
}

.about-feature .text p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.about-media {
  position: relative;
}

.about-video-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  aspect-ratio: 16/10;
}

.about-video-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-video-wrapper .play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(1, 128, 69, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: 0 0 0 0 rgba(1, 128, 69, 0.4);
  animation: pulse-play 2s infinite;
}

@keyframes pulse-play {
  0% {
    box-shadow: 0 0 0 0 rgba(1, 128, 69, 0.4);
  }

  70% {
    box-shadow: 0 0 0 20px rgba(1, 128, 69, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(1, 128, 69, 0);
  }
}

.play-button:hover {
  background: var(--eco-green);
  transform: translate(-50%, -50%) scale(1.1);
}

.play-button svg {
  width: 28px;
  height: 28px;
  margin-left: 4px;
}

.about-floating-card {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 2;
}

.about-floating-card .icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(1, 128, 69, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--eco-green);
}

.about-floating-card .card-info h4 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--eco-green);
}

.about-floating-card .card-info p {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Video Modal */
.video-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(6, 26, 51, 0.95);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.video-modal.active {
  display: flex;
}

.video-modal .modal-content {
  width: 100%;
  max-width: 960px;
  aspect-ratio: 16/9;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.video-modal .modal-content iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.video-modal .close-modal {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
  transition: all var(--transition-fast);
}

.video-modal .close-modal:hover {
  background: var(--eco-green);
}

/* ===================== STATS SECTION ===================== */
.stats-section {
  padding: 60px 0;
  background: var(--bg-dark);
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  position: relative;
  z-index: 1;
}

.stat-item {
  text-align: center;
  position: relative;
}

.stat-item::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 60px;
  background: rgba(255, 255, 255, 0.1);
}

.stat-item:last-child::after {
  display: none;
}

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(1, 128, 69, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--green-bright);
}

.stat-icon svg {
  width: 24px;
  height: 24px;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-number .suffix {
  font-size: 1.5rem;
  color: var(--green-bright);
}

.stat-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ===================== PROJECTS SECTION ===================== */
.projects {
  padding: var(--section-padding);
  background: var(--bg-secondary);
  position: relative;
}

.projects-header {
  text-align: center;
  margin-bottom: 30px;
}

.projects-header .section-subtitle {
  margin: 0 auto;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.project-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-slow);
  position: relative;
  group: card;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.project-card-image {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.project-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.project-card:hover .project-card-image img {
  transform: scale(1.08);
}

.project-card-image .badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(1, 128, 69, 0.9);
  backdrop-filter: blur(8px);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.project-card-image .badge svg {
  width: 12px;
  height: 12px;
}

.project-card-body {
  padding: 28px;
}

.project-card-body h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark-navy);
  margin-bottom: 12px;
}

.project-card-body p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-card-body .project-cert {
  display: block;
  -webkit-line-clamp: unset;
  margin-top: -8px;
  margin-bottom: 20px;
  color: var(--dark-navy);
  font-weight: 500;
}

.project-card-body .project-cert strong {
  color: var(--eco-green);
}

.project-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.project-card-tags span {
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(1, 128, 69, 0.08);
  color: var(--eco-green);
  font-size: 0.75rem;
  font-weight: 600;
}

.project-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--eco-green);
  transition: all var(--transition-fast);
}

.project-card-link:hover {
  gap: 12px;
  color: var(--green-dark);
}

.project-card-link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
}

.project-card-link:hover svg {
  transform: translateX(4px);
}

/* ===================== SERVICES SECTION ===================== */
.services {
  padding: var(--section-padding);
  background: var(--bg-primary);
  position: relative;
}

.services-header {
  text-align: center;
  margin-bottom: 30px;
}

.services-header .section-subtitle {
  margin: 0 auto;
}

@media (min-width: 992px) {
  .services-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 48px;
    align-items: start;
  }

  .services-layout .services-header {
    text-align: left;
    margin-bottom: 0;
    position: sticky;
    top: 120px;
  }

  .services-layout .services-header .section-subtitle {
    margin: 0;
  }
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  position: relative;
  padding: 40px 32px;
  border-radius: 24px;
  transition: all var(--transition-slow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 260px;
}

.service-card.card-bg-1 {
  background: var(--light-blue-gray);
}

.service-card.card-bg-2 {
  background: var(--cool-gray);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark-navy);
  margin-bottom: 16px;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 50px;
}

.service-arrow {
  position: absolute;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark-navy);
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.service-arrow svg {
  width: 20px;
  height: 20px;
}

.service-card:hover .service-arrow {
  background: var(--eco-green);
  color: var(--white);
  transform: translateX(4px);
}

/* ===================== PRODUCTS SHOWCASE ===================== */
.products-showcase {
  padding: var(--section-padding);
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.products-showcase-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 0%, rgba(1, 128, 69, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.relative-z {
  position: relative;
  z-index: 2;
}

.showcase-header {
  text-align: center;
  margin-bottom: 30px;
}

.showcase-header .section-subtitle {
  margin: 0 auto;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.product-card {
  perspective: 1000px;
  filter: drop-shadow(0 10px 20px rgba(0, 30, 15, 0.08));
  transition: filter 0.5s ease;
}

.product-card:hover {
  filter: drop-shadow(0 20px 25px rgba(1, 128, 69, 0.2));
}

.product-card-inner {
  background: linear-gradient(135deg, #ffffff 0%, #f0f7f4 100%);
  border-radius: 20px;
  padding: 36px 28px;
  height: 100%;
  display: flex;
  flex-direction: column;
  clip-path: polygon(0 0,
      calc(100% - 30px) 0,
      100% 30px,
      100% 100%,
      30px 100%,
      0 calc(100% - 30px));
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

/* Green gradient overlay on hover */
.product-card-inner::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--eco-green) 0%, #00b752 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.product-card:hover .product-card-inner::after {
  opacity: 1;
}

/* Bring content to front */
.product-icon-wrap,
.product-card-inner h3,
.product-card-inner p,
.product-link {
  position: relative;
  z-index: 1;
}

/* Text transitions */
.product-card-inner h3,
.product-card-inner p,
.product-link {
  transition: color 0.4s ease;
}

/* Hover state colors */
.product-card:hover .product-card-inner h3,
.product-card:hover .product-card-inner p {
  color: var(--white);
}

.product-card:hover .product-card-inner .product-icon-wrap {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

.product-card:hover .product-link {
  color: var(--white);
}

.product-card:hover .product-link:hover {
  color: rgba(255, 255, 255, 0.8);
}

.product-card-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: var(--gradient-green);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.product-card:hover .product-card-inner {
  transform: translateY(-10px) rotateX(2deg);
}

.product-card:hover .product-card-inner::before {
  opacity: 1;
}

.product-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(1, 128, 69, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--eco-green);
  margin-bottom: 20px;
  transition: all 0.4s ease;
}

.product-icon-wrap svg {
  width: 28px;
  height: 28px;
}

.product-card:hover .product-icon-wrap {
  background: var(--eco-green);
  color: var(--white);
  transform: scale(1.1);
}

.product-card-inner h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--dark-navy);
  margin-bottom: 12px;
}

.product-card-inner p {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.9rem;
  margin-bottom: 15px;
  flex-grow: 1;
}

.product-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--eco-green);
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  margin-top: auto;
}

.product-link span {
  transition: transform 0.3s ease;
}

.product-card:hover .product-link {
  color: var(--light-blue-gray);
}

.product-card:hover .product-link span {
  transform: translateX(6px);
}

/* ===================== PARTNERS SECTION ===================== */
.partners {
  padding: var(--section-padding);
  background: var(--bg-secondary);
  position: relative;
}

.partners-header {
  text-align: center;
  margin-bottom: 30px;
}

.partners-header .section-subtitle {
  margin: 0 auto;
}

.partners-logos {
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
  padding: 20px 0;
}

.partners-logos::before,
.partners-logos::after {
  content: '';
  position: absolute;
  top: 0;
  width: 120px;
  height: 100%;
  z-index: 2;
}

.partners-logos::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg-secondary), transparent);
}

.partners-logos::after {
  right: 0;
  background: linear-gradient(-90deg, var(--bg-secondary), transparent);
}

.partners-track {
  display: flex;
  gap: 48px;
  animation: scroll-partners 30s linear infinite;
}

@keyframes scroll-partners {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.partner-logo {
  flex-shrink: 0;
  width: 200px;
  height: 100px;
  border-radius: var(--radius-sm);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.partner-logo:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.partner-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* ===================== CERTIFICATIONS SECTION ===================== */
.certifications {
  padding: var(--section-padding);
  background: var(--dark-navy);
  color: var(--white);
  position: relative;
}

.certifications-header {
  text-align: center;
  margin-bottom: 50px;
}

.certifications-header .section-label {
  color: var(--green-bright);
}

.certifications-header .section-title {
  color: var(--white);
}

.certifications-header .section-subtitle {
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.8);
}

.cert-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.cert-item {
  width: 400px;
  padding: 10px;
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  text-align: center;
}

.cert-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.cert-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.cert-item .cert-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: rgba(255, 215, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}

.cert-item .cert-icon svg {
  width: 22px;
  height: 22px;
}

.cert-item p {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* ===================== NEWS SECTION ===================== */
.news {
  padding: var(--section-padding);
  background: var(--bg-primary);
}

.news-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 30px;
}

.news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
}

.news-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-slow);
  border: 1px solid var(--border-color);
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.news-card-image {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.news-card:hover .news-card-image img {
  transform: scale(1.06);
}

.news-card-image .date-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  background: rgba(10, 39, 75, 0.85);
  backdrop-filter: blur(8px);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
}

.news-card-body {
  padding: 24px;
}

.news-card-body .category {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--eco-green);
  margin-bottom: 10px;
}

.news-card-body h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark-navy);
  line-height: 1.5;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--transition-fast);
}

.news-card:hover .news-card-body h3 {
  color: var(--eco-green);
}

.news-card-body .read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--eco-green);
}

.news-card-body .read-more svg {
  width: 14px;
  height: 14px;
  transition: transform var(--transition-fast);
}

.news-card:hover .news-card-body .read-more svg {
  transform: translateX(4px);
}

/* ===================== CTA SECTION ===================== */
.cta-section {
  padding: 40px 0;
  background: var(--gradient-green);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}

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

.cta-content h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
}

.cta-content p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-white {
  background: var(--white);
  color: var(--eco-green);
  font-weight: 700;
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

/* ===================== FOOTER ===================== */
.footer {
  background: var(--bg-darker);
  color: rgba(255, 255, 255, 0.7);
  padding: 80px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 15px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand .logo {
  margin-bottom: 20px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 24px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  background: var(--eco-green);
  color: var(--white);
  transform: translateY(-2px);
}

.footer-social a svg {
  width: 16px;
  height: 16px;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 12px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background: var(--eco-green);
  border-radius: 2px;
}

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

.footer-col ul li a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-col ul li a:hover {
  color: var(--green-bright);
  transform: translateX(4px);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-contact-item .icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: var(--radius-sm);
  background: rgba(1, 128, 69, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-bright);
}

.footer-contact-item .icon svg {
  width: 16px;
  height: 16px;
}

.footer-contact-item .info p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
}

.footer-contact-item .info a {
  color: rgba(255, 255, 255, 0.6);
}

.footer-contact-item .info a:hover {
  color: var(--green-bright);
}

.footer-bottom {
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom a:hover {
  color: var(--green-bright);
}

/* ===================== BACK TO TOP ===================== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-green);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-green);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-base);
  z-index: 900;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

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

/* Zalo floating button */
.zalo-float {
  position: fixed;
  bottom: 90px;
  right: 30px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #0068FF;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 104, 255, 0.4);
  z-index: 900;
  transition: all var(--transition-base);
  animation: pulse-zalo 2s infinite;
}

@keyframes pulse-zalo {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 104, 255, 0.4);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(0, 104, 255, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(0, 104, 255, 0);
  }
}

.zalo-float:hover {
  transform: scale(1.1);
}

.zalo-float svg {
  width: 28px;
  height: 28px;
}

/* ===================== CERTIFICATIONS ===================== */
.certifications {
  padding: var(--section-padding);
  background: var(--bg-primary);
}

.certifications-header {
  text-align: center;
  margin-bottom: 40px;
}

.certifications-header .section-subtitle {
  margin: 0 auto;
}

.cert-grid {
  display: flex;
  gap: 32px;
  justify-content: center;
}

.cert-item {
  flex: 1;
  max-width: 500px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.cert-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.cert-image {
  width: 100%;
  height: 240px;
  object-fit: contain;
  margin-bottom: 24px;
}

.cert-item p {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--dark-navy);
  line-height: 1.6;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1200px) {
  .nav-links a {
    font-size: 0.75rem;
    padding: 8px 8px;
  }
}

@media (max-width: 1024px) {
  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    display: flex;
    flex-direction: column-reverse;
  }

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

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

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

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

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

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .stat-item::after {
    display: none;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 20px 0;
  }

  .section-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
  }

  .section-subtitle {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .top-bar-left {
    display: none;
  }

  .top-bar-right {
    width: 100%;
    justify-content: flex-end;
    gap: 12px;
  }

  .auth-links {
    white-space: nowrap;
  }

  .auth-link {
    white-space: nowrap;
  }

  .social-links {
    gap: 6px;
  }

  .hero-content {
    padding-top: 120px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 24px;
  }

  .hero-stat {
    flex: 0 0 calc(50% - 12px);
  }

  .hero-stat .number {
    font-size: 2rem;
  }

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

  .products-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding-bottom: 20px;
    margin-left: -16px;
    margin-right: -16px;
    padding-left: 16px;
    padding-right: 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

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

  .product-card {
    flex: 0 0 70%;
    scroll-snap-align: center;
  }

  .product-card-inner {
    padding: 24px 20px;
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
  }

  .product-card-inner h3 {
    font-size: 1.15rem;
    margin-bottom: 12px;
  }

  .product-card-inner p {
    font-size: 0.9rem;
    line-height: 1.6;
    display: block;
  }

  .product-icon-wrap {
    width: 56px;
    height: 56px;
    margin-bottom: 16px;
  }

  .product-icon-wrap svg {
    width: 24px;
    height: 24px;
  }

  .product-link {
    font-size: 0.9rem;
    margin-top: auto;
  }

  .partners-track {
    gap: 16px;
    animation-duration: 50s;
  }

  .partner-logo {
    width: 140px;
    height: 70px;
    padding: 12px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .service-card {
    padding: 16px 44px 16px 16px;
    min-height: auto;
    border-radius: 8px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .service-card h3 {
    font-size: 1rem;
    margin-bottom: 0;
    line-height: 1.3;
  }

  .service-card p {
    font-size: 0.85rem;
    margin-bottom: 0;
    line-height: 1.5;
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease, margin-top 0.3s ease;
    overflow: hidden;
  }

  .service-card.expanded p {
    max-height: 300px;
    opacity: 1;
    margin-top: 12px;
  }

  .service-arrow {
    display: flex;
    top: 14px;
    bottom: auto;
    right: 14px;
    width: 24px;
    height: 24px;
    background: transparent;
    color: var(--dark-navy);
    transition: transform 0.3s ease, color 0.3s ease;
  }

  .service-arrow svg {
    width: 18px;
    height: 18px;
  }

  .service-card:hover .service-arrow {
    background: transparent;
    color: var(--eco-green);
    transform: none;
  }

  .service-card.expanded .service-arrow,
  .service-card.expanded:hover .service-arrow {
    transform: rotate(90deg);
  }

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

  .news-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .cert-grid {
    display: flex;
    flex-direction: row;
    gap: 12px;
  }

  .cert-item {
    padding: 16px 12px;
    border-radius: 12px;
  }

  .cert-image {
    height: 120px;
    margin-bottom: 12px;
  }

  .cert-item p {
    font-size: 0.75rem;
    line-height: 1.4;
  }

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

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

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .stat-number {
    font-size: 2.2rem;
  }

  .cta-content h2 {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

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

  .hero-actions .btn {
    width: 100%;
  }

  .hero-stat .number {
    font-size: 1.8rem;
  }

  .about-floating-card {
    position: relative;
    bottom: auto;
    right: auto;
    margin-top: 16px;
  }
}

/* ===================== CERTIFICATIONS SECTION ===================== */
.certifications {
  padding: var(--section-padding);
  background: var(--dark-navy);
  color: var(--white);
  text-align: center;
}

.certifications .section-label {
  color: var(--green-bright);
}

.certifications .section-label::before {
  background: var(--green-bright);
}

.certifications .section-title {
  color: var(--white);
}

.certifications .section-subtitle {
  color: rgba(255, 255, 255, 0.8);
  margin: 0 auto;
}

.certifications-header {
  margin-bottom: 40px;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
}

.cert-item {
  width: 100%;
  max-width: none;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 12px 12px 24px 12px;
  box-shadow: var(--shadow-lg);
  color: var(--dark-navy);
  text-align: center;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  display: flex;
  flex-direction: column;
}

.cert-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.cert-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 20px;
}

.cert-item p {
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 0;
  margin-top: auto;
}

@media (max-width: 768px) {
  .cert-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .cert-item {
    padding: 12px 8px;
    flex-direction: column;
    text-align: center;
    justify-content: flex-start;
  }

  .cert-image {
    width: 100%;
    height: 90px;
    object-fit: contain;
    margin-right: 0;
    margin-bottom: 12px;
  }

  .cert-item p {
    font-size: 0.75rem;
    line-height: 1.4;
    margin-top: 0;
  }
}

/* ===================== LOADING SCREEN ===================== */
.loader {
  position: fixed;
  inset: 0;
  background: var(--dark-navy);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s, visibility 0.5s;
}

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

.loader-content {
  text-align: center;
}

.loader-logo-img {
  height: 120px;
  width: auto;
  margin: 0 auto 32px auto;
  display: block;
  animation: pulse-logo 1.5s ease-in-out infinite;
}

@keyframes pulse-logo {

  0%,
  100% {
    opacity: 0.7;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

.loader-bar {
  width: 200px;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
  margin: 0 auto;
}

.loader-bar::after {
  content: '';
  display: block;
  width: 40%;
  height: 100%;
  background: var(--gradient-green);
  border-radius: 3px;
  animation: loader-slide 1s ease-in-out infinite;
}

@keyframes loader-slide {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(350%);
  }
}

/* ===================== ABOUT PAGE (GIỚI THIỆU) ===================== */
.page-banner {
  position: relative;
  padding-top: 180px;
  padding-bottom: 80px;
  background: var(--dark-navy);
  color: var(--white);
  text-align: center;
  overflow: hidden;
}

.page-banner-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-banner-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.page-banner-content {
  position: relative;
  z-index: 1;
}

.page-banner .page-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 16px;
  text-transform: uppercase;
  color: var(--white);
}

.breadcrumbs {
  font-size: 0.95rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.breadcrumbs a {
  color: var(--green-bright);
  transition: color var(--transition-base);
}

.breadcrumbs .divider {
  color: rgba(255, 255, 255, 0.5);
}

.about-core-identity {
  padding: var(--section-padding);
  background: var(--bg-primary);
}

.about-core-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-description {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* ===================== NEW BANNER VMS SECTION ===================== */
.about-vms-banner {
  padding: 40px 0;
  background: var(--bg-primary);
}

.vms-banner {
  display: flex;
  align-items: center;
  min-height: 250px;
  position: relative;
  overflow: hidden;
  color: var(--white);
  box-shadow: var(--shadow-md);
  margin-bottom: 24px;
}

.vision-banner {
  background: url('images/hli-dong-hanh-pt-kt-qg.png') no-repeat right center;
  background-size: cover;
}

.vision-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, #0A274B 0%, #0A274B 40%, rgba(14, 78, 154, 0.8) 55%, transparent 100%);
  z-index: 1;
}

.mission-banner {
  background: url('images/banner.jpg') no-repeat left center;
  background-size: cover;
}

.mission-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to left, #0A274B 0%, #0A274B 40%, rgba(14, 78, 154, 0.8) 55%, transparent 100%);
  z-index: 1;
}

.vms-banner>* {
  position: relative;
  z-index: 2;
}

.vms-banner-icon-col {
  flex: 0 0 30%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.vms-banner-icon {
  width: 70px;
  height: 70px;
  margin-bottom: 15px;
  color: var(--white);
}

.vms-banner-icon svg {
  width: 100%;
  height: 100%;
}

.vms-banner-icon-col h3 {
  font-size: 2.2rem;
  font-weight: 800;
  margin: 0;
  letter-spacing: 1px;
}

.vms-banner-divider {
  width: 2px;
  height: 120px;
  background: var(--white);
}

.vms-banner-text-col {
  flex: 1;
  padding: 40px;
  max-width: 50%;
}

.vision-banner .vms-banner-text-col {
  padding-right: 10%;
}

.mission-banner .vms-banner-text-col {
  padding-left: 10%;
  text-align: right;
  margin-left: auto;
}

.vms-banner-text-col p {
  font-size: 1.15rem;
  line-height: 1.8;
  margin: 0;
  color: var(--white);
}

.core-values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.value-card {
  background: var(--white);
  padding: 32px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-base);
}

.value-card:hover {
  transform: translateY(-5px);
}

.value-number {
  font-size: 4rem;
  font-weight: 900;
  color: rgba(1, 128, 69, 0.05);
  position: absolute;
  top: -10px;
  right: -10px;
  line-height: 1;
}

.value-card h4 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--eco-green);
  position: relative;
  z-index: 1;
}

.value-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
  position: relative;
  z-index: 1;
}

.about-usp {
  padding: var(--section-padding);
  background: var(--dark-navy);
  color: var(--white);
}

.usp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.usp-box {
  padding: 40px;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.usp-box h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  color: var(--white);
}

.usp-box p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  position: relative;
  z-index: 1;
}

.about-timeline-stats {
  padding: var(--section-padding);
  background: var(--bg-primary);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 80px;
  text-align: center;
}

.stat-box .stat-number {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--eco-green);
  margin-bottom: 8px;
  font-family: var(--font-heading);
}

.stat-box .stat-label {
  font-size: 1.1rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: rgba(1, 128, 69, 0.2);
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  position: relative;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-year {
  width: 45%;
  text-align: right;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--eco-green);
}

.timeline-item:nth-child(even) .timeline-year {
  text-align: left;
}

.timeline-content {
  width: 45%;
  background: var(--white);
  padding: 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  text-align: left;
}

.timeline-item::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--white);
  border: 4px solid var(--eco-green);
  z-index: 1;
}

.about-team {
  padding: var(--section-padding);
  background: var(--bg-secondary);
}

.team-header {
  text-align: center;
  margin-bottom: 60px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.team-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.team-image {
  height: 350px;
}

.team-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.team-info {
  padding: 30px;
  text-align: center;
}

.team-info h3 {
  font-size: 1.5rem;
  color: var(--dark-navy);
  margin-bottom: 8px;
}

.team-role {
  color: var(--eco-green);
  font-weight: 600;
  margin-bottom: 16px;
  font-size: 1rem;
}

.team-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
  text-align: justify;
}

@media (max-width: 992px) {
  .vms-banner {
    flex-direction: column;
    text-align: center;
  }

  .vision-banner::before {
    background: linear-gradient(to bottom, #0e4e9a 0%, #0e4e9a 50%, rgba(14, 78, 154, 0.8) 70%, transparent 100%);
  }

  .mission-banner::before {
    background: linear-gradient(to top, #0e4e9a 0%, #0e4e9a 50%, rgba(14, 78, 154, 0.8) 70%, transparent 100%);
  }

  .mission-banner {
    flex-direction: column-reverse;
    /* icon at bottom */
  }

  .vms-banner-divider {
    width: 80px;
    height: 2px;
    margin: 20px 0;
  }

  .vms-banner-text-col {
    max-width: 100%;
    padding: 20px;
    text-align: center !important;
  }

  .vision-banner .vms-banner-text-col {
    padding-right: 20px;
    padding-bottom: 80px;
  }

  .mission-banner .vms-banner-text-col {
    padding-left: 20px;
    padding-top: 80px;
  }
}

@media (max-width: 992px) {
  .about-core-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

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

  .stats-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .vms-cards {
    grid-template-columns: 1fr;
  }

  .core-values-grid {
    grid-template-columns: 1fr;
  }

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

  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    flex-direction: column !important;
    align-items: flex-start;
    padding-left: 50px;
  }

  .timeline-year {
    width: 100%;
    text-align: left !important;
    margin-bottom: 8px;
    font-size: 2rem;
  }

  .timeline-content {
    width: 100%;
  }

  .timeline-item::after {
    left: 20px;
  }
}

/* ===================== ABOUT STORY & STATS (NEW LAYOUT) ===================== */
.about-story-stats {
  padding: 40px 0;
  background: var(--bg-primary);
  overflow: hidden;
}

.story-stats-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
}

.story-top-row {
  display: flex;
  min-height: 550px;
  margin-bottom: 40px;
  align-items: stretch;
}

.story-left-dark {
  flex: 0 0 42%;
  background: var(--dark-navy);
  padding: 20px;
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-bottom-right-radius: 100px;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.story-slogan {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 300;
  line-height: 1.3;
  text-transform: uppercase;
  margin-bottom: 24px;
  letter-spacing: 1px;
  position: relative;
  z-index: 2;
}

.story-subtitle {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  position: relative;
  z-index: 2;
}

.story-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  opacity: 0.05;
  z-index: 0;
  pointer-events: none;
}

.story-logo img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.story-center-image {
  flex: 0 0 35%;
  position: relative;
  margin-left: -40px;
  margin-top: 40px;
  margin-bottom: 40px;
  z-index: 2;
  border-radius: 80px 0 0 80px;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
}

.story-center-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-top-left-radius: 80px;
  border-bottom-left-radius: 80px;
}

.story-right-text {
  flex: 1;
  padding: 40px 0 40px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 40px;
}

.story-block h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark-navy);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.story-block p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.story-bottom-stats {
  display: flex;
  gap: 40px;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 20px 40px;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-item .stat-num {
  font-size: 3.5rem;
  font-weight: 300;
  color: var(--dark-navy);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-item .stat-num span {
  font-family: var(--font-heading);
}

.stat-item .stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* New Stat Item Styles for Giới Thiệu */
.stat-item-v2 {
  display: flex;
  flex-direction: column;
}

.stat-item-v2 .stat-num-v2 {
  font-size: 4.5rem;
  font-weight: 700;
  color: var(--green-bright);
  line-height: 1;
  display: flex;
  align-items: flex-start;
}

.stat-item-v2 .stat-num-v2 .stat-currency {
  font-size: 1.4rem;
  font-weight: 600;
  margin-right: 4px;
  margin-top: 12px;
}

.stat-item-v2 .stat-num-v2 .stat-value {
  font-family: var(--font-heading);
  letter-spacing: -2px;
}

.stat-item-v2 .stat-num-v2 .stat-unit {
  font-size: 4.5rem;
  font-weight: 700;
  margin-left: 2px;
}

.stat-item-v2 .stat-divider {
  border: 0;
  border-top: 1px solid #d5d5d5;
  margin: 16px 0;
  width: 100%;
}

.stat-item-v2 .stat-label-v2 {
  font-size: 1.05rem;
  color: var(--text-primary);
  line-height: 1.6;
  text-align: center;
}

.stat-item-v2 .asset-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0 0;
}

.stat-item-v2 .asset-list li {
  position: relative;
  padding-left: 12px;
  margin-bottom: 4px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.stat-item-v2 .asset-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--text-secondary);
}

@media (max-width: 992px) {
  .story-top-row {
    flex-direction: column;
  }

  .story-left-dark {
    border-bottom-right-radius: 0;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    padding: 40px 20px;
  }

  .story-center-image img {
    border-radius: 0;
    height: 350px;
  }

  .story-right-text {
    padding: 30px 20px;
  }

  .story-bottom-stats {
    gap: 30px;
    padding: 0 20px;
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  .story-bottom-stats {
    flex-direction: column;
    gap: 20px;
  }
}