/* ==========================================================================
   1. ROOT VARIABLES & DESIGN TOKENS (Strict Anti-Slop, No Neon Drop-Shadows)
   ========================================================================== */
:root {
  /* Brand Palette */
  --color-navy: #1B2A41;
  --color-navy-light: #263A5A;
  --color-orange: #F2941F;
  --color-orange-hover: #D88015;
  
  /* Neutral System Palette - Dark Theme (Default) */
  --color-bg: #0C131D;
  --color-surface: rgba(255, 255, 255, 0.03);
  --color-surface-hover: rgba(255, 255, 255, 0.07);
  --color-text-primary: #F0F4F8;
  --color-text-secondary: #9BA8B8;
  --color-white: #FFFFFF;
  --color-heading: #FFFFFF;
  --color-border: rgba(255, 255, 255, 0.12);
  --color-border-hover: rgba(242, 148, 31, 0.6);

  /* Typography: Replaced cramped heavy fonts with clean, breathable modern tech fonts */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Transitions & Animation */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.2s var(--ease-out-expo);
  --transition-smooth: 0.4s var(--ease-out-expo);
  --theme-transition: background-color 0.4s var(--ease-out-expo), color 0.4s var(--ease-out-expo), border-color 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo);
}

/* Light Theme Variables */
[data-theme="light"] {
  --color-heading: #0F172A;
  /* Brand Palette - Light Theme Adjustments */
  --color-navy: #1B2A41;
  --color-navy-light: #263A5A;
  --color-orange: #F2941F;
  --color-orange-hover: #D88015;
  
  /* Neutral System Palette - Light Theme */
  --color-bg: #FFFFFF;
  --color-surface: #F8FAFC;
  --color-surface-hover: #F1F5F9;
  --color-text-primary: #0F172A;
  --color-text-secondary: #475569;
  --color-white: #FFFFFF;
  --color-border: #E2E8F0;
  --color-border-hover: #CBD5E1;
  
  /* Light Theme Specific Colors */
  --color-bg-alt: #F8FAFC;
  --color-bg-elevated: #FFFFFF;
  --color-surface-glass: rgba(255, 255, 255, 0.8);
  --color-text-muted: #64748B;
  --color-border-light: #F1F5F9;
  
  /* Card and Panel Backgrounds */
  --color-card-bg: #FFFFFF;
  --color-card-hover: #F8FAFC;
  --color-panel-bg: #F8FAFC;
  
  /* Form Elements */
  --color-input-bg: #FFFFFF;
  --color-input-border: #CBD5E1;
  --color-input-focus: #F2941F;
  
  /* Interactive States */
  --color-hover-bg: #F1F5F9;
  --color-active-bg: #E2E8F0;
  
  /* Shadow adjustments for light mode */
  --color-shadow: rgba(0, 0, 0, 0.1);
  --color-shadow-light: rgba(0, 0, 0, 0.05);
}

/* ==========================================================================
   2. RESET & BASE STYLES (Zero Horizontal Overflow, Mobile-First)
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: hidden;
  background-color: var(--color-bg);
  color: var(--color-text-primary);
  font-family: var(--font-body);
}

body {
  overflow-x: hidden;
  line-height: 1.6;
  position: relative;
  min-height: 100vh;
  transition: var(--theme-transition);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg);
  border-left: 1px solid var(--color-border);
}
::-webkit-scrollbar-thumb {
  background: var(--color-navy-light);
  border: 1px solid var(--color-border);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-orange);
}

/* Typography Hierarchy - Balanced Line Heights and Un-cramped Spacing[cite: 1] */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--color-heading);
  transition: color 0.4s var(--ease-out-expo), opacity 0.3s var(--ease-out-expo), transform 0.3s var(--ease-out-expo);
}

