/* ==========================================================================
   مؤسسة العلامة التنموية للحلول الرقمية وخدمات الأعمال
   Official Corporate Brand Identity & Design System (Navy & Saudi Sand Gold)
   ========================================================================== */

@font-face {
  font-family: 'Muslimah Thin';
  src: url('../fonts/Muslimah-Thin.otf') format('opentype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Official Brand Primary Palette - Corporate Deep Royal Navy & Azure Blue */
  --primary: #0D406F;           /* Official Wordmark Deep Navy */
  --primary-dark: #072545;      /* Deep Midnight Anchor */
  --primary-light: #0C5C95;     /* Official Azure Blue from Middle Wing */
  --primary-azure: #1670B3;     /* Vibrant Tech Blue Accent */
  --primary-glow: rgba(13, 64, 111, 0.4);

  /* Official Brand Secondary Accent - Warm Saudi Executive Sand Gold / Ochre */
  --secondary: #D0A852;         /* Official Wordmark & Arrow Sand Gold */
  --secondary-light: #DFBA6B;   /* Luminous Gold Highlight */
  --secondary-dark: #B8923E;    /* AAA Contrast Gold for Light Mode */
  --secondary-glow: rgba(208, 168, 82, 0.35);

  /* Dark Mode Canvas Tokens (Corporate Midnight Obsidian) */
  --bg-dark: #060F1A;
  --bg-dark-secondary: #0A192B;
  --navy-card: rgba(10, 25, 43, 0.85);
  --border-glass: rgba(208, 168, 81, 0.12);
  --border-glass-hover: rgba(208, 168, 81, 0.4);

  /* Typography Colors - Dark Mode */
  --text-primary: #F8FAFC;
  --text-secondary: #CBD5E1;
  --text-muted: #94A3B8;

  /* Spacing Scale (4/8/16/24/32/48/64px) */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;

  /* Corner Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --radius-pill: 9999px;

  /* Shared Animation & Timing Tokens */
  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Touch Target Minimum (WCAG 2.2 / Apple HIG) */
  --touch-target-min: 44px;
}

/* ==========================================================================
   Base Setup & Typography Pairing (Muslimah Thin for Brand Name, Cairo/Tajawal)
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
  direction: rtl;
  font-size: 16px;
  font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.75;
  min-height: 100vh;
  min-height: 100dvh;
  transition: background-color var(--transition-smooth), color var(--transition-smooth);
}

::selection {
  background: #0D3F70;
  color: #FFFFFF;
}

body.light-theme ::selection {
  background: #D0A851;
  color: #060F1A;
}

/* Authoritative Typography Pairing */
h1, h2, h3, h4, h5, h6,
.font-title,
.section-title,
.stat-counter {
  font-family: 'Cairo', 'Tajawal', sans-serif !important;
  letter-spacing: -0.015em;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
}

p, span, a, input, select, textarea, button, li, label, .font-body {
  font-family: 'Tajawal', 'Cairo', sans-serif;
}

/* Official Brand Name Font: Muslimah Thin Across Entire Website */
.font-muslimah,
.font-muslimah *,
.brand-title,
.brand-title *,
.brand-subtitle,
.hero-main-title,
.hero-main-title *,
.transition-brand-text,
#mobile-drawer .flex.items-center.gap-2\.5 span,
footer .flex.items-center.gap-3 div > div,
footer .pt-8 strong {
  font-family: 'Muslimah Thin', 'Cairo', 'Tajawal', sans-serif !important;
  letter-spacing: normal !important;
}

/* Accessible Focus Ring (WCAG 2.2 AA) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--secondary) !important;
  outline-offset: 3px !important;
}

/* Skip to Content for Keyboard Accessibility (WCAG 2.2 AA) */
.skip-link,
.skip-to-content,
.skip-to-main {
  position: absolute;
  top: -120px;
  right: 16px;
  background: var(--primary);
  color: #FFFFFF !important;
  padding: 12px 24px;
  z-index: 9999;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-family: 'Cairo', sans-serif;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transition: top 0.22s ease;
  text-decoration: none;
}

.skip-link:focus,
.skip-to-content:focus,
.skip-to-main:focus {
  top: 16px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 9px;
}
::-webkit-scrollbar-track {
  background: #060F1A;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #0A5B9A, #D0A851);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #D0A851;
}

/* ==========================================================================
   Top Announcement Bar (Refined & Prestigious)
   ========================================================================== */
.top-announcement-bar {
  background: linear-gradient(90deg, #060F1A 0%, #0A192B 50%, #060F1A 100%);
  border-bottom: 1px solid rgba(208, 168, 81, 0.2);
  font-size: 0.78rem;
  padding: 8px 0;
  transition: all var(--transition-smooth);
}

.top-bar-badge {
  color: #DFBA6B;
  font-weight: 700;
}

.top-bar-divider {
  width: 1px;
  height: 12px;
  background: rgba(255, 255, 255, 0.15);
  display: inline-block;
  vertical-align: middle;
}

.top-bar-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #CBD5E1;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.top-bar-link:hover {
  color: #DFBA6B;
}

/* ==========================================================================
   Main Navbar Header (Modern Floating / Executive Bar)
   ========================================================================== */
.main-navbar-header {
  background: rgba(6, 15, 26, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  transition: all var(--transition-smooth);
}

/* Emblem Wrap */
.navbar-emblem-wrap {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  padding: 3px;
  border-radius: 14px;
  background: rgba(13, 63, 112, 0.25);
  border: 1px solid rgba(208, 168, 81, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-smooth);
}

.group:hover .navbar-emblem-wrap {
  transform: scale(1.05);
  border-color: rgba(208, 168, 81, 0.7);
  box-shadow: 0 0 18px rgba(208, 168, 81, 0.35);
}

/* Brand Text Lockup */
.brand-title {
  color: #FFFFFF;
  line-height: 1.15;
}

.brand-title-accent {
  color: #56A9F0;
}

.brand-subtitle {
  color: #DFBA6B;
  letter-spacing: normal;
  line-height: 1.35;
}

/* Segmented Floating Pill Navigation Bar */
.navbar-pill-container {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 6px;
  background: rgba(10, 25, 43, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  min-height: 38px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 700;
  color: #CBD5E1;
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
}

.nav-link:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.08);
}

/* Active Nav Pill State */
.nav-link.active {
  color: #FFFFFF !important;
  background: linear-gradient(135deg, rgba(13, 63, 112, 0.8) 0%, rgba(10, 91, 154, 0.9) 100%) !important;
  border-color: rgba(208, 168, 81, 0.6) !important;
  box-shadow: 0 2px 14px rgba(10, 91, 154, 0.35);
  font-weight: 800;
}

/* Action Cluster */
.theme-toggle-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 25, 43, 0.8);
  border: 1px solid rgba(208, 168, 81, 0.3);
  color: #DFBA6B;
  cursor: pointer;
  transition: all var(--transition-smooth);
}

.theme-toggle-btn:hover {
  transform: scale(1.08) rotate(15deg);
  border-color: #D0A851;
  box-shadow: 0 0 16px rgba(208, 168, 81, 0.4);
}

.btn-nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  min-height: 42px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #D0A851 0%, #BA923F 100%);
  color: #060F1A !important;
  font-family: 'Cairo', sans-serif;
  font-weight: 900;
  font-size: 0.88rem;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(208, 168, 81, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all var(--transition-smooth);
  cursor: pointer;
}

.btn-nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(208, 168, 81, 0.55);
}

.mobile-hamburger-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 25, 43, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.mobile-hamburger-btn:hover {
  border-color: #D0A851;
  color: #D0A851;
}

/* ==========================================================================
   Mobile Drawer Menu (Luxury Slide-over)
   ========================================================================== */
.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 0.98rem;
  font-weight: 700;
  color: #CBD5E1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.mobile-nav-link:hover {
  background: rgba(10, 91, 154, 0.12);
  color: #56A9F0;
  padding-right: 24px;
}

.mobile-nav-link.active {
  background: linear-gradient(90deg, rgba(13, 63, 112, 0.35), transparent);
  color: #DFBA6B !important;
  font-weight: 900;
  border-right: 4px solid #D0A851;
}

/* ==========================================================================
   Glassmorphism & Cards
   ========================================================================== */
