/* ============================================
   Klyper HRMS  -  Overview (premium cards + meta)
   ============================================ */

/* Nested inside .hrms-about  -  no separate section chrome */
.hrms-about,
.hrms-overview {
  --ho-navy: #071428;
  --ho-blue: #1d5eff;
  --ho-blue-bright: #3b82f6;
  --ho-cyan: #38bdf8;
  --ho-muted: #5b6b80;
  --ho-text: #0f1c2e;
}

.hrms-about__features {
  position: relative;
  z-index: 1;
}

/* ---------- Feature cards ---------- */
.hrms-overview__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 1.8vw, 22px);
  margin: 0 0 clamp(20px, 2.4vw, 28px);
  align-items: stretch;
}

.ho-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 248px;
  padding: 30px 28px 32px;
  border-radius: 26px;
  background:
    linear-gradient(165deg, #ffffff 0%, #f5f9ff 55%, #eaf2fc 100%);
  border: 1px solid rgba(186, 210, 240, 0.85);
  box-shadow:
    0 4px 6px rgba(15, 40, 90, 0.04),
    0 18px 40px rgba(15, 50, 110, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transform: translateY(0);
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s ease,
    border-color 0.35s ease;
}

.ho-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.95), transparent);
  z-index: 2;
  pointer-events: none;
}

.ho-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 35%,
    rgba(255, 255, 255, 0.45) 48%,
    transparent 62%
  );
  transform: translateX(-120%);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  z-index: 2;
}

.ho-card:hover {
  transform: translateY(-10px);
  border-color: rgba(59, 130, 246, 0.45);
  box-shadow:
    0 8px 16px rgba(15, 40, 90, 0.06),
    0 28px 56px rgba(29, 94, 255, 0.16),
    inset 0 1px 0 #ffffff;
}

.ho-card:hover::after {
  transform: translateX(120%);
}

.ho-card__wave {
  display: none;
  background: none;
  opacity: 0;
  filter: none;
}

.ho-card:hover .ho-card__wave {
  opacity: 0.9;
  transform: scale(1.06);
}

/* 3D icon badge */
.ho-card__icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  border-radius: 18px;
  color: #ffffff;
  background:
    linear-gradient(145deg, #5b9bff 0%, #1d5eff 48%, #1240b8 100%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow:
    0 12px 24px rgba(29, 94, 255, 0.32),
    0 4px 0 #0a2f8a,
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -8px 16px rgba(0, 0, 0, 0.15);
  transform: translateZ(0);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
}

.ho-card__icon::before {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 15px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.22), transparent 55%);
  pointer-events: none;
}

.ho-card:hover .ho-card__icon {
  transform: translateY(-3px) scale(1.06);
  box-shadow:
    0 16px 28px rgba(29, 94, 255, 0.38),
    0 5px 0 #0a2f8a,
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.ho-card__icon svg {
  position: relative;
  z-index: 1;
  width: 32px;
  height: 32px;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 3px rgba(0, 20, 60, 0.25));
}

.ho-card__icon svg *:not([fill]) {
  fill: none;
}