h1 { font-size: clamp(2.25rem, 4.5vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }

p {
  color: var(--color-text-secondary);
  font-size: clamp(1rem, 1.1vw, 1.125rem);
  line-height: 1.65;
  transition: color 0.4s var(--ease-out-expo), opacity 0.3s var(--ease-out-expo), transform 0.3s var(--ease-out-expo);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.4s var(--ease-out-expo), opacity 0.3s var(--ease-out-expo), transform 0.3s var(--ease-out-expo);
}

[data-i18n] {
  transition: color 0.4s var(--ease-out-expo), opacity 0.3s var(--ease-out-expo), transform 0.3s var(--ease-out-expo);
}

ul {
  list-style: none;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Utility Containers */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1.25rem, 4vw, 3rem);
  padding-right: clamp(1.25rem, 4vw, 3rem);
}

/* ==========================================================================
   3. CUSTOM CURSOR & CINEMATIC INTRO
   ========================================================================== */
#custom-cursor, #custom-cursor-follower {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  transition: transform 0.15s ease-out, opacity 0.15s ease-out;
  display: none;
}

#custom-cursor {
  width: 8px;
  height: 8px;
  background-color: var(--color-orange);
  margin: -4px 0 0 -4px;
}

#custom-cursor-follower {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(242, 148, 31, 0.4);
  margin: -18px 0 0 -18px;
  transition: transform 0.3s var(--ease-out-expo), width 0.3s, height 0.3s, margin 0.3s;
}

body.cursor-active #custom-cursor,
body.cursor-active #custom-cursor-follower {
  display: block;
}

body.cursor-hover #custom-cursor-follower {
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  border-color: var(--color-white);
  background-color: rgba(255, 255, 255, 0.05);
}

/* Cinematic Intro Curtain */
#cinematic-intro {
  position: fixed;
  inset: 0;
  background-color: var(--color-bg);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.8s var(--ease-out-expo), opacity 0.8s ease;
}

.intro-content {
  text-align: center;
  overflow: hidden;
}

.intro-sub {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  color: var(--color-orange);
  display: block;
  margin-bottom: 0.5rem;
  opacity: 0;
  transform: translateY(20px);
  animation: introFadeUp 0.6s 0.2s forwards;
}

.intro-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateY(30px);
  animation: introFadeUp 0.6s 0.4s forwards;
}

.intro-bar {
  width: 0%;
  height: 2px;
  background-color: var(--color-orange);
  margin: 1.5rem auto 0;
  animation: introBarExpand 0.8s 0.6s var(--ease-out-expo) forwards;
}

@keyframes introFadeUp {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes introBarExpand {
  to { width: 100px; }
}

body.intro-finished #cinematic-intro {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

/* ==========================================================================
   4. SHARP GLASS THEME & BUTTONS (1px Solid Borders, Shiny Hover)
   ========================================================================== */
.glass-panel {
  background: var(--color-surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
  transition: border-color 0.4s var(--ease-out-expo), background 0.4s var(--ease-out-expo), transform var(--transition-smooth), box-shadow 0.4s var(--ease-out-expo);
}

[data-theme="light"] .glass-panel {
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 2px 8px var(--color-shadow-light);
}

/* Shiny Glass Hover Sheen - No Soft Drop-Shadow Slop */
.sharp-hover::before {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.08) 50%,
    transparent 100%
  );
  transform: skewX(-25deg);
  transition: left 0.75s var(--ease-out-expo);
  pointer-events: none;
  z-index: 1;
}

.sharp-hover:hover {
  border-color: var(--color-border-hover);
  background: var(--color-surface-hover);
  transform: translateY(-5px);
  box-shadow: 0 15px 30px -10px rgba(242, 148, 31, 0.3);
}

.sharp-hover:hover::before {
  left: 150%;
}

/* Buttons with Accessible Minimum Touch Target (44x44px) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  z-index: 2;
}

.btn-primary {
  background-color: var(--color-orange);
  color: #000000;
  border-color: var(--color-orange);
}

.btn-primary:hover {
  background-color: var(--color-orange-hover);
  border-color: var(--color-orange-hover);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 20px -10px var(--color-orange);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border);
  color: var(--color-white);
}

[data-theme="light"] .btn-glass {
  background: var(--color-bg-alt);
  color: var(--color-text-primary);
  border-color: var(--color-border);
}

.btn-glass:hover {
  border-color: var(--color-white);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 20px -10px rgba(255, 255, 255, 0.3);
}

[data-theme="light"] .btn-glass:hover {
  border-color: var(--color-orange);
  background: var(--color-hover-bg);
  color: var(--color-orange);
}

.btn-large {
  padding: 1rem 2.25rem;
  font-size: 0.95rem;
}

.btn-full {
  width: 100%;
}

/* ==========================================================================
   5. GOVERNMENT AUTHORIZATION TOP STRIP
   ========================================================================== */
