/* ==========================================================================
   NIGAMA CONNECT — ZERO-KNOWLEDGE SECURITY PORTAL STYLES (security.css)
   Governed by 07_SECURITY_AND_DATA_PROTECTION.md & Mobile-First Primacy
   ========================================================================== */

.nc-security-section {
  padding: 5rem 0;
  position: relative;
  background: transparent !important;
  background-color: transparent !important;
  border-top: none;
  overflow: hidden;
}

/* Background Atmospheric Shield Glow */
.nc-security-backdrop {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, rgba(15, 163, 217, 0.04) 50%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.nc-security-header {
  text-align: center;
  max-width: 1040px;
  margin: 0 auto 3.5rem auto;
  position: relative;
  z-index: 1;
}

.nc-security-header h2 {
  font-size: var(--nc-fs-h1, 2.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

.nc-security-header h2 span {
  background: linear-gradient(135deg, var(--nc-brand-secondary), var(--nc-brand-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nc-security-header p {
  color: var(--nc-text-secondary);
  font-size: var(--nc-fs-body, 1.05rem);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   3D HOLOGRAPHIC VAULT & INTERACTIVE CIPHER DEMO
   -------------------------------------------------------------------------- */
.nc-vault-hero-card {
  background: var(--nc-surface-card);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--nc-radius-xl, 24px);
  padding: 3rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(16, 185, 129, 0.1);
  position: relative;
  overflow: hidden;
  margin-bottom: 4rem;
  z-index: 1;
}

/* Laser Scan Animation Line */
.nc-vault-laser-beam {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--nc-brand-secondary), var(--nc-brand-primary), transparent);
  box-shadow: 0 0 15px var(--nc-brand-secondary);
  animation: laserScan 4s ease-in-out infinite;
  opacity: 0.85;
}

@keyframes laserScan {
  0% { top: 0%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

.nc-vault-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: center;
}

/* Padlock & Shield Visual */
.nc-vault-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.nc-hologram-shield-stage {
  width: 180px;
  height: 180px;
  position: relative;
  display: grid;
  place-items: center;
  margin-bottom: 1.5rem;
}

.nc-shield-ring-outer {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px dashed rgba(16, 185, 129, 0.4);
  animation: spinSlow 20s linear infinite;
}

.nc-shield-ring-inner {
  position: absolute;
  width: 78%;
  height: 78%;
  border-radius: 50%;
  border: 2px solid rgba(15, 163, 217, 0.3);
  animation: spinSlow 12s linear infinite reverse;
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.nc-shield-padlock-icon {
  width: 84px;
  height: 84px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(15, 163, 217, 0.2));
  border: 2px solid var(--nc-brand-secondary);
  display: grid;
  place-items: center;
  color: var(--nc-brand-secondary);
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.35);
}

.nc-vault-core-promise {
  font-size: 0.95rem;
  color: var(--nc-text-secondary);
  max-width: 320px;
  line-height: 1.6;
}

/* Interactive Cipher Demonstration */
.nc-cipher-demo-box {
  background: var(--nc-surface-elevated);
  border: 1px solid var(--nc-border-subtle);
  border-radius: var(--nc-radius-lg, 16px);
  padding: 1.75rem;
}

.nc-cipher-demo-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--nc-brand-secondary);
}

.nc-cipher-demo-desc {
  font-size: 0.88rem;
  color: var(--nc-text-secondary);
  margin-bottom: 1.25rem;
}

.nc-cipher-input-wrap {
  position: relative;
  margin-bottom: 1rem;
}

.nc-cipher-input-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--nc-text-muted);
  margin-bottom: 0.35rem;
}

.nc-cipher-input {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--nc-radius-md, 10px);
  background: var(--nc-surface-card);
  border: 1px solid var(--nc-border-subtle);
  color: var(--nc-text-primary);
  font-family: inherit;
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.nc-cipher-input:focus {
  border-color: var(--nc-brand-secondary);
  box-shadow: 0 0 0 3px var(--nc-brand-secondary-glow);
}

/* 3-Step Live Encryption Pipeline */
.nc-cipher-steps {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.nc-cipher-step {
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--nc-border-subtle);
  font-family: var(--nc-font-mono, monospace);
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  word-break: break-all;
}

.nc-cipher-step-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  flex-shrink: 0;
  text-transform: uppercase;
}

.nc-step-client {
  background: rgba(15, 163, 217, 0.2);
  color: var(--nc-brand-primary);
  border: 1px solid var(--nc-brand-primary);
}

.nc-step-transit {
  background: rgba(255, 162, 77, 0.2);
  color: var(--nc-brand-accent);
  border: 1px solid var(--nc-brand-accent);
}

.nc-step-dest {
  background: rgba(16, 185, 129, 0.2);
  color: var(--nc-brand-secondary);
  border: 1px solid var(--nc-brand-secondary);
}

/* --------------------------------------------------------------------------
   THE 7 SECURITY PILLARS GRID
   -------------------------------------------------------------------------- */
.nc-security-pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
  margin-bottom: 4rem;
  position: relative;
  z-index: 1;
}

.nc-pillar-card {
  background: var(--nc-surface-card);
  border: 1px solid var(--nc-border-subtle);
  border-radius: var(--nc-radius-lg, 16px);
  padding: 2rem;
  transition: all var(--nc-trans-fast, 0.2s ease);
  position: relative;
  overflow: hidden;
}

.nc-pillar-card:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), 0 0 25px rgba(16, 185, 129, 0.1);
}

.nc-pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--nc-brand-secondary), var(--nc-brand-primary));
  opacity: 0;
  transition: opacity 0.2s ease;
}

.nc-pillar-card:hover::before {
  opacity: 1;
}

.nc-pillar-num {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--nc-brand-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
}

