/* --------------------------------------------------------------------------
   6. Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  height: 788.47px;
  background-color: var(--second-color);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  z-index: 1;
}

/* Gradients Overlays */
.hero-overlay-horizontal {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(13, 34, 64, 0.95) 0%, rgba(13, 34, 64, 0.7) 50%, rgba(0, 0, 0, 0) 100%);
  z-index: 2;
}

.hero-overlay-vertical {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(0deg, rgba(13, 34, 64, 0.8) 0%, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0) 100%);
  z-index: 2;
}

.hero-content-wrapper {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: var(--container-max-width);
  margin-right: auto;
  margin-left: auto;
  padding-left: 16px;
  padding-right: 16px;
}

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

.hero-eyebrow {
  display: inline-block;
  background-color: var(--main-color);
  color: var(--color-white);
  padding: 4px 12px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 60.8px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--color-white);
  margin-bottom: 20px;
}

.hero-title span {
  color: var(--main-color);
}

.hero-description {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 18px;
  line-height: 1.625;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 32px;
}

.hero-description strong {
  font-weight: 600;
  color: var(--color-white);
}

.hero-actions {
  display: flex;
  gap: 12px;
}

.hero-actions svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}

/* Hero Stats Strip */
.hero-stats-strip {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(13, 34, 64, 0.9);
  border-top: 1px solid var(--color-border-dark);
  z-index: 3;
  padding: 16px 0;
}

.hero-stats-wrapper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.hero-stat-item {
  padding-left: 16px;
}

.hero-stat-value {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 24px;
  line-height: 24px;
  color: var(--main-color);
  margin-bottom: 2px;
}

.hero-stat-label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  line-height: 20px;
  color: var(--color-white);
  margin-bottom: 0;
}

.hero-stat-sublabel {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 12px;
  line-height: 16px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   7. Product Ecosystem Section
   -------------------------------------------------------------------------- */

.product-section {
  padding: 80px 0;
  background-color: var(--color-white);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

/*
  Vùng hover cố định.
  Card bên trong di chuyển nhưng vùng hover không di chuyển.
*/
.product-card-hitbox {
  height: 283px;
}

.product-card {
  width: 100%;
  height: 300px;
  position: relative;

  display: flex;
  flex-direction: column;

  overflow: hidden;
  cursor: pointer;

  background-color: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: 4px;

  transform: translate3d(0, 0, 0);

  transition:
    transform 280ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 280ms ease,
    border-color 280ms ease;
}

/* Hover vào hitbox, không hover trực tiếp vào card */
.product-card-hitbox:hover .product-card {
  transform: translate3d(0, -4px, 0);
  box-shadow: 0 8px 24px rgba(11, 35, 69, 0.1);
  border-color: rgba(13, 34, 64, 0.2);
}

/* -------------------- Hình ảnh -------------------- */

.product-card-image-wrapper {
  flex: 0 0 176px;
  height: 176px;

  position: relative;
  overflow: hidden;

  background-color: #e8edf4;
}

.product-card-image {
  display: block;
  width: 100%;
  height: 100%;

  object-fit: cover;

  transform: scale(1);
  backface-visibility: hidden;

  transition:
    transform 450ms cubic-bezier(0.22, 1, 0.36, 1);
}

.product-card-hitbox:hover .product-card-image {
  transform: scale(1.04);
}

/* -------------------- Badge -------------------- */

.product-card-badge {
  position: absolute;
  top: 13px;
  left: 13px;
  z-index: 2;

  padding: 2px 8px;

  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: 0.05em;

  color: var(--color-white);
  background-color: var(--second-color);
  border-radius: 2px;
}

/* -------------------- Thanh đỏ -------------------- */

.product-card-divider {
  flex: 0 0 2px;
  width: 100%;
  height: 2px;

  background-color: var(--main-color);

  transform: scaleX(0);
  transform-origin: left center;

  transition:
    transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.product-card-hitbox:hover .product-card-divider {
  transform: scaleX(1);
}

/* -------------------- Nội dung -------------------- */

.product-card-body {
  position: relative;

  display: flex;
  flex: 1;
  flex-direction: column;

  min-height: 0;
  padding: 16px;
}

.product-card-category {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0 0 4px;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 20px;
  margin-bottom: :10px;
  color: var(--color-text-body);
}

.product-card-title {
  margin: 0;

  font-family: var(--font-heading);
  font-size: 16.8px;
  font-weight: 700;
  line-height: 23.1px;

  color: var(--second-color);

  transition: color 220ms ease;
}

.product-card-hitbox:hover .product-card-title {
  color: var(--main-color);
}

/* -------------------- Xem chi tiết -------------------- */

.product-card-view-details {
  position: absolute;
  left: 16px;
  bottom: 5px;

  display: flex;
  align-items: center;

  margin: 0;

  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;

  color: var(--main-color);

  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, 6px, 0);
  transition:
    opacity 200ms ease,
    transform 280ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 280ms;
}

.product-card-view-details svg {
  width: 12px;
  height: 12px;
  margin-left: 5px;

  transition: transform 250ms ease;
}

.product-card-hitbox:hover .product-card-view-details {
  opacity: 1;
  visibility: visible;
  transform: translate3d(0, 0, 0);

  transition-delay: 0s;
}

.product-card-hitbox:hover .product-card-view-details svg {
  transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   8. Industry Solutions Section
   -------------------------------------------------------------------------- */
.solution-section {
  padding: 80px 0;
  background-color: var(--color-surface-light);
}

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

.solution-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 322.25px;
  transition: var(--transition-smooth);
}

.solution-card:hover {
  /*transform: translateY(-4px);*/
  box-shadow: 0 8px 24px rgba(11, 35, 69, 0.08);
}

.solution-card-image-wrapper {
  height: 192px;
  background-color: #DDE3EC;
  position: relative;
  overflow: hidden;
}

.solution-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  transition: var(--transition-smooth);
}

.solution-card:hover .solution-card-image {
  transform: scale(1.05);
  opacity: 0.95;
}

/* Gradient Overlay inside Image */
.solution-card-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(0deg, rgba(13, 34, 64, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
}

.solution-card-header-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.solution-card-icon-box {
  width: 32px;
  height: 32px;
  background-color: var(--main-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 2px;
}

.solution-card-icon-box svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--color-white);
}

.solution-card-heading {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  line-height: 20px;
  color: var(--color-white);
}

.solution-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.solution-card-desc {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  line-height: 22.75px;
  color: var(--color-text-body);
  margin-bottom: 12px;
}

.solution-card-link {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  line-height: 16px;
  color: var(--main-color);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.solution-card-link:hover {
  color: var(--color-accent-hover);
  gap: 6px;
}

.solution-card-link svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
}

/* --------------------------------------------------------------------------
   9. Credibility / Technical Capability Section
   -------------------------------------------------------------------------- */
.credibility-section {
  display: flex;
  background-color: var(--color-white);
  /*border-bottom: 1px solid var(--color-border-light);*/
}

.credibility-left {
  width: 50%;
  position: relative;
  min-height: 686px;
  background-color: var(--second-color);
  overflow: hidden;
}

.credibility-left::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background-color: var(--main-color);
  z-index: 3;
}