.auth-strip {
  background-color: var(--color-navy);
  border-bottom: 1px solid var(--color-border);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.6rem 0;
  position: relative;
  z-index: 100;
  transition: background-color 0.4s var(--ease-out-expo), border-color 0.4s var(--ease-out-expo), color 0.4s var(--ease-out-expo);
}

[data-theme="light"] .auth-strip {
  background-color: var(--color-bg-alt);
  border-bottom-color: var(--color-border);
}

.auth-strip-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  justify-content: space-between;
  text-align: center;
}

.auth-text {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

.auth-badge {
  background-color: var(--color-orange);
  color: #000000;
  padding: 0.15rem 0.5rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.lang-divider {
  color: var(--color-orange);
  display: none;
}

.auth-contact-mini {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text-secondary);
}

.mini-link:hover {
  color: var(--color-white);
}

/* ==========================================================================
   6. HEADER & NAVIGATION
   ========================================================================== */
.main-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background-color: rgba(12, 19, 29, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: background-color 0.4s var(--ease-out-expo), border-color 0.4s var(--ease-out-expo);
}

[data-theme="light"] .main-header {
  background-color: var(--color-surface-glass);
  border-bottom-color: var(--color-border);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-item {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-primary);
  position: relative;
  padding: 0.5rem 0;
  transition: color 0.4s var(--ease-out-expo);
}

[data-theme="light"] .nav-item {
  color: var(--color-text-primary);
}

.nav-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--color-orange);
  transition: width var(--transition-fast);
}

.nav-item:hover {
  color: var(--color-white);
}

[data-theme="light"] .nav-item:hover {
  color: var(--color-orange);
}

.nav-item:hover::after {
  width: 100%;
}

/* Language Switcher Button Group */
.lang-switch {
  display: inline-flex;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.4s var(--ease-out-expo), background 0.4s var(--ease-out-expo);
}

/* Theme Toggle Switch */
.theme-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 1rem;
}

.theme-toggle-btn {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text-primary);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.4s var(--ease-out-expo), transform 0.4s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.theme-toggle-btn:hover {
  border-color: var(--color-orange);
  background: var(--color-surface-hover);
  transform: scale(1.1);
}

.theme-toggle-btn svg {
  width: 22px;
  height: 22px;
  transition: transform 0.4s var(--ease-out-expo), opacity 0.3s var(--ease-out-expo);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.theme-toggle-btn:hover svg {
  transform: rotate(15deg);
}

[data-theme="light"] .theme-toggle-btn .sun-icon {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(-90deg) scale(0.5);
}

[data-theme="light"] .theme-toggle-btn .moon-icon {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(0deg) scale(1);
}

[data-theme="dark"] .theme-toggle-btn .sun-icon {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(0deg) scale(1);
}

[data-theme="dark"] .theme-toggle-btn .moon-icon {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(90deg) scale(0.5);
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--color-text-secondary);
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  cursor: pointer;
  transition: all 0.3s var(--ease-out-expo), opacity 0.3s var(--ease-out-expo), transform 0.3s var(--ease-out-expo);
  min-height: 36px;
  position: relative;
}

.lang-btn.active {
  background: var(--color-orange);
  color: #000000;
  transform: scale(1.05);
}

.lang-btn:not(.active):hover {
  color: var(--color-white);
}

.nav-cta {
  display: none;
}

/* ==========================================================================
   7. HERO SECTION & 3D PARALLAX BACKGROUND
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  padding: 5rem 0;
  overflow: hidden;
}

/* 3D-Like Background Perspective */
.bg-grid-perspective {
  position: absolute;
  inset: 0;
  perspective: 1000px;
  pointer-events: none;
  z-index: 0;
}

