/* ==============================================================================
   HALAL-AMR ENTERPRISE - PAK-LLM SIGNATURE DESIGN SYSTEM & PALETTE
   Identical theme, glassmorphism, typography, and glow physics as pak-llm.com
   ============================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700;800&display=swap');

:root {
  /* Pak-LLM Core Theme Palette */
  --background: #030708;
  --foreground: #ffffff;
  --card-bg: rgba(15, 23, 42, 0.65);
  --card-border: rgba(16, 185, 129, 0.14);
  --text-muted: #cbd5e1;
  --text-dim: #94a3b8;
  --border-muted: #1e293b;
  --nav-bg: rgba(3, 7, 8, 0.85);
  --nav-border: rgba(16, 185, 129, 0.12);
  --panel-glow: rgba(16, 185, 129, 0.08);
  --sub-card-bg: rgba(3, 7, 8, 0.7);

  /* Emerald Spectrum */
  --color-emerald-400: #34d399;
  --color-emerald-500: #10b981;
  --color-emerald-600: #059669;
  --color-emerald-950: #022c22;
  --halal-emerald: #10b981;
  --halal-emerald-glow: rgba(16, 185, 129, 0.35);

  /* Pak-LLM Gold / Amber Accents */
  --halal-gold: #eab308;
  --halal-gold-glow: rgba(234, 179, 8, 0.3);
  --accent-cyan: #38bdf8;
  --nonhalal-red: #ef4444;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Outfit', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

html {
  max-width: 100vw;
  overflow-x: hidden;
  scroll-behavior: smooth;
  background-color: var(--background);
}

body, body.portal-body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif !important;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom Emerald Scrollbars matching pak-llm */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: var(--background);
}
::-webkit-scrollbar-thumb {
  background: var(--color-emerald-500);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-emerald-400);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: inherit;
  letter-spacing: -0.02em;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Subtle architectural grid background from Pak-LLM */
