/* ==========================================================================
   SmartDevCo - 100% Pixel-Accurate Cyber Ecosystem Stylesheet
   Direction: RTL (Arabic) - Dark Futuristic Glassmorphism
   ========================================================================== */

:root {
  --canvas-deep: #101216;
  --canvas-card-bg: #3b6363;
  --surface: #181a1f;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);

  --text-pure: #f3f4f6;
  --text-sub: #a3aab4;
  --text-muted: #7c838e;
  --ink: #c8ced6;

  --accent: #d7dce2;

  --font-arabic: 'Alexandria', 'Cairo', system-ui, sans-serif;
  --font-latin: 'Plus Jakarta Sans', sans-serif;
}

/* Universal Reset */
*, *::before, *::after {
  /* margin: 0; */
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: darkslategrey;
  color: var(--text-pure);
  font-family: var(--font-arabic);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: opacity 0.12s ease;
}

html[dir="rtl"],
html[dir="rtl"] body {
  direction: rtl;
}

html[dir="ltr"],
html[dir="ltr"] body {
  direction: ltr;
}

/* ==========================================================================
   Background Cyber Matrix & Atmospheric Aurora Glows
   ========================================================================== */
.cyber-background-wrap {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-mesh-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0;
}

.glow-top-purple {
  top: -180px;
  left: 50%;
  transform: translateX(-50%);
  width: 820px;
  height: 420px;
  opacity: 1;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.045) 0%, transparent 70%);
}

.bg-grid-overlay {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 40px 40px;
}

#cyberStarsCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.22;
}

/* ==========================================================================
   Left & Right Cyber Circuit Buses
   ========================================================================== */
.circuit-bus-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  pointer-events: none;
  z-index: 2;
  opacity: 0.78;
}

.circuit-left {
  left: 30px;
}

.circuit-right {
  right: 30px;
}

.circuit-svg {
  width: 100%;
  height: 100%;
}

.circuit-spine {
  stroke-dasharray: 6 4;
  animation: traceDashFlow 25s linear infinite;
}

@keyframes traceDashFlow {
  to { stroke-dashoffset: -1000; }
}

.c-node {
  filter: drop-shadow(0 0 6px currentColor);
  animation: nodeGlowBlink 2.5s ease-in-out infinite alternate;
}

@keyframes nodeGlowBlink {
  0% { opacity: 0.5; r: 3.5; }
  100% { opacity: 1; r: 5; }
}

.energy-packet {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d5dbe3;
  box-shadow: none;
}

.packet-1 {
  top: 390px;
  left: 45px;
  animation: packetTravel 8s ease-in-out infinite;
}

.packet-2 {
  top: 780px;
  left: 45px;
  background: #c8ced6;
  box-shadow: none;
  animation: packetTravel 10s ease-in-out 2s infinite;
}

.packet-3 {
  top: 1190px;
  left: 45px;
  background: #b7c0cb;
  box-shadow: none;
  animation: packetTravel 9s ease-in-out 4s infinite;
}

@keyframes packetTravel {
  0% { transform: translateY(0); opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translateY(350px); opacity: 0; }
}

/* ==========================================================================
   Page Container
   ========================================================================== */
.page-container {
  position: relative;
  z-index: 3;
  max-width: 1220px;
  margin: 0 auto;
  padding: 24px 30px 80px;
}

/* ==========================================================================
   1. Top Navigation Bar (Identical to Image)
   ========================================================================== */
.navbar-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 28px;
  border-radius: 9999px;
  background: rgba(30, 56, 56, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  margin-bottom: 50px;
}

/* Right: Brand Section */
.nav-brand-section {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-text-block {
  display: flex;
  flex-direction: column;
  text-align: right;
}

.brand-title {
  font-family: var(--font-latin);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-pure);
}

.brand-desc {
  font-size: 0.74rem;
  color: var(--text-sub);
  font-weight: 500;
}

