/* ================================================================
   HRM SECTION — HR Management & Attendance System
   Pharmatech Pro Landing Page
   ================================================================ */

/* ── Section wrapper ──────────────────────────────────────────── */
.hrm-section {
    background: linear-gradient(160deg, #0b1e35 0%, #0d2744 55%, #091929 100%);
    padding: 96px 0 80px;
    position: relative;
    overflow: hidden;
}

/* Animated background orbs */
.hrm-section::before {
    content: "";
    position: absolute;
    top: -120px; right: -120px;
    width: 560px; height: 560px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99,102,241,.08) 0%, transparent 65%);
    animation: hrmOrb1 16s ease-in-out infinite alternate;
    pointer-events: none;
}
.hrm-section::after {
    content: "";
    position: absolute;
    bottom: -80px; left: -80px;
    width: 480px; height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16,185,129,.06) 0%, transparent 65%);
    animation: hrmOrb2 20s ease-in-out 5s infinite alternate-reverse;
    pointer-events: none;
}
@keyframes hrmOrb1 {
    0%   { transform: translate(0,0) scale(1); }
    100% { transform: translate(-60px, 50px) scale(1.25); }
}
@keyframes hrmOrb2 {
    0%   { transform: translate(0,0) scale(1); }
    100% { transform: translate(40px, -40px) scale(1.2); }
}

/* ── Section Header ───────────────────────────────────────────── */
.hrm-header {
    margin-bottom: 64px;
    position: relative;
    z-index: 2;
}

.hrm-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(99,102,241,.12);
    border: 1px solid rgba(99,102,241,.30);
    border-radius: 20px;
    padding: 6px 18px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: #a5b4fc;
    margin-bottom: 22px;
}
.hrm-badge__dot {
    width: 7px; height: 7px;
    background: #6366f1;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 8px rgba(99,102,241,.8);
    animation: hrmDotPulse 2.4s ease-in-out infinite;
}
@keyframes hrmDotPulse {
    0%,100% { opacity:1; transform:scale(1); }
    50%      { opacity:.5; transform:scale(1.5); }
}

.hrm-title {
    font-size: 44px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.025em;
    color: #ffffff;
    margin-bottom: 18px;
}
.hrm-title__accent {
    background: linear-gradient(135deg, #6366f1 0%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hrm-description {
    font-size: 17px;
    line-height: 1.7;
    color: rgba(255,255,255,.60);
    max-width: 620px;
    margin: 0 auto;
}

/* ── Main layout: features + phone mockup ─────────────────────── */
.hrm-body {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 64px;
    align-items: center;
    position: relative;
    z-index: 2;
    margin-bottom: 72px;
}

/* ── Feature cards column ──────────────────────────────────────── */
.hrm-features-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.hrm-card {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 16px;
    padding: 22px 20px;
    position: relative;
    transition: border-color .25s, transform .25s, box-shadow .25s;
    cursor: default;
    overflow: hidden;
}
.hrm-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--hc, #6366f1) 6%, transparent) 0%,
        transparent 55%);
    border-radius: inherit;
    opacity: 0;
    transition: opacity .3s;
}
.hrm-card:hover {
    border-color: rgba(99,102,241,.35);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0,0,0,.25);
}
.hrm-card:hover::before { opacity: 1; }

.hrm-card__icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--hc, #6366f1) 15%, transparent);
    border: 1px solid color-mix(in srgb, var(--hc, #6366f1) 30%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--hc, #6366f1);
    margin-bottom: 14px;
    flex-shrink: 0;
}

.hrm-card h5 {
    font-size: 14.5px;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 6px;
    line-height: 1.3;
}
.hrm-card p {
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255,255,255,.50);
    margin: 0;
}

/* Featured card */
.hrm-card--featured {
    background: linear-gradient(135deg, rgba(99,102,241,.14) 0%, rgba(16,185,129,.10) 100%);
    border-color: rgba(99,102,241,.30);
}
.hrm-card--featured::before { opacity: 1; }

/* ── Phone mockup column ───────────────────────────────────────── */
.hrm-phone-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Glow behind phone */
.hrm-phone-wrap::before {
    content: "";
    position: absolute;
    width: 300px; height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99,102,241,.18) 0%, transparent 70%);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.hrm-phone {
    width: 240px;
    background: #1a2540;
    border-radius: 36px;
    border: 2px solid rgba(99,102,241,.40);
    box-shadow:
        0 0 0 6px rgba(99,102,241,.08),
        0 32px 64px rgba(0,0,0,.50);
    overflow: hidden;
    position: relative;
    animation: hrmPhoneFloat 5s ease-in-out infinite;
}
@keyframes hrmPhoneFloat {
    0%,100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}