.bg-grid-subtle {
  background-image: radial-gradient(rgba(16, 185, 129, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Text Gradient from Pak-LLM */
.text-gradient-pro {
  background: linear-gradient(135deg, #ffffff 0%, #34d399 50%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Badge Pro from Pak-LLM */
.badge-pro {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.85rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.28);
  color: #34d399;
  font-family: var(--font-mono);
}

/* ==============================================================================
   STICKY NAVBAR (HIGH-CONTRAST & MODERN PILL TYPOGRAPHY)
   ============================================================================== */
.portal-nav {
  position: sticky !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  z-index: 9999 !important;
  background: #030708 !important;
  border-bottom: 1.5px solid rgba(16, 185, 129, 0.35) !important;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.95);
  padding: 14px 0;
  transition: all 0.3s ease;
}

.portal-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-portal {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-portal .brand-logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(16, 185, 129, 0.6));
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
  flex-shrink: 0;
}

.brand-portal:hover .brand-logo-img {
  transform: scale(1.08) rotate(-2deg);
  filter: drop-shadow(0 0 18px rgba(234, 179, 8, 0.75));
}

.brand-portal .brand-text-col {
  display: flex;
  flex-direction: column;
}

.brand-portal .brand-title {
  font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: 1.35rem !important;
  font-weight: 900 !important;
  letter-spacing: -0.02em;
  color: #ffffff !important;
  line-height: 1.15;
}

.brand-portal .brand-title span {
  color: #10b981 !important;
  font-weight: 900 !important;
  letter-spacing: 0.02em;
}

.brand-portal .brand-tagline {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: 0.76rem !important;
  font-weight: 550 !important;
  color: #94a3b8 !important;
  letter-spacing: 0.01em;
  margin-top: 3px;
}

.nav-links-menu {
  display: flex;
  align-items: center;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link-item a {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  font-size: 0.92rem !important;
  font-weight: 600 !important;
  color: #cbd5e1 !important;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-block;
}

.nav-link-item a:hover {
  color: #ffffff !important;
  background: rgba(16, 185, 129, 0.18) !important;
  border-color: rgba(16, 185, 129, 0.45) !important;
  transform: translateY(-1px);
}

.nav-link-item a.active {
  color: #34d399 !important;
  background: rgba(16, 185, 129, 0.25) !important;
  border-color: #10b981 !important;
  font-weight: 700 !important;
}

.nav-actions-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-app-launch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #059669 0%, #10b981 50%, #047857 100%) !important;
  color: #ffffff !important;
  padding: 10px 22px;
  border-radius: 9999px;
  text-decoration: none;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  font-family: 'Outfit', 'Inter', sans-serif !important;
  letter-spacing: 0.02em;
  box-shadow: 0 0 22px rgba(16, 185, 129, 0.45);
  transition: all 0.25s ease;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.btn-app-launch:hover {
  background: linear-gradient(135deg, #10b981 0%, #34d399 100%) !important;
  box-shadow: 0 0 32px rgba(16, 185, 129, 0.7);
  color: #020617 !important;
  transform: translateY(-1px);
}

.btn-app-launch .pulse-dot {
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  animation: pulseBeacon 1.8s infinite;
}

@keyframes pulseBeacon {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.4); opacity: 1; box-shadow: 0 0 10px #34d399; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

/* ==============================================================================
   HERO SECTION (100% OPAQUE, HIGH-CONTRAST TYPOGRAPHY & VIDEO BACKGROUND)
   ============================================================================== */
.hero-section {
  position: relative;
  padding: 125px 0 100px 0;
  overflow: hidden;
  background-color: #030708;
  z-index: 5;
}

.hero-section .container {
  position: relative !important;
  z-index: 50 !important;
}

.hero-content {
  position: relative !important;
  z-index: 50 !important;
  text-align: center;
  max-width: 980px;
  margin: 0 auto;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(3, 7, 8, 0.95) !important;
  border: 1.5px solid #10b981 !important;
  padding: 8px 24px;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #34d399 !important;
  margin-bottom: 28px;
  font-family: 'JetBrains Mono', monospace !important;
  box-shadow: 0 0 24px rgba(16, 185, 129, 0.45), 0 4px 12px rgba(0, 0, 0, 0.9);
  opacity: 1 !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hero-title {
  font-family: 'Outfit', 'Inter', -apple-system, sans-serif !important;
  font-size: 3.6rem !important;
  font-weight: 900 !important;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  color: #ffffff !important;
  opacity: 1 !important;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 1), 0 2px 10px #000000, 0 0 4px #000000 !important;
}

.hero-title .highlight-emerald {
  color: #10b981 !important;
  -webkit-text-fill-color: #10b981 !important;
  background: none !important;
  opacity: 1 !important;
  font-weight: 900 !important;
  text-shadow: 0 0 28px rgba(16, 185, 129, 0.9), 0 4px 20px rgba(0, 0, 0, 1) !important;
}

.hero-subtitle {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: 1.25rem !important;
  color: #ffffff !important;
  opacity: 1 !important;
  line-height: 1.7;
  margin-bottom: 42px;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 500 !important;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 1), 0 1px 4px #000000 !important;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 55px;
  flex-wrap: wrap;
  position: relative !important;
  z-index: 50 !important;
}

.btn-primary-hero {
  background: #10b981 !important;
  color: #020617 !important;
  padding: 14px 32px;
  border-radius: 9999px;
  font-size: 1rem;
  font-weight: 800 !important;
  font-family: 'Outfit', 'Inter', sans-serif !important;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  opacity: 1 !important;
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.75), 0 4px 15px rgba(0, 0, 0, 0.8) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
}

.btn-primary-hero:hover {
  background: #34d399 !important;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 42px rgba(16, 185, 129, 0.9), 0 6px 20px rgba(0, 0, 0, 0.9) !important;
  color: #020617 !important;
}

.btn-secondary-hero {
  background: rgba(15, 23, 42, 0.95) !important;
  border: 1.5px solid #10b981 !important;
  color: #ffffff !important;
  opacity: 1 !important;
  padding: 14px 28px;
  border-radius: 9999px;
  font-size: 0.95rem;
  font-weight: 700 !important;
  font-family: 'Outfit', 'Inter', sans-serif !important;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8) !important;
  transition: all 0.25s ease;
}

.btn-secondary-hero:hover {
  background: rgba(16, 185, 129, 0.25) !important;
  border-color: #34d399 !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.5) !important;
}

.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  background: rgba(3, 7, 8, 0.95) !important;
  border: 1.5px solid rgba(16, 185, 129, 0.45) !important;
  border-radius: var(--radius-xl);
  padding: 28px 20px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.95), 0 0 30px rgba(16, 185, 129, 0.25) !important;
  position: relative !important;
  z-index: 50 !important;
  opacity: 1 !important;
  margin-top: 24px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-right: 1px solid rgba(16, 185, 129, 0.2);
}