.brand-official-logo {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  padding: 1px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.brand-official-logo:hover {
  transform: none;
  box-shadow: none;
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.brand-hex-logo {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #1c1f26;
  padding: 2px;
  box-shadow: none;
}

.hex-inner {
  width: 100%;
  height: 100%;
  background: #0d1224;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hex-brackets {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  font-size: 1rem;
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: var(--ink);
}

/* Center: Navigation Capsule */
.nav-links-capsule {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  padding: 4px 6px;
  border-radius: 9999px;
  border: 1px solid var(--line);
  gap: 4px;
}

.nav-capsule-item {
  color: var(--text-sub);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 9999px;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
}

.nav-capsule-item:hover {
  color: var(--text-pure);
  background: rgba(255, 255, 255, 0.06);
}

.nav-capsule-item.active {
  color: var(--text-pure);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid transparent;
  box-shadow: none;
}

/* Left: Official Portal Button & Language Switcher */
.nav-cta-section {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 9999px;
  background: transparent;
  border: 1px solid var(--line-strong);
  box-shadow: none;
  color: var(--ink);
  font-family: var(--font-latin), var(--font-primary);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  outline: none;
}

.lang-switch-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: none;
  color: var(--text-pure);
  transform: none;
}

.lang-switch-btn .lang-globe {
  font-size: 0.95rem;
  line-height: 1;
}

.official-portal-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: 9999px;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 600;
  background: transparent;
  border: 1px solid var(--line-strong);
  box-shadow: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.official-portal-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.22);
  transform: none;
  box-shadow: none;
  color: var(--text-pure);
}

.portal-globe-icon {
  width: 17px;
  height: 17px;
  color: var(--ink);
}

/* ==========================================================================
   2. Hero Section (Exact Glowing Purple Headline)
   ========================================================================== */
.hero-centerpiece {
  text-align: center;
  padding: 20px 20px 65px;
  position: relative;
}

.hero-top-capsule {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 18px;
  border-radius: 9999px;
  background: transparent;
  border: 1px solid var(--line-strong);
  box-shadow: none;
  margin-bottom: 24px;
}

.pulsing-purple-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c8ced6;
  box-shadow: none;
  animation: none;
}

@keyframes pulseDot {
  0% { transform: scale(0.9); opacity: 0.6; }
  100% { transform: scale(1.2); opacity: 1; }
}

.capsule-caption {
  font-size: 0.84rem;
  color: var(--ink);
  font-weight: 600;
}

.hero-headline {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.text-white,
.text-neon-purple,
.text-neon-purple-large {
  color: var(--text-pure);
}

.text-neon-purple-large {
  display: inline-block;
  font-size: 3rem;
  margin-top: 4px;
}

.hero-subtext {
  font-size: 1.05rem;
  color: var(--text-sub);
  max-width: 740px;
  margin: 0 auto;
  line-height: 1.8;
  font-weight: 400;
}

.subtext-company {
  color: var(--ink);
  font-weight: 600;
  font-size: 1.1rem;
  display: inline-block;
  margin-top: 6px;
}

/* Hero Calls to Action */
.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.hero-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  border-radius: 9999px;
  background: #f3f4f6;
  color: #14171c;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: none;
  transition: background 0.2s ease, transform 0.2s ease;
  min-height: 46px;
}

.hero-btn-primary:hover {
  transform: translateY(-1px);
  background: #ffffff;
  box-shadow: none;
  color: #14171c;
}

.hero-btn-icon {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.hero-btn-primary:hover .hero-btn-icon {
  transform: translateY(3px);
}

.hero-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 9999px;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  backdrop-filter: blur(12px);
  box-shadow: none;
  transition: background 0.2s ease, border-color 0.2s ease;
  min-height: 46px;
}

.hero-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--text-pure);
  transform: none;
  box-shadow: none;
}

/* ==========================================================================
   3. Suite Sections Shared Header & Grid
   ========================================================================== */
.suite-section {
  margin-bottom: 75px;
  position: relative;
}

/* Section Header Bar */
.suite-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
  padding: 0 4px;
}

.suite-title-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.suite-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.suite-icon-box svg {
  width: 20px;
  height: 20px;
}

.suite-heading {
  font-size: 1.38rem;
  font-weight: 700;
  color: var(--text-pure);
}

.suite-title-text-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.suite-description {
  font-size: 0.92rem;
  color: var(--text-sub);
  line-height: 1.55;
  max-width: 680px;
}

/* Hub Badges (Left Side in RTL) */
.suite-hub-badge {
  font-family: var(--font-latin);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 18px;
  border-radius: 9999px;
  letter-spacing: 0.6px;
  background: rgba(30, 56, 56, 0.94);
  backdrop-filter: blur(10px);
}

.suite-blue .suite-icon-box svg,
.suite-cyan .suite-icon-box svg,
.suite-green .suite-icon-box svg,
.suite-amber .suite-icon-box svg {
  color: var(--ink);
}

.hub-corporate,
.hub-mobility,
.hub-edtech,
.hub-productivity {
  color: var(--text-sub);
  border: 1px solid var(--line-strong);
  box-shadow: none;
  letter-spacing: 0.2px;
  font-weight: 600;
}

/* ==========================================================================
   4. Grids Layouts (3, 2, 4 Cards)
   ========================================================================== */
