/* ============================================================================
   Hero Section
   Primary hero module and related visual treatments
   ============================================================================ */

/* ============================================================================
   HERO SECTION
   ============================================================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background: var(--gradient-primary);
  overflow: hidden;
}

.page-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 20px 80px;
  background: var(--gradient-primary);
  overflow: hidden;
}

.page-hero .hero-media {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.page-hero .hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.page-hero .hero-media-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(13, 27, 42, 0.85) 0%,
    rgba(18, 78, 102, 0.75) 50%,
    rgba(28, 110, 140, 0.65) 100%
  );
  z-index: 1;
}

.page-hero .hero-container {
  position: relative;
  overflow: hidden;
  color: var(--white);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.1) contrast(1.1) brightness(0.85);
}

.hero-media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(5, 11, 22, 0.9) 20%, rgba(8, 12, 24, 0.65) 60%, rgba(10, 18, 38, 0.55));
  box-shadow: inset 0 0 200px rgba(5, 10, 20, 0.85);
}

.hero-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(120px, 12vh, 180px) 20px 120px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.hero-content {
  max-width: 640px;
}

.hero-title {
  margin-bottom: 24px;
}

.title-main {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.2; /* Better for Vietnamese */
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--white) 0%, var(--accent-green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  /* Ensure Vietnamese diacritics are properly displayed */
  text-transform: none;
  letter-spacing: -0.02em;
}

.title-sub {
  display: block;
  font-family: var(--font-primary); /* Use primary font for slogan */
  font-size: clamp(1.1rem, 2.6vw, 1.75rem);
  font-weight: 500; /* Slightly bolder for Vietnamese */
  color: var(--primary-light);
  opacity: 0.9;
  line-height: 1.4;
  letter-spacing: 0.02em; /* Better spacing for Vietnamese */
}

.hero-description {
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  line-height: 1.6;
  margin-bottom: 40px;
  color: var(--primary-light);
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: clamp(0.75rem, 3vw, 1.5rem);
  flex-wrap: wrap;
}


.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr));
  gap: 18px;
  margin-top: 32px;
}

.hero-stat {
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 50px rgba(3, 4, 15, 0.45);
}

.hero-stat strong {
  color: white;
  display: block;
  font-size: 2rem;
  margin-bottom: 4px;
}

.hero-stat .stat-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(240, 240, 240, 0.959);
}

.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--accent-green);
  border-radius: 50%;
  opacity: 0.6;
  animation: particle-float 8s linear infinite;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { left: 30%; animation-delay: 2s; }
.particle:nth-child(3) { left: 70%; animation-delay: 4s; }
.particle:nth-child(4) { left: 90%; animation-delay: 6s; }

@keyframes particle-float {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 0.6; }
  90% { opacity: 0.6; }
  100% { transform: translateY(-100px) rotate(360deg); opacity: 0; }
}
