/* ================================================================
   SECURITY SHOWCASE SECTION — Enterprise Security Display
   Pharmatech Pro Landing Page
   ================================================================ */

/* ── Section wrapper ──────────────────────────────────────────── */
.security-showcase-section {
    background: linear-gradient(160deg, #060f1a 0%, #0a1e2e 50%, #071523 100%);
    padding: 96px 0 80px;
    position: relative;
    overflow: hidden;
}

/* Animated mesh orbs */
.security-showcase-section::before {
    content: "";
    position: absolute;
    top: -150px; left: -150px;
    width: 600px; height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,200,150,.07) 0%, transparent 65%);
    animation: secOrb 14s ease-in-out infinite alternate;
    pointer-events: none;
}
.security-showcase-section::after {
    content: "";
    position: absolute;
    bottom: -100px; right: -100px;
    width: 500px; height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59,130,246,.06) 0%, transparent 65%);
    animation: secOrb 18s ease-in-out 4s infinite alternate-reverse;
    pointer-events: none;
}
@keyframes secOrb {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 40px) scale(1.2); }
}

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

.sec-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0,200,150,.10);
    border: 1px solid rgba(0,200,150,.25);
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: #7fffcf;
    margin-bottom: 20px;
}
.sec-eyebrow__dot {
    width: 7px; height: 7px;
    background: #00c896;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 8px #00c896;
    animation: secDotPulse 2.2s ease-in-out infinite;
}
@keyframes secDotPulse {
    0%,100% { opacity:1; transform:scale(1); }
    50%      { opacity:.6; transform:scale(1.4); }
}

.sec-headline {
    font-size: 46px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.025em;
    color: #ffffff;
    margin-bottom: 16px;
    font-family: "Instrument Sans", serif;
}
.sec-headline__accent {
    background: linear-gradient(90deg, #00c896 0%, #00e8b5 50%, #00d4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.sec-subline {
    font-size: 17px;
    color: rgba(255,255,255,.55);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ── Certification Badges ─────────────────────────────────────── */
.sec-certs {
    display: flex;
    align-items: stretch;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.sec-cert-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 16px;
    padding: 18px 22px;
    min-width: 220px;
    position: relative;
    overflow: hidden;
    transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
    cursor: default;
}
.sec-cert-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255,255,255,.22);
    box-shadow: 0 16px 40px rgba(0,0,0,.3);
}
.sec-cert-card__glow {
    position: absolute; inset: 0;
    border-radius: 16px;
    opacity: 0;
    transition: opacity .35s;
    pointer-events: none;
}
.sec-cert-card:hover .sec-cert-card__glow { opacity: 1; }

.sec-cert-card--hipaa .sec-cert-card__glow { background: radial-gradient(ellipse at 0% 100%, rgba(0,200,150,.12) 0%, transparent 60%); }
.sec-cert-card--iso   .sec-cert-card__glow { background: radial-gradient(ellipse at 0% 100%, rgba(59,130,246,.12) 0%, transparent 60%); }
.sec-cert-card--gdpr  .sec-cert-card__glow { background: radial-gradient(ellipse at 0% 100%, rgba(245,158,11,.10) 0%, transparent 60%); }
.sec-cert-card--aes   .sec-cert-card__glow { background: radial-gradient(ellipse at 0% 100%, rgba(168,85,247,.12) 0%, transparent 60%); }

.sec-cert-card__body { flex: 1; }
.sec-cert-card__body strong {
    display: block;
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    letter-spacing: .01em;
    line-height: 1.2;
}
.sec-cert-card__body span {
    display: block;
    font-size: 12px;
    color: rgba(255,255,255,.45);
    margin-top: 2px;
}