.stat-item:last-child {
  border-right: none;
}

.stat-item .stat-value {
  font-family: 'Outfit', 'Inter', sans-serif !important;
  font-size: 2.4rem;
  font-weight: 900 !important;
  color: #34d399 !important;
  opacity: 1 !important;
  text-shadow: 0 0 16px rgba(16, 185, 129, 0.5);
}

.stat-item .stat-label {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: 0.85rem;
  color: #f1f5f9 !important;
  opacity: 1 !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em;
}


/* ==============================================================================
   SECTION HEADERS
   ============================================================================== */
.section-pad {
  padding: 95px 0;
  position: relative;
}

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 60px auto;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-emerald-400);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  background: rgba(16, 185, 129, 0.1);
  padding: 4px 12px;
  border-radius: 9999px;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.section-title {
  font-size: 2.45rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ==============================================================================
   FEATURES GRID (Glass Card Pro)
   ============================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-muted);
  border-radius: 16px;
  padding: 34px 28px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: 0 16px 36px -4px rgba(0, 0, 0, 0.6), 0 0 24px rgba(16, 185, 129, 0.12);
  background: rgba(15, 23, 42, 0.85);
}

.feature-icon-wrap {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  margin-bottom: 22px;
}

.feature-icon-wrap.gold {
  background: rgba(234, 179, 8, 0.12);
  border-color: rgba(234, 179, 8, 0.3);
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.feature-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
  flex: 1;
}

.feature-tech-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-emerald-400);
  background: rgba(16, 185, 129, 0.08);
  padding: 5px 10px;
  border-radius: 6px;
  align-self: flex-start;
  border: 1px solid rgba(16, 185, 129, 0.22);
}

/* ==============================================================================
   ABOUT SECTION (VISION & MISSION)
   ============================================================================== */
.about-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.about-card {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-muted);
  border-radius: 18px;
  padding: 38px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.about-card:hover {
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), 0 0 25px var(--panel-glow);
}

.about-card.vision {
  border-top: 4px solid var(--color-emerald-500);
}

.about-card.mission {
  border-top: 4px solid var(--halal-gold);
}

.about-header-icon {
  font-size: 2.4rem;
  margin-bottom: 18px;
}

.about-card-title {
  font-size: 1.55rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: #ffffff;
}

.about-card-p {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 22px;
}

.about-quote {
  background: rgba(3, 7, 8, 0.7);
  border-left: 3px solid var(--color-emerald-500);
  padding: 14px 20px;
  border-radius: 0 10px 10px 0;
  font-size: 0.88rem;
  font-style: italic;
  color: var(--text-muted);
}

.about-quote.gold { border-left-color: var(--halal-gold); }

.pillars-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 36px;
}

.pillar-item {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-muted);
  padding: 22px;
  border-radius: 12px;
  transition: all 0.25s ease;
}

.pillar-item:hover {
  border-color: rgba(16, 185, 129, 0.3);
  transform: translateY(-2px);
}

.pillar-item h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-emerald-400);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pillar-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ==============================================================================
   ARCHITECTURE SECTION (DUAL PILLARS)
   ============================================================================== */
.arch-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.arch-box {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-muted);
  border-radius: 18px;
  padding: 34px;
}

.arch-box-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-muted);
}

.arch-box-head .icon {
  font-size: 2.2rem;
}

.arch-box-head h3 {
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
}