.grid-plane {
  position: absolute;
  width: 200%;
  height: 200%;
  top: -50%;
  left: -50%;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  transform: rotateX(60deg) translateY(-20%);
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% { transform: rotateX(60deg) translateY(0); }
  100% { transform: rotateX(60deg) translateY(60px); }
}

.floating-element {
  position: absolute;
  border: 1px solid var(--color-border);
  background: linear-gradient(135deg, rgba(27, 42, 65, 0.6), rgba(255, 255, 255, 0.05));
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  transition: transform 0.15s ease-out;
}

.el-1 { width: 120px; height: 120px; top: 15%; right: 10%; transform: rotate(15deg); border-radius: 24px; }
.el-2 { width: 80px; height: 80px; bottom: 30%; left: 5%; transform: rotate(-25deg); border-radius: 50%; }
.el-3 { width: 160px; height: 160px; top: 60%; right: 40%; transform: rotate(45deg); opacity: 0.6; border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
  align-items: end;
  width: 100%;
}

/* Un-cramped Hero Typography[cite: 1] */
.hero-text-block {
  max-width: 860px;
}

.hero-title {
  margin-bottom: 1.75rem;
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.015em;
  color: var(--color-white);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .hero-title {
  color: var(--color-text-primary);
  text-shadow: none;
}

.hero-subtitle {
  margin-bottom: 2.5rem;
  max-width: 680px;
  font-size: clamp(1.05rem, 1.25vw, 1.25rem);
  line-height: 1.6;
  color: var(--color-text-secondary);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .hero-subtitle {
  color: var(--color-text-secondary);
  text-shadow: none;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Bottom Right Hero Government Badges */
.hero-govt-badges {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-self: end;
  justify-self: start;
  width: 100%;
  max-width: 380px;
}

.badge-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem;
  background: rgba(27, 42, 65, 0.65);
  transition: all var(--transition-smooth), background-color 0.4s var(--ease-out-expo), border-color 0.4s var(--ease-out-expo);
}

[data-theme="light"] .badge-card {
  background: rgba(255, 255, 255, 0.85);
  border-color: var(--color-border);
  box-shadow: 0 2px 8px var(--color-shadow-light);
}

.badge-img-wrapper {
  background-color: var(--color-white);
  padding: 0.5rem;
  flex-shrink: 0;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
}

.badge-img-wrapper img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
}

.badge-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.badge-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-white);
}

[data-theme="light"] .badge-title {
  color: var(--color-text-primary);
}

.badge-desc {
  font-size: 0.85rem;
  color: var(--color-orange);
  font-weight: 500;
}

/* ==========================================================================
   8. ABOUT & TRUST SECTION
   ========================================================================== */
.about-section, .testimonials-section, .contact-section {
  padding: 6.5rem 0;
}

.section-header {
  max-width: 760px;
  margin-bottom: 4rem;
}

.section-lead {
  margin-top: 1.25rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

.about-card {
  padding: 2.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  background: linear-gradient(180deg, rgba(27, 42, 65, 0.3) 0%, rgba(12, 19, 29, 0.5) 100%);
  transition: background 0.4s var(--ease-out-expo), border-color 0.4s var(--ease-out-expo);
}

[data-theme="light"] .about-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7) 0%, rgba(241, 245, 249, 0.8) 100%);
  border-color: var(--color-border);
  box-shadow: 0 2px 8px var(--color-shadow-light);
}

.about-card h3 {
  color: var(--color-orange);
  font-size: 1.35rem;
  font-weight: 600;
}

[data-theme="light"] .about-card h3 {
  color: var(--color-orange);
}

.about-card p {
  color: var(--color-text-secondary);
}

[data-theme="light"] .about-card p {
  color: var(--color-text-secondary);
}

/* ==========================================================================
   9. SOLUTIONS BANNER
   ========================================================================== */
.solutions-section {
  padding: 2rem 0 6.5rem;
}

.solutions-banner {
  padding: 3.5rem 2.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  background: linear-gradient(135deg, var(--color-navy) 0%, rgba(12, 19, 29, 0.9) 100%);
  border: 1px solid var(--color-border-hover);
}