.credibility-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
}

.credibility-quote-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 32px;
  background: linear-gradient(0deg, rgba(13, 34, 64, 1) 0%, rgba(11, 30, 57, 0.93) 7%, rgba(8, 26, 50, 0.86) 14%, rgba(6, 22, 44, 0.79) 21%, rgba(5, 18, 37, 0.71) 29%, rgba(4, 14, 31, 0.64) 36%, rgba(2, 10, 25, 0.57) 43%, rgba(2, 7, 19, 0.5) 50%, rgba(0, 0, 0, 0) 100%);
  z-index: 2;
}

.credibility-quote-text {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 24px;
  line-height: 30px;
  color: var(--color-white);
  margin-bottom: 4px;
}

.credibility-quote-text span {
  color: var(--main-color);
}

.credibility-quote-author {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 20px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0;
}

.credibility-right {
  width: 50%;
  padding: 80px 64px 80px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.credibility-right .section-eyebrow {
  margin-bottom: 12px;
}

.credibility-right .section-title {
  font-size: 35.2px;
  line-height: 44px;
  margin-bottom: 24px;
}

/* Stat Grid */
.credibility-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  row-gap: 24px;
  column-gap: 24px;
  margin-bottom: 32px;
}

.credibility-stat-item {
  padding-left: 16px;
  border-left: 2px solid var(--main-color);
}

.credibility-stat-value {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 30px;
  line-height: 30px;
  color: var(--second-color);
  margin-bottom: 4px;
}

.credibility-stat-label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  line-height: 20px;
  color: var(--color-text-dark);
  margin-bottom: 0;
}

.credibility-stat-sublabel {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 12px;
  line-height: 16px;
  color: var(--color-text-body);
  margin-bottom: 0;
}

/* Advantages list */
.credibility-advantages {
  list-style: none;
  padding: 0;
  margin: 0 0 32px 0;
}

.credibility-adv-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 20px;
  color: var(--color-text-dark);
}

.credibility-adv-item:last-child {
  margin-bottom: 0;
}

.credibility-adv-item svg {
  width: 16px;
  height: 16px;
  stroke: var(--main-color);
  flex-shrink: 0;
}

.credibility-right .btn-npv-navy {
  align-self: flex-start;
}

.credibility-right .btn-npv-navy svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
}