/* Phone notch */
.hrm-phone__notch {
    width: 70px; height: 20px;
    background: #111827;
    border-radius: 0 0 14px 14px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Phone screen */
.hrm-phone__screen {
    padding: 12px 14px 20px;
    background: #111827;
}

/* App header bar */
.hrm-app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0 14px;
    border-bottom: 1px solid rgba(255,255,255,.06);
    margin-bottom: 14px;
}
.hrm-app-header__title {
    font-size: 12px;
    font-weight: 700;
    color: #f1f5f9;
}
.hrm-app-header__avatar {
    width: 26px; height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #10b981);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Check-in button */
.hrm-checkin-btn {
    width: 100%;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 12px;
    padding: 12px;
    text-align: center;
    margin-bottom: 14px;
    position: relative;
    overflow: hidden;
}
.hrm-checkin-btn__pulse {
    position: absolute;
    width: 100%; height: 100%;
    top: 0; left: 0;
    border-radius: inherit;
    background: rgba(255,255,255,.08);
    animation: hrmPulse 2s ease-in-out infinite;
}
@keyframes hrmPulse {
    0%,100% { transform: scale(1); opacity: .6; }
    50%      { transform: scale(1.04); opacity: 0; }
}
.hrm-checkin-btn__icon {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,.20);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 6px;
}
.hrm-checkin-btn__label {
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    letter-spacing: .03em;
}
.hrm-checkin-btn__time {
    font-size: 10px;
    color: rgba(255,255,255,.65);
    margin-top: 2px;
}

/* Quick action tiles */
.hrm-tiles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 14px;
}
.hrm-tile {
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 10px;
    padding: 10px 8px;
    text-align: center;
}
.hrm-tile__icon {
    font-size: 16px;
    margin-bottom: 4px;
    display: block;
    line-height: 1;
}
.hrm-tile__label {
    font-size: 9.5px;
    color: rgba(255,255,255,.55);
    font-weight: 600;
}

/* Mini stat row */
.hrm-stat-row {
    display: flex;
    gap: 8px;
}
.hrm-mini-stat {
    flex: 1;
    background: rgba(16,185,129,.08);
    border: 1px solid rgba(16,185,129,.18);
    border-radius: 8px;
    padding: 8px;
    text-align: center;
}
.hrm-mini-stat__val {
    font-size: 14px;
    font-weight: 800;
    color: #10b981;
    display: block;
    line-height: 1;
}
.hrm-mini-stat__lbl {
    font-size: 8.5px;
    color: rgba(255,255,255,.45);
    margin-top: 3px;
    display: block;
}

/* ── Stats bar ────────────────────────────────────────────────── */
.hrm-stats-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 20px;
    padding: 32px 24px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
    margin-bottom: 56px;
}

.hrm-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 0 40px;
}
.hrm-stat__val {
    font-size: 28px;
    font-weight: 800;
    color: #6366f1;
    line-height: 1;
}
.hrm-stat__lbl {
    font-size: 12.5px;
    color: rgba(255,255,255,.50);
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
}

.hrm-stats-sep {
    width: 1px;
    height: 44px;
    background: rgba(255,255,255,.10);
    flex-shrink: 0;
}

/* ── App stores CTA row ───────────────────────────────────────── */
.hrm-app-cta {
    text-align: center;
    position: relative;
    z-index: 2;
}
.hrm-app-cta__label {
    font-size: 13px;
    color: rgba(255,255,255,.50);
    margin-bottom: 20px;
    display: block;
}
.hrm-app-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    transition: transform .2s, box-shadow .2s;
    box-shadow: 0 8px 24px rgba(99,102,241,.35);
}
.hrm-app-cta__btn:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(99,102,241,.50);
}
.hrm-app-cta__btn svg { flex-shrink: 0; }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .hrm-body { grid-template-columns: 1fr; }
    .hrm-phone-wrap { display: none; }
    .hrm-features-list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
    .hrm-section { padding: 64px 0 56px; }
    .hrm-title { font-size: 30px; }
    .hrm-features-list { grid-template-columns: 1fr; }
    .hrm-stats-bar { flex-direction: column; gap: 20px; }
    .hrm-stats-sep { width: 60px; height: 1px; }
    .hrm-stat { padding: 0; }
    .hrm-stat__val { font-size: 24px; }
    .hrm-body { gap: 36px; }
}