[data-theme="light"] .solutions-banner {
  background: linear-gradient(135deg, rgba(241, 245, 249, 0.9) 0%, rgba(255, 255, 255, 0.8) 100%);
  border-color: var(--color-border);
}

.solutions-text h2 {
  margin-bottom: 1rem;
}

/* ==========================================================================
   10. TESTIMONIALS (Messy Cards Layout)
   ========================================================================== */
.messy-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  position: relative;
  padding: 1.5rem 0;
}

.messy-card {
  padding: 2.25rem;
  cursor: pointer;
  transition: all 0.4s var(--ease-out-expo), background 0.4s var(--ease-out-expo), border-color 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo);
  background: var(--color-navy);
  border: 1px solid var(--color-border);
  position: relative;
}

[data-theme="light"] .messy-card {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 8px var(--color-shadow-light);
}

/* Default messy scattering on tablet and up */
@media (min-width: 768px) {
  .messy-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
  }
  
  .messy-card:nth-child(1) { transform: rotate(-2deg) translateY(10px); }
  .messy-card:nth-child(2) { transform: rotate(2.5deg) translateY(-5px); }
  .messy-card:nth-child(3) { transform: rotate(1.5deg) translateY(15px); }
  .messy-card:nth-child(4) { transform: rotate(-3deg) translateY(0px); }
}

@media (min-width: 1024px) {
  .messy-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Pop-out effect when hovered or focused */
.messy-card:hover,
.messy-card:focus,
.messy-card.active-card {
  transform: scale(1.06) rotate(0deg) !important;
  z-index: 20;
  border-color: var(--color-orange);
  background: var(--color-navy-light);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  outline: none;
}

[data-theme="light"] .messy-card:hover,
[data-theme="light"] .messy-card:focus,
[data-theme="light"] .messy-card.active-card {
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 8px 24px var(--color-shadow);
}

/* Dim others when one is active */
.messy-grid:hover .messy-card:not(:hover):not(:focus),
.messy-grid.has-active .messy-card:not(.active-card) {
  opacity: 0.4;
  transform: scale(0.96) !important;
}

.card-meta {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.85rem;
}

.card-meta strong {
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
}

[data-theme="light"] .card-meta strong {
  color: var(--color-text-primary);
}

.card-meta span {
  color: var(--color-orange);
  font-size: 0.85rem;
}

.card-quote {
  font-size: 0.98rem;
  font-style: italic;
  margin-bottom: 1.75rem;
  line-height: 1.6;
}

.card-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.65rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
}

/* ==========================================================================
   11. CONTACT & INQUIRY FORM
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}

.contact-direct {
  margin-top: 2.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  border-top: 1px solid var(--color-border);
  padding-top: 2.25rem;
}

.direct-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.direct-label {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-orange);
  font-weight: 600;
}

.phone-link, .email-link {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-white);
}

[data-theme="light"] .phone-link,
[data-theme="light"] .email-link {
  color: var(--color-text-primary);
}

.phone-link:hover, .email-link:hover {
  color: var(--color-orange);
}

[data-theme="light"] .phone-link:hover,
[data-theme="light"] .email-link:hover {
  color: var(--color-orange);
}

.accreditation-note {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.contact-form-wrapper {
  padding: 2.75rem;
  background: var(--color-navy);
  transition: background 0.4s var(--ease-out-expo), border-color 0.4s var(--ease-out-expo);
}

[data-theme="light"] .contact-form-wrapper {
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--color-border);
  box-shadow: 0 4px 12px var(--color-shadow);
}

.form-group {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

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

label {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text-primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

input, select, textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  background: rgba(12, 19, 29, 0.8);
  border: 1px solid var(--color-border);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 1rem;
  border-radius: 0;
  transition: border-color var(--transition-fast), background-color 0.4s var(--ease-out-expo), color 0.4s var(--ease-out-expo);
}

[data-theme="light"] input,
[data-theme="light"] select,
[data-theme="light"] textarea {
  background: var(--color-input-bg);
  color: var(--color-text-primary);
  border-color: var(--color-input-border);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--color-orange);
}

select {
  cursor: pointer;
}

/* ==========================================================================
   12. FOOTER WITH LOTTIE BACKGROUND
   ========================================================================== */