.cards-layout {
  display: grid;
  gap: 26px;
}

.layout-3 {
  grid-template-columns: repeat(3, 1fr);
}

.layout-2 {
  grid-template-columns: repeat(2, 1fr);
}

.layout-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* ==========================================================================
   5. Cyber Folder Cards with Accurate Left Top-Tab & Neon Rim
   ========================================================================== */
.glow-folder-card {
  position: relative;
  border-radius: 20px;
  transform-style: preserve-3d;
  perspective: 1000px;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.3s ease;
}

/* Top Folder Tab (Positioned on the Left Side as in Image) */
.card-folder-tab {
  position: absolute;
  top: -24px;
  left: 24px;
  width: 105px;
  height: 26px;
  background: var(--canvas-card-bg);
  border-radius: 12px 12px 0 0;
  z-index: 2;
  transition: all 0.3s ease;
}

/* 3D Asset Container Sitting on Tab */
.tab-asset-3d {
  position: absolute;
  top: -24px;
  left: 10px;
  width: 70px;
  height: 70px;
  pointer-events: none;
  z-index: 4;
  transform-style: preserve-3d;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.6));
}

.svg-3d-asset {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.glow-folder-card:hover .tab-asset-3d {
  transform: translateY(-8px) scale(1.15) rotate(-4deg);
}

/* Card Main Glass Body */
.folder-body-content {
  position: relative;
  background: var(--canvas-card-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 20px;
  padding: 26px 24px 20px;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.45);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Sheen Light Reflection */
.folder-body-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 250%;
  height: 100%;

  pointer-events: none;
  transform: translateZ(25px);
  transition: transform 0.6s ease;
}

.glow-folder-card:hover .folder-body-content::before {
  transform: translateX(45%) translateZ(25px);
}

/* Dot Grid inside Card Body */
.folder-body-content::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 16px 16px;
  pointer-events: none;
  opacity: 0.6;
}

/* Card Top Row with Icon Chip */
.card-chip-row {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 14px;
  position: relative;
  z-index: 3;
}

.card-neon-chip {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.card-neon-chip svg {
  width: 22px;
  height: 22px;
}

.glow-folder-card:hover .card-neon-chip {
  transform: scale(1.1) translateZ(30px);
}

/* Card Typography */
.card-headline {
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--text-pure);
  margin-bottom: 10px;
  line-height: 1.42;
  position: relative;
  z-index: 3;
}

.card-summary {
  font-size: 0.94rem;
  color: var(--text-sub);
  line-height: 1.68;
  margin-bottom: 20px;
  flex-grow: 1;
  position: relative;
  z-index: 3;
}

/* Card Action Bar (Bottom Row) */
.card-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 15px;
  position: relative;
  z-index: 3;
}

.card-pill-tag {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
}

.card-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  min-height: 38px;
}

.btn-arrow {
  font-size: 1rem;
  transition: transform 0.3s ease;
  display: inline-block;
}

.glow-folder-card:hover .btn-arrow {
  transform: translate(-3px, -3px);
}

.theme-blue .card-folder-tab,
.theme-cyan .card-folder-tab,
.theme-green .card-folder-tab,
.theme-amber .card-folder-tab {
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
  border-right: 1px solid var(--line-strong);
  box-shadow: none;
}

.theme-blue .folder-body-content,
.theme-cyan .folder-body-content,
.theme-green .folder-body-content,
.theme-amber .folder-body-content {
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.theme-blue .card-neon-chip,
.theme-cyan .card-neon-chip,
.theme-green .card-neon-chip,
.theme-amber .card-neon-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--ink);
  box-shadow: none;
}

.theme-blue .card-pill-tag,
.theme-cyan .card-pill-tag,
.theme-green .card-pill-tag,
.theme-amber .card-pill-tag {
  color: var(--text-sub);
  border: 1px solid var(--line);
}

.theme-blue .card-link-btn,
.theme-cyan .card-link-btn,
.theme-green .card-link-btn,
.theme-amber .card-link-btn {
  color: var(--ink);
}

.theme-blue:hover .folder-body-content,
.theme-cyan:hover .folder-body-content,
.theme-green:hover .folder-body-content,
.theme-amber:hover .folder-body-content {
  border-color: var(--line-strong);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.34);
}

/* ==========================================================================
   6. Footer (Exact Match)
   ========================================================================== */
.system-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px 10px 10px;
  border-top: 1px solid var(--line);
  margin-top: 40px;
  color: var(--text-muted);
  font-size: 0.86rem;
}