.arch-stack-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.arch-item {
  background: rgba(3, 7, 8, 0.65);
  border: 1px solid var(--border-muted);
  padding: 16px 20px;
  border-radius: 10px;
  transition: border-color 0.2s;
}

.arch-item:hover {
  border-color: rgba(16, 185, 129, 0.3);
}

.arch-item-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.arch-item-title {
  font-size: 0.98rem;
  font-weight: 800;
  font-family: var(--font-display);
  color: #ffffff;
}

.arch-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.12);
  color: var(--color-emerald-400);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.arch-badge.blue {
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-cyan);
  border-color: rgba(56, 189, 248, 0.3);
}

.arch-badge.gold {
  background: rgba(234, 179, 8, 0.12);
  color: var(--halal-gold);
  border-color: rgba(234, 179, 8, 0.3);
}

.arch-item-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ==============================================================================
   COMPATIBILITY MATRIX
   ============================================================================== */
.compat-matrix-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.compat-card {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-muted);
  border-radius: 14px;
  padding: 26px 20px;
  text-align: center;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.compat-card:hover {
  border-color: rgba(16, 185, 129, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5), 0 0 18px var(--panel-glow);
}

.compat-icon {
  font-size: 2.3rem;
  margin-bottom: 14px;
}

.compat-card h4 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
}

.compat-card p {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.5;
}

/* ==============================================================================
   CONTACT SECTION
   ============================================================================== */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 44px;
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-muted);
  border-radius: 20px;
  padding: 48px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.6), 0 0 30px var(--panel-glow);
}

.contact-info-col h3 {
  font-size: 1.75rem;
  font-weight: 900;
  margin-bottom: 14px;
  color: #ffffff;
}

.contact-info-col p {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 30px;
}

.contact-meta-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-meta-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.contact-meta-item .icon {
  font-size: 1.3rem;
  color: var(--color-emerald-400);
}

.contact-meta-item strong {
  color: #ffffff;
  font-family: var(--font-display);
}

.contact-form-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group-field label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
  font-family: var(--font-display);
}

.form-group-field input,
.form-group-field select,
.form-group-field textarea {
  background: rgba(3, 7, 8, 0.85);
  border: 1px solid var(--border-muted);
  border-radius: 8px;
  padding: 12px 14px;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  outline: none;
  transition: all 0.2s;
}

.form-group-field input:focus,
.form-group-field select:focus,
.form-group-field textarea:focus {
  border-color: var(--color-emerald-400);
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.25);
}

.btn-contact-submit {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #020617;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 14px 28px;
  border-radius: 9999px;
  font-size: 0.98rem;
  font-weight: 800;
  font-family: var(--font-display);
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.35);
}

.btn-contact-submit:hover {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.6);
  transform: translateY(-2px);
}

.form-status-alert {
  padding: 14px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-family: var(--font-mono);
}

.form-status-alert.success {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid var(--color-emerald-500);
  color: var(--color-emerald-400);
}

/* ==============================================================================
   FOOTER
   ============================================================================== */
.portal-footer {
  background: #020506;
  border-top: 1px solid var(--nav-border);
  padding: 52px 0 34px 0;
  margin-top: 90px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 28px;
}

.footer-left {
  max-width: 420px;
}

.footer-left p {
  font-size: 0.88rem;
  color: var(--text-dim);
  margin-top: 12px;
  line-height: 1.6;
}

.footer-right {
  display: flex;
  gap: 52px;
}

.footer-col h5 {
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 14px;
  font-family: var(--font-display);
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--color-emerald-400);
}

.footer-bottom {
  border-top: 1px solid var(--border-muted);
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-dim);
}




/* ==============================================================================
   KAABA LOGO STYLING
   ============================================================================== */
.brand-logo-img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(16, 185, 129, 0.45));
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
  flex-shrink: 0;
}

.brand-portal:hover .brand-logo-img {
  transform: scale(1.08) rotate(-2deg);
  filter: drop-shadow(0 0 16px rgba(234, 179, 8, 0.65));
}

