/*
Theme Name: MA3 Cyber Galaxy
Theme URI: https://ma3cyber.com
Author: MA3 Cyber
Description: Elementor-editable dark moving galaxy WordPress theme in deep black and navy blue with biometric fingerprint scanner, custom Elementor page builder support, and MA3 Cyber Autonomous Security footer branding.
Version: 1.4.0
License: GNU General Public License v2 or later
Text Domain: ma3-cyber-galaxy
*/

:root {
  --bg-void: #03050a;
  --bg-navy: #0a1628;
  --bg-card: rgba(10, 22, 40, 0.76);
  --border-navy: rgba(59, 130, 246, 0.3);
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --accent-blue: #2563eb;
  --accent-bright: #3b82f6;
  --accent-cyan: #38bdf8;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body.ma3-galaxy-body {
  background-color: var(--bg-void);
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Moving Galaxy Background Layer */
#ma3-galaxy-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 25%, rgba(29, 78, 216, 0.22), transparent 48%),
    radial-gradient(circle at 80% 18%, rgba(15, 23, 42, 0.85), transparent 55%),
    radial-gradient(circle at 50% 85%, rgba(10, 22, 40, 0.95), #03050a 78%);
}

.ma3-nebula-glow {
  position: fixed;
  inset: -20%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(37, 99, 235, 0.14), transparent 55%),
    radial-gradient(ellipse at 75% 65%, rgba(30, 58, 138, 0.18), transparent 50%);
  animation: ma3NebulaDrift 22s ease-in-out infinite alternate;
}

@keyframes ma3NebulaDrift {
  0% { transform: translate3d(-2%, -2%, 0) scale(1); }
  100% { transform: translate3d(2%, 2%, 0) scale(1.06); }
}

.ma3-container {
  width: min(1160px, 92%);
  margin: 0 auto;
}

/* Ensure Elementor sections keep transparent backgrounds over the moving galaxy */
.elementor-page .elementor-section,
.elementor-page .e-con {
  background-color: transparent;
}

.ma3-elementor-canvas-wrap {
  width: 100%;
  min-height: 60vh;
}

.ma3-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(3, 5, 10, 0.84);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-navy);
}

.ma3-nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 24px;
}

.ma3-brand {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #ffffff;
  text-decoration: none;
}

.ma3-brand span {
  color: var(--accent-bright);
}

.ma3-menu {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.ma3-menu a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.ma3-menu a:hover,
.ma3-menu .current-menu-item > a {
  color: #ffffff;
}

/* Shared Hero & Sub-Hero Layout */
.ma3-hero {
  padding: 88px 0 76px;
  border-bottom: 1px solid rgba(30, 58, 138, 0.35);
}

.ma3-sub-hero {
  padding: 76px 0 64px;
  border-bottom: 1px solid rgba(30, 58, 138, 0.35);
}

.ma3-hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: center;
  gap: 48px;
}

@media (max-width: 860px) {
  .ma3-hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .ma3-hero-actions {
    justify-content: center;
  }
}

.ma3-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.16);
  border: 1px solid rgba(59, 130, 246, 0.42);
  color: #93c5fd;
  font-size: 0.8rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.ma3-hero h1,
.ma3-sub-hero h1 {
  font-size: clamp(2.1rem, 4.3vw, 3.4rem);
  line-height: 1.15;
  margin-bottom: 18px;
  color: #ffffff;
}

.ma3-hero p,
.ma3-sub-hero p {
  color: var(--text-muted);
  font-size: 1.08rem;
  max-width: 60ch;
  margin-bottom: 28px;
}

.ma3-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.ma3-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent-blue), #1e3a8a);
  color: #ffffff;
  text-decoration: none;
  padding: 13px 26px;
  border-radius: 8px;
  font-weight: 600;
  border: 1px solid rgba(147, 197, 253, 0.35);
  cursor: pointer;
  font-size: 0.96rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ma3-btn:hover {
  background: linear-gradient(135deg, var(--accent-bright), var(--accent-blue));
  box-shadow: 0 0 24px rgba(59, 130, 246, 0.4);
  transform: translateY(-1px);
  color: #ffffff;
}