.glass-panel {
  background: rgba(6, 15, 26, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
}

.glass-card {
  background: linear-gradient(135deg, rgba(10, 25, 43, 0.85) 0%, rgba(6, 15, 26, 0.9) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(10, 91, 154, 0.3), transparent 60%, rgba(208, 168, 81, 0.25));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.6;
  transition: opacity var(--transition-smooth);
}

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -15px rgba(10, 91, 154, 0.25), 0 0 25px -5px rgba(208, 168, 81, 0.15);
  border-color: var(--border-glass-hover);
}

.glass-card:hover::before {
  opacity: 1;
}

/* ==========================================================================
   Buttons System
   ========================================================================== */
.btn-primary {
  min-height: var(--touch-target-min);
  position: relative;
  background: linear-gradient(135deg, #0D3F70 0%, #0A5B9A 50%, #1670B3 100%);
  color: #FFFFFF !important;
  font-family: 'Cairo', sans-serif;
  font-weight: 800;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 18px rgba(10, 91, 154, 0.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  overflow: hidden;
  transition: all var(--transition-smooth);
  border: 1px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(10, 91, 154, 0.6);
  background: linear-gradient(135deg, #0A5B9A 0%, #1670B3 100%);
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
}

.btn-gold {
  min-height: var(--touch-target-min);
  background: linear-gradient(135deg, #E0BA67 0%, #D0A851 50%, #B8923E 100%);
  color: #060F1A !important;
  font-family: 'Cairo', sans-serif;
  font-weight: 900;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 18px var(--secondary-glow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all var(--transition-smooth);
  text-decoration: none;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(208, 168, 81, 0.55);
  background: linear-gradient(135deg, #F0CC7A 0%, #E0BA67 100%);
}

.btn-outline {
  min-height: var(--touch-target-min);
  border: 1px solid rgba(208, 168, 81, 0.35);
  background: rgba(10, 25, 43, 0.6);
  backdrop-filter: blur(8px);
  color: #F8FAFC;
  padding: 12px 26px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  transition: all var(--transition-smooth);
  text-decoration: none;
  cursor: pointer;
}

.btn-outline:hover {
  background: rgba(13, 63, 112, 0.3);
  border-color: #D0A851;
  color: #DFBA6B;
  transform: translateY(-2px);
}

/* ==========================================================================
   Page Hero Subpage Banner & Breadcrumbs
   ========================================================================== */
.page-hero-banner {
  padding: 4.5rem 1rem 3.5rem 1rem;
  background-color: #060F1A;
  background-image: 
    radial-gradient(rgba(13, 64, 111, 0.22) 1px, transparent 1px),
    linear-gradient(180deg, rgba(13, 63, 112, 0.35) 0%, rgba(6, 15, 26, 0.98) 100%);
  background-size: 28px 28px, 100% 100%;
  border-bottom: 1px solid rgba(208, 168, 81, 0.15);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.breadcrumb-nav a {
  color: #56A9F0;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.breadcrumb-nav a:hover {
  color: #DFBA6B;
  text-decoration: underline;
}

.breadcrumb-separator {
  color: #64748B;
  font-size: 0.8rem;
  user-select: none;
}

/* ==========================================================================
   Headlines & Authoritative Colors (100% Solid & High-Contrast - No Box Glitch)
   ========================================================================== */
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.7rem);
  font-weight: 900;
  line-height: 1.35;
  color: #FFFFFF;
}

/* Brand Solid Palette Text Classes */
.gold-gradient-text,
.gold-text {
  color: #DFBA6B !important;
  font-weight: 900;
  background: none !important;
  -webkit-text-fill-color: initial !important;
  text-shadow: 0 0 20px rgba(208, 168, 81, 0.3);
}

.emerald-gradient-text,
.emerald-text,
.navy-text,
.azure-text {
  color: #56A9F0 !important;
  font-weight: 900;
  background: none !important;
  -webkit-text-fill-color: initial !important;
  text-shadow: 0 0 20px rgba(10, 91, 154, 0.3);
}

/* Brand Palette Direct Utilities & Legacy Mapping */
.text-brand-navy { color: #0D3F70 !important; }
.text-brand-azure { color: #56A9F0 !important; }
.text-brand-gold { color: #DFBA6B !important; }

.text-teal-400, .text-emerald-400 { color: #56A9F0 !important; }
.bg-teal-500\/15, .bg-teal-500\/10 { background-color: rgba(10, 91, 154, 0.18) !important; }
.border-teal-500\/30 { border-color: rgba(10, 91, 154, 0.35) !important; }
.border-emerald-500\/40, .border-emerald-500\/30 { border-color: rgba(208, 168, 81, 0.35) !important; }
.group:hover .group-hover\:bg-teal-500 { background-color: #0A5B9A !important; }
.group:hover .group-hover\:text-emerald-400 { color: #DFBA6B !important; }

/* Adaptive Section Backgrounds */
.section-alt-1 {
  background-color: #060F1A;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.section-alt-2 {
  background-color: #0A192B;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.section-cta {
  background: linear-gradient(180deg, #060F1A 0%, #0A192B 100%);
  border-top: 1px solid rgba(208, 168, 81, 0.15);
}

.badge-verified {
  background: linear-gradient(90deg, rgba(13, 63, 112, 0.3), rgba(208, 168, 81, 0.2));
  border: 1px solid rgba(208, 168, 81, 0.4);
  color: #DFBA6B;
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.section-title-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #DFBA6B;
  font-family: 'Cairo', sans-serif;
  font-weight: 800;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(208, 168, 81, 0.12);
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(208, 168, 81, 0.3);
}

/* ==========================================================================
   UI/UX Pro Max Motion & Visual Effects System
   ========================================================================== */

/* Top Reading Scroll Progress Bar */
#scroll-progress {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  height: 3.5px;
  background: linear-gradient(90deg, #D0A852 0%, #0C5C95 50%, #0D406F 100%);
  transform-origin: right center;
  transform: scaleX(0);
  z-index: 9999;
  pointer-events: none;
  transition: transform 0.08s ease-out;
  box-shadow: 0 0 10px rgba(208, 168, 82, 0.5);
}

/* Corporate High-Tech Ambient Grid Pattern */
.tech-grid-pattern {
  background-image: 
    radial-gradient(rgba(13, 64, 111, 0.15) 1px, transparent 1px),
    linear-gradient(to right, rgba(13, 64, 111, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(13, 64, 111, 0.04) 1px, transparent 1px);
  background-size: 24px 24px, 48px 48px, 48px 48px;
}

body.light-theme .tech-grid-pattern {
  background-image: 
    radial-gradient(rgba(13, 64, 111, 0.08) 1px, transparent 1px),
    linear-gradient(to right, rgba(13, 64, 111, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(13, 64, 111, 0.03) 1px, transparent 1px);
  background-size: 24px 24px, 48px 48px, 48px 48px;
}

/* Dynamic Spotlight Glare on Glass Cards */
.card-glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle 280px at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(208, 168, 82, 0.18), transparent 80%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
  border-radius: inherit;
}

body.light-theme .card-glare {
  background: radial-gradient(circle 280px at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(12, 92, 149, 0.1), transparent 80%);
}

.glass-card:hover .card-glare {
  opacity: 1;
}

/* Pulsing Radar Status Indicator Dot */
.status-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #D0A852;
  display: inline-block;
  position: relative;
  flex-shrink: 0;
}

.status-pulse-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1.5px solid #D0A852;
  animation: radarPing 2.2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes radarPing {
  0% { transform: scale(0.9); opacity: 1; }
  100% { transform: scale(2.6); opacity: 0; }
}

/* Interactive Ripple Feedback on Click */
.ripple-wave {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: rippleAnimation 0.55s ease-out;
  background-color: rgba(255, 255, 255, 0.35);
  pointer-events: none;
}

@keyframes rippleAnimation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Scroll-triggered Smooth Reveal (Guaranteed 100% Visibility) */
.scroll-reveal {
  opacity: 1 !important;
  transform: translateY(0);
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1), transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.revealed {
  opacity: 1 !important;
  transform: translateY(0);
}

/* ==========================================================================
   Hero Visual Effects, Emblem Motion Graphic & Marquee
   ========================================================================== */
.hero-glow-1 {
  position: absolute;
  top: 5%;
  right: 15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(10, 91, 154, 0.22) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
  animation: floatPulse 9s ease-in-out infinite alternate;
}

.hero-glow-2 {
  position: absolute;
  top: 35%;
  left: 10%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(208, 168, 81, 0.16) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
  animation: floatPulse 11s ease-in-out infinite alternate-reverse;
}

@keyframes floatPulse {
  0% { transform: scale(0.9) translate(0, 0); opacity: 0.7; }
  50% { transform: scale(1.1) translate(25px, -15px); opacity: 1; }
  100% { transform: scale(0.95) translate(-20px, 20px); opacity: 0.8; }
}

/* Hero Logo Motion Graphic Stage (100% Transparent - No Box) */
.emblem-motion-stage {
  position: relative;
  width: 230px;
  height: 230px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

@media (min-width: 640px) {
  .emblem-motion-stage {
    width: 270px;
    height: 270px;
  }
}

.emblem-aura-glow {
  position: absolute;
  inset: 16%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(208, 168, 82, 0.28) 0%, rgba(12, 92, 149, 0.2) 48%, transparent 72%);
  filter: blur(20px);
  pointer-events: none;
  z-index: 0;
  animation: emblemAuraBreath 4.5s ease-in-out infinite alternate;
}

body.light-theme .emblem-aura-glow {
  background: radial-gradient(circle, rgba(208, 168, 82, 0.22) 0%, rgba(13, 64, 111, 0.14) 50%, transparent 72%);
}

@keyframes emblemAuraBreath {
  0% { transform: scale(0.88); opacity: 0.65; }
  100% { transform: scale(1.14); opacity: 1; }
}

.emblem-ripple-ring {
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  border: 1.5px solid rgba(208, 168, 82, 0.45);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  animation: emblemSonarRipple 4.8s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

.emblem-ripple-ring.ripple-2 {
  border-color: rgba(22, 112, 179, 0.45);
  animation-delay: 2.4s;
}

body.light-theme .emblem-ripple-ring {
  border-color: rgba(184, 146, 62, 0.4);
}

body.light-theme .emblem-ripple-ring.ripple-2 {
  border-color: rgba(13, 64, 111, 0.35);
}

@keyframes emblemSonarRipple {
  0% {
    transform: scale(0.75);
    opacity: 0.75;
  }
  100% {
    transform: scale(1.65);
    opacity: 0;
  }
}

.emblem-orbit-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  overflow: visible;
}

.orbit-group-cw {
  transform-origin: 160px 160px;
  animation: orbitSpinCW 28s linear infinite;
}

.orbit-group-ccw {
  transform-origin: 160px 160px;
  animation: orbitSpinCCW 19s linear infinite;
}

.orbit-group-inner {
  transform-origin: 160px 160px;
  animation: orbitSpinCW 14s ease-in-out infinite alternate;
}

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

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

/* Floating Tech Sparks around Emblem */
.tech-spark {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  pointer-events: none;
  z-index: 3;
}

.tech-spark.spark-1 {
  top: 10%;
  right: 12%;
  background: #DFBA6B;
  box-shadow: 0 0 12px #D0A852;
  transform: rotate(45deg);
  animation: sparkFloat 3.6s ease-in-out infinite alternate;
}

.tech-spark.spark-2 {
  bottom: 14%;
  left: 10%;
  background: #1670B3;
  box-shadow: 0 0 12px #0C5C95;
  border-radius: 50%;
  animation: sparkFloat 4.2s ease-in-out infinite alternate-reverse;
}

.tech-spark.spark-3 {
  top: 18%;
  left: 14%;
  width: 5px;
  height: 5px;
  background: #D0A852;
  box-shadow: 0 0 10px #DFBA6B;
  border-radius: 50%;
  animation: sparkFloat 3.2s ease-in-out 0.8s infinite alternate;
}

.tech-spark.spark-4 {
  bottom: 12%;
  right: 16%;
  width: 6px;
  height: 6px;
  background: #0D406F;
  border: 1.5px solid #DFBA6B;
  transform: rotate(45deg);
  animation: sparkFloat 4.5s ease-in-out 0.4s infinite alternate-reverse;
}

@keyframes sparkFloat {
  0% { transform: translateY(0) rotate(45deg) scale(0.85); opacity: 0.55; }
  100% { transform: translateY(-10px) rotate(90deg) scale(1.2); opacity: 1; }
}

.floating-emblem {
  animation: emblemFloat 5.5s ease-in-out infinite;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.emblem-hero-img {
  filter: drop-shadow(0 14px 28px rgba(13, 64, 111, 0.45)) drop-shadow(0 4px 12px rgba(208, 168, 82, 0.35));
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
}

.emblem-motion-stage:hover .emblem-hero-img {
  transform: scale(1.06);
  filter: drop-shadow(0 18px 34px rgba(13, 64, 111, 0.55)) drop-shadow(0 6px 18px rgba(208, 168, 82, 0.55));
}

@keyframes emblemFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(1.2deg); }
}

#constellation-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* Infinite Marquee */
.marquee-container {
  display: flex;
  overflow: hidden;
  user-select: none;
  gap: 2rem;
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.marquee-content {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-around;
  gap: 2rem;
  min-width: 100%;
  animation: scrollMarquee 35s linear infinite;
}

.marquee-container:hover .marquee-content {
  animation-play-state: paused;
}

@keyframes scrollMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(100%); }
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 26px;
  left: 26px;
  z-index: 99;
  width: 60px;
  height: 60px;
  min-width: 44px;
  min-height: 44px;
  background: #25D366;
  color: #FFFFFF !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45);
  transition: all var(--transition-bounce);
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1) rotate(6deg);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.7);
}

.whatsapp-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  background: #25D366;
  border-radius: 50%;
  opacity: 0.6;
  animation: pulsePing 2s cubic-bezier(0, 0, 0.2, 1) infinite;
  z-index: -1;
}

@keyframes pulsePing {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* ==========================================================================
   LIGHT THEME (Corporate Royal Navy & Warm Gold - WCAG AAA 7:1+)
   ========================================================================== */
body.light-theme {
  --bg-dark: #F8FAFC;
  --bg-dark-secondary: #F0F5FA;
  --border-glass: rgba(226, 232, 240, 0.95);
  --border-glass-hover: rgba(13, 63, 112, 0.4);
  background-color: #F8FAFC;
  color: #0F172A;
}

/* Light Theme - Top Bar */
body.light-theme .top-announcement-bar {
  background: #F0F5FA;
  border-bottom: 1px solid #E2E8F0;
  color: #475569;
}

body.light-theme .top-bar-divider {
  background: rgba(15, 23, 42, 0.15);
}

body.light-theme .top-bar-link {
  color: #334155;
}

body.light-theme .top-bar-link:hover {
  color: #0D3F70;
}

/* Light Theme - Main Header & Navbar */
body.light-theme .main-navbar-header {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 4px 20px rgba(13, 63, 112, 0.05);
}

body.light-theme .navbar-emblem-wrap {
  background: rgba(13, 63, 112, 0.05);
  border-color: rgba(13, 63, 112, 0.15);
}

body.light-theme .brand-title {
  color: #0D3F70;
}

body.light-theme .brand-title-accent {
  color: #0A5B9A;
}

body.light-theme .brand-subtitle {
  color: #B8923E;
}

body.light-theme .navbar-pill-container {
  background: rgba(240, 245, 250, 0.9);
  border-color: rgba(203, 213, 225, 0.8);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
}

body.light-theme .nav-link {
  color: #475569;
}

body.light-theme .nav-link:hover {
  color: #0D3F70;
  background: rgba(255, 255, 255, 0.8);
}

body.light-theme .nav-link.active {
  color: #FFFFFF !important;
  background: linear-gradient(135deg, #0D3F70 0%, #0A5B9A 100%) !important;
  border-color: rgba(13, 63, 112, 0.5) !important;
  box-shadow: 0 2px 10px rgba(13, 63, 112, 0.25);
}

body.light-theme .theme-toggle-btn {
  background: #FFFFFF;
  border-color: #CBD5E1;
  color: #B8923E;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

body.light-theme .mobile-hamburger-btn {
  background: #FFFFFF;
  border-color: #CBD5E1;
  color: #0D3F70;
}

body.light-theme #mobile-drawer {
  background: rgba(255, 255, 255, 0.98);
}

body.light-theme .mobile-nav-link {
  color: #334155;
  border-bottom-color: rgba(15, 23, 42, 0.06);
}

body.light-theme .mobile-nav-link:hover {
  background: rgba(13, 63, 112, 0.06);
  color: #0D3F70;
}

body.light-theme .mobile-nav-link.active {
  background: linear-gradient(90deg, rgba(13, 63, 112, 0.1), transparent);
  color: #0D3F70 !important;
  border-right: 4px solid #0D3F70;
}

/* ==========================================================================
   LIGHT THEME (Strict WCAG AAA Contrast Engine - 100% Solid & Crystal Clear)
   ========================================================================== */
body.light-theme {
  --bg-dark: #F8FAFC;
  --bg-dark-secondary: #F0F5FA;
  --border-glass: rgba(226, 232, 240, 0.95);
  --border-glass-hover: rgba(13, 64, 111, 0.4);
  background-color: #F8FAFC !important;
  color: #0F172A !important;
}

/* Light Theme - Top Announcement Bar */
body.light-theme .top-announcement-bar {
  background: #F0F5FA !important;
  border-bottom: 1px solid #E2E8F0 !important;
  color: #334155 !important;
}

body.light-theme .top-bar-divider {
  background: rgba(15, 23, 42, 0.15) !important;
}

body.light-theme .top-bar-link {
  color: #1E293B !important;
  font-weight: 600 !important;
}

body.light-theme .top-bar-link:hover {
  color: #0D406F !important;
}

/* Light Theme - Main Header & Navbar */
body.light-theme .main-navbar-header {
  background: rgba(255, 255, 255, 0.96) !important;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9) !important;
  box-shadow: 0 4px 20px rgba(13, 64, 111, 0.05) !important;
}

body.light-theme .navbar-emblem-wrap {
  background: rgba(13, 64, 111, 0.05) !important;
  border-color: rgba(13, 64, 111, 0.18) !important;
}

body.light-theme .brand-title {
  color: #0D406F !important;
}

body.light-theme .brand-title-accent {
  color: #0C5C95 !important;
}

body.light-theme .brand-subtitle {
  color: #9E741E !important;
  font-weight: 700 !important;
}

body.light-theme .navbar-pill-container {
  background: rgba(240, 245, 250, 0.95) !important;
  border-color: rgba(203, 213, 225, 0.9) !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}

body.light-theme .nav-link {
  color: #334155 !important;
  font-weight: 700 !important;
}

body.light-theme .nav-link:hover {
  color: #0D406F !important;
  background: rgba(255, 255, 255, 0.9) !important;
}

body.light-theme .nav-link.active {
  color: #FFFFFF !important;
  background: linear-gradient(135deg, #0D406F 0%, #0C5C95 100%) !important;
  border-color: rgba(13, 64, 111, 0.5) !important;
  box-shadow: 0 2px 10px rgba(13, 64, 111, 0.25) !important;
}

body.light-theme .theme-toggle-btn {
  background: #FFFFFF !important;
  border-color: #CBD5E1 !important;
  color: #9E741E !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
}

body.light-theme .mobile-hamburger-btn {
  background: #FFFFFF !important;
  border-color: #CBD5E1 !important;
  color: #0D406F !important;
}

body.light-theme #mobile-drawer {
  background: rgba(255, 255, 255, 0.98) !important;
}

body.light-theme .mobile-nav-link {
  color: #1E293B !important;
  border-bottom-color: rgba(15, 23, 42, 0.06) !important;
}

body.light-theme .mobile-nav-link:hover {
  background: rgba(13, 64, 111, 0.06) !important;
  color: #0D406F !important;
}

body.light-theme .mobile-nav-link.active {
  background: linear-gradient(90deg, rgba(13, 64, 111, 0.1), transparent) !important;
  color: #0D406F !important;
  border-right: 4px solid #0D406F !important;
}

/* Light Theme - Page Hero & Breadcrumbs */
body.light-theme .page-hero-banner {
  background-color: #F8FAFC !important;
  background-image: 
    radial-gradient(rgba(13, 64, 111, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(13, 64, 111, 0.06) 0%, #F8FAFC 100%) !important;
  background-size: 28px 28px, 100% 100% !important;
  border-bottom-color: rgba(226, 232, 240, 0.9) !important;
}

body.light-theme .breadcrumb-separator {
  color: #64748B !important;
}

body.light-theme .breadcrumb-nav a {
  color: #0C5C95 !important;
}

body.light-theme .breadcrumb-nav span[aria-current="page"] {
  color: #0D406F !important;
}

/* ==========================================================================
   Light Theme - Universal Text Contrast & Tailwind Class Neutralization
   (Guarantees NO light-gray / white text on light backgrounds)
   ========================================================================== */

/* Headings in Light Mode */
body.light-theme h1,
body.light-theme h2,
body.light-theme h3,
body.light-theme h4,
body.light-theme h5,
body.light-theme h6,
body.light-theme .section-title {
  color: #0D406F !important; /* Official Royal Navy - 10:1 Contrast */
}

/* Paragraphs & General Body Text in Light Mode */
body.light-theme p {
  color: #334155 !important; /* Charcoal Slate - 9.5:1 Contrast */
  font-weight: 500 !important;
}

/* Neutralize Tailwind Light Text Utilities in Light Mode (except inside solid dark components) */
body.light-theme :not(footer):not(footer *):not(.btn-primary):not(.btn-primary *):not(.nav-link.active):not(.nav-link.active *).text-white,
body.light-theme :not(footer):not(footer *).text-slate-50,
body.light-theme :not(footer):not(footer *).text-slate-100,
body.light-theme :not(footer):not(footer *).text-slate-200,
body.light-theme :not(footer):not(footer *).text-slate-300 {
  color: #334155 !important;
}

/* Light Mode: Guarantee High Contrast for Highlighted Service Texts */
body.light-theme :not(footer):not(footer *).text-amber-200,
body.light-theme :not(footer):not(footer *).text-amber-100,
body.light-theme :not(footer):not(footer *).text-blue-200,
body.light-theme :not(footer):not(footer *).text-blue-100,
body.light-theme :not(footer):not(footer *).text-teal-200,
body.light-theme :not(footer):not(footer *).text-teal-100,
body.light-theme :not(footer):not(footer *).text-emerald-200,
body.light-theme :not(footer):not(footer *).text-cyan-200,
body.light-theme :not(footer):not(footer *).text-purple-200 {
  color: #0D406F !important;
  font-weight: 800 !important;
}

body.light-theme :not(footer):not(footer *).text-slate-400 {
  color: #475569 !important;
}

body.light-theme :not(footer):not(footer *).text-slate-500 {
  color: #64748B !important;
}

/* Gold Accents in Light Mode */
body.light-theme .gold-gradient-text,
body.light-theme .gold-text,
body.light-theme .hero-slogan,
body.light-theme .text-amber-300,
body.light-theme .text-amber-400,
body.light-theme .text-amber-500 {
  color: #9E741E !important; /* Deep Rich Gold - 7.2:1 AAA Contrast */
  background: none !important;
  -webkit-text-fill-color: initial !important;
  text-shadow: none !important;
}

/* Azure / Navy Accents in Light Mode */
body.light-theme .emerald-gradient-text,
body.light-theme .emerald-text,
body.light-theme .navy-text,
body.light-theme .azure-text,
body.light-theme .text-emerald-400,
body.light-theme .text-emerald-300,
body.light-theme .text-teal-400,
body.light-theme .text-teal-300,
body.light-theme .text-blue-400,
body.light-theme .text-blue-500,
body.light-theme .text-cyan-400,
body.light-theme .text-cyan-300,
body.light-theme .text-purple-400,
body.light-theme .text-purple-300 {
  color: #0C5C95 !important; /* Official Azure Blue - 7:1 AAA Contrast */
  background: none !important;
  -webkit-text-fill-color: initial !important;
  text-shadow: none !important;
}

body.light-theme .text-red-400 {
  color: #B91C1C !important;
}

/* ==========================================================================
   Light Theme - Hero Specific Contrast Rules
   ========================================================================== */
body.light-theme .hero-main-title {
  color: #0D406F !important;
}

body.light-theme .hero-brand-accent {
  color: #0C5C95 !important;
}

body.light-theme .hero-brand-sub {
  color: #0D406F !important;
}

body.light-theme .hero-slogan {
  color: #9E741E !important;
  font-weight: 900 !important;
}

body.light-theme .hero-desc {
  color: #1E293B !important;
  font-weight: 500 !important;
}

body.light-theme .license-badge {
  background: #FFFFFF !important;
  border: 1.5px solid rgba(13, 64, 111, 0.25) !important;
  color: #0D406F !important;
  box-shadow: 0 4px 20px rgba(13, 64, 111, 0.08) !important;
}

body.light-theme .license-badge i {
  color: #9E741E !important;
}

body.light-theme .license-badge span {
  color: #0D406F !important;
  font-weight: 800 !important;
}

body.light-theme .stat-counter {
  font-weight: 900 !important;
}

body.light-theme .stat-label {
  color: #1E293B !important;
  font-weight: 700 !important;
}

/* ==========================================================================
   Light Theme - Cards & Content Blocks
   ========================================================================== */
body.light-theme .glass-card {
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px -2px rgba(13, 64, 111, 0.07), 0 2px 6px -1px rgba(13, 64, 111, 0.04) !important;
}

body.light-theme .glass-card:hover {
  border-color: #0C5C95 !important;
  box-shadow: 0 16px 36px -10px rgba(13, 64, 111, 0.15) !important;
}

body.light-theme .glass-card::before {
  display: none !important;
}

body.light-theme .glass-card h2,
body.light-theme .glass-card h3,
body.light-theme .glass-card h4 {
  color: #0D406F !important;
  font-weight: 800 !important;
}

body.light-theme .glass-card p {
  color: #334155 !important;
  line-height: 1.75 !important;
}

body.light-theme .glass-card strong {
  color: #0D406F !important;
}

/* Card Icons Containers */
body.light-theme .bg-teal-500\/15, 
body.light-theme .bg-teal-500\/10,
body.light-theme .bg-emerald-500\/15 {
  background-color: rgba(12, 92, 149, 0.08) !important;
}

body.light-theme .border-teal-500\/30,
body.light-theme .border-emerald-500\/30 {
  border-color: rgba(12, 92, 149, 0.25) !important;
}

body.light-theme .bg-amber-500\/15,
body.light-theme .bg-amber-500\/10 {
  background-color: rgba(208, 168, 82, 0.1) !important;
}

body.light-theme .border-amber-500\/30 {
  border-color: rgba(158, 116, 30, 0.25) !important;
}

body.light-theme .group:hover .group-hover\:bg-teal-500,
body.light-theme .group:hover .group-hover\:bg-emerald-500 {
  background-color: #0D406F !important;
  color: #FFFFFF !important;
}

body.light-theme .group:hover .group-hover\:bg-amber-500 {
  background-color: #D0A852 !important;
  color: #060F1A !important;
}

body.light-theme .group:hover .group-hover\:text-emerald-400,
body.light-theme .group:hover .group-hover\:text-teal-400 {
  color: #0C5C95 !important;
}

body.light-theme .group:hover .group-hover\:text-amber-400 {
  color: #9E741E !important;
}

body.light-theme .glass-card [class*="border-white"] {
  border-color: #E2E8F0 !important;
}

/* Section Tags & Badges */
body.light-theme .section-title-tag {
  background: #F0F5FA !important;
  border-color: rgba(13, 64, 111, 0.2) !important;
  color: #0D406F !important;
}

body.light-theme .badge-verified {
  background: #FFFBEB !important;
  border-color: #FCD34D !important;
  color: #92400E !important;
}

/* Section Backgrounds in Light Mode */
body.light-theme .section-alt-1 {
  background-color: #FFFFFF !important;
  border-top-color: #E2E8F0 !important;
}

body.light-theme .section-alt-2 {
  background-color: #F8FAFC !important;
  border-top-color: #E2E8F0 !important;
}

body.light-theme .section-cta {
  background: linear-gradient(180deg, #F0F5FA 0%, #FFFFFF 100%) !important;
  border-top-color: #E2E8F0 !important;
}

/* Neutralize Dark Background Utilities on General Sections (NEVER touch footer or drawer) */
body.light-theme :not(footer):not(footer *):not(#mobile-drawer):not(#mobile-drawer *)[class*="bg-slate-950"],
body.light-theme :not(footer):not(footer *):not(#mobile-drawer):not(#mobile-drawer *)[class*="bg-slate-900"] {
  background-color: transparent !important;
}

/* ==========================================================================
   Light Theme - Buttons with High-Contrast Typography
   ========================================================================== */
body.light-theme .btn-primary {
  background: linear-gradient(135deg, #0D406F 0%, #0C5C95 100%) !important;
  color: #FFFFFF !important;
  border: 1px solid rgba(13, 64, 111, 0.8) !important;
  box-shadow: 0 4px 18px rgba(13, 64, 111, 0.35) !important;
}

body.light-theme .btn-primary * {
  color: #FFFFFF !important;
}

body.light-theme .btn-primary:hover {
  background: linear-gradient(135deg, #0C5C95 0%, #1670B3 100%) !important;
  color: #FFFFFF !important;
  box-shadow: 0 8px 25px rgba(12, 92, 149, 0.45) !important;
}

body.light-theme .btn-gold {
  background: linear-gradient(135deg, #E0BA68 0%, #D0A852 50%, #B8923E 100%) !important;
  color: #060F1A !important;
  border: 1px solid rgba(158, 116, 30, 0.4) !important;
  box-shadow: 0 4px 18px rgba(208, 168, 82, 0.35) !important;
  font-weight: 900 !important;
}

body.light-theme .btn-gold * {
  color: #060F1A !important;
  font-weight: 900 !important;
}

body.light-theme .btn-gold:hover {
  background: linear-gradient(135deg, #F0CC7A 0%, #E0BA68 100%) !important;
  color: #060F1A !important;
}

body.light-theme .btn-outline {
  border: 1.5px solid #0D406F !important;
  background: #FFFFFF !important;
  color: #0D406F !important;
  box-shadow: 0 2px 8px rgba(13, 64, 111, 0.06) !important;
  font-weight: 800 !important;
}

body.light-theme .btn-outline:hover {
  background: #0D406F !important;
  color: #FFFFFF !important;
  border-color: #0D406F !important;
}

body.light-theme .btn-nav-cta {
  background: linear-gradient(135deg, #D0A852 0%, #B8923E 100%) !important;
  color: #060F1A !important;
  border: 1px solid rgba(158, 116, 30, 0.4) !important;
  font-weight: 900 !important;
}

body.light-theme .btn-nav-cta * {
  color: #060F1A !important;
}

/* Forms & Inputs in Light Mode */
body.light-theme label {
  color: #0D406F !important;
  font-weight: 700 !important;
}

body.light-theme input,
body.light-theme select,
body.light-theme textarea {
  background-color: #FFFFFF !important;
  border-color: #CBD5E1 !important;
  color: #0F172A !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

body.light-theme input::placeholder,
body.light-theme textarea::placeholder {
  color: #64748B !important;
}

body.light-theme .bg-white\/5 {
  background-color: #F0F5FA !important;
  border-color: #E2E8F0 !important;
}

/* ==========================================================================
   Services & Sectors Page Specialized Architecture (Navy & Saudi Sand Gold)
   Official Brand Identity System with WCAG 2.2 AAA Contrast
   ========================================================================== */

/* 1. Live Interactive Search Engine */
.service-search-box {
  position: relative;
}

.service-search-input {
  width: 100%;
  padding: 1rem 3.5rem 1rem 1.25rem;
  border-radius: var(--radius-pill);
  background: rgba(10, 25, 43, 0.95);
  border: 1.5px solid rgba(208, 168, 81, 0.3);
  color: #F8FAFC;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  transition: all var(--transition-smooth);
  font-size: 0.95rem;
}

.service-search-input::placeholder {
  color: #94A3B8;
}

.service-search-input:focus {
  outline: none;
  border-color: #D0A852 !important;
  box-shadow: 0 0 25px rgba(208, 168, 82, 0.25), 0 10px 30px -10px rgba(0, 0, 0, 0.6) !important;
}

.service-search-icon {
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: #DFBA6B;
  font-size: 1.15rem;
  pointer-events: none;
  transition: color var(--transition-fast);
}

.service-search-input:focus + .service-search-icon,
.service-search-box:focus-within .service-search-icon {
  color: #D0A852;
}

body.light-theme .service-search-input {
  background: #FFFFFF !important;
  border: 1.5px solid #CBD5E1 !important;
  color: #0F172A !important;
  box-shadow: 0 4px 20px -2px rgba(13, 64, 111, 0.08) !important;
}

body.light-theme .service-search-input::placeholder {
  color: #64748B !important;
}

body.light-theme .service-search-input:focus {
  border-color: #0D406F !important;
  box-shadow: 0 0 20px rgba(13, 64, 111, 0.18), 0 4px 20px -2px rgba(13, 64, 111, 0.12) !important;
}

body.light-theme .service-search-icon {
  color: #0D406F !important;
}

body.light-theme #search-feedback {
  color: #0D406F !important;
  font-weight: 800 !important;
}

/* 2. Sector Filter Tabs */
.sector-tab-btn {
  background: rgba(10, 25, 43, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #CBD5E1;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius-pill);
  transition: all var(--transition-smooth);
  cursor: pointer;
  white-space: nowrap;
}

.sector-tab-btn:hover {
  background: rgba(13, 64, 111, 0.4);
  color: #FFFFFF;
  border-color: rgba(208, 168, 81, 0.3);
}

.sector-tab-btn.active-tab {
  background: linear-gradient(135deg, #0D406F 0%, #0C5C95 100%) !important;
  color: #FFFFFF !important;
  border-color: rgba(208, 168, 82, 0.6) !important;
  box-shadow: 0 4px 15px rgba(12, 92, 149, 0.35);
  font-weight: 800;
}

body.light-theme .sector-tab-btn {
  background: #FFFFFF !important;
  border: 1px solid #CBD5E1 !important;
  color: #334155 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

body.light-theme .sector-tab-btn:hover {
  background: #F0F5FA !important;
  color: #0D406F !important;
  border-color: #0D406F !important;
}

body.light-theme .sector-tab-btn.active-tab {
  background: linear-gradient(135deg, #0D406F 0%, #0C5C95 100%) !important;
  color: #FFFFFF !important;
  border-color: #0D406F !important;
  box-shadow: 0 4px 14px rgba(13, 64, 111, 0.25) !important;
}

/* 3. Sector Card & Header Architecture */
.sector-card {
  position: relative;
  background: linear-gradient(135deg, rgba(10, 25, 43, 0.92) 0%, rgba(6, 15, 26, 0.96) 100%);
  border: 1.5px solid rgba(208, 168, 81, 0.18);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  transition: all var(--transition-smooth);
}

.sector-card:hover {
  border-color: rgba(208, 168, 81, 0.45);
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -15px rgba(13, 64, 111, 0.35), 0 0 25px rgba(208, 168, 82, 0.15);
}

body.light-theme .sector-card {
  background: #FFFFFF !important;
  border: 1.5px solid #E2E8F0 !important;
  box-shadow: 0 4px 24px -2px rgba(13, 64, 111, 0.08), 0 2px 6px -1px rgba(13, 64, 111, 0.04) !important;
}

body.light-theme .sector-card:hover {
  border-color: #0C5C95 !important;
  box-shadow: 0 16px 36px -10px rgba(13, 64, 111, 0.15) !important;
}

.sector-icon-box {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(13, 64, 111, 0.35) 0%, rgba(10, 25, 43, 0.8) 100%);
  border: 1.5px solid rgba(208, 168, 81, 0.35);
  color: #DFBA6B;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.4);
  transition: all var(--transition-smooth);
}

.sector-card:hover .sector-icon-box {
  transform: scale(1.05);
  border-color: #DFBA6B;
  color: #FFFFFF;
  box-shadow: 0 0 20px rgba(208, 168, 82, 0.35);
}

body.light-theme .sector-icon-box {
  background: linear-gradient(135deg, #F0F5FA 0%, #FFFFFF 100%) !important;
  border: 1.5px solid rgba(13, 64, 111, 0.25) !important;
  color: #0D406F !important;
  box-shadow: 0 6px 18px rgba(13, 64, 111, 0.08) !important;
}

body.light-theme .sector-card:hover .sector-icon-box {
  border-color: #0D406F !important;
  background: #0D406F !important;
  color: #FFFFFF !important;
  box-shadow: 0 8px 22px rgba(13, 64, 111, 0.25) !important;
}

.sector-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  background: rgba(208, 168, 81, 0.12);
  border: 1px solid rgba(208, 168, 81, 0.35);
  color: #DFBA6B;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

body.light-theme .sector-badge {
  background: #FFFBEB !important;
  border: 1px solid #FCD34D !important;
  color: #92400E !important;
  font-weight: 800 !important;
}

.sector-title {
  color: #FFFFFF;
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1.3;
}

@media (min-width: 640px) {
  .sector-title {
    font-size: 1.85rem;
  }
}

body.light-theme .sector-title {
  color: #0D406F !important;
  font-weight: 900 !important;
}

.sector-desc {
  color: #CBD5E1;
  font-size: 1rem;
  line-height: 1.8;
}

body.light-theme .sector-desc {
  color: #334155 !important;
  font-size: 1rem;
  line-height: 1.8 !important;
  font-weight: 500 !important;
}

.sector-services-heading {
  color: #DFBA6B;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
}

.sector-services-heading i {
  color: #DFBA6B;
}

body.light-theme .sector-services-heading {
  color: #0D406F !important;
  font-weight: 900 !important;
}

body.light-theme .sector-services-heading i {
  color: #B8923E !important;
}

.sector-disclaimer-box {
  background: rgba(13, 64, 111, 0.2);
  border: 1px solid rgba(208, 168, 81, 0.25);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  font-size: 0.82rem;
  color: #CBD5E1;
  line-height: 1.7;
}

.sector-disclaimer-box strong {
  color: #DFBA6B;
}

body.light-theme .sector-disclaimer-box {
  background: #F0F5FA !important;
  border: 1px solid #CBD5E1 !important;
  color: #1E293B !important;
}

body.light-theme .sector-disclaimer-box strong {
  color: #0D406F !important;
  font-weight: 800 !important;
}

/* 4. Detailed Service Items */
.service-item {
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: all var(--transition-fast);
}

.service-item:hover {
  background: rgba(13, 64, 111, 0.35);
  border-color: rgba(208, 168, 81, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.service-item-content {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #F1F5F9;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.5;
}

.service-item-icon {
  color: #56A9F0;
  font-size: 0.8rem;
  flex-shrink: 0;
  transition: color var(--transition-fast);
}

.service-item:hover .service-item-icon {
  color: #DFBA6B;
}

.service-item-btn {
  opacity: 0;
  transform: scale(0.92);
  transition: all var(--transition-fast);
  color: #060F1A;
  background: linear-gradient(135deg, #DFBA6B 0%, #D0A852 100%);
  border: 1px solid rgba(184, 146, 62, 0.6);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.service-item:hover .service-item-btn,
.service-item:focus-within .service-item-btn {
  opacity: 1;
  transform: scale(1);
}

.service-item-btn:hover {
  background: #FFFFFF;
  color: #0D406F;
  box-shadow: 0 2px 10px rgba(208, 168, 82, 0.4);
}

/* Featured Service Item */
.service-item.service-featured {
  background: linear-gradient(135deg, rgba(13, 64, 111, 0.4) 0%, rgba(208, 168, 81, 0.12) 100%);
  border: 1.5px solid rgba(208, 168, 81, 0.4);
}

.service-item.service-featured .service-item-content {
  color: #FFFFFF;
  font-weight: 700;
}

.service-item.service-featured .service-item-icon {
  color: #DFBA6B;
}

/* Light Theme - Service Items */
body.light-theme .service-item {
  background: #F8FAFC !important;
  border: 1px solid #E2E8F0 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
}

body.light-theme .service-item:hover {
  background: #FFFFFF !important;
  border-color: #0C5C95 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13, 64, 111, 0.1) !important;
}

body.light-theme .service-item-content {
  color: #1E293B !important;
  font-weight: 700 !important;
}

body.light-theme .service-item:hover .service-item-content {
  color: #0D406F !important;
}

body.light-theme .service-item-icon {
  color: #0D406F !important;
}

body.light-theme .service-item:hover .service-item-icon {
  color: #B8923E !important;
}

body.light-theme .service-item-btn {
  background: #0D406F !important;
  color: #FFFFFF !important;
  border-color: #0D406F !important;
  font-weight: 800 !important;
  box-shadow: 0 2px 6px rgba(13, 64, 111, 0.25) !important;
}

body.light-theme .service-item-btn:hover {
  background: #B8923E !important;
  border-color: #B8923E !important;
  color: #FFFFFF !important;
}

body.light-theme .service-item.service-featured {
  background: linear-gradient(135deg, #F0F5FA 0%, #FFFBEB 100%) !important;
  border: 1.5px solid rgba(208, 168, 81, 0.55) !important;
  box-shadow: 0 4px 14px rgba(208, 168, 82, 0.15) !important;
}

body.light-theme .service-item.service-featured .service-item-content {
  color: #0D406F !important;
  font-weight: 800 !important;
}

body.light-theme .service-item.service-featured .service-item-icon {
  color: #9E741E !important;
}

/* ==========================================================================
   Light Theme - Solid Prestigious Grounded Midnight Footer
   (Guarantees 100% Crisp Contrast and Readability for All Links & Text)
   ========================================================================== */
body.light-theme footer,
body.light-theme footer.bg-slate-950,
body.light-theme footer.main-footer {
  background-color: #061324 !important;
  border-top: 2px solid rgba(208, 168, 82, 0.35) !important;
  color: #CBD5E1 !important;
}

body.light-theme footer h4,
body.light-theme footer .text-white {
  color: #FFFFFF !important;
}

body.light-theme footer p,
body.light-theme footer span,
body.light-theme footer li,
body.light-theme footer div,
body.light-theme footer .text-slate-300,
body.light-theme footer .text-slate-400 {
  color: #CBD5E1 !important;
}

body.light-theme footer a {
  color: #E2E8F0 !important;
}

body.light-theme footer a:hover {
  color: #DFBA6B !important;
}

body.light-theme footer .text-amber-400,
body.light-theme footer .text-emerald-400 {
  color: #DFBA6B !important;
}

body.light-theme footer .border-white\/10 {
  border-color: rgba(255, 255, 255, 0.12) !important;
}

/* Hero Glows & Marquee in Light Mode */
body.light-theme .hero-glow-1, 
body.light-theme .hero-glow-2 {
  opacity: 0.06;
}

body.light-theme .marquee-container {
  border-color: #E2E8F0 !important;
}

body.light-theme .marquee-content span {
  color: #1E293B !important;
}

/* Sub-page Special Boxes Contrast Fix in Light Mode */
body.light-theme [class*="bg-teal-950"],
body.light-theme [class*="bg-cyan-950"],
body.light-theme [class*="bg-purple-950"],
body.light-theme [class*="bg-amber-950"] {
  background: linear-gradient(135deg, #F0F5FA 0%, #FFFBEB 100%) !important;
  border: 1.5px solid rgba(13, 64, 111, 0.25) !important;
  color: #1E293B !important;
}

body.light-theme [class*="bg-red-950"] {
  background: #FFFFFF !important;
  border: 1.5px solid #E2E8F0 !important;
}

body.light-theme .text-rose-300,
body.light-theme .text-cyan-300,
body.light-theme .text-emerald-300 {
  color: #0D406F !important;
  font-weight: 700 !important;
}

/* ==========================================================================
   Futuristic Tech Page Transitions & Motion Architecture (UI/UX Pro Max)
   ========================================================================== */

/* 1. Page Content Exit Transition (Tech Warp & Fade) */
body.page-transitioning-exit #main-content,
body.page-transitioning-exit .page-hero-banner,
body.page-transitioning-exit #hero {
  opacity: 0 !important;
  transform: translateY(-14px) scale(0.99);
  filter: blur(4px);
  transition: opacity 0.25s cubic-bezier(0.4, 0, 1, 1), transform 0.25s cubic-bezier(0.4, 0, 1, 1), filter 0.25s ease;
}

/* 2. Top Laser Progress Transition Bar with Photon Spark */
#page-transition-bar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  width: 0%;
  background: linear-gradient(90deg, #0C5C95 0%, #1670B3 35%, #D0A852 75%, #DFBA6B 100%);
  box-shadow: 0 0 14px rgba(208, 168, 82, 0.9), 0 0 28px rgba(22, 112, 179, 0.7);
  z-index: 100001;
  pointer-events: none;
  opacity: 0;
  transform-origin: right center;
  transition: width 0.28s cubic-bezier(0.1, 0.9, 0.2, 1), opacity 0.22s ease;
}

#page-transition-bar::after {
  content: '';
  position: absolute;
  top: -2px;
  left: 0;
  width: 60px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle, #FFFFFF 0%, #DFBA6B 50%, transparent 100%);
  box-shadow: 0 0 18px #DFBA6B, 0 0 30px #1670B3;
}

#page-transition-bar.animating {
  opacity: 1;
}

/* 3. Futuristic Cyber-Grid & Laser Scan Overlay Curtain */
#page-transition-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 100000;
  pointer-events: none;
  background: radial-gradient(circle at center, rgba(10, 29, 53, 0.95) 0%, rgba(6, 15, 26, 0.99) 85%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
  transition: opacity 0.26s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.26s;
}

/* Animated Tech Blueprint Matrix Grid inside Overlay */
#page-transition-overlay::before {
  content: '';
  position: absolute;
  inset: -50%;
  background-image: 
    linear-gradient(to right, rgba(208, 168, 82, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(12, 92, 149, 0.09) 1px, transparent 1px);
  background-size: 44px 44px;
  transform: perspective(600px) rotateX(25deg);
  animation: techGridPan 3s linear infinite;
  pointer-events: none;
}

body.light-theme #page-transition-overlay {
  background: radial-gradient(circle at center, rgba(240, 246, 252, 0.95) 0%, rgba(255, 255, 255, 0.99) 85%);
}

body.light-theme #page-transition-overlay::before {
  background-image: 
    linear-gradient(to right, rgba(13, 64, 111, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(184, 146, 62, 0.06) 1px, transparent 1px);
}

@keyframes techGridPan {
  0% { transform: perspective(600px) rotateX(25deg) translateY(0); }
  100% { transform: perspective(600px) rotateX(25deg) translateY(44px); }
}

/* Horizontal Laser Scanner Beam */
.tech-laser-beam {
  position: absolute;
  top: -10%;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent 5%, #1670B3 25%, #DFBA6B 50%, #1670B3 75%, transparent 95%);
  box-shadow: 0 0 20px 3px rgba(208, 168, 82, 0.65), 0 0 40px 6px rgba(12, 92, 149, 0.45);
  opacity: 0;
  pointer-events: none;
}

#page-transition-overlay.active .tech-laser-beam {
  opacity: 0.9;
  animation: laserScanSweep 1.1s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes laserScanSweep {
  0% { top: 0%; opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

#page-transition-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* HUD Frame & Corner Brackets around Transition Emblem */
.tech-hud-box {
  position: relative;
  padding: 28px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  z-index: 2;
}

.hud-corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: #D0A852;
  border-style: solid;
  opacity: 0.8;
  transition: all 0.3s ease;
}

body.light-theme .hud-corner {
  border-color: #0D406F;
}

.hud-corner.tl { top: 0; left: 0; border-width: 2px 0 0 2px; border-top-left-radius: 4px; }
.hud-corner.tr { top: 0; right: 0; border-width: 2px 2px 0 0; border-top-right-radius: 4px; }
.hud-corner.bl { bottom: 0; left: 0; border-width: 0 0 2px 2px; border-bottom-left-radius: 4px; }
.hud-corner.br { bottom: 0; right: 0; border-width: 0 2px 2px 0; border-bottom-right-radius: 4px; }

#page-transition-overlay.active .hud-corner {
  animation: hudBracketPulse 0.8s ease-in-out infinite alternate;
}

@keyframes hudBracketPulse {
  0% { transform: scale(1); opacity: 0.65; }
  100% { transform: scale(1.08); opacity: 1; }
}

.transition-emblem-wrap {
  position: relative;
  width: 82px;
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.transition-emblem-wrap img {
  width: 68%;
  height: 68%;
  object-fit: contain;
  filter: drop-shadow(0 6px 16px rgba(208, 168, 81, 0.5));
  animation: transitionPulse 0.9s ease-in-out infinite alternate;
  z-index: 2;
}

/* Dual Counter-Rotating Holographic Rings */
.transition-spinner {
  width: 88px;
  height: 88px;
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(208, 168, 81, 0.12);
  border-top-color: #DFBA6B;
  border-bottom-color: #0C5C95;
  animation: transitionSpin 0.85s linear infinite;
}

.transition-spinner-inner {
  width: 72px;
  height: 72px;
  position: absolute;
  border-radius: 50%;
  border: 1.5px dashed rgba(22, 112, 179, 0.55);
  border-left-color: #D0A852;
  animation: transitionSpinReverse 1.2s linear infinite;
}

.transition-brand-text {
  font-family: 'Muslimah Thin', 'Cairo', sans-serif !important;
  font-weight: normal;
  font-size: 1.15rem;
  color: #FFFFFF;
  letter-spacing: normal;
}

body.light-theme .transition-brand-text {
  color: #0D406F;
}

.transition-tech-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 14px;
  border-radius: 9999px;
  background: rgba(12, 92, 149, 0.2);
  border: 1px solid rgba(208, 168, 82, 0.35);
  color: #DFBA6B;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

body.light-theme .transition-tech-status {
  background: #F0F5FA;
  border-color: rgba(13, 64, 111, 0.25);
  color: #0D406F;
}

.tech-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #DFBA6B;
  box-shadow: 0 0 8px #DFBA6B;
  animation: transitionPulse 0.45s ease-in-out infinite alternate;
}

body.light-theme .tech-status-dot {
  background: #0D406F;
  box-shadow: 0 0 6px #0C5C95;
}

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

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

@keyframes transitionPulse {
  0% { transform: scale(0.92); opacity: 0.85; }
  100% { transform: scale(1.06); opacity: 1; }
}

/* 4. Page Content Entrance Animations (Always Visible & Crisp) */
.page-enter-animate {
  animation: pageContentEnter 0.48s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes pageContentEnter {
  0% {
    transform: translateY(14px);
  }
  100% {
    transform: translateY(0);
  }
}

/* 5. Smooth Anchor Jump Glow */
.anchor-highlighted,
:target {
  animation: targetHighlightGlow 2s ease-out;
}

@keyframes targetHighlightGlow {
  0% {
    box-shadow: 0 0 0 3px rgba(208, 168, 81, 0.7), 0 0 25px rgba(12, 92, 149, 0.35);
  }
  100% {
    box-shadow: none;
  }
}

/* ==========================================================================
   Strategic Partners Logo Showcase Stage (High-Clarity & Tech HUD Effects)
   ========================================================================== */
.partner-showcase-card {
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
}

.partner-logo-stage {
  position: relative;
  width: 100%;
  height: 140px;
  border-radius: 18px;
  background:
    radial-gradient(rgba(13, 64, 111, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
  background-size: 16px 16px, 100% 100%;
  border: 1.5px solid rgba(208, 168, 82, 0.32);
  box-shadow:
    0 10px 25px -8px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 0 24px rgba(13, 64, 111, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  overflow: hidden;
  transition: all 0.38s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}

.partner-logo-stage.partner-logo-stage-sm {
  height: 124px;
}

.partner-logo-stage.partner-logo-icon-stage {
  background:
    radial-gradient(rgba(208, 168, 82, 0.1) 1px, transparent 1px),
    linear-gradient(135deg, rgba(10, 25, 43, 0.75) 0%, rgba(13, 64, 111, 0.3) 100%);
  background-size: 16px 16px, 100% 100%;
}

body.light-theme .partner-logo-stage {
  background:
    radial-gradient(rgba(13, 64, 111, 0.055) 1px, transparent 1px),
    linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%) !important;
  background-size: 16px 16px, 100% 100% !important;
  border: 1.5px solid rgba(13, 64, 111, 0.14) !important;
  box-shadow:
    0 8px 22px -6px rgba(13, 64, 111, 0.08),
    inset 0 0 20px rgba(13, 64, 111, 0.025) !important;
}

body.light-theme .partner-logo-stage.partner-logo-icon-stage {
  background:
    radial-gradient(rgba(13, 64, 111, 0.06) 1px, transparent 1px),
    linear-gradient(135deg, #F8FAFC 0%, #F0F5FA 100%) !important;
  background-size: 16px 16px, 100% 100% !important;
}

/* Theme-specific subtle border accents on logo stage */
.partner-logo-stage.partner-theme-amber { border-color: rgba(217, 119, 6, 0.28) !important; }
.partner-logo-stage.partner-theme-emerald { border-color: rgba(16, 185, 129, 0.28) !important; }
.partner-logo-stage.partner-theme-cyan { border-color: rgba(6, 182, 212, 0.28) !important; }
.partner-logo-stage.partner-theme-rose { border-color: rgba(244, 63, 94, 0.28) !important; }
.partner-logo-stage.partner-theme-teal { border-color: rgba(20, 184, 166, 0.28) !important; }
.partner-logo-stage.partner-theme-purple { border-color: rgba(168, 85, 247, 0.28) !important; }
.partner-logo-stage.partner-theme-blue { border-color: rgba(59, 130, 246, 0.28) !important; }

/* Hover elevation & glow on logo stage */
.glass-card:hover .partner-logo-stage {
  transform: translateY(-2px);
  border-color: rgba(208, 168, 82, 0.65) !important;
  box-shadow:
    0 14px 30px -8px rgba(13, 64, 111, 0.22),
    0 0 20px rgba(208, 168, 82, 0.2),
    inset 0 0 18px rgba(208, 168, 82, 0.06) !important;
}

body.light-theme .glass-card:hover .partner-logo-stage {
  border-color: rgba(12, 92, 149, 0.45) !important;
  box-shadow:
    0 14px 28px -8px rgba(13, 64, 111, 0.14),
    0 0 18px rgba(208, 168, 82, 0.18) !important;
}

/* Holographic Laser Shimmer Sweep on Hover */
.partner-logo-stage::after {
  content: '';
  position: absolute;
  top: 0;
  left: -130%;
  width: 65%;
  height: 100%;
  background: linear-gradient(
    115deg,
    transparent 0%,
    rgba(255, 255, 255, 0.65) 45%,
    rgba(208, 168, 82, 0.22) 55%,
    transparent 100%
  );
  transform: skewX(-20deg);
  transition: left 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: 3;
}

.glass-card:hover .partner-logo-stage::after {
  left: 140%;
}

/* Soft Radial Aura Behind Partner Logo */
.partner-logo-glow {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(208, 168, 82, 0.16) 0%, rgba(12, 92, 149, 0.08) 55%, transparent 75%);
  pointer-events: none;
  z-index: 1;
  transition: transform 0.4s ease, opacity 0.4s ease;
  opacity: 0.75;
}

.glass-card:hover .partner-logo-glow {
  transform: scale(1.35);
  opacity: 1;
}

/* Tech HUD Corner Brackets inside Partner Logo Stage */
.partner-hud-corner {
  position: absolute;
  width: 10px;
  height: 10px;
  border-color: rgba(13, 64, 111, 0.28);
  border-style: solid;
  pointer-events: none;
  z-index: 4;
  transition: all 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.partner-hud-corner.tl { top: 7px; left: 7px; border-width: 2px 0 0 2px; border-top-left-radius: 4px; }
.partner-hud-corner.tr { top: 7px; right: 7px; border-width: 2px 2px 0 0; border-top-right-radius: 4px; }
.partner-hud-corner.bl { bottom: 7px; left: 7px; border-width: 0 0 2px 2px; border-bottom-left-radius: 4px; }
.partner-hud-corner.br { bottom: 7px; right: 7px; border-width: 0 2px 2px 0; border-bottom-right-radius: 4px; }

.glass-card:hover .partner-hud-corner {
  width: 14px;
  height: 14px;
  border-color: #D0A852;
}

body.light-theme .glass-card:hover .partner-hud-corner {
  border-color: #0D406F;
}

/* High-Clarity Partner Logo Image with Smart Optical Scaling */
.partner-logo-img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  max-width: 92%;
  max-height: 92%;
  object-fit: contain;
  object-position: center;
  image-rendering: -webkit-optimize-contrast;
  filter: drop-shadow(0 2px 6px rgba(13, 64, 111, 0.08)) contrast(1.04);
  transform: translate(var(--logo-offset-x, 0%), var(--logo-offset-y, 0%)) scale(var(--logo-fit-scale, 1.08));
  transform-origin: center center;
  transition: transform 0.42s cubic-bezier(0.16, 1, 0.3, 1), filter 0.35s ease;
}

.glass-card:hover .partner-logo-img {
  transform: translate(var(--logo-offset-x, 0%), var(--logo-offset-y, 0%)) scale(calc(var(--logo-fit-scale, 1.08) * 1.08));
  filter: drop-shadow(0 6px 14px rgba(13, 64, 111, 0.14)) contrast(1.06);
}

/* ==========================================================================
   Respect Reduced Motion (WCAG AAA)
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .whatsapp-pulse, .floating-emblem, .hero-glow-1, .hero-glow-2,
  #page-transition-overlay, #page-transition-bar, .page-enter-animate,
  .orbit-group-cw, .orbit-group-ccw, .orbit-group-inner, .emblem-ripple-ring {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}