.credibility-section .btn-npv-navy:hover {
  background: var(--main-color);
}

/* --------------------------------------------------------------------------
   10. Partner / Logo Strip Section
   -------------------------------------------------------------------------- */
.partner-section {
  padding: 40px 0;
  background-color: var(--second-color);
  border-top: 1px solid var(--color-border-dark);
  overflow: hidden;
  margin-top: 20px;
}

.partner-eyebrow {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  margin-bottom: 24px;
}

/* Marquee / Ticker */
.marquee-container {
  overflow: hidden;
  width: 100%;
  display: flex;
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 64px;
  white-space: nowrap;
  animation: marquee 25s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
  /* Pause on hover for accessibility */
}

.partner-logo-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 20px;
  line-height: 28px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.partner-dot {
  width: 8px;
  height: 8px;
  background-color: var(--main-color);
  border-radius: 50%;
  flex-shrink: 0;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
    /* Scroll exactly half of the double track */
  }
}



/* --------------------------------------------------------------------------
   12. Call to Action (CTA) Section
   -------------------------------------------------------------------------- */
.cta-section {
  padding: 64px 0;
  background-color: var(--main-color);
  color: var(--color-white);
}

.cta-container {
  max-width: 896px;
  margin: 0 auto;
  text-align: center;
  padding: 0 16px;
}

.cta-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 44.8px;
  line-height: 1.5;
  color: var(--color-white);
  margin-bottom: 12px;
}

.cta-desc {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 18px;
  line-height: 28px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 32px;
}

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

.cta-actions .btn-npv-primary {
  background-color: var(--color-white);
  color: var(--main-color);
}

.cta-actions .btn-npv-primary:hover {
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
}

.cta-actions svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}

/* ==========================================================================
   Home Page Responsive Styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   Desktop Small / Tablet Landscape (max-width: 1199.98px)
   -------------------------------------------------------------------------- */
@media (max-width: 1199.98px) {

  /* Product Ecosystem Grid: 5 to 4 columns */
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }

  /* Industry Solutions Grid: 4 to 3 columns */
  .solution-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  /* Technical Capability */
  .credibility-right {
    padding: 60px 32px;
  }

  .credibility-right .section-title {
    font-size: 30px;
    line-height: 38px;
  }
}

/* --------------------------------------------------------------------------
   Tablet Portrait (max-width: 991.98px)
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
  .hero-section {
    height: auto;
    padding: 100px 0px 0px !important;
  }

  .hero-section-home {
    display: block;
  }

  .hero-title {
    font-size: 44px;
    line-height: 1.1;
  }

  .hero-description {
    font-size: 16px;
  }

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

  .hero-stat-item {
    border-left: 2px solid var(--main-color);
  }

  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .credibility-section {
    flex-direction: column;
  }

  .credibility-left,
  .credibility-right {
    width: 100%;
    min-height: auto;
  }

  .credibility-left {
    height: 400px;
  }

  .credibility-right {
    padding: 30px 16px;
  }

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

  .hero-stats-strip {
    position: relative;
  }
}

/* --------------------------------------------------------------------------
   Mobile Large (max-width: 767.98px)
   -------------------------------------------------------------------------- */
@media (max-width: 767.98px) {

  /* Hero Section */
  .hero-section {
    padding: 80px 0 200px;
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-actions {
    flex-direction: column;
    gap: 10px;
  }

  .hero-actions .btn-npv-primary,
  .hero-actions .btn-npv-outline {
    width: 100%;
  }

  /* Hero Stats: 2 to 1 column on smaller mobile, or keep 2 columns */
  .hero-stats-wrapper {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 12px;
  }

  /* Product Ecosystem Grid: 3 to 2 columns */
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  /* Industry Solutions Grid: 2 to 1 column */
  .solution-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Credibility Section Stats Grid: 2 to 1 column */
  .credibility-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 16px;
  }

  /* Project Showcase Grid: 2 to 1 column */
  .showcase-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* CTA Section */
  .cta-section {
    padding: 48px 0;
  }

  .cta-title {
    font-size: 32px;
    line-height: 1.3;
  }

  .cta-desc {
    font-size: 16px;
    line-height: 24px;
    margin-bottom: 24px;
  }

  .cta-actions {
    flex-direction: column;
    gap: 12px;
  }

  .cta-actions .btn-npv-primary,
  .cta-actions .btn-npv-outline {
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   Mobile Small (max-width: 575.98px)
   -------------------------------------------------------------------------- */
@media (max-width: 575.98px) {

  /* Hero Stats: 1 column */
  .hero-stats-wrapper {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Product Ecosystem Grid: 1 column */
  .product-grid {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width:991px){
  .solution-section , .product-section{
    padding:30px 0;
  }
}