.nc-pillar-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  margin-bottom: 1.25rem;
}

.nc-pillar-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--nc-text-primary);
}

.nc-pillar-card p {
  font-size: 0.92rem;
  color: var(--nc-text-secondary);
  line-height: 1.7;
  margin: 0;
}

/* --------------------------------------------------------------------------
   SECURITY FEATURE COMPARISON MATRIX TABLE
   -------------------------------------------------------------------------- */
.nc-security-matrix-card {
  background: var(--nc-surface-card);
  border: 1px solid var(--nc-border-subtle);
  border-radius: var(--nc-radius-xl, 24px);
  padding: 2.5rem;
  box-shadow: var(--nc-shadow-md);
  margin-bottom: 4rem;
  position: relative;
  z-index: 1;
}

.nc-security-matrix-title {
  text-align: center;
  margin-bottom: 2rem;
}

.nc-security-matrix-title h3 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.nc-security-matrix-table-wrap {
  overflow-x: auto;
}

.nc-security-matrix-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.nc-security-matrix-table th {
  padding: 16px 20px;
  background: var(--nc-surface-elevated);
  font-weight: 700;
  text-align: left;
  border-bottom: 2px solid var(--nc-border-subtle);
  color: var(--nc-text-primary);
}

.nc-security-matrix-table th.nc-highlight-col {
  background: rgba(16, 185, 129, 0.12);
  color: var(--nc-brand-secondary);
  border-bottom-color: var(--nc-brand-secondary);
}

.nc-security-matrix-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--nc-border-subtle);
  color: var(--nc-text-secondary);
}

.nc-security-matrix-table td.nc-highlight-col {
  background: rgba(16, 185, 129, 0.04);
  font-weight: 700;
  color: var(--nc-brand-secondary);
}

.nc-security-matrix-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.nc-security-matrix-table tr:hover td.nc-highlight-col {
  background: rgba(16, 185, 129, 0.08);
}

/* --------------------------------------------------------------------------
   COMPLIANCE TRUST BADGES
   -------------------------------------------------------------------------- */
.nc-compliance-badges-strip {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.nc-compliance-badge-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 10px 20px;
  border-radius: var(--nc-radius-pill, 9999px);
  background: var(--nc-surface-card);
  border: 1px solid var(--nc-border-subtle);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--nc-text-secondary);
}

.nc-compliance-badge-item svg {
  color: var(--nc-brand-secondary);
}

/* --------------------------------------------------------------------------
   RESPONSIVENESS (MOBILE-FIRST PRIMACY)
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .nc-security-section {
    padding: 2.5rem 0 !important;
  }
  .nc-security-header {
    margin-bottom: 2rem !important;
  }
  .nc-security-header h2 {
    font-size: 1.85rem !important;
  }
  .nc-vault-hero-card {
    padding: 1.5rem 1.25rem !important;
    margin-bottom: 2.5rem !important;
    border-radius: var(--nc-radius-lg, 18px) !important;
  }
  .nc-vault-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  .nc-security-matrix-card {
    padding: 1.5rem 1rem !important;
    margin-bottom: 2.5rem !important;
    border-radius: var(--nc-radius-lg, 18px) !important;
  }
  .nc-security-pillars-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
    margin-bottom: 2.5rem !important;
  }
  .nc-pillar-card {
    padding: 1.5rem 1.25rem !important;
  }
}

@media (max-width: 600px) {
  .nc-vault-hero-card {
    padding: 1.25rem 1rem !important;
  }
  .nc-hologram-shield-stage {
    width: 140px !important;
    height: 140px !important;
    margin-bottom: 1rem !important;
  }
  .nc-shield-padlock-icon {
    width: 64px !important;
    height: 64px !important;
  }
  .nc-shield-padlock-icon svg {
    width: 32px !important;
    height: 32px !important;
  }
  .nc-cipher-demo-box {
    padding: 1.25rem 1rem !important;
  }
  .nc-cipher-step {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 4px !important;
    padding: 8px 10px !important;
    font-size: 0.75rem !important;
  }
  .nc-security-matrix-table th,
  .nc-security-matrix-table td {
    padding: 10px 12px !important;
    font-size: 0.8rem !important;
  }
  .nc-compliance-badges-strip {
    gap: 0.75rem !important;
  }
  .nc-compliance-badge-item {
    padding: 8px 14px !important;
    font-size: 0.8rem !important;
  }
}

/* ──────────────────────────────────────────────────────────────────────────
   LIGHT THEME OVERRIDES FOR SECURITY VAULT
   ────────────────────────────────────────────────────────────────────────── */
[data-theme="light"] .nc-security-section {
  background: transparent !important;
  background-color: transparent !important;
}

[data-theme="light"] .nc-security-header h2,
[data-theme="light"] .nc-vault-hero-card h3,
[data-theme="light"] .nc-security-matrix-card h3,
[data-theme="light"] .nc-pillar-card h4 {
  color: #0F172A !important;
}

[data-theme="light"] .nc-security-header p,
[data-theme="light"] .nc-vault-hero-card p,
[data-theme="light"] .nc-pillar-card p {
  color: #475569 !important;
}

[data-theme="light"] .nc-vault-hero-card,
[data-theme="light"] .nc-security-matrix-card,
[data-theme="light"] .nc-pillar-card {
  background: #FFFFFF !important;
  border-color: rgba(15, 23, 42, 0.1) !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .nc-matrix-row {
  border-color: rgba(15, 23, 42, 0.08) !important;
}

[data-theme="light"] .nc-matrix-label {
  color: #1E293B !important;
}

[data-theme="light"] .nc-compliance-badge-item {
  background: #FFFFFF !important;
  border-color: rgba(15, 23, 42, 0.1) !important;
  color: #334155 !important;
}