.ho-card__title {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: var(--font-display, "Poppins", sans-serif);
  font-size: clamp(1.18rem, 1.05rem + 0.4vw, 1.42rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.28;
  color: var(--ho-navy);
}

.ho-card__desc {
  position: relative;
  z-index: 1;
  margin: 0;
  margin-top: auto;
  max-width: 32ch;
  font-size: 0.94rem;
  line-height: 1.65;
  font-weight: 500;
  color: var(--ho-muted);
}

/* Center accent card */
.ho-card--accent {
  background:
    linear-gradient(155deg, #050d1c 0%, #0a2048 38%, #123a7a 70%, #0a1a40 100%);
  border-color: rgba(96, 165, 250, 0.35);
  box-shadow:
    0 8px 16px rgba(5, 15, 40, 0.25),
    0 24px 52px rgba(7, 25, 70, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transform: translateY(-6px) scale(1.02);
  z-index: 2;
}

.ho-card--accent:hover {
  transform: translateY(-14px) scale(1.02);
  border-color: rgba(125, 211, 252, 0.5);
  box-shadow:
    0 12px 24px rgba(5, 15, 40, 0.28),
    0 32px 64px rgba(29, 94, 255, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.ho-card--accent .ho-card__wave {
  display: none;
}

.ho-card--accent .ho-card__glow {
  display: none;
  background: none;
  animation: none;
}

.ho-card--accent .ho-card__icon {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.28) 0%, rgba(125, 211, 252, 0.2) 40%, rgba(37, 99, 235, 0.45) 100%);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.35),
    0 4px 0 rgba(8, 40, 100, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  color: #ffffff;
}

.ho-card--accent .ho-card__title {
  color: #ffffff;
}

.ho-card--accent .ho-card__desc {
  color: rgba(220, 232, 248, 0.9);
  max-width: 36ch;
}

/* ---------- Meta bar ---------- */
.hrms-overview__meta {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  padding: 20px 12px;
  border-radius: 24px;
  background:
    radial-gradient(ellipse 70% 80% at 8% 20%, rgba(125, 190, 255, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 70% at 92% 85%, rgba(56, 160, 255, 0.16), transparent 55%),
    linear-gradient(145deg, #e8f2fc 0%, #f0f6fd 35%, #e4eef9 70%, #edf4fc 100%);
  border: 1px solid rgba(140, 180, 230, 0.75);
  box-shadow:
    0 4px 8px rgba(15, 40, 90, 0.04),
    0 18px 42px rgba(15, 50, 110, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    inset 0 -1px 0 rgba(120, 170, 230, 0.12);
  position: relative;
  overflow: hidden;
}

.hrms-overview__meta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #1d5eff, #38bdf8 50%, #1d5eff);
  opacity: 0.9;
  pointer-events: none;
}

.ho-meta {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  padding: 10px 14px 10px 16px;
  min-width: 0;
  border-radius: 14px;
  transition:
    background 0.3s ease,
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.ho-meta:hover {
  background: rgba(29, 94, 255, 0.05);
  transform: translateY(-2px);
}

.ho-meta + .ho-meta::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14%;
  bottom: 14%;
  width: 1.5px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(100, 140, 195, 0.35) 15%,
    rgba(70, 120, 185, 0.55) 50%,
    rgba(100, 140, 195, 0.35) 85%,
    transparent 100%
  );
  box-shadow: 1px 0 0 rgba(255, 255, 255, 0.45);
}

.ho-meta__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 2px;
  border-radius: 12px;
  color: #ffffff;
  background:
    linear-gradient(145deg, #4d8dff 0%, #1d5eff 55%, #1340b0 100%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow:
    0 8px 16px rgba(29, 94, 255, 0.28),
    0 3px 0 #0c2f88,
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

.ho-meta:hover .ho-meta__icon {
  transform: translateY(-2px) scale(1.06);
  box-shadow:
    0 12px 20px rgba(29, 94, 255, 0.35),
    0 3px 0 #0c2f88,
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.ho-meta__icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 1px 2px rgba(0, 20, 60, 0.25));
}

.ho-meta__icon svg *:not([fill]) {
  fill: none;
}

.ho-meta__label {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
  color: #8b9bb0;
}

.ho-meta__value {
  margin: 0;
  font-family: var(--font-display, "Poppins", sans-serif);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--ho-navy);
}

/* ---------- Motion ---------- */
.hrms-about__features .reveal,
.hrms-overview .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.hrms-about__features .reveal.is-visible,
.hrms-overview .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.hrms-about__features .reveal-delay-1,
.hrms-overview .reveal-delay-1 { transition-delay: 0.1s; }
.hrms-about__features .reveal-delay-2,
.hrms-overview .reveal-delay-2 { transition-delay: 0.2s; }

.hrms-overview__meta.reveal.is-visible .ho-meta {
  animation: ho-meta-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hrms-overview__meta.reveal.is-visible .ho-meta:nth-child(1) { animation-delay: 0.05s; }
.hrms-overview__meta.reveal.is-visible .ho-meta:nth-child(2) { animation-delay: 0.1s; }
.hrms-overview__meta.reveal.is-visible .ho-meta:nth-child(3) { animation-delay: 0.15s; }
.hrms-overview__meta.reveal.is-visible .ho-meta:nth-child(4) { animation-delay: 0.2s; }
.hrms-overview__meta.reveal.is-visible .ho-meta:nth-child(5) { animation-delay: 0.25s; }
.hrms-overview__meta.reveal.is-visible .ho-meta:nth-child(6) { animation-delay: 0.3s; }

@keyframes ho-meta-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes ho-glow-pulse {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hrms-overview__meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 10px;
    padding: 18px 10px;
  }

  .ho-meta:nth-child(3n + 1)::before {
    display: none;
  }

  .ho-meta:nth-child(4)::before,
  .ho-meta:nth-child(5)::before,
  .ho-meta:nth-child(6)::before {
    display: block;
  }

  .ho-card--accent {
    transform: none;
  }

  .ho-card--accent:hover {
    transform: translateY(-10px);
  }

  .ho-card {
    min-height: 220px;
    padding: 24px 22px 26px;
  }

  .ho-card__title {
    font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.25rem);
  }
}

@media (max-width: 900px) {
  .hrms-overview__cards {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    gap: 14px;
  }

  .ho-card {
    min-height: 0;
    padding: 22px 20px 24px;
  }

  .ho-card__desc {
    max-width: none;
  }

  .ho-card--accent {
    transform: none;
  }
}

@media (max-width: 640px) {
  .hrms-overview__cards {
    max-width: 100%;
    gap: 12px;
  }

  .ho-card {
    padding: 18px 16px 20px;
    border-radius: 18px;
    gap: 12px;
  }

  .ho-card__title {
    font-size: 1.05rem;
  }

  .ho-card__desc {
    font-size: 0.88rem;
  }

  .ho-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }

  .ho-card__icon svg {
    width: 24px;
    height: 24px;
  }

  .hrms-overview__meta {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 12px 6px;
    border-radius: 16px;
  }

  .ho-meta + .ho-meta::before {
    display: none;
  }

  .ho-meta {
    padding: 12px 10px;
    align-items: flex-start;
  }

  .ho-meta__icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .ho-meta__value {
    font-size: 0.8rem;
  }
}

@media (max-width: 400px) {
  .hrms-overview__meta {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .ho-meta {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
  }

  .ho-meta__icon {
    flex: 0 0 auto;
    margin-bottom: 0;
  }

  .ho-meta__label,
  .ho-meta__value {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hrms-about__features .reveal,
  .hrms-overview .reveal,
  .ho-card,
  .ho-card__icon,
  .ho-meta,
  .ho-meta__icon {
    transition: none;
  }

  .hrms-about__features .reveal,
  .hrms-overview .reveal {
    opacity: 1;
    transform: none;
  }

  .ho-card::after,
  .ho-card--accent .ho-card__glow,
  .hrms-overview__meta.reveal.is-visible .ho-meta {
    animation: none;
  }

  .ho-card:hover,
  .ho-card--accent,
  .ho-card--accent:hover {
    transform: none;
  }
}