.footer-brands-row {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-latin);
  font-weight: 600;
  color: var(--text-sub);
}

.footer-brand-link {
  color: var(--text-sub);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-brand-link:hover {
  color: var(--text-pure);
}

.footer-smartdev-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-pure);
  text-decoration: none;
  font-weight: 700;
  transition: color 0.3s ease, transform 0.3s ease;
}

.footer-smartdev-link:hover {
  color: var(--text-pure);
  transform: none;
}

.footer-logo-img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: none;
}

.footer-divider {
  color: rgba(255, 255, 255, 0.25);
}

.footer-legal-copy {
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* ==========================================================================
   7. Interactive Holographic Modal Dialog
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(16, 32, 32, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s ease;
  padding: 20px;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-dialog-box {
  background: #1e3838;
  border: 1px solid var(--line-strong);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  border-radius: 24px;
  max-width: 580px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  padding: 36px;
  position: relative;
  transform: scale(0.9) translateY(20px);
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-backdrop.active .modal-dialog-box {
  transform: scale(1) translateY(0);
}

.modal-dismiss-btn {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 5;
}

.modal-dismiss-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
}

.modal-dialog-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.modal-dialog-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  box-shadow: none;
}

.modal-dialog-icon svg {
  width: 28px;
  height: 28px;
}

.modal-badge-status {
  font-size: 0.8rem;
  color: var(--text-sub);
  font-weight: 600;
  text-transform: none;
}

.modal-dialog-title {
  font-size: 1.5rem;
  color: var(--text-pure);
  font-weight: 800;
}

.modal-dialog-description {
  font-size: 0.98rem;
  color: var(--ink);
  line-height: 1.75;
  margin-bottom: 20px;
}

.modal-connectivity-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 0.85rem;
  color: var(--text-sub);
  margin-bottom: 24px;
}

.pulse-indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c8ced6;
  box-shadow: none;
  animation: none;
}

.modal-capabilities-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 28px;
}

.capability-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.84rem;
  color: var(--text-sub);
  display: flex;
  align-items: center;
  gap: 8px;
}

.capability-pill .check-mark {
  color: var(--ink);
  font-weight: bold;
}

.modal-dialog-footer {
  text-align: left;
}

.modal-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  background: #f3f4f6;
  border: none;
  border-radius: 12px;
  color: #14171c;
  font-family: var(--font-arabic);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: none;
  transition: background 0.2s ease;
}

.modal-action-btn:hover {
  transform: none;
  background: #ffffff;
  box-shadow: none;
}

/* Desktop Defaults for Mobile Trigger & Drawer CTA */
.mobile-menu-btn {
  display: none;
}

.mobile-drawer-cta {
  display: none;
}

/* ==========================================================================
   Responsive Viewports & Mobile Menu Drawer
   ========================================================================== */
