/**
 * Homepage — Tầm nhìn · Sứ mệnh · Giá trị cốt lõi (premium glassmorphism).
 */

.apm-home .apm-home-vmv {
  position: relative;
  overflow: hidden;
  padding-block: clamp(72px, 9vw, 120px);
  background:
    radial-gradient(ellipse 55% 45% at 85% 15%, rgba(0, 180, 255, 0.22), transparent 55%),
    radial-gradient(ellipse 40% 35% at 10% 80%, rgba(0, 100, 200, 0.15), transparent 50%),
    linear-gradient(160deg, #050f1f 0%, #0a192f 35%, #0d2240 65%, #071525 100%);
  color: #fff;
}

/* ─── Background layers ─── */
.apm-home-vmv__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.apm-home-vmv__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/bg-circles-light.svg') center / cover no-repeat;
  opacity: 0.35;
}

.apm-home-vmv__glow--top {
  position: absolute;
  top: -10%;
  right: 5%;
  width: 55%;
  height: 55%;
  background: radial-gradient(circle, rgba(0, 210, 255, 0.18) 0%, transparent 65%);
  filter: blur(40px);
}

.apm-home-vmv__glow--center {
  position: absolute;
  bottom: 10%;
  left: 30%;
  width: 40%;
  height: 30%;
  background: radial-gradient(circle, rgba(0, 120, 220, 0.12) 0%, transparent 70%);
  filter: blur(50px);
}

.apm-home-vmv__wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, rgba(0, 210, 255, 0.5) 30%, rgba(0, 210, 255, 0.8) 50%, rgba(0, 210, 255, 0.5) 70%, transparent 100%);
  box-shadow: 0 0 24px rgba(0, 210, 255, 0.4), 0 -8px 40px rgba(0, 150, 255, 0.15);
}

.apm-home-vmv__deco--mountain {
  position: absolute;
  top: 8%;
  right: 2%;
  width: min(320px, 28vw);
  opacity: 0.75;
}

.apm-home-vmv__deco--mountain svg {
  width: 100%;
  height: auto;
}

/* ─── Container ─── */
.apm-home-vmv__container {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  padding-left: 24px;
  padding-right: 24px;
}

/* ─── Header ─── */
.apm-home .apm-home-vmv__header {
  max-width: 680px;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.apm-home .apm-home-vmv__eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #00d2ff;
}

.apm-home .apm-home-vmv__heading {
  margin: 0 0 16px;
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #fff;
}

.apm-home .apm-home-vmv__intro {
  margin: 0;
  max-width: 600px;
  font-size: clamp(0.9375rem, 1.5vw, 1.0625rem);
  line-height: 1.75;
  color: #ccd6f6;
  font-weight: 400;
}

/* ─── Grid: vision + mission on top, values full-width below ─── */
.apm-home .apm-home-vmv__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas:
    "vision mission"
    "values values";
  gap: clamp(16px, 2vw, 24px);
  align-items: start;
}

.apm-home .apm-home-vmv__card--vision {
  grid-area: vision;
}

.apm-home .apm-home-vmv__card--mission {
  grid-area: mission;
}

.apm-home .apm-home-vmv__card--values {
  grid-area: values;
}

/* ─── Glass cards ─── */
.apm-home .apm-home-vmv__card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: clamp(22px, 2.2vw, 28px) clamp(20px, 2vw, 26px);
  border-radius: 20px;
  background: linear-gradient(
    145deg,
    rgba(15, 45, 90, 0.65) 0%,
    rgba(8, 28, 58, 0.5) 50%,
    rgba(5, 20, 45, 0.55) 100%
  );
  border: 1px solid rgba(0, 210, 255, 0.22);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 0 48px rgba(0, 150, 255, 0.06);
  overflow: hidden;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.apm-home .apm-home-vmv__card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, transparent 50%);
  pointer-events: none;
}

.apm-home .apm-home-vmv__card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 210, 255, 0.45);
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 60px rgba(0, 180, 255, 0.12);
}