/* ==============================================================================
   MOBILE NAVIGATION DRAWER & HAMBURGER BUTTON
   ============================================================================== */
.nav-toggle-btn {
  display: none;
  background: transparent;
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-around;
  width: 42px;
  height: 40px;
  transition: all 0.25s ease;
}

.nav-toggle-btn:hover {
  background: rgba(16, 185, 129, 0.1);
  border-color: var(--accent-emerald);
}

.hamburger-bar {
  width: 100%;
  height: 2px;
  background-color: #34d399;
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-toggle-btn.active .hamburger-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle-btn.active .hamburger-bar:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.nav-toggle-btn.active .hamburger-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.mobile-nav-drawer {
  display: none;
  position: fixed;
  top: 73px;
  left: 0;
  width: 100%;
  background: rgba(3, 7, 8, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(16, 185, 129, 0.25);
  padding: 24px 20px 32px 20px;
  z-index: 999;
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.7);
  transform: translateY(-10px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-drawer.open {
  display: block;
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.mobile-nav-links a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.2s;
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active {
  color: #34d399;
  background: rgba(16, 185, 129, 0.12);
}

.mobile-btn-launch {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 12px;
  font-size: 1rem;
}

/* ==============================================================================
   HERO BACKGROUND VIDEO (YOUTUBE EMBED - POSITIONED BEHIND OPAQUE CONTENT)
   ============================================================================== */
.hero-video-container {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  overflow: hidden !important;
  z-index: 1 !important;
  pointer-events: none !important;
}

.hero-video-frame-wrap {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  width: 100vw !important;
  height: 56.25vw !important;
  min-height: 100vh !important;
  min-width: 177.77vh !important;
  transform: translate(-50%, -50%) scale(1.18) !important;
  pointer-events: none !important;
  z-index: 1 !important;
}

.hero-video-iframe {
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
  pointer-events: none !important;
  opacity: 0.5 !important;
  filter: contrast(1.1) brightness(0.9) saturate(1.15) !important;
  transition: opacity 1.2s ease-in-out !important;
}

.hero-video-overlay {
  position: absolute !important;
  inset: 0 !important;
  z-index: 2 !important;
  background: 
    linear-gradient(180deg, rgba(3, 7, 8, 0.5) 0%, rgba(3, 7, 8, 0.3) 30%, rgba(3, 7, 8, 0.75) 80%, #030708 100%),
    radial-gradient(circle at 50% 35%, rgba(3, 7, 8, 0.15) 0%, rgba(3, 7, 8, 0.7) 75%, #030708 100%) !important;
  pointer-events: none !important;
}

.video-overlay-controls {
  position: absolute !important;
  bottom: 22px !important;
  right: 24px !important;
  z-index: 60 !important;
  pointer-events: auto !important;
}

/* ==============================================================================
   SEO / AEO / GEO FAQ & KNOWLEDGE TAXONOMY STYLING
   ============================================================================== */
.aeo-faq-section {
  padding: 85px 0;
  border-top: 1px solid var(--border-muted);
  background: radial-gradient(circle at 50% 10%, rgba(16, 185, 129, 0.04), transparent 70%);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.faq-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  padding: 28px;
  transition: all 0.3s ease;
}

.faq-card:hover {
  border-color: rgba(16, 185, 129, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.faq-question {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.faq-question .q-icon {
  color: var(--color-emerald-400);
  font-size: 1.2rem;
  line-height: 1;
}

.faq-answer {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.taxonomy-section {
  padding: 70px 0;
  border-top: 1px solid var(--border-muted);
  background: #020506;
}

.taxonomy-header {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 36px auto;
}

.taxonomy-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  max-height: 280px;
  overflow-y: auto;
  padding: 20px;
  background: rgba(8, 14, 18, 0.7);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
}

.keyword-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid rgba(16, 185, 129, 0.15);
  padding: 4px 10px;
  border-radius: 4px;
  transition: all 0.2s;
}

.keyword-tag:hover {
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.45);
  background: rgba(16, 185, 129, 0.12);
}

/* ==============================================================================
   COMPREHENSIVE RESPONSIVENESS (TOP 50 SCREEN SIZES WORLDWIDE)
   ============================================================================== */
@media (min-width: 2560px) {
  .container { max-width: 1720px; }
  .hero-title { font-size: 4.2rem; }
  .hero-subtitle { font-size: 1.4rem; max-width: 1100px; }
  .hero-video-frame-wrap { transform: translate(-50%, -50%) scale(1.35); }
}

@media (min-width: 1440px) and (max-width: 2559px) {
  .container { max-width: 1360px; }
  .hero-title { font-size: 3.6rem; }
}

@media (min-width: 993px) and (max-width: 1439px) {
  .container { max-width: 1180px; }
  .hero-title { font-size: 3.1rem; }
}

@media (max-width: 992px) {
  .nav-links-menu { display: none; }
  .nav-toggle-btn { display: flex; }
  .features-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .about-wrap, .arch-grid, .contact-wrap { grid-template-columns: 1fr; }
  .compat-matrix-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .stat-item { border-right: none; }
  .hero-title { font-size: 2.6rem; }
  .faq-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .portal-nav { padding: 10px 0; }
  .brand-portal .brand-title { font-size: 1.05rem; }
  .brand-portal .brand-tagline { display: none; }
  .nav-actions-wrap .btn-app-launch { display: none; }
  .hero-section { padding: 75px 0 60px 0; }
  .hero-title { font-size: 2.15rem; }
  .hero-subtitle { font-size: 1.02rem; margin-bottom: 28px; }
  .hero-cta-group { flex-direction: column; width: 100%; gap: 12px; }
  .hero-cta-group a { width: 100%; justify-content: center; }
  .hero-stats-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .compat-matrix-grid { grid-template-columns: 1fr; }
  .pillars-row { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-right { flex-direction: column; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 14px; text-align: center; }
  .faq-grid { grid-template-columns: 1fr; }
  .video-overlay-controls { bottom: 14px; right: 14px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.75rem; letter-spacing: -0.02em; }
  .hero-pill-badge { font-size: 0.72rem; padding: 4px 12px; flex-wrap: wrap; justify-content: center; }
  .hero-subtitle { font-size: 0.92rem; }
  .stat-item .stat-value { font-size: 1.75rem; }
  .brand-logo-img { width: 32px; height: 32px; }
  .card-pro { padding: 20px; }
  .faq-card { padding: 20px; }
  .taxonomy-cloud { max-height: 220px; padding: 12px; }
}


/* ==============================================================================
   FORMSPREE ALERTS, FIELD VALIDATION & SITEMAP STYLING
   ============================================================================== */
.alert-banner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
  font-size: 0.92rem;
  line-height: 1.5;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.alert-success {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #a7f3d0;
}

.alert-success h4 {
  color: #34d399;
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.alert-error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

.alert-error h4 {
  color: #f87171;
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.alert-icon {
  font-size: 1.4rem;
  line-height: 1;
}

.field-error {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #f87171;
  margin-top: 5px;
  min-height: 16px;
}

.form-group input.invalid,
.form-group textarea.invalid,
.form-group select.invalid {
  border-color: #ef4444 !important;
  background: rgba(239, 68, 68, 0.05) !important;
}

.form-group input.valid,
.form-group textarea.valid {
  border-color: rgba(16, 185, 129, 0.5) !important;
}

.req {
  color: #f87171;
}

.btn-spinner {
  display: inline-block;
  animation: spin 1s linear infinite;
  margin-right: 6px;
}

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

/* SITEMAP STYLING */
.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  margin-top: 40px;
}

.sitemap-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  transition: all 0.3s ease;
}

.sitemap-card:hover {
  border-color: rgba(16, 185, 129, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.sitemap-card-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border-muted);
  padding-bottom: 12px;
}

.sitemap-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sitemap-links li a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.sitemap-links li a:hover {
  color: #34d399;
  transform: translateX(4px);
}

.sitemap-links li a .link-arrow {
  color: var(--accent-emerald);
  font-size: 0.8rem;
}

.sitemap-links li .sitemap-item-desc {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 2px;
  padding-left: 18px;
}