.ma3-btn-ghost {
  display: inline-block;
  background: rgba(10, 22, 40, 0.65);
  color: #cbd5e1;
  text-decoration: none;
  padding: 13px 24px;
  border-radius: 8px;
  font-weight: 600;
  border: 1px solid rgba(59, 130, 246, 0.35);
}

.ma3-btn-ghost:hover {
  border-color: var(--accent-bright);
  color: #ffffff;
}

/* Biometric Fingerprint Scanner Widget */
.ma3-fp-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ma3-fp-box {
  position: relative;
  width: 270px;
  height: 290px;
  border-radius: 22px;
  background: radial-gradient(circle at 50% 45%, rgba(29, 78, 216, 0.22), rgba(5, 8, 15, 0.92));
  border: 1px solid rgba(59, 130, 246, 0.42);
  box-shadow:
    0 0 40px rgba(37, 99, 235, 0.22),
    inset 0 0 24px rgba(30, 58, 138, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow: hidden;
}

.ma3-fp-corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: var(--accent-cyan);
  border-style: solid;
  opacity: 0.85;
}
.ma3-fp-corner.tl { top: 12px; left: 12px; border-width: 2px 0 0 2px; }
.ma3-fp-corner.tr { top: 12px; right: 12px; border-width: 2px 2px 0 0; }
.ma3-fp-corner.bl { bottom: 12px; left: 12px; border-width: 0 0 2px 2px; }
.ma3-fp-corner.br { bottom: 12px; right: 12px; border-width: 0 2px 2px 0; }

.ma3-fp-svg-wrap {
  position: relative;
  width: 156px;
  height: 176px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ma3-fp-svg {
  width: 140px;
  height: 164px;
  stroke: #3b82f6;
  fill: none;
  stroke-width: 2.3;
  stroke-linecap: round;
  filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.65));
  animation: ma3FpPulse 3.6s ease-in-out infinite;
}

@keyframes ma3FpPulse {
  0%, 100% {
    stroke: #2563eb;
    filter: drop-shadow(0 0 6px rgba(37, 99, 235, 0.5));
  }
  50% {
    stroke: #60a5fa;
    filter: drop-shadow(0 0 14px rgba(96, 165, 250, 0.9));
  }
}

.ma3-scan-beam {
  position: absolute;
  left: 4px;
  right: 4px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #38bdf8, #93c5fd, #38bdf8, transparent);
  box-shadow: 0 0 14px #38bdf8, 0 0 28px rgba(56, 189, 248, 0.8);
  border-radius: 999px;
  animation: ma3ScanLine 3.2s ease-in-out infinite;
}

@keyframes ma3ScanLine {
  0% { top: 8%; opacity: 0.2; }
  15% { opacity: 1; }
  50% { top: 88%; opacity: 1; }
  85% { opacity: 1; }
  100% { top: 8%; opacity: 0.2; }
}

.ma3-fp-status {
  margin-top: 16px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #93c5fd;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ma3-fp-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 10px #38bdf8;
  animation: ma3DotBlink 1.4s infinite;
}

@keyframes ma3DotBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* Telemetry / Metrics Strip */
.ma3-metrics-strip {
  padding: 36px 0;
  border-bottom: 1px solid rgba(30, 58, 138, 0.35);
  background: rgba(6, 12, 24, 0.55);
}

.ma3-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.ma3-metric-item {
  padding: 18px 20px;
  border-radius: 10px;
  background: rgba(10, 22, 40, 0.6);
  border: 1px solid rgba(59, 130, 246, 0.24);
}

.ma3-metric-val {
  font-size: 1.75rem;
  font-weight: 700;
  color: #60a5fa;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.ma3-metric-label {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Sections & Cards */
.ma3-section {
  padding: 72px 0;
}

.ma3-section-alt {
  padding: 72px 0;
  border-top: 1px solid rgba(30, 58, 138, 0.3);
  border-bottom: 1px solid rgba(30, 58, 138, 0.3);
  background: rgba(6, 12, 24, 0.45);
}

.ma3-section h2,
.ma3-section-alt h2 {
  font-size: 1.9rem;
  margin-bottom: 12px;
  color: #ffffff;
}

.ma3-section-sub {
  color: var(--text-muted);
  margin-bottom: 38px;
  max-width: 64ch;
}

.ma3-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 24px;
}

.ma3-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}