@media (max-width: 1080px) {
  .hero-headline { font-size: 2.8rem; }
  .text-neon-purple-large { font-size: 3.2rem; }
  .layout-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 920px) {
  /* Sticky Single-Row Mobile Navbar */
  .navbar-wrapper {
    position: sticky;
    top: 12px;
    z-index: 995;
    padding: 10px 18px;
    border-radius: 9999px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 35px;
    background: rgba(30, 56, 56, 0.96);
  }

  .nav-brand-section {
    text-decoration: none;
    gap: 10px;
  }

  .brand-title {
    font-size: 1.1rem;
  }

  .brand-desc {
    font-size: 0.68rem;
  }

  .brand-official-logo {
    width: 38px;
    height: 38px;
  }

  /* Hide Desktop Buttons on Mobile Header */
  .desktop-portal-btn,
  .desktop-lang-btn {
    display: none !important;
  }

  /* Show Mobile Hamburger Toggle */
  .mobile-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line-strong);
    box-shadow: none;
    cursor: pointer;
    gap: 5px;
    padding: 0;
    transition: all 0.3s ease;
    z-index: 1001;
  }

  .mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.22);
  }

  .ham-bar {
    width: 20px;
    height: 2px;
    background: #d5dbe3;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
    pointer-events: none;
  }

  .mobile-menu-btn.is-active .bar-1 {
    transform: translateY(7px) rotate(45deg);
    background: #f3f4f6;
  }
  .mobile-menu-btn.is-active .bar-2 {
    opacity: 0;
    transform: scaleX(0);
  }
  .mobile-menu-btn.is-active .bar-3 {
    transform: translateY(-7px) rotate(-45deg);
    background: #f3f4f6;
  }

  /* Mobile Glass Drawer */
  .nav-links-capsule {
    position: absolute;
    top: calc(100% + 14px);
    left: 0;
    right: 0;
    width: 100%;
    background: #1e3838;
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid var(--line-strong);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    border-radius: 24px;
    padding: 16px 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-12px);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
  }

  .nav-links-capsule.mobile-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-capsule-item {
    width: 100%;
    justify-content: flex-start;
    padding: 12px 18px;
    font-size: 0.94rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav-capsule-item:hover,
  .nav-capsule-item.active {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.14);
  }

  .mobile-drawer-cta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 6px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }

  .mobile-lang-btn {
    width: 100%;
    justify-content: center;
    padding: 11px;
    font-size: 0.9rem;
    border-radius: 14px;
  }

  .mobile-portal-btn {
    width: 100%;
    justify-content: center;
    padding: 12px;
    font-size: 0.92rem;
    border-radius: 14px;
    background: transparent;
  }

  /* Layout Adaptations */
  .layout-3, .layout-2, .layout-4 {
    grid-template-columns: 1fr;
  }

  .circuit-bus-line {
    display: none;
  }

  .hero-centerpiece {
    padding: 15px 10px 45px;
  }

  .hero-headline {
    font-size: 2.3rem;
  }

  .text-neon-purple-large {
    font-size: 2.7rem;
  }

  .hero-subtext {
    font-size: 0.95rem;
    line-height: 1.7;
  }

  .suite-header-bar {
    flex-wrap: wrap;
    gap: 12px;
  }

  .system-footer {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .footer-brands-row {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .page-container {
    padding: 16px 14px 60px;
  }

  .hero-headline {
    font-size: 1.85rem;
  }

  .text-neon-purple-large {
    font-size: 2.1rem;
  }

  .folder-body-content {
    padding: 22px 16px 18px;
    min-height: auto;
  }

  .card-folder-tab {
    left: 16px;
    width: 90px;
  }

  .tab-asset-3d {
    left: 4px;
    transform: scale(0.85);
  }

  .glow-folder-card:hover .tab-asset-3d {
    transform: translateY(-4px) scale(0.95);
  }

  .modal-dialog-box {
    padding: 24px 18px;
  }

  .modal-capabilities-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   LTR (English Mode) Overrides
   ========================================================================== */
html[dir="ltr"],
html[dir="ltr"] body {
  direction: ltr !important;
  text-align: left;
  font-family: var(--font-latin), system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  letter-spacing: -0.01em;
}

html[dir="ltr"] .hero-headline {
  letter-spacing: -0.03em;
}

html[dir="ltr"] .hero-subtext {
  letter-spacing: 0;
}

/* Mirrored Card Folder Tab & 3D Asset for English LTR */
html[dir="ltr"] .card-folder-tab {
  left: auto;
  right: 24px;
}

html[dir="ltr"] .tab-asset-3d {
  left: auto;
  right: 10px;
}

@media (max-width: 480px) {
  html[dir="ltr"] .card-folder-tab {
    left: auto;
    right: 16px;
  }
  html[dir="ltr"] .tab-asset-3d {
    left: auto;
    right: 4px;
  }
}

html[dir="ltr"] .card-headline,
html[dir="ltr"] .card-summary {
  text-align: left;
}

html[dir="ltr"] .card-chip-row {
  justify-content: flex-start;
}

html[dir="ltr"] .glow-folder-card:hover .btn-arrow {
  transform: translate(3px, -3px);
}

html[dir="ltr"] .brand-text-block {
  text-align: left;
}

html[dir="ltr"] .nav-brand-section {
  flex-direction: row-reverse;
}

/* Modal Dialog LTR Adjustments */
html[dir="ltr"] .modal-dialog-box {
  text-align: left;
}

html[dir="ltr"] .modal-dismiss-btn {
  left: auto;
  right: 20px;
}

html[dir="ltr"] .modal-dialog-header {
  flex-direction: row;
}

html[dir="ltr"] .modal-dialog-description {
  text-align: left;
}

html[dir="ltr"] .modal-dialog-footer {
  text-align: right;
}

html[dir="ltr"] .modal-action-btn:hover span:last-child {
  transform: translate(3px, -3px);
}

/* ==========================================================================
   Accessibility Enhancements: Focus States & Reduced Motion
   ========================================================================== */
:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.55);
  outline-offset: 3px;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.55);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .circuit-spine {
    animation: none !important;
  }
  .c-node {
    animation: none !important;
  }
  .pulsing-purple-dot,
  .pulse-indicator-dot {
    animation: none !important;
  }
  .energy-packet {
    display: none !important;
  }
}