.sec-cert-badge {
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
}
.sec-cert-badge--green  { background: rgba(0,200,150,.18); color: #7fffd0; border: 1px solid rgba(0,200,150,.3); }
.sec-cert-badge--blue   { background: rgba(59,130,246,.18); color: #93c5fd; border: 1px solid rgba(59,130,246,.3); }
.sec-cert-badge--amber  { background: rgba(245,158,11,.15); color: #fcd34d; border: 1px solid rgba(245,158,11,.3); }
.sec-cert-badge--purple { background: rgba(168,85,247,.15); color: #d8b4fe; border: 1px solid rgba(168,85,247,.3); }

/* ── Features Grid ────────────────────────────────────────────── */
.sec-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 56px;
    position: relative;
    z-index: 2;
}

.sec-feature-card {
    background: rgba(255,255,255,.035);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 16px;
    padding: 24px 22px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    position: relative;
    transition: background .28s ease, border-color .28s ease, transform .28s ease;
    overflow: hidden;
}
.sec-feature-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--f-color, #00c896) 6%, transparent) 0%,
        transparent 60%);
    opacity: 0;
    transition: opacity .35s;
    pointer-events: none;
}
.sec-feature-card:hover {
    background: rgba(255,255,255,.06);
    border-color: color-mix(in srgb, var(--f-color, #00c896) 35%, transparent);
    transform: translateY(-3px);
}
.sec-feature-card:hover::before { opacity: 1; }

/* Icon */
.sec-feature-card__icon-wrap {
    width: 48px; height: 48px; flex-shrink: 0;
    border-radius: 12px;
    background: color-mix(in srgb, var(--f-color, #00c896) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--f-color, #00c896) 25%, transparent);
    display: flex; align-items: center; justify-content: center;
    color: var(--f-color, #00c896);
    transition: transform .28s ease, background .28s ease;
}
.sec-feature-card:hover .sec-feature-card__icon-wrap {
    transform: scale(1.08) rotate(-4deg);
    background: color-mix(in srgb, var(--f-color, #00c896) 20%, transparent);
}

/* Content */
.sec-feature-card__content { flex: 1; min-width: 0; }
.sec-feature-card__content h4 {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 7px;
    line-height: 1.3;
}
.sec-feature-card__content p {
    font-size: 13px;
    color: rgba(255,255,255,.50);
    line-height: 1.6;
    margin: 0 0 10px;
}
.sec-feature-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.sec-feature-card__tags span {
    font-size: 10.5px;
    font-weight: 700;
    color: color-mix(in srgb, var(--f-color, #00c896) 80%, #fff);
    background: color-mix(in srgb, var(--f-color, #00c896) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--f-color, #00c896) 20%, transparent);
    border-radius: 4px;
    padding: 1px 6px;
    letter-spacing: .04em;
}

/* Active indicator dot */
.sec-feature-card__indicator {
    position: absolute;
    top: 16px; right: 16px;
    width: 8px; height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.sec-feature-card__indicator--on {
    background: #00c896;
    box-shadow: 0 0 0 3px rgba(0,200,150,.20);
    animation: secIndPulse 3s ease-in-out infinite;
}
@keyframes secIndPulse {
    0%,100% { box-shadow: 0 0 0 3px rgba(0,200,150,.20); }
    50%      { box-shadow: 0 0 0 7px rgba(0,200,150,.05); }
}

/* ── Security Stats Bar ───────────────────────────────────────── */
.sec-stats-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 20px;
    padding: 24px 40px;
    position: relative;
    z-index: 2;
    overflow: hidden;
}
.sec-stats-bar::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,200,150,.5), rgba(0,200,150,.5), transparent);
}

.sec-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4px 36px;
    text-align: center;
}
.sec-stat__val {
    font-size: 22px;
    font-weight: 900;
    color: #00c896;
    line-height: 1;
    font-family: "Instrument Sans", serif;
    letter-spacing: -.01em;
}
.sec-stat__lbl {
    font-size: 11.5px;
    color: rgba(255,255,255,.40);
    margin-top: 5px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .05em;
    white-space: nowrap;
}
.sec-stats-sep {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,.10);
    flex-shrink: 0;
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 1200px) {
    .sec-grid { grid-template-columns: repeat(2, 1fr); }
    .sec-headline { font-size: 38px; }
}
@media (max-width: 991px) {
    .security-showcase-section { padding: 72px 0 60px; }
    .sec-certs { gap: 12px; }
    .sec-cert-card { min-width: 180px; padding: 14px 16px; }
}
@media (max-width: 768px) {
    .sec-grid { grid-template-columns: 1fr; gap: 12px; }
    .sec-headline { font-size: 32px; }
    .sec-stats-bar { padding: 20px 16px; gap: 0; }
    .sec-stat { padding: 8px 20px; }
    .sec-stats-sep { display: none; }
    .sec-certs { flex-direction: column; align-items: stretch; max-width: 380px; margin: 0 auto 48px; }
    .sec-cert-card { min-width: unset; }
}
@media (max-width: 576px) {
    .sec-headline { font-size: 26px; line-height: 1.2; }
    .sec-stat__val { font-size: 18px; }
    .security-showcase-section { padding: 56px 0 48px; }
}

/* ── RTL Support ──────────────────────────────────────────────── */
[dir="rtl"] .sec-eyebrow           { direction: rtl; flex-direction: row-reverse; }
[dir="rtl"] .sec-headline          { direction: rtl; }
[dir="rtl"] .sec-subline           { direction: rtl; text-align: center; }
[dir="rtl"] .sec-certs             { direction: rtl; }
[dir="rtl"] .sec-cert-card         { direction: rtl; flex-direction: row-reverse; }
[dir="rtl"] .sec-cert-card__body   { text-align: right; }

[dir="rtl"] .sec-feature-card      { direction: rtl; flex-direction: row-reverse; }
[dir="rtl"] .sec-feature-card__content { text-align: right; }
[dir="rtl"] .sec-feature-card__tags { justify-content: flex-end; direction: rtl; }
[dir="rtl"] .sec-feature-card__indicator { right: auto; left: 16px; }

[dir="rtl"] .sec-stats-bar         { direction: rtl; }
[dir="rtl"] .sec-stat              { direction: rtl; }

/* RTL: flip the top gradient line direction */
[dir="rtl"] .sec-stats-bar::before {
    background: linear-gradient(270deg, transparent, rgba(0,200,150,.5), rgba(0,200,150,.5), transparent);
}

/* RTL: feature card hover glow from right */
[dir="rtl"] .sec-feature-card::before {
    background: linear-gradient(225deg,
        color-mix(in srgb, var(--f-color, #00c896) 6%, transparent) 0%,
        transparent 60%);
}