.ma3-card {
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-navy);
  border-radius: 14px;
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.ma3-card:hover {
  border-color: rgba(96, 165, 250, 0.65);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.7);
  transform: translateY(-2px);
}

.ma3-card-tag {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 12px;
}

.ma3-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #ffffff;
}

.ma3-card p {
  color: var(--text-muted);
  font-size: 0.96rem;
  margin-bottom: 14px;
}

.ma3-card ul {
  list-style: none;
  margin-top: 12px;
}

.ma3-card ul li {
  color: #cbd5e1;
  font-size: 0.92rem;
  padding: 6px 0 6px 18px;
  position: relative;
}

.ma3-card ul li::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: var(--accent-bright);
}

/* Radar / SOC Visual Panel */
.ma3-radar-box {
  position: relative;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.22) 0%, rgba(5, 8, 15, 0.94) 72%);
  border: 1px solid rgba(59, 130, 246, 0.45);
  box-shadow: 0 0 36px rgba(37, 99, 235, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  overflow: hidden;
}

.ma3-radar-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(59, 130, 246, 0.28);
}
.ma3-radar-ring.r1 { width: 70%; height: 70%; }
.ma3-radar-ring.r2 { width: 40%; height: 40%; }

.ma3-radar-sweep {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(56, 189, 248, 0.42), rgba(37, 99, 235, 0.05) 35%, transparent 60%);
  animation: ma3RadarSpin 4.5s linear infinite;
}

@keyframes ma3RadarSpin {
  to { transform: rotate(360deg); }
}

.ma3-radar-center {
  position: relative;
  z-index: 2;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: #e0f2fe;
  background: rgba(5, 8, 15, 0.85);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.45);
}

/* Live Threat Feed Terminal */
.ma3-terminal {
  background: rgba(3, 6, 14, 0.9);
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: 12px;
  padding: 22px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.86rem;
}

.ma3-terminal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(59, 130, 246, 0.22);
  color: #93c5fd;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ma3-log-row {
  padding: 8px 0;
  border-bottom: 1px dashed rgba(30, 58, 138, 0.4);
  color: #cbd5e1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}

.ma3-log-row:last-child {
  border-bottom: none;
}

.ma3-log-badge {
  color: #38bdf8;
  font-weight: 600;
}

/* Contact Form Styling */
.ma3-form-group {
  margin-bottom: 18px;
}

.ma3-form-group label {
  display: block;
  font-size: 0.9rem;
  color: #cbd5e1;
  margin-bottom: 6px;
  font-weight: 500;
}

.ma3-input,
.ma3-textarea,
.ma3-select {
  width: 100%;
  background: rgba(5, 10, 22, 0.88);
  border: 1px solid rgba(59, 130, 246, 0.36);
  border-radius: 8px;
  padding: 12px 14px;
  color: #f8fafc;
  font-family: inherit;
  font-size: 0.96rem;
}

.ma3-input:focus,
.ma3-textarea:focus,
.ma3-select:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.16);
}

.ma3-alert-success {
  padding: 14px 18px;
  border-radius: 8px;
  background: rgba(14, 116, 144, 0.25);
  border: 1px solid rgba(56, 189, 248, 0.5);
  color: #bae6fd;
  margin-bottom: 20px;
}

/* CTA Banner */
.ma3-cta-banner {
  background: linear-gradient(135deg, rgba(15, 34, 74, 0.85), rgba(5, 10, 22, 0.95));
  border: 1px solid rgba(59, 130, 246, 0.42);
  border-radius: 16px;
  padding: 42px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.ma3-cta-banner h3 {
  font-size: 1.6rem;
  margin-bottom: 8px;
  color: #ffffff;
}

.ma3-cta-banner p {
  color: var(--text-muted);
  max-width: 54ch;
}

.ma3-page-content {
  padding: 64px 0 88px;
}

.ma3-page-content h1 {
  font-size: 2.3rem;
  margin-bottom: 24px;
  color: #ffffff;
}

.ma3-page-content p,
.ma3-page-content li {
  color: var(--text-muted);
  margin-bottom: 14px;
}

.ma3-footer {
  border-top: 1px solid var(--border-navy);
  background: rgba(3, 5, 10, 0.92);
  padding: 36px 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.ma3-footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.ma3-footer-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.ma3-footer-logo {
  height: 44px;
  width: auto;
  display: block;
  object-fit: contain;
}
