/* Pan Africa Business (PAB Tech) - Design System & Custom Styles */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Noto+Sans+Ethiopic:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  --navy-950: #050c18;
  --navy-900: #0a192f;
  --navy-800: #112240;
  --navy-700: #1a3050;
  --navy-600: #233654;
  --gold-500: #e5a93c;
  --gold-400: #f0b94d;
  --gold-300: #f5cc6e;
  --gold-600: #c48a2a;
  --emerald-500: #10b981;
  --emerald-400: #34d399;
  --emerald-600: #059669;
  --glass-bg: rgba(10, 25, 47, 0.65);
  --glass-border: rgba(229, 169, 60, 0.15);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background-color: var(--navy-950);
  color: #e2e8f0;
  overflow-x: hidden;
  line-height: 1.6;
}

body.amharic-mode {
  font-family: 'Noto Sans Ethiopic', 'Plus Jakarta Sans', sans-serif;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--navy-950);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--gold-500), var(--emerald-500));
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-400);
}

/* Background Grid & Mesh */
.grid-pattern {
  background-image: 
    linear-gradient(rgba(229, 169, 60, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(229, 169, 60, 0.035) 1px, transparent 1px);
  background-size: 50px 50px;
}

.radial-glow {
  background: radial-gradient(circle at 50% 50%, rgba(229, 169, 60, 0.08) 0%, transparent 70%);
}

/* 3D Scene */
#hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: auto;
}

/* Floating Gradient Mesh Orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 1;
}

.orb-1 {
  width: 750px;
  height: 750px;
  background: radial-gradient(circle, rgba(229, 169, 60, 0.15) 0%, transparent 70%);
  top: -200px;
  right: -180px;
  animation: floatOrb1 14s ease-in-out infinite;
}

.orb-2 {
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, transparent 70%);
  bottom: -150px;
  left: -150px;
  animation: floatOrb2 18s ease-in-out infinite alternate;
}

.orb-3 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(229, 169, 60, 0.08) 0%, transparent 70%);
  top: 40%;
  left: 35%;
  animation: floatOrb1 20s ease-in-out infinite reverse;
}

@keyframes floatOrb1 {
  0%, 100% { transform: translateY(0) translateX(0) scale(1); }
  33% { transform: translateY(-35px) translateX(25px) scale(1.05); }
  66% { transform: translateY(20px) translateX(-30px) scale(0.95); }
}

@keyframes floatOrb2 {
  0% { transform: translateY(0) translateX(0); }
  100% { transform: translateY(-40px) translateX(30px); }
}

/* Glassmorphism Classes */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
}

.glass-card {
  background: rgba(10, 25, 47, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
  border-color: rgba(229, 169, 60, 0.4);
  box-shadow: 0 25px 50px -12px rgba(229, 169, 60, 0.18), 0 0 30px rgba(16, 185, 129, 0.06);
  transform: translateY(-4px);
}

.glass-dark {
  background: rgba(5, 12, 24, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* 3D Card Hover System */
.card-3d {
  perspective: 1200px;
}

.card-3d-inner {
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.5s ease;
  transform-style: preserve-3d;
  will-change: transform;
}

.card-3d:hover .card-3d-inner {
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(229, 169, 60, 0.15);
}

/* Glow Utilities */
.glow-gold {
  text-shadow: 0 0 35px rgba(229, 169, 60, 0.4), 0 0 70px rgba(229, 169, 60, 0.2);
}

.glow-emerald {
  text-shadow: 0 0 35px rgba(16, 185, 129, 0.4);
}

/* Nav Link Hover Animation */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-500), var(--emerald-500));
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* 3D Button Effects */
.btn-3d {
  position: relative;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  transform-style: preserve-3d;
}

.btn-3d:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 30px -5px rgba(229, 169, 60, 0.35);
}

.btn-3d:active {
  transform: translateY(0) scale(0.99);
}

/* Scroll Fade-in observer classes */
.fade-up {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Telemetry Wave Divider */
.wave-divider {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  z-index: 2;
}

.wave-divider svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 70px;
}

/* Command Center Terminal Styling */
.terminal-window {
  font-family: 'JetBrains Mono', monospace;
  background: #030811;
  border: 1px solid rgba(229, 169, 60, 0.2);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
}

.terminal-header {
  background: #081224;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Mobile Drawer */
.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu.open {
  transform: translateX(0);
}

/* Product Tag Pill */
.product-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem;
  border-radius: 0.375rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(229, 169, 60, 0.12);
  color: #f5cc6e;
  border: 1px solid rgba(229, 169, 60, 0.25);
}

.product-tag-emerald {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.25);
}

/* Software Product Search Input */
.product-search-input {
  background: rgba(5, 12, 24, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  transition: all 0.3s ease;
}

.product-search-input:focus {
  border-color: var(--gold-500);
  box-shadow: 0 0 15px rgba(229, 169, 60, 0.2);
  outline: none;
}

/* Biometric Fingerprint Pulse */
@keyframes bioPulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.08); opacity: 1; filter: drop-shadow(0 0 12px #10b981); }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.bio-pulse {
  animation: bioPulse 2.2s infinite ease-in-out;
}

/* Amharic specific spacing refinements */
body.amharic-mode h1,
body.amharic-mode h2,
body.amharic-mode h3 {
  letter-spacing: normal !important;
  line-height: 1.28 !important;
}

/* Responsive Guardrails & Multi-Line Text Wrapping Prevention */
.nav-link,
.nav-link span,
.product-filter-btn,
.solution-tab-btn,
.product-tag,
.btn-3d {
  white-space: nowrap !important;
}

/* Prevent unwanted horizontal scroll */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* Product filter button enhanced active & hover styles */
.product-filter-btn,
.solution-tab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
}

.product-filter-btn:hover,
.solution-tab-btn:hover {
  border-color: rgba(229, 169, 60, 0.5);
  color: #fff;
  background: rgba(229, 169, 60, 0.1);
}

.product-filter-btn.active,
.solution-tab-btn.active {
  background: rgba(229, 169, 60, 0.2) !important;
  color: var(--gold-400) !important;
  border-color: rgba(229, 169, 60, 0.5) !important;
  box-shadow: 0 0 15px rgba(229, 169, 60, 0.15);
}

/* Ensure mobile drawer scrolls smoothly */
.mobile-menu {
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