/* Card decorative backgrounds */
.apm-home-vmv__card-deco {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.apm-home-vmv__card-deco--city {
  bottom: 0;
  left: 0;
  right: 0;
  opacity: 0.35;
  max-height: 48px;
  overflow: hidden;
}

.apm-home-vmv__card-deco--city svg {
  width: 100%;
  height: auto;
  display: block;
  transform: translateY(12px);
}

.apm-home-vmv__card-deco--puzzle {
  bottom: 8px;
  right: 8px;
  width: 72px;
  opacity: 0.35;
}

.apm-home-vmv__card-deco--puzzle svg {
  width: 100%;
  height: auto;
}

.apm-home-vmv__card-deco--dots {
  top: 16px;
  right: 16px;
  width: 48px;
  height: 48px;
  background-image: radial-gradient(circle, rgba(0, 210, 255, 0.25) 1.5px, transparent 1.5px);
  background-size: 8px 8px;
  opacity: 0.6;
}

/* ─── Card head (icon + title) ─── */
.apm-home-vmv__card-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}

.apm-home .apm-home-vmv__icon-ring {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 40% 35%, rgba(0, 210, 255, 0.35) 0%, rgba(0, 100, 200, 0.12) 100%);
  border: 1px solid rgba(0, 210, 255, 0.45);
  color: #00d2ff;
  box-shadow:
    0 0 20px rgba(0, 210, 255, 0.35),
    inset 0 0 12px rgba(0, 210, 255, 0.1);
}

.apm-home-vmv__card-titles {
  min-width: 0;
  padding-top: 4px;
}

.apm-home .apm-home-vmv__card h3 {
  margin: 0;
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
}

.apm-home-vmv__card-accent {
  display: block;
  width: 36px;
  height: 3px;
  margin-top: 8px;
  border-radius: 2px;
  background: linear-gradient(90deg, #4caf50, #66bb6a);
  box-shadow: 0 0 8px rgba(76, 175, 80, 0.5);
}

.apm-home .apm-home-vmv__card-text {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.75;
  color: #ccd6f6;
}

/* ─── Core values list — 2×2 on desktop ─── */
.apm-home .apm-home-vmv__values {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
}

.apm-home .apm-home-vmv__values li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.apm-home .apm-home-vmv__values li:nth-last-child(-n+2) {
  border-bottom: none;
  padding-bottom: 0;
}

.apm-home .apm-home-vmv__values li:nth-child(-n+2) {
  padding-top: 0;
}

.apm-home .apm-home-vmv__values li:last-child {
  border-bottom: none;
}

.apm-home .apm-home-vmv__values li:first-child {
  padding-top: 0;
}

.apm-home-vmv__value-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 210, 255, 0.1);
  border: 1px solid rgba(0, 210, 255, 0.25);
  color: #00d2ff;
}

.apm-home-vmv__value-icon svg {
  width: 18px;
  height: 18px;
}

.apm-home-vmv__value-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.apm-home .apm-home-vmv__values li strong {
  display: block;
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.3;
}

.apm-home .apm-home-vmv__values li span {
  color: #ccd6f6;
  font-size: 0.8125rem;
  line-height: 1.55;
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .apm-home-vmv__deco--mountain {
    width: min(240px, 35vw);
    top: 4%;
    right: -2%;
    opacity: 0.45;
  }
}

@media (max-width: 768px) {
  .apm-home .apm-home-vmv__grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "vision"
      "mission"
      "values";
  }

  .apm-home .apm-home-vmv__values {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .apm-home .apm-home-vmv__values li {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .apm-home .apm-home-vmv__values li:nth-last-child(-n+2),
  .apm-home .apm-home-vmv__values li:nth-child(-n+2) {
    padding-top: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .apm-home .apm-home-vmv__values li:first-child {
    padding-top: 0;
  }

  .apm-home .apm-home-vmv__values li:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
}

@media (max-width: 640px) {
  .apm-home-vmv__container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .apm-home-vmv__deco--mountain {
    display: none;
  }

  .apm-home .apm-home-vmv__card {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .apm-home .apm-home-vmv__card:hover {
    transform: none;
  }
}