.main-footer {
  position: relative;
  background-color: #060A10;
  border-top: 1px solid var(--color-border);
  overflow: hidden;
  padding-top: 5.5rem;
  transition: background-color 0.4s var(--ease-out-expo), border-color 0.4s var(--ease-out-expo);
}

[data-theme="light"] .main-footer {
  background-color: var(--color-bg-alt);
  border-top-color: var(--color-border);
}

/* DotLottie container background positioning */
.footer-lottie-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.22; /* Slightly increased visibility for dotlottie solar animation */
}

.lottie-bg {
  width: 100%;
  height: 100%;
  min-width: 800px;
}

.footer-content {
  position: relative;
  z-index: 2;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
  padding-bottom: 4.5rem;
  border-bottom: 1px solid var(--color-border);
}

.footer-brand {
  max-width: 380px;
}

.footer-mission {
  margin: 1.35rem 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-badges-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.tag-border {
  font-size: 0.78rem;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--color-orange);
  color: var(--color-orange);
  font-weight: 600;
}

.footer-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.f-col h4 {
  font-size: 1.05rem;
  margin-bottom: 1.35rem;
  color: var(--color-white);
}

[data-theme="light"] .f-col h4 {
  color: var(--color-text-primary);
}

.f-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.f-col a {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
}

.f-col a:hover {
  color: var(--color-orange);
}

[data-theme="light"] .f-col a:hover {
  color: var(--color-orange);
}

.contact-list li {
  font-family: var(--font-heading);
  font-weight: 600;
}

.footer-bottom {
  padding: 2.25rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  font-size: 0.88rem;
  color: var(--color-text-secondary);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--color-border);
  color: var(--color-text-primary);
  transition: all var(--transition-fast);
}

[data-theme="light"] .social-icon {
  background: var(--color-bg-alt);
  border-color: var(--color-border);
}

.social-icon:hover {
  border-color: var(--color-orange);
  color: var(--color-orange);
  transform: translateY(-2px);
}

[data-theme="light"] .social-icon:hover {
  background: var(--color-white);
  box-shadow: 0 2px 8px var(--color-shadow);
}

/* ==========================================================================
   13. SCROLL REVEAL ANIMATIONS
   ========================================================================== */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
}

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

/* ==========================================================================
   14. RESPONSIVE MEDIA QUERIES (Tablet & Desktop Scaling)
   ========================================================================== */
@media (min-width: 640px) {
  .auth-strip-content {
    flex-direction: row;
  }
  .lang-divider {
    display: inline;
  }
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
  .footer-cols {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-bottom {
    flex-direction: row;
    text-align: left;
  }
}

@media (min-width: 768px) {
  .nav-links, .nav-cta {
    display: flex;
  }
  .about-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .solutions-banner {
    grid-template-columns: 2fr 1fr;
    text-align: left;
  }
  .solutions-action {
    justify-self: end;
  }
}

@media (min-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr auto;
  }
  .hero-govt-badges {
    justify-self: end;
  }
  .contact-grid {
    grid-template-columns: 1fr 1.2fr;
  }
  .footer-top {
    grid-template-columns: 1.2fr 2fr;
  }
}

/* Mobile-specific improvements for theme and language toggles */
@media (max-width: 767px) {
  .nav-controls {
    gap: 0.75rem;
  }
  
  .lang-switch {
    border-radius: 6px;
  }
  
  .lang-btn {
    padding: 0.35rem 0.65rem;
    font-size: 0.72rem;
    min-height: 32px;
  }
  
  .theme-toggle-btn {
    width: 40px;
    height: 40px;
  }
  
  .theme-toggle-btn svg {
    width: 20px;
    height: 20px;
  }
  
  /* Ensure touch targets are accessible on mobile */
  .lang-btn, 
  .theme-toggle-btn {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
  
  /* Smoother transitions for mobile performance */
  [data-i18n] {
    will-change: opacity, transform;
  }
}