/*!
 * freebie_19_landing_startup - v1.0.0
 * @author pixelcave
 * Copyright (c) 2018
 */
/*!
 * CCK Global - Dark Theme with Glassmorphism
 * Corporate luxury – dark UI, glassmorphism, neon blue accents
 * Typography: Neue Montreal / Poppins SemiBold
 * Motion: Scroll-based storytelling with glowing transitions
 */

:root {
  /* Dark Theme Colors */
  --cck-navy: #0A1E47;
  --cck-navy-rgb: 10, 30, 71;
  --cck-blue: #003F87;
  --cck-blue-rgb: 0, 63, 135;
  --cck-neon-blue: #00D6FF;
  --cck-neon-blue-rgb: 0, 214, 255;
  --cck-teal: #2CA6A4;
  --cck-teal-rgb: 44, 166, 164;
  --cck-sky: #0073CF;
  --cck-sky-rgb: 0, 115, 207;
  --cck-dark: #0B0F1A;
  --cck-dark-rgb: 11, 15, 26;
  --cck-charcoal: #1A1F2E;
  --cck-charcoal-rgb: 26, 31, 46;
  --cck-silver: #C0C5CE;
  --cck-white: #FFFFFF;
  --cck-white-rgb: 255, 255, 255;
  
  /* Light mode defaults */
  --bg-primary: #FFFFFF;
  --bg-secondary: #F8F9FA;
  --text-primary: #0A1E47;
  --text-secondary: #4F6AA3;
  --border-color: rgba(0, 0, 0, 0.1);
  --surface-emphasis: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 248, 255, 0.92) 100%);
  --surface-image-overlay: rgba(255, 255, 255, 0.72);
  --overlay-strong: linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, rgba(245, 248, 255, 0.42) 100%);
  --overlay-soft: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(245, 248, 255, 0.28) 100%);
  --glass-strong-bg: rgba(255, 255, 255, 0.88);
  --glass-strong-border: rgba(9, 30, 71, 0.12);
  
  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  
  /* Neon Effects */
  --neon-glow: 0 0 20px rgba(0, 214, 255, 0.5);
  --neon-glow-strong: 0 0 30px rgba(0, 214, 255, 0.8);
  /* Chrome / metallic gradient for subtle accents */
  --cck-chrome-gradient: linear-gradient(90deg, #D7E1EC 0%, #9BAAC3 100%);

  /* Motion tokens */
  --motion-ease: cubic-bezier(0.22, 0.12, 0.18, 1);
  --motion-fast: 0.25s;
  --motion-med: 0.45s;
  --motion-slow: 0.6s;
  color-scheme: light;
}

/* Dark Mode Theme Variables */
[data-theme="dark"] {
  --bg-primary: #0B0F1A;
  --bg-secondary: #1A1F2E;
  --text-primary: #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --border-color: rgba(255, 255, 255, 0.1);
  --surface-emphasis: linear-gradient(135deg, rgba(var(--cck-navy-rgb), 0.95) 0%, rgba(var(--cck-blue-rgb), 0.9) 100%);
  --surface-image-overlay: rgba(8, 12, 26, 0.82);
  --overlay-strong: linear-gradient(180deg, rgba(10, 15, 30, 0.78) 0%, rgba(6, 10, 22, 0.92) 100%);
  --overlay-soft: linear-gradient(180deg, rgba(10, 15, 30, 0.65) 0%, rgba(6, 10, 22, 0.2) 100%);
  --glass-strong-bg: rgba(255, 255, 255, 0.08);
  --glass-strong-border: rgba(255, 255, 255, 0.18);
  
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  color-scheme: dark;
}

/* Smooth transition for theme changes */
body,
.sticky-header,
.location-card,
.stat-card,
.solution-card,
.sector-card,
.flag-card,
.region-card,
.results-snapshot {
  transition: background-color 0.5s ease, color 0.5s ease, border-color 0.5s ease;
}

.brand-logo {
        height: 80px !important;
        max-width: 150px;
    }

/* Pop text for key marketing lines */
.pop-text {
  display: inline-block;
  background: linear-gradient(90deg, var(--cck-neon-blue) 0%, #6EE7F8 40%, #FFFFFF 60%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 2px 12px rgba(42, 203, 255, 0.08), 0 0 18px rgba(42,203,255,0.06);
  font-weight: 600;
  transform-origin: center center;
  /* Ensure visible by default; animation will enhance when .animate-in is added */
  opacity: 1;
  will-change: transform, opacity;
}

.pop-text:hover,
.pop-text:focus {
  transform: scale(1.03);
  text-shadow: 0 6px 30px rgba(42,203,255,0.18), 0 0 36px rgba(42,203,255,0.12);
}

@keyframes popIn {
  0% { transform: scale(0.98); opacity: 0; filter: blur(2px); }
  60% { transform: scale(1.02); opacity: 1; filter: blur(0); }
  100% { transform: scale(1); opacity: 1; }
}

/* Trigger popIn only when section has animate-in (so the effect still runs on scroll) */
.animate-in .pop-text { animation: popIn 700ms var(--motion-ease) both; }

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .pop-text { animation: none; transform: none; }
}

/* Stronger variant for important marketing lines */
.pop-text.pop-strong {
  background: linear-gradient(90deg, #00D6FF 0%, var(--cck-neon-blue) 45%, #E6F9FF 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
  text-shadow: 0 8px 36px rgba(0,214,255,0.16), 0 0 48px rgba(0,214,255,0.14);
  animation: popInStrong 900ms cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

@keyframes popInStrong {
  0% { transform: translateY(10px) scale(0.98); opacity: 0; filter: blur(3px); }
  55% { transform: translateY(-6px) scale(1.06); opacity: 1; filter: blur(0); }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

.pop-text.pop-strong:hover,
.pop-text.pop-strong:focus {
  transform: scale(1.06) translateY(-2px);
  text-shadow: 0 10px 50px rgba(0,214,255,0.22), 0 0 60px rgba(0,214,255,0.18);
}

/* Stronger entrance for pop-strong when animate-in is present */
.animate-in .pop-text.pop-strong {
  animation: popInStrong 900ms cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

@keyframes popInStrong {
  0% { transform: translateY(12px) scale(0.98); opacity: 0; filter: blur(4px); }
  60% { transform: translateY(-8px) scale(1.06); opacity: 1; filter: blur(0); }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

/* Ensure pop-text respects site typography (CCK Global) */
.pop-text {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit; /* gradient will override via background-clip */
}

/* If .cck-highlight exists inside pop-text, preserve the standard blue pill highlight */
.pop-text .cck-highlight {
  background-color: var(--cck-blue);
  color: var(--cck-white);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
}

html,
body {
  /* Updated to use Inter for body for clean, modern legibility */
  font-family: 'Inter', 'Public Sans', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  scroll-behavior: smooth;
  line-height: 1.8;
  padding: 0;
  font-size: 18px;
}
body.theme-light .sticky-header {
  background: linear-gradient(135deg, rgba(10, 30, 71, 0.98) 0%, rgba(0, 63, 135, 0.95) 50%, rgba(0, 45, 110, 0.95) 100%) !important;
  box-shadow: 0 12px 36px rgba(5, 16, 45, 0.28);
}

body.theme-light .sticky-header.scrolled {
  background: linear-gradient(135deg, rgba(10, 30, 71, 0.98) 0%, rgba(0, 45, 110, 0.98) 100%) !important;
}

body.theme-light .header-top {
  background: linear-gradient(135deg, rgba(8, 24, 58, 0.96) 0%, rgba(0, 53, 118, 0.94) 100%) !important;
  color: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(4, 18, 48, 0.45);
  text-shadow: 0 6px 18px rgba(5, 12, 28, 0.45);
}

body.theme-light .contact-link {
  color: rgba(255, 255, 255, 0.96);
  text-shadow: 0 6px 18px rgba(5, 12, 28, 0.45);
}

body.theme-light .contact-link .fa {
  color: rgba(0, 214, 255, 0.95);
  text-shadow: 0 0 16px rgba(0, 214, 255, 0.65);
}

body.theme-light .social-links .social-link {
  color: rgba(0, 214, 255, 0.92);
  text-shadow: 0 0 12px rgba(0, 214, 255, 0.45);
}

body.theme-light .social-links .social-link:hover,
body.theme-light .social-links .social-link:focus {
  color: var(--cck-neon-blue);
  text-shadow: 0 0 18px rgba(0, 214, 255, 0.7);
}

body.theme-dark {
  background-color: var(--bg-primary);
}

/* Privacy and Terms pages need padding for fixed header */
body.privacy-page,
body.terms-page {
  padding-top: 180px;
}

@media (max-width: 991.98px) {
  body.privacy-page,
  body.terms-page {
    padding-top: 140px;
  }
  body{
    padding-top: 20px !important;
  }
}

/* When scrolled, less padding needed */
body.privacy-page.header-scrolled,
body.terms-page.header-scrolled {
  padding-top: 100px;
  transition: padding-top 0.3s ease;
}

@media (max-width: 991.98px) {
  body.privacy-page.header-scrolled,
  body.terms-page.header-scrolled {
    padding-top: 80px;
  }
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: 'Montserrat', 'Poppins', sans-serif;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

/* Modern Typography Enhancements */
h1 {
  font-size: 4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

h2 {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 2.25rem;
  font-weight: 600;
}

h4 {
  font-size: 1.75rem;
  font-weight: 600;
}

h5 {
  font-size: 1.5rem;
  font-weight: 600;
}

h6 {
  font-size: 1.25rem;
  font-weight: 600;
}

p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.lead {
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.6;
}

/* CCK Global Brand Highlighting */
.cck-highlight {
  background-color: var(--cck-blue);
  color: var(--cck-white);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}

/* Updated to align with Neo-Corporate Futuristic design system */
/* Animation Classes */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform, opacity;
}

.animate-on-scroll.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.animate-fade-in {
  opacity: 0;
  transition: opacity 0.9s cubic-bezier(0.33, 0.0, 0.2, 1);
}

.animate-fade-in.animate-in {
  opacity: 1;
}

.animate-slide-up {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-slide-up.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* New Enhanced Animations */
.animate-scale-in {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.7s cubic-bezier(0.34, 1.56, 0.64, 1),
              transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.animate-scale-in.animate-in {
  opacity: 1;
  transform: scale(1);
}

.animate-blur-in {
  opacity: 0;
  filter: blur(10px);
  transform: translateY(20px);
  transition: opacity 0.8s ease,
              filter 0.8s ease,
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-blur-in.animate-in {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

.animate-rotate-in {
  opacity: 0;
  transform: rotate(-5deg) translateY(30px);
  transition: opacity 0.7s ease,
              transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.animate-rotate-in.animate-in {
  opacity: 1;
  transform: rotate(0) translateY(0);
}

/* Stagger animations for groups */
.animate-group .animate-on-scroll:nth-child(1) { transition-delay: 0.1s; }
.animate-group .animate-on-scroll:nth-child(2) { transition-delay: 0.2s; }
.animate-group .animate-on-scroll:nth-child(3) { transition-delay: 0.3s; }
.animate-group .animate-on-scroll:nth-child(4) { transition-delay: 0.4s; }
.animate-group .animate-on-scroll:nth-child(5) { transition-delay: 0.5s; }
.animate-group .animate-on-scroll:nth-child(6) { transition-delay: 0.6s; }

.animate-slide-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.7s ease-out;
}

.animate-slide-left.animate-in {
  opacity: 1;
  transform: translateX(0);
}

.animate-slide-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.7s ease-out;
}

.animate-slide-right.animate-in {
  opacity: 1;
  transform: translateX(0);
}

.animate-scale {
  opacity: 0;
  transform: scale(0.8);
  transition: all var(--motion-med) var(--motion-ease);
}

.animate-scale.animate-in {
  opacity: 1;
  transform: scale(1);
}

.animate-stagger {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}

.animate-stagger.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered animation delays */
.animate-stagger:nth-child(1) { transition-delay: 0.1s; }
.animate-stagger:nth-child(2) { transition-delay: 0.2s; }
.animate-stagger:nth-child(3) { transition-delay: 0.3s; }
.animate-stagger:nth-child(4) { transition-delay: 0.4s; }

/* Word popping animation */
[data-animate-words] {
  display: inline-block;
  position: relative;
}

.word-pop {
  display: inline-block;
  opacity: 0;
  transform: translateY(18px) scale(0.96);
  transition: opacity var(--motion-med) var(--motion-ease), transform var(--motion-med) var(--motion-ease);
  transition-delay: calc(var(--word-index, 0) * 60ms);
  margin-right: 0.25rem;
}

.word-pop.word-pop--visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.word-pop:last-child {
  margin-right: 0;
}

strong {
  font-weight: 600;
}

/* Enhanced navigation */
.nav-link {
  position: relative;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 0.75rem 1rem !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--cck-blue);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 80%;
}

.nav-link:hover {
  transform: translateY(-1px);
}



/* Enhanced link styles */
a {
  color: var(--cck-blue);
  transition: all 0.3s ease;
  text-decoration: none;
  position: relative;
}

a:focus,
a:hover {
  color: var(--cck-sky);
  text-decoration: none;
  transform: translateY(-1px);
}

/* Icon animations */
.fa {
  transition: all 0.3s ease;
}

.btn:hover .fa {
  transform: translateX(2px);
}

/* Scroll indicator */
.scroll-indicator {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: rgba(var(--cck-blue-rgb, 0, 63, 135), 0.24);
  box-shadow: 0 4px 12px rgba(0, 63, 135, 0.28);
  z-index: 1600;
  pointer-events: none;
  transform: translateZ(0);
}

.scroll-indicator::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--cck-neon-blue), var(--cck-sky));
  box-shadow: 0 0 10px var(--cck-neon-blue);
  transition: width 0.1s ease;
  width: var(--scroll-progress, 0%);
  border-radius: 0 2px 2px 0;
}

.text-white-75 {
  color: rgba(255, 255, 255, 0.75);
}

.text-white-90 {
  color: rgba(255, 255, 255, 0.9);
}

.bg-glass-card {
  background: rgba(9, 20, 48, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.25rem;
  backdrop-filter: blur(14px);
  box-shadow: 0 22px 48px rgba(5, 12, 28, 0.38);
  color: rgba(236, 242, 255, 0.94);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.bg-glass-card:hover,
.bg-glass-card:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 28px 60px rgba(0, 63, 135, 0.42);
  border-color: rgba(0, 214, 255, 0.4);
}

[data-theme="light"] .bg-glass-card {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.98), rgba(232, 242, 255, 0.9));
  border: 1px solid rgba(10, 30, 71, 0.12);
  box-shadow: 0 18px 44px rgba(15, 35, 82, 0.15);
  color: var(--text-primary);
}

[data-theme="light"] .bg-glass-card:hover,
[data-theme="light"] .bg-glass-card:focus-within {
  border-color: rgba(0, 63, 135, 0.28);
  box-shadow: 0 26px 58px rgba(15, 35, 82, 0.18);
}

[data-theme="light"] .bg-glass-card .text-white,
[data-theme="light"] .bg-glass-card .text-white-50,
[data-theme="light"] .bg-glass-card .text-white-75,
[data-theme="light"] .bg-glass-card .text-white-90 {
  color: rgba(249, 249, 250, 0.92) !important;
}

[data-theme="light"] .bg-glass-card .text-white-75 {
  opacity: 0.78;
}

[data-theme="light"] .bg-glass-card .text-neon-blue {
  color: var(--cck-blue);
}

[data-theme="dark"] .bg-glass-card .text-neon-blue {
  color: var(--cck-neon-blue);
}

.bg-glass-card .text-white,
.bg-glass-card .text-white-50,
.bg-glass-card .text-white-75,
.bg-glass-card .text-white-90 {
  color: inherit !important;
}

.bg-black-60 {
  background-color: rgba(0, 0, 0, 0.6);
}

/* Modern button enhancements */
.btn {
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border-radius: 50px;
  position: relative;
  overflow: hidden;
}

.btn-modern {
  transform: translateY(0);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn-modern:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
}

.btn-modern:active {
  transform: translateY(0);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Hover effect for buttons */
.btn-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s;
}

.btn-modern:hover::before {
  left: 100%;
}

/* Offering cards */
.offering-card {
  padding: 1.5rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  backdrop-filter: blur(10px);
}

.offering-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.95);
}

.offering-card .fa {
  transition: all 0.3s ease;
}

.offering-card:hover .fa {
  transform: scale(1.1);
}

/* Modern section spacing */
.py-5 {
  padding-top: 4rem !important;
  padding-bottom: 4rem !important;
}

.py-6 {
  padding-top: 5rem !important;
  padding-bottom: 5rem !important;
}

/* Enhanced section backgrounds */
.bg-primary-light {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  position: relative;
}

.bg-primary-light::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="0.5" fill="%23000" opacity="0.02"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  pointer-events: none;
  z-index: 0;
}

.bg-primary-light .container {
  position: relative;
  z-index: 1;
}

.fa-ul li {
  margin-bottom: .75rem;
}

a {
  color: var(--cck-blue);
  transition: color 0.2s ease;
  text-decoration: none;
}

a:focus,
a:hover {
  color: var(--cck-sky);
  text-decoration: none;
}

#page-container {
  width: 100%;
  max-width: none;
  margin: 0;
  min-height: 100vh;
  padding-top: 150px;
}

.container {
  max-width: 100%;
}

@media (min-width: 992px) {
  .container {
    padding-left: 3rem;
    padding-right: 3rem;
  }
}

.hero {
  overflow: visible;
  position: relative;
  padding-top: 200px !important;
  padding-bottom: 3rem;
}

.bg-hero {
  position: absolute;
  width: 100%;
  height: 100%;
  min-height: 520px;
  background-color: var(--cck-blue);
  background: linear-gradient(65deg, var(--cck-navy), var(--cck-blue));
  -webkit-transform: skewY(-6deg);
          transform: skewY(-6deg);
  -webkit-transform-origin: 0;
          transform-origin: 0;
  overflow: hidden;
  top: 0;
  left: 0;
  z-index: 0;
}

.bg-hero-video,
.bg-hero-image {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  transition: opacity 0.3s ease;
  will-change: opacity;
}

.bg-hero-video {
  filter: brightness(0.7) contrast(1.1);
}

/* Homepage hero video tuning: keep video visible under header and smooth */
#home .bg-hero-video {
  filter: brightness(0.8) contrast(1.06) saturate(1.05);
  will-change: opacity, transform;
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* Lighten homepage overlay so video remains visible while links animate */
#home .bg-hero-overlay {
  background: linear-gradient(135deg, rgba(11,28,61,0.55) 0%, rgba(0,63,135,0.45) 60%, rgba(44,166,164,0.35) 100%) !important;
}
[data-theme="light"] #home .bg-hero-overlay {
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(215,230,255,0.35) 100%) !important;
  mix-blend-mode: multiply;
}

.bg-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-height: 520px;
  background: var(--overlay-strong);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero .lead,
.hero p,
.hero .text-white-75 {
  color: var(--text-secondary);
}

[data-theme="dark"] .hero .lead,
[data-theme="dark"] .hero p,
[data-theme="dark"] .hero .text-white-75 {
  color: rgba(255, 255, 255, 0.78);
}

.hero .regions-row {
  margin-top: 2rem;
}

.region-card {
  background: linear-gradient(145deg, rgba(10,30,71,0.88) 0%, rgba(0,63,135,0.82) 60%, rgba(0,214,255,0.18) 100%);
  border: 1px solid rgba(0, 214, 255, 0.25);
  border-radius: 1rem;
  padding: 1.5rem 1.25rem;
  height: 100%;
  box-shadow: 0 18px 36px rgba(2, 13, 34, 0.35);
  backdrop-filter: blur(6px);
  transition: all 0.35s var(--motion-ease);
  position: relative;
  overflow: hidden;
}

.region-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 28px 60px rgba(2, 13, 34, 0.55);
  border-color: rgba(0, 214, 255, 0.55);
}

.region-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 140%;
  height: 100%;
  background: linear-gradient(110deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.18) 45%, rgba(255,255,255,0) 90%);
  transition: left 0.85s cubic-bezier(0.25,0.9,0.35,1);
  pointer-events: none;
}

.region-card:hover::before {
  left: 120%;
}

/* Immersive video sections */
.section-video {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  color: #ffffff;
  border-radius: 1.5rem;
  box-shadow: 0 24px 48px rgba(2, 13, 34, 0.35);
  margin-bottom: 3rem;
}

.section-video__media,
.section-image__media {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.65);
  transform: scale(1.02);
}

.section-video::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11, 28, 61, 0.8) 0%, rgba(0, 63, 135, 0.65) 55%, rgba(44, 166, 164, 0.55) 100%);
}

.section-video__content {
  position: relative;
  z-index: 1;
  padding: 3rem;
}

.section-video__content .badge {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 1.5rem;
}

.section-video--right .section-video__content {
  margin-left: auto;
  text-align: right;
}

.section-video--light::after {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(233, 236, 239, 0.7) 100%);
  mix-blend-mode: multiply;
}

.section-video--light {
  color: var(--cck-navy);
}

.section-video--light .section-video__media {
  filter: brightness(0.8);
}

.py-6 {
  padding-top: 5rem !important;
  padding-bottom: 5rem !important;
}

/* Team section */
.team-section {
  background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(229,232,236,0.5) 100%);
  border-radius: 20px;
  padding: 3rem 2rem;
  position: relative;
  overflow: hidden;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.team-card {
  background: var(--cck-white);
  padding: 3rem 2rem;
  border-radius: 20px;
  text-align: center;
  position: relative;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: 1px solid rgba(44, 166, 164, 0.1);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.team-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--cck-teal), var(--cck-blue));
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: 20px;
  z-index: 1;
}

.team-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

.team-card:hover::before {
  opacity: 0.03;
}

.team-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cck-teal), var(--cck-blue));
  color: var(--cck-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 auto 2rem;
  box-shadow: 0 15px 40px rgba(44, 166, 164, 0.3);
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.team-avatar i {
  font-size: 3rem;
  color: var(--cck-white);
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.team-name {
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--cck-navy);
  position: relative;
  z-index: 2;
}

.team-role {
  font-size: 1.1rem;
  color: var(--cck-blue);
  margin-bottom: 1.5rem;
  font-weight: 500;
  position: relative;
  z-index: 2;
}

.team-socials a {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(11, 28, 61, 0.12);
  color: var(--cck-navy);
  margin: 0 0.35rem;
  transition: all 0.25s ease;
}

.team-socials a:hover {
  background: var(--cck-sky);
  color: #fff;
  transform: translateY(-2px);
}

/* Feature video block */
.video-feature {
  background: #fff;
  border-radius: 1.5rem;
  padding: 2.5rem;
  box-shadow: 0 25px 45px rgba(11, 28, 61, 0.15);
}

.video-feature video,
.video-feature img {
  width: 100%;
  border-radius: 1rem;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.25);
}

/* Our Story hero */
.story-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.story-hero__video,
.story-hero__image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.55);
}

.story-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(11, 28, 61, 0.85) 0%, rgba(0, 63, 135, 0.65) 60%, rgba(44, 166, 164, 0.55) 100%);
}

.story-hero__content {
  position: relative;
  z-index: 1;
}

.story-hero .stats-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 1.5rem;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(4px);
}

.story-hero .stats-card p {
  color: rgba(255, 255, 255, 0.85);
}

/* Careers intro section with video */
.careers-intro {
  position: relative;
  overflow: hidden;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.careers-video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.bg-careers-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.careers-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 30, 71, 0.75) 0%, rgba(0, 63, 135, 0.65) 100%);
  z-index: 1;
}

.careers-intro .container {
  position: relative;
  z-index: 2;
}

/* Career highlight cards */
.career-card {
  transition: all 0.3s ease;
  cursor: pointer;
}

.career-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(40, 167, 69, 0.2) !important;
}

.career-card .fa-rocket,
.career-card .fa-globe,
.career-card .fa-laptop-house {
  transition: transform 0.3s ease;
}

.career-card:hover .fa-rocket,
.career-card:hover .fa-globe,
.career-card:hover .fa-laptop-house {
  transform: scale(1.1);
}

/* Old careers hero styles (kept for compatibility) */
.careers-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.careers-hero__video,
.careers-hero__image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6);
}

.careers-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(44, 166, 164, 0.85) 0%, rgba(0, 115, 207, 0.75) 60%, rgba(11, 28, 61, 0.65) 100%);
}

.careers-hero__content {
  position: relative;
  z-index: 1;
}

/* Helper classes */
.min-vh-60 {
  min-height: 60vh;
}

/* Story video grid */
.story-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.story-video-card {
  position: relative;
  color: var(--text-secondary);
  overflow: hidden;
  background: #000;
  min-height: 320px;
  box-shadow: 0 20px 50px rgba(11, 28, 61, 0.2);
}
.story-video-card video,
.story-video-card img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
}

.story-video-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(11, 28, 61, 0.7) 100%);
}

[data-theme="light"] .bg-primary-dark .story-video-card::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.25) 0%, rgba(215, 230, 255, 0.75) 100%);
}

.story-video-card__content {
  position: relative;
  z-index: 1;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #ffffff;
}

.story-video-card__content h4 {
  font-weight: 700;
}

.region-card h4 {
  color: var(--cck-white);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.region-card p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}
/* Light mode variant: ensure dark readable text (override white) */
[data-theme="light"] .region-card h4 { color: #0A1E47 !important; text-shadow: none; }
[data-theme="light"] .region-card p { color: #1F3A63 !important; text-shadow: none; opacity: 0.9; }

.bg-primary-dark {
  background: var(--surface-emphasis);
  color: rgba(236, 242, 255, 0.95);
  position: relative;
  overflow: hidden;
}
/* Improve light-mode contrast: replace near-white gradient background with a subtle navy-tinted panel so white marketing copy is legible */
[data-theme="light"] .bg-primary-dark {
  background: linear-gradient(135deg, rgba(12,34,74,0.88) 0%, rgba(16,50,110,0.9) 55%, rgba(22,68,142,0.92) 100%) !important;
  color: rgba(248,252,255,0.96) !important;
}

/* Avoid section-specific overrides from forcing near-white backgrounds over dark intent */
[data-theme="light"] #security,
[data-theme="light"] .site-footer,
[data-theme="light"] #cta,
[data-theme="light"] .story-video-grid,
[data-theme="light"] .bg-primary-dark#mission,
[data-theme="light"] .bg-primary-dark#vision {
  background: inherit;
}

/* Contact Page Hero: ensure headline & subtext stay readable in light mode (video behind may be bright) */
body.page-contact .contact-hero .pop-text,
body.page-contact .contact-hero h1,
body.page-contact .contact-hero .lead {
  color: #FFFFFF !important;
  text-shadow: 0 6px 22px rgba(4,15,35,0.55), 0 2px 4px rgba(0,0,0,0.4);
}
body[data-theme="light"].page-contact .contact-hero .lead { color: rgba(255,255,255,0.9) !important; }
body.page-contact .contact-hero { position: relative; }
/* Dynamic overlay for Contact hero: theme-adaptive instead of static dark gradient */
body.page-contact .contact-hero .contact-bg-overlay { position:absolute; inset:0; background:none; pointer-events:none; }
body[data-theme="light"].page-contact .contact-hero .contact-bg-overlay {
  background: linear-gradient(140deg, rgba(255,255,255,0.15) 0%, rgba(0,40,90,0.35) 55%, rgba(0,40,90,0.50) 100%);
  backdrop-filter: saturate(1.1) blur(2px);
}
body[data-theme="dark"].page-contact .contact-hero .contact-bg-overlay {
  background: linear-gradient(140deg, rgba(4,12,28,0.70) 0%, rgba(4,22,48,0.78) 55%, rgba(4,32,68,0.85) 100%);
  backdrop-filter: saturate(1.15) blur(1px);
}

/* Contact Hero Layering (align with index hero pattern) */
body.page-contact .contact-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.contact-video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.bg-contact-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.62) contrast(1.08) saturate(1.05);
  z-index: 0;
}

body.page-contact .contact-hero .contact-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(160deg, rgba(6,18,44,0.78) 0%, rgba(5,32,72,0.82) 55%, rgba(4,44,88,0.86) 100%);
  backdrop-filter: saturate(1.12) blur(2px);
}

body.page-contact .contact-hero .digital-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.25;
  mix-blend-mode: screen;
}

body.page-contact .contact-hero .container {
  position: relative;
  z-index: 2;
}

/* Strengthen text contrast over video */
body.page-contact .contact-hero h1,
body.page-contact .contact-hero .lead,
body.page-contact .contact-hero .pop-text.pop-strong {
  text-shadow: 0 8px 32px rgba(4,15,35,0.65), 0 2px 6px rgba(0,0,0,0.55);
}

@media (max-width: 992px) {
  body.page-contact .contact-hero { min-height: 80vh; }
  .bg-contact-video { filter: brightness(0.68) contrast(1.05); }
}

@media (prefers-reduced-motion: reduce) {
  .bg-contact-video { filter: brightness(0.7); }
}



/* Ensure any nested heading/paragraph classes inside .bg-primary-dark in light mode inherit bright accessible colors (fallback if earlier rules missed an element) */
[data-theme="light"] .bg-primary-dark h1,
[data-theme="light"] .bg-primary-dark h2,
[data-theme="light"] .bg-primary-dark h3,
[data-theme="light"] .bg-primary-dark h4,
[data-theme="light"] .bg-primary-dark h5,
[data-theme="light"] .bg-primary-dark h6,
[data-theme="light"] .bg-primary-dark p,
[data-theme="light"] .bg-primary-dark .lead,
[data-theme="light"] .bg-primary-dark li,
[data-theme="light"] .bg-primary-dark .text-white,
[data-theme="light"] .bg-primary-dark .text-white-75,
[data-theme="light"] .bg-primary-dark .text-white-50,
[data-theme="light"] .bg-primary-dark .text-white-90 {
  color: rgba(248,252,255,0.96) !important;
  text-shadow: 0 1px 4px rgba(0,0,0,0.55);
}

/* Slightly softer tone for long paragraphs to reduce glare */
[data-theme="light"] .bg-primary-dark p,
[data-theme="light"] .bg-primary-dark .lead {
  color: rgba(240,248,255,0.94) !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* Muted variants remain readable */
[data-theme="light"] .bg-primary-dark .text-muted {
  color: rgba(230,240,252,0.85) !important;
}

.section-heading-pretitle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.6rem;
  border-radius: 999px;
  background: rgba(0, 214, 255, 0.18);
  border: 1px solid rgba(0, 214, 255, 0.35);
  color: rgba(0, 214, 255, 0.82);
  letter-spacing: 0.18em;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  backdrop-filter: blur(6px);
}

[data-theme="light"] .section-heading-pretitle {
  background: rgba(245, 249, 255, 0.74);
  border-color: rgba(10, 30, 71, 0.14);
  color: rgba(10, 30, 71, 0.72) !important;
}

.site-footer {
  background: linear-gradient(135deg, rgba(10, 30, 71, 0.94), rgba(10, 30, 71, 0.94)),
    url('../media/imgs/pages/seo-agency/page-home/section-1/WorldImage.png') center / cover no-repeat;
  color: var(--cck-white);
}

.site-footer h2,
.site-footer h3,
.site-footer h4,
.site-footer h5,
.site-footer p,
.site-footer .lead,
.site-footer .footer-link {
  color: rgba(248, 252, 255, 0.98) !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.65);
}

.site-footer .footer-link:hover,
.site-footer .footer-link:focus {
  color: var(--cck-neon-blue) !important;
}

.site-footer h2,
.site-footer h3,
.site-footer h4,
.site-footer h5 {
  color: rgba(248, 252, 255, 0.98) !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}

.site-footer .lead,
.site-footer p,
.site-footer .footer-link {
  color: rgba(245, 250, 255, 0.94) !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.65);
}

.site-footer .footer-link:hover,
.site-footer .footer-link:focus,
.site-footer .social-link:hover,
.site-footer .social-link:focus {
  color: #ffffff !important;
}


[data-theme="light"] .bg-primary-dark .text-white,
[data-theme="light"] .bg-primary-dark .text-white-50,
[data-theme="light"] .bg-primary-dark .text-white-75,
[data-theme="light"] .bg-primary-dark .text-white-90,
[data-theme="light"] .bg-primary-dark h2,
[data-theme="light"] .bg-primary-dark h3,
[data-theme="light"] .bg-primary-dark h4,
[data-theme="light"] .bg-primary-dark h5 {
  color: rgba(248, 252, 255, 0.96) !important;
}

[data-theme="light"] .bg-primary-dark .lead,
[data-theme="light"] .bg-primary-dark p,
[data-theme="light"] .bg-primary-dark li {
  color: rgba(235, 244, 255, 0.92) !important;
}

[data-theme="light"] .bg-primary-dark .text-white-75 {
  color: rgba(230, 242, 255, 0.88) !important;
}

[data-theme="light"] .bg-primary-dark .text-white-50 {
  color: rgba(220, 236, 255, 0.75) !important;
}

[data-theme="light"] .bg-primary-dark .text-muted {
  color: rgba(210, 230, 252, 0.82) !important;
}

.bg-primary-light {
  background: var(--cck-grey);
}

.btn-outline-primary {
  color: var(--cck-blue);
  border-color: var(--cck-blue);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  color: var(--cck-white);
  background-color: var(--cck-blue);
  border-color: var(--cck-blue);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 63, 135, 0.18);
}

.btn-success,
.btn-primary {
  background-color: var(--cck-blue);
  border-color: var(--cck-blue);
  color: var(--cck-white);
}

.btn-success:hover,
.btn-success:focus,
.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--cck-teal);
  border-color: var(--cck-teal);
  color: var(--cck-white);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(44, 166, 164, 0.24);
}

.btn-light {
  background-color: var(--cck-white);
  border-color: var(--cck-grey);
  color: var(--cck-blue);
}

.btn-light:hover,
.btn-light:focus {
  background-color: var(--cck-grey);
  color: var(--cck-navy);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(11, 28, 61, 0.15);
}

.text-primary {
  color: var(--cck-blue) !important;
}

.text-success,
.text-accent {
  color: var(--cck-sky) !important;
}

.badge-success {
  background-color: var(--cck-teal);
  color: var(--cck-white);
}

.badge-accent {
  background-color: var(--cck-teal);
  color: var(--cck-navy);
}

.bg-accent {
  background-color: var(--cck-teal);
  color: var(--cck-white);
}

.border-accent {
  border-color: var(--cck-teal) !important;
}

.blockquote {
  border-left: .25rem solid rgba(255, 255, 255, 0.2);
  padding-left: 1rem;
}

.bg-white .blockquote {
  border-color: rgba(30, 58, 138, 0.15);
}

.embed-responsive iframe {
  border: 0;
}

.nav-header .nav-link {
  padding: .25rem 0;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  background-color: transparent;
  border-bottom: .125rem solid transparent;
}

.nav-header .nav-link:hover, .nav-header .nav-link:focus {
  color: #FFFFFF;
}

.nav-header .nav-link + .nav-link {
  margin-left: 1.5rem;
}

.nav-header .nav-link.active {
  color: #FFFFFF;
  border-bottom-color: var(--cck-teal);
  box-shadow: inset 0 -0.125rem 0 var(--cck-teal);
}

.sticky-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1200;
  background: transparent;
  backdrop-filter: blur(10px);
  box-shadow: none;
  transition: all 0.3s ease;
}

/* Scrolled state - blue background appears on scroll */
.sticky-header.scrolled {
  background: rgba(var(--cck-navy-rgb, 11, 28, 61), 0.98);
  box-shadow: 0 6px 20px rgba(11, 28, 61, 0.25);
}

/* Hide header top on scroll */
.header-top {
  transition: all 0.3s ease;
  max-height: 60px;
  opacity: 1;
  overflow: hidden;
}

.sticky-header.scrolled .header-top {
  max-height: 0;
  opacity: 0;
  padding: 0;
  border-bottom: none;
}

/* Adjust header spacing when scrolled */
.sticky-header.scrolled .row.align-items-center {
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
}

/* Smooth transition for all header elements */
.sticky-header * {
  transition: all 0.3s ease;
}

/* Ensure content doesn't jump during scroll */
#page-container {
  padding-top: 150px;
  min-height: 100vh;
}

.sticky-header .container {
  position: relative;
}

.header-top {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(229, 232, 236, 0.25);
  padding: 0.75rem 0;
}

.contact-link {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s ease;
}

.contact-link:hover,
.contact-link:focus {
  color: #FFFFFF;
}

.contact-link .fa {
  color: var(--cck-neon-blue);
  text-shadow: 0 0 12px rgba(0, 214, 255, 0.45);
}

.brand-and-toggle {
  gap: 0.75rem;
}

.brand-and-toggle .brand-logo-link {
  display: inline-flex;
  align-items: center;
}

.brand-and-toggle .theme-toggle {
  margin: 0;
}

.header-controls {
  width: 100%;
  gap: 1.5rem;
}

.header-controls nav {
  margin-right: 1.5rem;
}

.header-action-buttons {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}

.header-action-buttons .theme-toggle {
  margin: 0;
}

@media (max-width: 767.98px) {
  .brand-and-toggle {
    justify-content: center;
  }
}

.page-loader {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(135deg, rgba(10, 30, 71, 0.95) 0%, rgba(0, 63, 135, 0.95) 100%);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.page-loader__spinner {
  width: 120px;
  height: 120px;
  background-image: url('../media/imgs/logos/WhatsApp_Image_2025-10-23_at_14.55.10_975c7d31-removebg-preview.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  animation: logoFloat 2s ease-in-out infinite, logoGlow 2s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(0, 214, 255, 0.6));
}

@keyframes logoFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-20px) scale(1.05);
  }
}

@keyframes logoGlow {
  0%, 100% {
    filter: drop-shadow(0 0 20px rgba(0, 214, 255, 0.6));
  }
  50% {
    filter: drop-shadow(0 0 40px rgba(0, 214, 255, 0.9)) drop-shadow(0 0 60px rgba(40, 167, 69, 0.4));
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 991.98px) {
  .hero {
    
    padding-bottom: 2.5rem;
  }

  .hero .regions-row {
    margin-top: 1.5rem;
  }

  .section-video {
    min-height: 360px;
  }

  .section-video__content {
    padding: 2.5rem;
    text-align: center;
  }

  .section-video--right .section-video__content {
    margin-left: 0;
    text-align: center;
  }

  .team-section {
    padding: 3rem 2rem;
  }

  .story-hero {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }

  .story-video-card {
    min-height: 260px;
  }
}

@media (max-width: 575.98px) {
  .region-card {
    padding: 1rem;
  }

  .video-feature {
    padding: 1.75rem;
  }

  .section-video__content {
    padding: 2rem;
  }

  .team-grid {
    gap: 1.5rem;
  }

  .story-video-card__content {
    padding: 1.75rem;
  }
}

/* ========================================
   NEW DARK THEME STYLES
   ======================================== */

/* Hero Section Styles */
.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--cck-navy);
  z-index: 0;
}

.hero-data-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent 49%, var(--cck-neon-blue) 50%, transparent 51%);
  background-size: 20px 20px;
  opacity: 0.1;
  animation: dataFlow 20s linear infinite;
}

@keyframes dataFlow {
  0% { transform: translateX(-20px) translateY(-20px); }
  100% { transform: translateX(20px) translateY(20px); }
}

.hero-globe-container {
  position: absolute;
  top: 50%;
  left: 50%;

/* --- Contact Page: Normalize header active nav to match global --- */
/* Remove pill/background and use the standard underline + white text */
body.page-contact .nav-header .nav-link.active {
  background: transparent !important;
  color: #FFFFFF !important;
  border-radius: 0 !important;
  box-shadow: inset 0 -0.125rem 0 var(--cck-teal) !important;
  border-bottom-color: var(--cck-teal) !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
/* Ensure the underline matches global metrics */
body.page-contact .nav-header .nav-link.active::after,
body.page-contact .nav-link.active::after {
  width: 80% !important;
  height: 2px !important;
  bottom: 0 !important;
  background: var(--cck-blue) !important;
  transform: translateX(-50%) !important;
  left: 50% !important;
  opacity: 1 !important;
}

/* --- Contact Page: Re-assert theme-adaptive overlay (override late static rules) --- */
body.page-contact .contact-hero .contact-bg-overlay { background: none !important; }
body[data-theme="light"].page-contact .contact-hero .contact-bg-overlay {
  background: linear-gradient(140deg, rgba(255,255,255,0.15) 0%, rgba(0,40,90,0.35) 55%, rgba(0,40,90,0.50) 100%) !important;
  backdrop-filter: saturate(1.1) blur(2px) !important;
}
body[data-theme="dark"].page-contact .contact-hero .contact-bg-overlay {
  background: linear-gradient(140deg, rgba(4,12,28,0.70) 0%, rgba(4,22,48,0.78) 55%, rgba(4,32,68,0.85) 100%) !important;
  backdrop-filter: saturate(1.15) blur(1px) !important;
}
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  opacity: 0.3;
}

.hero-globe {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid var(--cck-neon-blue);
  animation: globeRotate 30s linear infinite;
}

.globe-node {
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--cck-neon-blue);
  border-radius: 50%;
  box-shadow: var(--neon-glow);
}

.globe-node[data-region="africa"] { top: 60%; left: 50%; }
.globe-node[data-region="middle-east"] { top: 45%; left: 55%; }
.globe-node[data-region="apac"] { top: 50%; left: 75%; }
.globe-node[data-region="europe"] { top: 35%; left: 50%; }

@keyframes globeRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.hero-headline .headline-stage-1 {
  display: block;
  animation: headlineReveal 1s ease-out 0.5s both;
  color: var(--text-primary);
}

.hero-headline .headline-stage-2 {
  display: block;
  animation: headlineReveal 1s ease-out 1s both;
  color: var(--text-primary);
}

@keyframes headlineReveal {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Brand Strip (CCK Medical & CCK Marketing) */
.brand-strip {
  background: linear-gradient(135deg, rgba(11,28,61,0.92) 0%, rgba(0,63,135,0.9) 100%);
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 0.85rem 0;
}
.brand-strip .container { position: relative; z-index: 2; }
.brand-strip-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  align-items: center;
}
.brand-chip {
  display: flex;
  align-items: center;
  padding: 0.6rem 0.9rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  color: #fff;
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.brand-chip:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,0.25); background: rgba(255,255,255,0.08); }
.brand-chip-image {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: contain;
  background: #fff;
  margin-right: 0.75rem;
}
.brand-chip-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-chip-title { font-weight: 800; letter-spacing: 0.01em; }
.brand-chip-sub { font-size: 0.9rem; opacity: 0.85; }

[data-theme="light"] .brand-strip {
  background: linear-gradient(135deg, rgba(245,248,255,0.95) 0%, rgba(232,240,255,0.95) 100%);
  border-top: 1px solid rgba(10,30,71,0.1);
  border-bottom: 1px solid rgba(10,30,71,0.08);
}
[data-theme="light"] .brand-chip {
  background: rgba(255,255,255,0.9);
  border-color: rgba(10,30,71,0.12);
  color: #0A1E47;
}
[data-theme="light"] .brand-chip-sub { color: #1F3A63; opacity: 0.8; }

/* Neon Glow Button */
.btn-neon-glow {
  background: linear-gradient(135deg, var(--cck-neon-blue), var(--cck-sky));
  border: 1px solid var(--cck-neon-blue);
  color: var(--cck-white);
  box-shadow: var(--neon-glow);
  transition: all 0.3s ease;
}

.btn-neon-glow:hover {
  box-shadow: var(--neon-glow-strong);
  transform: translateY(-2px);
  color: var(--cck-white);
}

/* Updated to align with Neo-Corporate Futuristic design system */
/* Glassmorphism CTA with neon glow */
.btn-cta-glass {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.98), rgba(37, 99, 235, 0.98));
  border: 1px solid rgba(14, 165, 233, 0.55);
  color: #ffffff;
  padding: 1rem 1.9rem;
  border-radius: 999px;
  backdrop-filter: blur(14px) saturate(1.08);
  box-shadow: 0 16px 46px rgba(14, 165, 233, 0.38), 0 0 20px rgba(14, 165, 233, 0.18) inset;
  transition: transform var(--motion-fast) var(--motion-ease), box-shadow var(--motion-fast) var(--motion-ease), filter var(--motion-fast) var(--motion-ease);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  font-weight: 600;
  min-height: 3.25rem;
  letter-spacing: 0.02em;
}

.btn-cta-glass:hover,
.btn-cta-glass:focus {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 20px 58px rgba(14, 165, 233, 0.45), 0 0 32px rgba(14, 165, 233, 0.22) inset;
  filter: saturate(1.08);
  color: #ffffff;
}

[data-theme="light"] .btn-cta-glass.btn-neon-glow {
  background: linear-gradient(135deg, #0b3b86, #1556d6);
  border-color: rgba(17, 72, 173, 0.65);
  color: #ffffff;
  box-shadow: 0 18px 44px rgba(17, 72, 173, 0.35);
}

[data-theme="light"] .btn-cta-glass.btn-neon-glow:hover,
[data-theme="light"] .btn-cta-glass.btn-neon-glow:focus {

/* =============================================
  Contact Form Submit Button Animation & States
  ============================================= */
#submit-btn { position: relative; overflow: hidden; }
#submit-btn .btn-spinner { display: none; width: 1.15rem; height: 1.15rem; border: 3px solid rgba(255,255,255,0.35); border-top-color: #fff; border-radius: 50%; animation: spin 0.9s linear infinite; margin-right: 0.6rem; }
#submit-btn.loading .btn-spinner { display: inline-block; }
#submit-btn.loading i.fa-paper-plane { display: none; }
#submit-btn.ready:not(.loading) { animation: btnPulse 2.4s ease-in-out infinite; }
#submit-btn.ready:not(.loading) .btn-glow { opacity: 1; animation: glowCycle 4s linear infinite; }
#submit-btn.disabled, #submit-btn:disabled { cursor: not-allowed; opacity: 0.55; }

@keyframes btnPulse { 0% { transform: translateY(0); box-shadow: 0 0 0 rgba(0,178,255,0.4); } 50% { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,178,255,0.35); } 100% { transform: translateY(0); box-shadow: 0 0 0 rgba(0,178,255,0.4); } }
@keyframes glowCycle { 0%,100% { filter: drop-shadow(0 0 4px rgba(0,178,255,0.55)); } 50% { filter: drop-shadow(0 0 10px rgba(0,178,255,0.9)); } }

/* Inline field error messages (Bootstrap invalid-feedback override for dark panel) */
.contact-form .invalid-feedback { display: none; font-size: 0.75rem; margin-top: 0.35rem; color: #FF6B6B; line-height: 1.2; }
[data-theme="light"] .contact-form .invalid-feedback { color: #C62828; }
.contact-form .form-control.is-invalid, .contact-form .form-control-glass.is-invalid { border-color: #FF6B6B !important; box-shadow: 0 0 0 1px rgba(255,107,107,0.4); }
[data-theme="light"] .contact-form .form-control.is-invalid, [data-theme="light"] .contact-form .form-control-glass.is-invalid { border-color: #C62828 !important; box-shadow: 0 0 0 1px rgba(198,40,40,0.35); }

/* Form-level status messages */
.form-status { font-size: 0.8rem; padding: 0.65rem 0.9rem; border-radius: 6px; margin-top: 0.75rem; background: rgba(255,255,255,0.07); backdrop-filter: blur(3px); letter-spacing: 0.4px; font-weight: 500; }
.form-status.is-success { color: #1EE196; background: rgba(30,225,150,0.12); box-shadow: 0 0 0 1px rgba(30,225,150,0.35); }
.form-status.is-error { color: #FF6B6B; background: rgba(255,107,107,0.12); box-shadow: 0 0 0 1px rgba(255,107,107,0.35); }
[data-theme="light"] .form-status { background: rgba(10,30,71,0.06); }
[data-theme="light"] .form-status.is-success { color: #0F6B4A; box-shadow: 0 0 0 1px rgba(15,107,74,0.4); }
[data-theme="light"] .form-status.is-error { color: #C62828; box-shadow: 0 0 0 1px rgba(198,40,40,0.4); }
  box-shadow: 0 22px 56px rgba(17, 72, 173, 0.45);
}

.btn-cta-primary,
.btn-cta-secondary {
  font-size: clamp(1rem, 0.92rem + 0.35vw, 1.15rem);
  line-height: 1.2;
}

.btn-cta-primary .btn-text {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* Floating persistent CTA */
.floating-cta {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 9998;
  pointer-events: auto;
}

.floating-cta .btn-cta-glass {
  width: auto;
  padding: 0.9rem 1.4rem;
  cursor: pointer;
  border: 1px solid rgba(14, 165, 233, 0.6);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.99), rgba(56, 189, 248, 0.99));
  backdrop-filter: blur(16px);
  box-shadow: 0 14px 38px rgba(14, 165, 233, 0.42);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ffffff;
  font-weight: 600;
  border-radius: 999px;
}

.floating-cta .btn-cta-glass:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 52px rgba(14, 165, 233, 0.46);
  background: linear-gradient(135deg, rgba(14, 165, 233, 1), rgba(56, 189, 248, 1));
}

@media (max-width: 575.98px) {
  .floating-cta {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    bottom: 1rem;
    width: calc(100% - 2rem);
  }

  .floating-cta .btn-cta-glass {
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    justify-content: center;
    box-shadow: 0 12px 32px rgba(14, 165, 233, 0.35);
  }
}

@media (max-width: 991.98px) {
  body.sidebar-open .floating-cta {
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
  }
}

@media (max-width: 767.98px) {
  body.sidebar-open .floating-cta {
    display: none;
  }
}

/* Contact Modal */
.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.contact-modal.active {
  opacity: 1;
  visibility: visible;
}

.contact-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 30, 71, 0.95);
  backdrop-filter: blur(10px);
}

.contact-modal-content {
  position: relative;
  background: linear-gradient(135deg, rgba(10, 30, 71, 0.98) 0%, rgba(0, 63, 135, 0.95) 100%);
  border-radius: 24px;
  padding: 3rem;
  max-width: 500px;
  width: 90%;
  border: 1px solid rgba(0, 214, 255, 0.2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.contact-modal.active .contact-modal-content {
  transform: scale(1);
}

.contact-modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cck-white);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.2rem;
}

.contact-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.contact-modal-header {
  text-align: center;
  margin-bottom: 2rem;
}

.contact-modal-icon {
  font-size: 3rem;
  color: var(--cck-neon-blue);
  margin-bottom: 1rem;
  display: block;
}

.contact-modal-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--cck-white);
  margin-bottom: 0.5rem;
}

.contact-modal-subtitle {
  color: var(--cck-silver);
  font-size: 1rem;
  margin: 0;
}

.contact-modal-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-option {
  position: relative;
  background: transparent;
}

.contact-option-inner {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  padding: 1.6rem;
  border: 1px solid rgba(0, 214, 255, 0.18);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(0, 63, 135, 0.22) 100%);
  box-shadow: 0 18px 45px rgba(4, 16, 45, 0.35);
  transition: all 0.35s ease;
  width: 100%;
}

.contact-option::before {
  content: '';
  position: absolute;
  inset: -40% -20% auto -20%;
  height: 65%;
  background: radial-gradient(circle at center, rgba(0, 214, 255, 0.22), transparent 60%);
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.35s ease;
  pointer-events: none;
}

.contact-option-link {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  text-decoration: none;
  color: inherit;
  position: relative;
  z-index: 2;
}

.contact-option:hover .contact-option-inner,
.contact-option:focus-within .contact-option-inner {
  border-color: rgba(0, 214, 255, 0.45);
  background: linear-gradient(135deg, rgba(0, 214, 255, 0.18) 0%, rgba(0, 63, 135, 0.28) 100%);
  box-shadow: 0 22px 60px rgba(4, 16, 45, 0.45);
  transform: translateY(-6px);
}

.contact-option:hover::before,
.contact-option:focus-within::before {
  opacity: 1;
  transform: translateY(0);
}

.contact-option-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--cck-neon-blue), var(--cck-sky));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cck-white);
  font-size: 1.5rem;
  flex-shrink: 0;
}

.contact-option-content {
  flex: 1;
}

.contact-option-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--cck-white);
  margin: 0 0 0.25rem 0;
  letter-spacing: 0.01em;
}

.contact-option-text {
  font-size: 0.9rem;
  color: var(--cck-silver);
  margin: 0;
}

.contact-option-arrow {
  color: var(--cck-neon-blue);
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.contact-option:hover .contact-option-arrow,
.contact-option:focus-within .contact-option-arrow {
  transform: translateX(5px);
}


/* Micro-animations: soft pulses and light trails */
.neon-pulse {
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle at 20% 20%, rgba(0,214,255,0.12), transparent 25%);
  filter: blur(18px);
  animation: neonPulse 6s ease-in-out infinite;
  z-index: 0;
  pointer-events: none;
}

@keyframes neonPulse {
  0% { transform: scale(0.98); opacity: 0.85; }
  50% { transform: scale(1.02); opacity: 0.45; }
  100% { transform: scale(0.98); opacity: 0.85; }
}

/* Light trail */
.light-trail {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0,214,255,0.5), transparent);
  opacity: 0.18;
  filter: blur(6px);
  animation: trailMove 16s linear infinite;
  pointer-events: none;
}

@keyframes trailMove {
  0% { transform: translateX(-10%); }
  100% { transform: translateX(110%); }
}

/* Background Gradients */
.bg-dark-gradient {
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%);
  color: var(--text-primary);
}

.bg-dark-gradient p,
.bg-dark-gradient .lead {
  color: var(--text-secondary);
}

[data-theme="light"] .bg-dark-gradient .text-white,
[data-theme="light"] .bg-dark-gradient .text-white-50,
[data-theme="light"] .bg-dark-gradient .text-white-75,
[data-theme="light"] .bg-dark-gradient .text-white-90 {
  color: rgba(10, 30, 71, 0.94) !important;
}

[data-theme="light"] .bg-dark-gradient h2,
[data-theme="light"] .bg-dark-gradient h3,
[data-theme="light"] .bg-dark-gradient h4,
[data-theme="light"] .bg-dark-gradient h5,
[data-theme="light"] .bg-dark-gradient h6 {
  color: rgba(10, 30, 71, 0.94) !important;
}

[data-theme="light"] .bg-dark-gradient .text-white-75 {
  color: rgba(35, 63, 118, 0.78) !important;
}

[data-theme="light"] .bg-dark-gradient .text-white-50 {
  color: rgba(35, 63, 118, 0.62) !important;
}

.bg-solutions-gradient {
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%);
}

.bg-performance-gradient {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 50%, var(--bg-secondary) 100%);
  color: var(--text-primary);
}

.bg-performance-gradient p,
.bg-performance-gradient .lead {
  color: var(--text-secondary);
}

[data-theme="light"] .bg-performance-gradient .text-white,
[data-theme="light"] .bg-performance-gradient .text-white-50,
[data-theme="light"] .bg-performance-gradient .text-white-75,
[data-theme="light"] .bg-performance-gradient .text-white-90 {
  color: rgba(10, 30, 71, 0.94) !important;
}

[data-theme="light"] .bg-performance-gradient .text-white-75 {
  color: rgba(35, 63, 118, 0.78) !important;
}

[data-theme="light"] .bg-performance-gradient .text-white-50 {
  color: rgba(35, 63, 118, 0.62) !important;
}

/* Enhanced Performance Section Visuals */
/* Performance Section Background */
#performance {
  background-image: url('../media/imgs/pages/seo-agency/page-services/Picture10.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  position: relative;
  color: var(--text-primary);
}

#performance .text-center h2 {
  color: rgba(255, 255, 255, 0.95) !important;
  text-shadow: 0 14px 36px rgba(6, 12, 24, 0.65);
}

#performance .text-center .lead,
#performance .text-center p,
#performance .text-center .text-white-75 {
  color: rgba(226, 234, 247, 0.92) !important;
  text-shadow: none;
}

[data-theme="light"] #performance .text-center .lead,
[data-theme="light"] #performance .text-center p,
[data-theme="light"] #performance .text-center .text-white-75 {
  color: rgba(20, 32, 58, 0.88) !important;
}

/* Dynamic overlay that adapts to theme */
#performance::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(4, 10, 22, 0.7) 0%, rgba(0, 63, 135, 0.55) 55%, rgba(4, 10, 22, 0.78) 100%);
  pointer-events: none;
  transition: background 0.35s ease;
  z-index: 0;
}

[data-theme="light"] #performance::before {
  background: linear-gradient(135deg, rgba(233, 240, 255, 0.82) 0%, rgba(208, 224, 255, 0.7) 55%, rgba(233, 240, 255, 0.86) 100%);
}

@media (max-width: 991.98px) {
  #performance {
    background-attachment: scroll;
  }
}

/* Ensure content sits above overlay */
#performance .container {
  position: relative;
  z-index: 2;
}

.performance-visual-wrap {
  position: relative;
  overflow: hidden;
  background: var(--glass-strong-bg);
  border-radius: 16px;
  padding: 3.5rem 0;
  border: 1px solid var(--glass-strong-border);
  box-shadow: 0 30px 60px rgba(2, 13, 34, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
}

[data-theme="dark"] .performance-visual-wrap {
  background: linear-gradient(135deg, rgba(10, 30, 71, 0.92) 0%, rgba(24, 42, 87, 0.88) 100%);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 60px rgba(2,13,34,0.45), inset 0 1px 0 rgba(255,255,255,0.02);
}

.performance-visual-wrap::before {
  content: '';
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 140%;
  pointer-events: none;
  z-index: 0;
  background-image: var(--overlay-strong), url('../media/imgs/pages/seo-agency/page-home/section-1/Image6.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-blend-mode: overlay;
  opacity: 0.9;
}

/* Animated curves container */
.performance-visual-wrap .performance-visualization {
  position: relative;
  z-index: 1;
  margin-top: 2.5rem;
}

.performance-visual-wrap .animated-curves {
  width: 100%;
  height: 160px;
  display: block;
}

.performance-visual-wrap .animated-curves .curve-1,
.performance-visual-wrap .animated-curves .curve-2,
.performance-visual-wrap .animated-curves .curve-3 {
  stroke: url(#metalGradient) !important;
  stroke-linecap: round;
  stroke-width: 2;
  opacity: 0.9;
}

/* Add a subtle translate animation to the curves for movement */
@keyframes curveFloat {
  0% { transform: translateY(0); opacity: 0.95; }
  50% { transform: translateY(-6px); opacity: 1; }
  100% { transform: translateY(0); opacity: 0.95; }
}

.performance-visual-wrap .animated-curves { animation: curveFloat 8s ease-in-out infinite; transform-origin: center; }

/* Neon glow accents behind stats */
.performance-stats-grid .stat-card::before {
  content: '';
  position: absolute;
  inset: -8px;
  z-index: -1;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(0,214,255,0.03), rgba(0,214,255,0.02));
  filter: blur(18px);
  opacity: 0.9;
  transition: opacity 0.4s ease;
}

.performance-stats-grid .stat-card:hover::before { opacity: 1; filter: blur(22px); }

/* Stat number style and counter animation */
.stat-number {
  font-size: 3.2rem;
  font-weight: 800;
  color: #E6F9FF;
  text-shadow: 0 6px 20px rgba(0,214,255,0.08);
}

/* word-by-word headline animation */
.performance-headline { display: inline-block; line-height: 1.05; }
.performance-headline .word { display: inline-block; opacity: 0; transform: translateY(10px); margin-right: 0.35rem; }

@keyframes wordReveal {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

.animate-in .performance-headline .word {
  animation: wordReveal 560ms cubic-bezier(0.2,0.9,0.2,1) both;
}
.animate-in .performance-headline .word:nth-child(1) { animation-delay: 120ms; }
.animate-in .performance-headline .word:nth-child(2) { animation-delay: 260ms; }
.animate-in .performance-headline .word:nth-child(3) { animation-delay: 400ms; }

/* Muted subtext color for paragraph under headline */
.performance-visual-wrap p.text-muted { color: #C0C5D1; }

/* Accessibility: reduced motion */
@media (prefers-reduced-motion: reduce) {
  .performance-visual-wrap .animated-curves { animation: none; }
  .animate-in .performance-headline .word { animation: none; opacity: 1; transform: none; }
}

.bg-sectors-gradient {
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%);
  color: var(--text-primary);
}

.bg-sectors-gradient p,
.bg-sectors-gradient .lead {
  color: var(--text-secondary);
}

/* Section 6: Expertise Across Sectors background */
#sectors {
  background-image: url('../media/video/page-about/Aboutimage.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  position: relative;
  color: rgba(235, 242, 255, 0.92);
}

#sectors::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(5, 12, 28, 0.7) 0%, rgba(0, 63, 135, 0.55) 55%, rgba(5, 12, 28, 0.78) 100%);
  pointer-events: none;
  transition: background 0.35s ease;
  z-index: 0;
}

[data-theme="light"] #sectors {
  color: rgba(12, 30, 71, 0.92);
}

[data-theme="light"] #sectors::before {
  background: linear-gradient(135deg, rgba(236, 243, 255, 0.82) 0%, rgba(210, 226, 255, 0.7) 55%, rgba(236, 243, 255, 0.86) 100%);
}

#sectors .container { 
  position: relative; 
  z-index: 2; 
}

#sectors .text-center h2 {
  color: rgba(255, 255, 255, 0.95) !important;
  text-shadow: none;
}

[data-theme="light"] #sectors .text-center h2 {
  color: rgba(12, 30, 71, 0.94) !important;
}

#sectors .text-center .lead,
#sectors .text-center p,
#sectors .text-center .text-white-75 {
  color: rgba(224, 232, 247, 0.9) !important;
  text-shadow: none;
}

[data-theme="light"] #sectors .text-center .lead,
[data-theme="light"] #sectors .text-center p,
[data-theme="light"] #sectors .text-center .text-white-75 {
  color: rgba(26, 40, 70, 0.86) !important;
}

[data-theme="dark"] #sectors .text-center .lead,
[data-theme="dark"] #sectors .text-center p,
[data-theme="dark"] #sectors .text-center .text-white-75 {
  color: rgba(240, 245, 255, 0.94) !important;
}

[data-theme="light"] #sectors .text-white,
[data-theme="light"] #sectors .text-white-50,
[data-theme="light"] #sectors .text-white-75,
[data-theme="light"] #sectors .text-white-90 {
  color: rgba(3, 5, 8, 0.92) !important;
}

[data-theme="light"] #sectors .text-white-75 {
  color: rgba(34, 58, 112, 0.78) !important;
}

[data-theme="light"] #sectors .text-white-50 {
  color: rgba(34, 58, 112, 0.62) !important;
}

@media (max-width: 991.98px) {
  #sectors {
    background-attachment: scroll;
  }
}

.two-row-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  gap: 1.5rem;
}

.two-row-grid .sector-tile {
  min-height: 130px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Ensure two rows on large screens: 3 columns x 2 rows */
@media (max-width: 1200px) {
  .two-row-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Staggered reveal for sector tiles (cinematic storytelling) */
@keyframes sectorPop {
  0% { opacity: 0; transform: translateY(18px) scale(0.985); }
  60% { opacity: 1; transform: translateY(-6px) scale(1.01); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.animate-in .two-row-grid .sector-tile {
  opacity: 0;
  transform-origin: center center;
}

.animate-in .two-row-grid .sector-tile:nth-child(1) { animation: sectorPop 560ms cubic-bezier(0.2,0.9,0.2,1) 80ms both; }
.animate-in .two-row-grid .sector-tile:nth-child(2) { animation: sectorPop 560ms cubic-bezier(0.2,0.9,0.2,1) 160ms both; }
.animate-in .two-row-grid .sector-tile:nth-child(3) { animation: sectorPop 560ms cubic-bezier(0.2,0.9,0.2,1) 240ms both; }
.animate-in .two-row-grid .sector-tile:nth-child(4) { animation: sectorPop 560ms cubic-bezier(0.2,0.9,0.2,1) 320ms both; }
.animate-in .two-row-grid .sector-tile:nth-child(5) { animation: sectorPop 560ms cubic-bezier(0.2,0.9,0.2,1) 400ms both; }
.animate-in .two-row-grid .sector-tile:nth-child(6) { animation: sectorPop 560ms cubic-bezier(0.2,0.9,0.2,1) 480ms both; }

@media (prefers-reduced-motion: reduce) {
  .animate-in .two-row-grid .sector-tile { animation: none; opacity: 1; transform: none; }
}

.bg-clients-gradient {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 50%, #ffffff 100%);
}

/* When using the clients background image, allow that image to show through by removing the heavy gradient
   and ensuring the section and its background wrapper are positioned correctly. */
#clients.bg-clients-gradient {
  background: none; /* remove gradient so image wrapper is visible */
  position: relative;
  overflow: hidden;
}

#clients .section-bg-image-wrapper {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

#clients::before {
  content: none;
}

#clients .container { position: relative; z-index: 2; }

/* Clients section — consolidated rules to ensure the background image always shows
   and to avoid accidental white fallback from earlier gradients/overrides. */
#clients {
  background-color: var(--cck-navy);
  background-image: url('../media/imgs/pages/seo-agency/page-home/section-1/Image6.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.9);
}

#clients h2,
#clients h3 {
  color: rgba(255, 255, 255, 0.96);
  text-shadow: 0 12px 32px rgba(6, 12, 24, 0.6);
}

#clients p,
#clients li,
#clients .lead,
#clients .client-name,
#clients .client-region {
  color: rgba(255, 255, 255, 0.86);
  text-shadow: 0 10px 30px rgba(4, 10, 22, 0.4);
}

/* Ensure clients content sits above the background and overlay */
#clients .container { position: relative; z-index: 2; }

#locations .section-title,
#locations .lead {
  color: rgba(255, 255, 255, 0.94) !important;
  text-shadow: 0 12px 30px rgba(6, 12, 24, 0.55);
}

[data-theme="light"] #locations .section-title {
  color: rgba(10, 30, 71, 0.92) !important;
  text-shadow: 0 4px 12px rgba(255, 255, 255, 0.5);
}

[data-theme="light"] #locations .lead {
  color: rgba(34, 58, 112, 0.82) !important;
  text-shadow: 0 2px 8px rgba(255, 255, 255, 0.4);
}

/* Location Cards Styling */
.location-card {
  background: var(--glass-strong-bg);
  border: 1px solid var(--glass-strong-border);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
}

.location-card:hover {
  background: var(--surface-emphasis);
  border-color: var(--cck-blue);
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 63, 135, 0.15);
}

[data-theme="light"] .location-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .location-card {
  background: rgba(10, 30, 71, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.location-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--cck-neon-blue), var(--cck-sky));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 214, 255, 0.4);
}

.location-card:hover .location-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 20px rgba(0, 214, 255, 0.5);
}

.map-section {
  position: relative;
  background: linear-gradient(135deg, rgba(var(--cck-navy-rgb), 0.95), rgba(var(--cck-blue-rgb), 0.88));
  overflow: hidden;
}

.map-section::before,
.map-section::after {
  content: '';
  position: absolute;
  border-radius: 999px;
  background: radial-gradient(circle at center, rgba(var(--cck-neon-blue-rgb), 0.35), transparent 70%);
  filter: blur(0.5px);
}

.map-section::before {
  width: 320px;
  height: 320px;
  top: -120px;
  right: -80px;
}

.map-section::after {
  width: 420px;
  height: 420px;
  bottom: -180px;
  left: -120px;
}

.map-section .container {
  position: relative;
  z-index: 1;
}

.map-card {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 25px 65px rgba(7, 20, 46, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(6, 12, 24, 0.6);
  backdrop-filter: blur(14px);
}

.map-card iframe {
  border: 0;
  filter: saturate(105%) contrast(1.05);
}

.map-section-title {
  color: rgba(255, 255, 255, 0.95);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.map-section-subtitle {
  color: rgba(255, 255, 255, 0.78);
}

[data-theme="light"] .map-section {
  background: linear-gradient(135deg, rgba(245, 249, 255, 0.98), rgba(232, 240, 255, 0.94));
}

[data-theme="light"] .map-card {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 25px 60px rgba(13, 43, 102, 0.18);
}

[data-theme="light"] .map-section-title {
  color: rgba(10, 30, 71, 0.92);
}

[data-theme="light"] .map-section-subtitle {
  color: rgba(35, 63, 118, 0.72);
}

.location-title {
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.location-address {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.location-region {
  color: var(--cck-neon-blue);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

[data-theme="light"] .location-title {
  color: rgba(10, 30, 71, 0.92);
}

[data-theme="light"] .location-address {
  color: rgba(34, 58, 112, 0.85);
}

[data-theme="light"] .location-region {
  color: #0057B8;
}

[data-theme="dark"] .location-title {
  color: var(--cck-white);
}

[data-theme="dark"] .location-address {
  color: rgba(255, 255, 255, 0.75);
}

[data-theme="dark"] .location-region {
  color: var(--cck-neon-blue);
}

#contact-cta h2 {
  color: rgba(255, 255, 255, 0.97);
  text-shadow: none;
}

[data-theme="light"] #contact-cta h2 {
  color: rgba(255, 255, 255, 0.98) !important;
  text-shadow: none;
}

#contact-cta .lead,
#contact-cta .text-white-75,
#contact-cta p {
  color: rgba(255, 255, 255, 0.9) !important;
  text-shadow: none;
}

#contact-cta .stat-badge span {
  color: rgba(255, 255, 255, 0.85) !important;
}

.bg-cta-gradient {
  background: linear-gradient(135deg, var(--cck-navy) 0%, var(--cck-silver) 50%, var(--cck-dark) 100%);
}
/* Force high-contrast typography inside CTA gradient */
.bg-cta-gradient, .bg-cta-gradient h1, .bg-cta-gradient h2, .bg-cta-gradient h3, .bg-cta-gradient h4, .bg-cta-gradient h5, .bg-cta-gradient h6, .bg-cta-gradient p, .bg-cta-gradient .lead { color: rgba(248,252,255,0.98) !important; }

/* Video Background Fixes */
.bg-hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    filter: brightness(0.7) contrast(1.1);
    transition: transform 0.3s ease;
}

/* Solutions section background video */
.section-bg-video-wrapper {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.bg-section-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  pointer-events: none;
  filter: brightness(0.65) contrast(1.05);
}

#solutions {
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
}

/* Dark overlay for readability */
#solutions::before {
  content: none;
}

/* Ensure solutions content sits above video and overlay */
#solutions .container {
  position: relative;
  z-index: 2;
}

[data-theme="light"] #solutions .text-center h2 {
  color: rgba(10, 30, 71, 0.96) !important;
  text-shadow: 0 14px 32px rgba(255, 255, 255, 0.65);
}

[data-theme="light"] #solutions .text-center .lead {
  color: rgba(34, 58, 112, 0.85) !important;
  text-shadow: 0 10px 28px rgba(255, 255, 255, 0.6);
}

#solutions > .container > .text-center h2,
#solutions > .container > .text-center .lead,
#solutions > .container > .text-center p {
  color: rgba(255, 255, 255, 0.94) !important;
  text-shadow: 0 12px 34px rgba(8, 16, 32, 0.55);
}

#solutions > .container > .text-center .lead,
#solutions > .container > .text-center p {
  color: rgba(255, 255, 255, 0.86) !important;
}

/* Enhanced Section 2 - The Global Engine */
.bg-dark-gradient {
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%);
    position: relative;
    overflow: hidden;
}

/* Section background: use WorldImageCCK1.png for the whole #global-engine section */
#global-engine {
  background-image: url('../media/imgs/pages/seo-agency/page-home/section-1/WorldImageCCK1.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  position: relative;
  color: var(--cck-white);
}

/* Subtle dark overlay for readability */
#global-engine::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 22, 48, 0.55) 0%, rgba(6, 22, 48, 0.65) 100%);
  z-index: 1;
  pointer-events: none;
}

/* Ensure the container content sits above the overlay */
#global-engine .container {
  position: relative;
  z-index: 2;
}

/* Enhanced Interactive Map with Continent Shapes */
.interactive-map-container {
    position: relative;
    height: 500px;
    background: 
        radial-gradient(circle at 30% 50%, rgba(10, 30, 71, 0.9) 0%, transparent 50%),
        linear-gradient(45deg, rgba(0, 63, 135, 0.1) 0%, transparent 50%);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    overflow: hidden;
}

/* When the interactive map enters view, show team background image (Section 2) */
.interactive-map-container.animate-on-scroll.animate-in {
  background-image: url('../media/imgs/pages/seo-agency/page-home/section-1/Homepage.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  /* keep existing layered gradients but overlay the photo at the top */
  background-blend-mode: overlay;
}

.world-map {
    position: relative;
    width: 100%;
    height: 100%;
    background: 
        /* Africa Shape */
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 200"><path d="M80,120 Q100,80 150,100 T220,110 Q250,130 200,150 T120,140 Z" fill="%23008751" opacity="0.3"/></svg>') 45% 55% / 120px 100px no-repeat,
        /* Middle East Shape */
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 200"><path d="M200,90 Q220,70 250,85 T280,95 Q260,110 230,100 T200,90 Z" fill="%23CE1126" opacity="0.3"/></svg>') 55% 40% / 80px 60px no-repeat,
        /* APAC Shape */
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 200"><path d="M300,100 Q320,80 350,95 T380,110 Q360,130 330,120 T300,100 Z" fill="%23ED2939" opacity="0.3"/></svg>') 75% 45% / 100px 80px no-repeat,
        /* Europe Shape */
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 200"><path d="M180,60 Q200,40 230,55 T260,70 Q240,90 210,80 T180,60 Z" fill="%23003399" opacity="0.3"/></svg>') 48% 30% / 70px 50px no-repeat;
}

/* Enhanced Map Regions with Continent Shapes */
.map-region {
  position: absolute;
  width: 110px;
  height: 110px;
    border-radius: 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 2px solid;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

/* Continent-specific styling with flag colors */
.map-region[data-region="africa"] {
  border-color: #008751;
  background: linear-gradient(135deg, rgba(0, 135, 81, 0.3), rgba(252, 209, 22, 0.15));
  /* nudge slightly left/down */
  top: 58%;
  left: 42%;
  box-shadow: 0 0 20px rgba(0, 135, 81, 0.4);
}

.map-region[data-region="middle-east"] {
  border-color: #CE1126;
  background: linear-gradient(135deg, rgba(206, 17, 38, 0.3), rgba(0, 0, 0, 0.15));
  /* move further right to avoid overlap with Europe */
  top: 38%;
  left: 68%;
  box-shadow: 0 0 20px rgba(206, 17, 38, 0.4);
}

.map-region[data-region="apac"] {
  border-color: #ED2939;
  background: linear-gradient(135deg, rgba(237, 41, 57, 0.3), rgba(255, 255, 255, 0.15));
  top: 46%;
  left: 82%;
  box-shadow: 0 0 20px rgba(237, 41, 57, 0.4);
}

.map-region[data-region="europe"] {
  border-color: #003399;
  background: linear-gradient(135deg, rgba(0, 51, 153, 0.3), rgba(255, 255, 255, 0.15));
  /* move left/up so it doesn't sit between Africa and Middle East */
  top: 24%;
  left: 30%;
  box-shadow: 0 0 20px rgba(0, 51, 153, 0.4);
}

.map-region:hover {
  /* slightly reduce hover scale to limit overlap */
  transform: scale(1.2);
  box-shadow: 
    0 0 30px currentColor,
    var(--neon-glow-strong);
  z-index: 10;
}

/* Enhanced glow effects for regions */
.region-glow {
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    border-radius: 25px;
    opacity: 0;
    animation: pulse 3s infinite;
    filter: blur(15px);
    z-index: -1;
}

.map-region[data-region="africa"] .region-glow {
    background: linear-gradient(45deg, #008751, #FCD116, #008751);
}

.map-region[data-region="middle-east"] .region-glow {
    background: linear-gradient(45deg, #CE1126, #000000, #CE1126);
}

.map-region[data-region="apac"] .region-glow {
    background: linear-gradient(45deg, #ED2939, #FFFFFF, #ED2939);
}

.map-region[data-region="europe"] .region-glow {
    background: linear-gradient(45deg, #003399, #FFCC00, #003399);
}

.map-region:hover .region-glow {
    opacity: 0.6;
}

/* Enhanced region labels */
.region-label {
    color: var(--cck-white);
    font-weight: 800;
    font-size: 1rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
    pointer-events: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Enhanced text visibility for Section 2 */
.global-engine-content .lead {
    color: var(--cck-silver) !important;
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.global-engine-content p.text-muted {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

/* Enhanced Highlights Grid */
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.highlight-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s;
}

.highlight-item:hover::before {
    left: 100%;
}

.highlight-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 214, 255, 0.3);
    border-color: var(--cck-neon-blue);
}

.highlight-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--cck-neon-blue), var(--cck-sky));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    color: var(--cck-white);
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0, 214, 255, 0.4);
}

.highlight-content h5 {
    color: var(--cck-white);
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
    font-weight: 700;
}

.highlight-content p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
    line-height: 1.6;
}

[data-theme="light"] .highlight-item {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(10, 30, 71, 0.08);
  box-shadow: 0 16px 36px rgba(10, 30, 71, 0.12);
}

[data-theme="light"] .highlight-content h5 {
  color: var(--text-primary);
  text-shadow: none;
}

[data-theme="light"] .highlight-content p {
  color: var(--text-secondary);
  text-shadow: none;
}

/* Solutions Carousel */
.solutions-carousel-container {
  position: relative;
  margin: 3rem 0;
}

.solutions-carousel {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  padding: 2rem 0;
  scroll-behavior: smooth;
}

.solutions-carousel::-webkit-scrollbar {
  height: 8px;
}

.solutions-carousel::-webkit-scrollbar-track {
  background: var(--cck-charcoal);
  border-radius: 4px;
}

.solutions-carousel::-webkit-scrollbar-thumb {
  background: var(--cck-neon-blue);
  border-radius: 4px;
}

.solution-card {
  flex: 0 0 300px;
  background: var(--glass-strong-bg);
  border-radius: 20px;
  padding: 2rem;
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-strong-border);
  box-shadow: 0 8px 32px rgba(18, 31, 66, 0.12);
  transition: all 0.3s ease;
  text-align: center;
  color: var(--text-primary);
}

.solution-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 40px rgba(0, 214, 255, 0.3);
  border-color: var(--cck-neon-blue);
}

.solution-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--cck-neon-blue), var(--cck-sky));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--cck-white);
  font-size: 2rem;
  box-shadow: 0 4px 15px rgba(0, 214, 255, 0.4);
}

.solution-card h4 {
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.solution-card p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

/* Subtitles inside solution cards: subtle pop-up on hover/active */
.solution-subtitle {
  display: block;
  opacity: 1;
  transform: translateY(4px);
  transition: transform 280ms var(--motion-ease), opacity 280ms var(--motion-ease);
  color: var(--text-secondary);
  font-weight: 600;
}

.solution-card:hover .solution-subtitle,
.solution-card.active .solution-subtitle {
  transform: translateY(-6px);
  opacity: 1;
}

/* Add subtle pop on animate-in (when the card scrolls into view) */
.animate-in .solution-card .solution-subtitle {
  transform: translateY(-4px);
  opacity: 1;
  transition-delay: 120ms;
}

/* When the card animates in, reveal subtitle with a small delay for rhythm */
.animate-on-scroll.animate-in .solution-subtitle {
  transform: translateY(0);
  opacity: 1;
  transition-delay: 120ms;
}

@media (prefers-reduced-motion: reduce) {
  .solution-subtitle { transition: none; transform: none; }
}

[data-theme="dark"] .solution-card {
  background: rgba(10, 30, 71, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  color: var(--cck-white);
}

[data-theme="light"] .solution-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .solution-card h4 {
  color: var(--cck-white);
}

[data-theme="light"] .solution-card h4 {
  color: rgba(10, 30, 71, 0.92);
}

[data-theme="dark"] .solution-card p {
  color: rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .solution-card p {
  color: rgba(34, 58, 112, 0.85);
}

[data-theme="dark"] .solution-subtitle {
  color: rgba(255,255,255,0.92);
  text-shadow: 0 2px 10px rgba(2,13,34,0.45);
}

[data-theme="dark"] .solution-card:hover .solution-subtitle,
[data-theme="dark"] .solution-card.active .solution-subtitle {
  text-shadow: 0 10px 40px rgba(0,18,45,0.5);
}

.solution-features {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.feature-tag {
  background: var(--cck-neon-blue);
  color: var(--cck-white);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.carousel-controls {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

/* Enhanced Solutions Carousel */
.solutions-carousel-container {
    position: relative;
    margin: 3rem 0;
    overflow: hidden;
}

.solutions-carousel {
  display: flex;
  gap: 2rem;
  transition: transform 0.5s var(--motion-ease);
  padding: 1rem 0;
  overflow: hidden !important; /* remove native bottom scrollbar */
}

.solution-card {
  /* Use CSS variables so JS only sets vars and doesn't overwrite transform rules */
  --parallax-y: 0px;
  --parallax-scale: 1;
  --hover-offset: 0px;
  --hover-scale: 1;
  flex: 0 0 calc(33.333% - 1.5rem); /* Show 3 cards per screen */
  min-width: 300px;
  background: var(--glass-bg);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  transition: transform var(--motion-fast) var(--motion-ease), box-shadow var(--motion-fast) var(--motion-ease);
  text-align: center;
  position: relative;
  transform: translateY(calc(var(--parallax-y, 0px) + var(--hover-offset, 0px))) scale(calc(var(--parallax-scale, 1) * var(--hover-scale, 1)));
  will-change: transform;
}

.solution-card:hover {
  --hover-offset: -10px;
  --hover-scale: 1.02;
  box-shadow: var(--neon-glow);
  border-color: var(--cck-neon-blue);
}

/* Centered active card treatment for stronger visual hierarchy */
.solution-card.active {
  transform: translateY(-14px) scale(1.04);
  box-shadow: 0 20px 50px rgba(0, 18, 45, 0.5), var(--neon-glow-strong);
  border-color: var(--cck-neon-blue);
  z-index: 20;
}

.solution-card .solution-icon:hover,
.solution-card.active .solution-icon {
  box-shadow: 0 0 30px rgba(0,214,255,0.28), 0 18px 40px rgba(0,18,45,0.36);
  transform: translateY(-6px) scale(1.03);
  transition: transform var(--motion-fast) var(--motion-ease), box-shadow var(--motion-fast) var(--motion-ease);
}

/* Enhanced carousel controls */
.carousel-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: calc(100% + 100px);
    left: -50px;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
}

.carousel-btn {
    width: 60px;
    height: 60px;
    background: var(--glass-bg);
    border: 2px solid var(--cck-neon-blue);
    border-radius: 50%;
    color: var(--cck-neon-blue);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: var(--cck-neon-blue);
    color: var(--cck-white);
    box-shadow: var(--neon-glow-strong);
    transform: scale(1.1);
}
/* Carousel dot indicators */
.carousel-indicators {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1rem;
  pointer-events: auto;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06);
  cursor: pointer;
  transition: all 0.25s ease;
}

.carousel-dot.active {
  width: 14px;
  height: 14px;
  background: var(--cck-neon-blue);
  box-shadow: 0 0 12px rgba(0, 214, 255, 0.3);
  border-color: rgba(0,214,255,0.6);
}

.carousel-dot:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(0,214,255,0.08);
}
/* Connection lines between regions */
.connection-path {
    position: absolute;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--cck-neon-blue) 20%, 
        var(--cck-neon-blue) 80%, 
        transparent 100%);
    opacity: 0.3;
    animation: connectionFlow 4s ease-in-out infinite;
    z-index: 5;
}

@keyframes connectionFlow {
    0%, 100% { 
        opacity: 0.2; 
        transform: scaleX(0.8);
    }
    50% { 
        opacity: 0.8; 
        transform: scaleX(1);
    }
}

/* Mobile responsiveness for carousel */
@media (max-width: 1200px) {
    .solution-card {
        flex: 0 0 calc(50% - 1rem); /* Show 2 cards on tablets */
    }
}

/* Performance Stats */
.performance-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.stat-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 2rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .stat-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .stat-card {
  background: rgba(10, 30, 71, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .performance-stats-grid .stat-card {
  color: rgba(232, 238, 250, 0.92);
}

[data-theme="dark"] .performance-stats-grid .stat-card .stat-number,
[data-theme="dark"] .performance-stats-grid .stat-card .stat-suffix {
  color: #e6f9ff;
}

[data-theme="dark"] .performance-stats-grid .stat-card .stat-description {
  color: rgba(232, 238, 250, 0.78);
}

[data-theme="dark"] .performance-stats-grid .stat-card .stat-icon {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.95), rgba(56, 189, 248, 0.95));
  color: #ffffff;
}

.stat-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--cck-blue), var(--cck-sky));
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--cck-white);
  font-size: 1.5rem;
}

.stat-number {
  font-size: clamp(2.2rem, 1.9rem + 1vw, 3rem);
  font-weight: 800;
  color: var(--cck-blue);
  margin-bottom: 0;
  line-height: 1;
}

.stat-content {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.stat-suffix {
  font-size: 2rem;
  color: var(--cck-blue);
  font-weight: 600;
  line-height: 1;
}

.stat-description {
  color: #555555;
  margin-bottom: 0;
  font-size: clamp(0.95rem, 0.9rem + 0.2vw, 1.05rem);
}

.stat-content .stat-description {
  flex-basis: 100%;
  margin-top: 0.35rem;
}

.stat-graph {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--cck-charcoal);
  border-radius: 0 0 20px 20px;
}

.graph-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--cck-neon-blue), var(--cck-sky));
  border-radius: 0 0 20px 20px;
  width: 0;
  transition: width 2s ease-out;
}

.stat-card.animate-in .graph-bar {
  width: var(--graph-width, 100%);
}

/* Performance Visualization */
.performance-visualization {
  margin-top: 3rem;
  text-align: center;
}

.data-curves {
  max-width: 600px;
  margin: 0 auto;
}

.animated-curves {
  width: 100%;
  height: 200px;
}

.curve-1, .curve-2, .curve-3 {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: drawCurve 3s ease-out forwards;
}

.curve-2 {
  animation-delay: 0.5s;
}

.curve-3 {
  animation-delay: 1s;
}

@keyframes drawCurve {
  to {
    stroke-dashoffset: 0;
  }
}

/* Regional Intelligence */
.regional-map-container {
  position: relative;
  height: 500px;
  background: var(--glass-bg);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  margin: 3rem 0;
}

/* Neo-Corporate / Futuristic styling for Regional Intelligence (Section 5) */
#regional-intelligence {
  background: var(--surface-emphasis);
  color: var(--text-primary);
}

/* Light mode: make Regional Intelligence a dark, brand-aligned panel so white headings are legible */
[data-theme="light"] #regional-intelligence {
  background: linear-gradient(135deg, rgba(10,30,71,0.94), rgba(15,60,130,0.92)) !important;
  color: rgba(248,252,255,0.96);
}

#regional-intelligence h2,
#regional-intelligence .text-white,
#regional-intelligence .text-white-50,
#regional-intelligence .text-white-75 {
  color: var(--text-primary) !important;
}

/* But in light mode we prefer bright white for headings and any forced-white utilities */
[data-theme="light"] #regional-intelligence h2,
[data-theme="light"] #regional-intelligence .text-white,
[data-theme="light"] #regional-intelligence .text-white-50,
[data-theme="light"] #regional-intelligence .text-white-75 {
  color: rgba(248,252,255,0.98) !important;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

[data-theme="dark"] #regional-intelligence h2,
[data-theme="dark"] #regional-intelligence .text-white,
[data-theme="dark"] #regional-intelligence .text-white-50,
[data-theme="dark"] #regional-intelligence .text-white-75 {
  color: rgba(255, 255, 255, 0.9) !important;
}

.performance-headline.display-4 {
  font-family: 'Montserrat', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
  letter-spacing: -0.02em;
  color: var(--cck-navy);
  text-transform: none;
}

.text-block p.lead { color: var(--text-secondary); font-size: 1.05rem; }
.text-block p.text-muted, .region-card p.muted { color: var(--text-secondary); }

[data-theme="light"] .text-muted,
[data-theme="light"] .muted {
  color: rgba(38, 58, 102, 0.7) !important;
}

.regional-bullets li {
  margin-bottom: 0.6rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.regional-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.region-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  z-index: 3;
}

.region-card {
  background: var(--glass-strong-bg);
  border: 1px solid var(--glass-strong-border);
  padding: 1.2rem 1rem;
  border-radius: 12px;
  color: var(--text-primary);
  box-shadow: 0 10px 30px rgba(18, 31, 66, 0.12);
  transition: transform 0.3s var(--motion-ease), box-shadow 0.3s var(--motion-ease);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.region-card:hover { 
  transform: translateY(-8px); 
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2); 
  border-color: var(--cck-neon-blue); 
}

.region-card h4 { margin: 0 0 0.3rem 0; font-size: 1.05rem; color: var(--text-primary); }
.region-card p.muted { margin: 0; font-size: 0.92rem; color: var(--text-secondary); }

[data-theme="light"] .region-card,
[data-theme="dark"] .region-card {
  background: rgba(10, 30, 71, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--cck-white);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}



[data-theme="dark"] .region-card:hover {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .region-card h4 {
  color: var(--cck-white);
}

[data-theme="light"] .region-card h4 {
  color: rgba(10, 30, 71, 0.95);
  text-shadow: 0 1px 3px rgba(0,0,0,0.12);
}

[data-theme="dark"] .region-card p.muted {
  color: rgba(255, 255, 255, 0.7);
}

[data-theme="light"] .region-card p.muted {
  color: rgba(28, 54, 108, 0.88);
  text-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

.map-visual { position: relative; width: 100%; height: 320px; display: flex; align-items: center; justify-content: center; }
.motion-lines { position: absolute; inset: 0 0 0 0; width: 100%; height: 100%; z-index: 1; opacity: 0.9; pointer-events: none; }
.motion-lines .ml-1 { stroke-dasharray: 800; stroke-dashoffset: 800; animation: drawLine 2.4s ease forwards; opacity: 0.95; }
.motion-lines .ml-2 { stroke-dasharray: 900; stroke-dashoffset: 900; animation: drawLine 3s ease 0.2s forwards; opacity: 0.8; }

@keyframes drawLine { to { stroke-dashoffset: 0; } }

/* Floating micro-animations */
.map-visual::after {
  content: '';
  position: absolute;
  width: 140px;
  height: 140px;
  right: 10%;
  bottom: 6%;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(0,214,255,0.06), transparent 40%);
  filter: blur(18px);
  z-index: 0;
  animation: microPulse 6s ease-in-out infinite;
}

@keyframes microPulse {
  0% { transform: scale(0.96); opacity: 0.9; }
  50% { transform: scale(1.06); opacity: 1; }
  100% { transform: scale(0.96); opacity: 0.9; }
}

/* Sticky CTA styling */
.sticky-cta-wrap {
  position: relative;
  margin-top: 2rem;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.sticky-cta-wrap .btn-cta-glass {
  white-space: nowrap;
}

@media (max-width: 768px) {
  .sticky-cta-wrap {
    width: 100%;
    justify-content: center;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
  }

  .sticky-cta-wrap .btn-cta-glass {
    width: min(100%, 320px);
    justify-content: center;
  }
}
.btn-cta-glass {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .8rem 1.2rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  color: #E6F9FF;
  border-radius: 999px;
  box-shadow: 0 8px 30px rgba(0,18,45,0.45);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.btn-cta-glass:hover { transform: translateY(-3px); box-shadow: var(--neon-glow-strong); border-color: var(--cck-neon-blue); }

/* Responsive tweaks */
@media (max-width: 992px) {
  .region-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .region-cards { grid-template-columns: 1fr; }
  .map-visual { height: 420px; }
  .performance-headline.display-4 { font-size: 1.6rem; }
}

/* New sector-grid / sector-card styles (lightweight and responsive) */
.sector-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.sector-card {
  background: var(--glass-strong-bg);
  padding: 1.25rem 1rem;
  border-radius: 12px;
  text-align: center;
  color: var(--text-primary);
  backdrop-filter: blur(6px);
  border: 1px solid var(--glass-strong-border);
  transition: transform 0.28s cubic-bezier(0.2,0.9,0.2,1), box-shadow 0.28s cubic-bezier(0.2,0.9,0.2,1);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 110px;
  flex-direction: column;
}

.sector-card h4 { margin: 0; font-size: 1.05rem; font-weight: 700; color: var(--text-primary); }

.sector-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  border-color: var(--cck-blue);
}

[data-theme="dark"] .sector-card {
  background: rgba(10, 30, 71, 0.65);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--cck-white);
}

[data-theme="light"] .sector-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .sector-card h4 {
  color: var(--cck-white);
}

[data-theme="light"] .sector-card h4 {
  color: rgba(10, 30, 71, 0.92);
}

/* Icon tile inside each sector card */
.sector-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, var(--cck-blue), var(--cck-sky));
  border: 1px solid rgba(0, 63, 135, 0.2);
  color: #ffffff;
  font-size: 1.25rem;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.sector-card:hover .sector-icon {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 10px 30px rgba(0, 63, 135, 0.3);
}

/* Ensure responsive columns: 3/2/1 */
@media (max-width: 1200px) {
  .sector-grid { grid-template-columns: repeat(2, 1fr); }
}
/* Hook into existing staggered reveal: keep the nth-child rules from .two-row-grid for sector-grid as well */
.animate-in .sector-grid .sector-card { opacity: 0; transform: translateY(14px) scale(0.99); }
.animate-in .sector-grid .sector-card:nth-child(1) { animation: sectorPop 560ms cubic-bezier(0.2,0.9,0.2,1) 80ms both; }
.animate-in .sector-grid .sector-card:nth-child(2) { animation: sectorPop 560ms cubic-bezier(0.2,0.9,0.2,1) 160ms both; }
.animate-in .sector-grid .sector-card:nth-child(3) { animation: sectorPop 560ms cubic-bezier(0.2,0.9,0.2,1) 240ms both; }
.animate-in .sector-grid .sector-card:nth-child(4) { animation: sectorPop 560ms cubic-bezier(0.2,0.9,0.2,1) 320ms both; }
.animate-in .sector-grid .sector-card:nth-child(5) { animation: sectorPop 560ms cubic-bezier(0.2,0.9,0.2,1) 400ms both; }
.animate-in .sector-grid .sector-card:nth-child(6) { animation: sectorPop 560ms cubic-bezier(0.2,0.9,0.2,1) 480ms both; }
.animated-regional-map {
  position: relative;
  width: 100%;
  height: 100%;
}

.region-zone {
  position: absolute;
  width: 120px;
  height: 120px;
  background: var(--glass-bg);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  padding: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.region-zone[data-region="africa"] { top: 60%; left: 30%; }
.region-zone[data-region="middle-east"] { top: 40%; left: 50%; }
.region-zone[data-region="apac"] { top: 50%; left: 70%; }
.region-zone[data-region="europe"] { top: 25%; left: 45%; }

.region-zone:hover {
  transform: scale(1.1);
  box-shadow: var(--neon-glow);
  border-color: var(--cck-neon-blue);
}

.region-pulse {
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border-radius: 25px;
  background: var(--cck-neon-blue);
  opacity: 0;
  animation: regionPulse 2s infinite;
}

.region-zone:hover .region-pulse {
  opacity: 0.3;
}

@keyframes regionPulse {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.05); opacity: 0.6; }
}

.region-info h4 {
  color: var(--cck-white);
  margin-bottom: 0.5rem;
}

.region-info p {
  color: var(--cck-silver);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.region-stats {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-item {
  background: var(--cck-neon-blue);
  color: var(--cck-white);
  padding: 0.2rem 0.5rem;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 600;
  text-align: center;
}

.regional-connections {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.connection-line {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, var(--cck-neon-blue), transparent);
  opacity: 0.6;
  animation: connectionFlow 3s ease-in-out infinite;
}

.connection-line[data-from="africa"][data-to="middle-east"] {
  top: 50%;
  left: 30%;
  width: 20%;
  transform: rotate(15deg);
}

.connection-line[data-from="middle-east"][data-to="apac"] {
  top: 45%;
  left: 50%;
  width: 20%;
  transform: rotate(-10deg);
}

.connection-line[data-from="apac"][data-to="europe"] {
  top: 37%;
  left: 70%;
  width: 20%;
  transform: rotate(-25deg);
}

.connection-line[data-from="europe"][data-to="africa"] {
  top: 42%;
  left: 30%;
  width: 20%;
  transform: rotate(25deg);
}

@keyframes connectionFlow {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.8; }
}

/* Sectors Grid */
.sectors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.sector-tile {
  background: var(--glass-bg);
  border-radius: 20px;
  padding: 2rem;
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  transition: all 0.3s ease;
  text-align: center;
  cursor: pointer;
}

.sector-tile:hover {
  transform: translateY(-10px);
  box-shadow: var(--neon-glow);
  border-color: var(--cck-neon-blue);
}

.sector-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--cck-neon-blue), var(--cck-sky));
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--cck-white);
  font-size: 1.8rem;
  box-shadow: var(--neon-glow);
}

.sector-tile h4 {
  color: var(--cck-white);
  margin-bottom: 1rem;
}

.sector-tile p {
  color: var(--cck-silver);
  margin-bottom: 0;
}

[data-theme="light"] .sector-tile h4 {
  color: rgba(12, 30, 71, 0.92);
}

[data-theme="light"] .sector-tile p {
  color: rgba(35, 63, 118, 0.74);
}

/* Clients Section */
.clients-showcase {
  margin: 3rem 0;
}

.clients-logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.client-logo {
  background: var(--glass-bg);
  border-radius: 15px;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  transition: all 0.3s ease;
  text-align: center;
  cursor: pointer;
}

.client-logo:hover {
  transform: translateY(-5px);
  box-shadow: var(--neon-glow);
}

.client-name {
  display: block;
  color: var(--cck-white);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.client-region {
  display: block;
  color: var(--cck-silver);
  font-size: 0.9rem;
}

.testimonials-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.testimonial-card {
  background: var(--glass-bg);
  border-radius: 20px;
  padding: 2rem;
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--neon-glow);
}

.testimonial-quote {
  border: none;
  padding: 0;
  margin-bottom: 1.5rem;
}

.testimonial-quote p {
  color: var(--cck-white);
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.6;
}

.testimonial-author cite {
  color: var(--cck-neon-blue);
  font-style: normal;
  display: block;
  margin-bottom: 0.25rem;
}

.testimonial-author span {
  color: var(--cck-silver);
  font-size: 0.9rem;
}

.results-snapshot {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.snapshot-stats {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.snapshot-stat {
  text-align: center;
  flex: 1 1 200px;
  min-width: 180px;
  padding: 0.5rem 1rem;
}

.stat-value {
  display: block;
  font-size: clamp(2rem, 1.7rem + 0.8vw, 2.6rem);
  font-weight: 800;
  color: var(--cck-neon-blue);
  margin-bottom: 0.5rem;
}

.stat-label {
  display: block;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(0.9rem, 0.85rem + 0.2vw, 1.05rem);
  font-weight: 600;
}

@media (max-width: 575.98px) {
  .snapshot-stats {
    gap: 1rem;
  }

  .snapshot-stat {
    width: 100%;
  }
}

/* Contact Form */
.contact-form-container {
  background: var(--glass-bg);
  border-radius: 20px;
  padding: 3rem;
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

.contact-form .form-group {
  margin-bottom: 1.5rem;
}

.contact-form .form-label {
  color: var(--cck-white);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.contact-form .form-control {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  color: var(--cck-white);
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
}

.contact-form .form-control:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--cck-neon-blue);
  box-shadow: var(--neon-glow);
  color: var(--cck-white);
}

.contact-form .form-control::placeholder {
  color: var(--cck-silver);
}

.contact-form select.form-control {
  background: rgba(255, 255, 255, 0.1);
  color: var(--cck-white);
}

.contact-form select.form-control option {
  background: var(--cck-navy);
  color: var(--cck-white);
}

/* Global Network CTA Button */
.btn-global-network {
    background: linear-gradient(135deg, var(--cck-neon-blue), var(--cck-teal));
    border: 2px solid var(--cck-neon-blue);
    color: var(--cck-white);
    font-weight: 700;
    padding: 1rem 2rem;
    border-radius: 50px;
    box-shadow: var(--neon-glow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-global-network:hover {
    transform: translateY(-3px);
    box-shadow: var(--neon-glow-strong);
    color: var(--cck-white);
}

/* Map Connection Lines */
.map-connections {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.connection-path {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, var(--cck-neon-blue), transparent);
    opacity: 0.4;
    animation: connectionFlow 4s ease-in-out infinite;
}

/* Data flow animation for background */
.global-engine-data-flow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(90deg, transparent 49%, var(--cck-neon-blue) 50%, transparent 51%),
        linear-gradient(transparent 49%, var(--cck-neon-blue) 50%, transparent 51%);
    background-size: 30px 30px;
    opacity: 0.05;
    animation: dataFlow 20s linear infinite;
}

@keyframes dataFlow {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(30px, 30px) rotate(360deg); }
}

@keyframes connectionFlow {
    0%, 100% { 
        opacity: 0.2; 
        transform: scaleX(0.8);
    }
    50% { 
        opacity: 0.6; 
        transform: scaleX(1);
    }
}

/* Responsive Design for Section 2 */
@media (max-width: 768px) {
    .interactive-map-container {
        height: 400px;
        margin-bottom: 2rem;
    }
    
  .map-region {
    width: 78px;
    height: 78px;
  }
    
  /* mobile-adjusted positions to avoid overlap */
  .map-region[data-region="africa"] { top: 52%; left: 32%; }
  .map-region[data-region="middle-east"] { top: 34%; left: 58%; }
  .map-region[data-region="apac"] { top: 42%; left: 78%; }
  .map-region[data-region="europe"] { top: 22%; left: 20%; }
    
    .highlights-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .highlight-item {
        padding: 1.5rem;
    }
    
    .highlight-icon {
        width: 50px;
        height: 50px;
        margin-right: 1rem;
    }
}

@media (max-width: 480px) {
  .performance-stats-grid {
    grid-template-columns: 1fr;
  }
  
  .sectors-grid {
    grid-template-columns: 1fr;
  }
  
  .clients-logos {
    grid-template-columns: 1fr;
  }
  
  .contact-form-container {
    padding: 2rem;
  }
}

.social-links .social-link {
  color: color-mix(in srgb, var(--cck-neon-blue) 78%, rgba(255, 255, 255, 0.9));
  font-size: 1rem;
  transition: color 0.2s ease, text-shadow 0.2s ease;
  text-shadow: 0 0 8px rgba(0, 214, 255, 0.4);
}

.social-links .social-link:hover,
.social-links .social-link:focus {
  color: var(--cck-neon-blue);
  text-shadow: 0 0 14px rgba(0, 214, 255, 0.6);
}

@supports not (color: color-mix(in srgb, #000, #fff)) {
  .social-links .social-link {
    color: rgba(0, 214, 255, 0.92);
  }
}

/* Footer social links */
footer .social-link {
  color: rgba(255, 255, 255, 0.85) !important;
  transition: color 0.2s ease;
}

footer .social-link:hover,
footer .social-link:focus {
  color: var(--cck-neon-blue) !important;
}

footer .footer-link {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.2s ease;
}

footer .footer-link:hover,
footer .footer-link:focus {
  color: var(--cck-neon-blue);
  text-decoration: none;
}

.footer-divider {
  border-color: rgba(255, 255, 255, 0.2) !important;
}

.brand-logo-link {
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  height: 75px;
  filter: brightness(0) invert(1);
  transition: transform 0.2s ease;
}

.brand-logo-link:hover .brand-logo,
.brand-logo-link:focus .brand-logo {
  transform: scale(1.03);
}

.back-to-top-floating {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 56px;
  height: 56px;
  background: var(--cck-neon-blue);
  color: var(--cck-navy);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 4px 20px rgba(0, 214, 255, 0.4);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 9997;
  cursor: pointer;
  pointer-events: none;
}

.back-to-top-floating:hover,
.back-to-top-floating:focus {
  background: var(--cck-sky);
  color: #FFFFFF;
}

.back-to-top-floating.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top-floating:active {
  transform: scale(0.95);
}

.form-control:focus,
.custom-select:focus {
  border-color: var(--cck-blue);
  box-shadow: 0 0 0 0.2rem rgba(var(--cck-blue-rgb), 0.15);
}

@keyframes surfaceAurora {
  0% {
    transform: translate3d(-8%, -6%, 0) rotate(0deg);
    opacity: 0.35;
  }
  50% {
    transform: translate3d(6%, 4%, 0) rotate(6deg);
    opacity: 0.55;
  }
  100% {
    transform: translate3d(-8%, -6%, 0) rotate(0deg);
    opacity: 0.35;
  }
}

@keyframes surfaceGlow {
  0% {
    transform: rotate(0deg) scale(1);
    opacity: 0.25;
  }
  50% {
    opacity: 0.4;
  }
  100% {
    transform: rotate(360deg) scale(1);
    opacity: 0.25;
  }
}

.surface-ornament {
  position: relative;
  overflow: hidden;
}

.surface-ornament::before {
  content: '';
  position: absolute;
  inset: -35% -20% -15% -20%;
  background:
    radial-gradient(42% 40% at 18% 12%, rgba(0, 214, 255, 0.15) 0%, transparent 65%),
    radial-gradient(36% 32% at 80% 8%, rgba(0, 115, 207, 0.18) 0%, transparent 70%),
    radial-gradient(55% 50% at 50% 90%, rgba(0, 63, 135, 0.12) 0%, transparent 80%);
  filter: blur(0.5px) saturate(120%);
  animation: surfaceAurora 28s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.surface-ornament::after {
  content: '';
  position: absolute;
  width: 480px;
  height: 480px;
  top: -160px;
  right: -140px;
  border-radius: 50%;
  background: conic-gradient(from 45deg, rgba(0, 214, 255, 0.35), transparent 45%, rgba(0, 115, 207, 0.3), transparent 80%);
  filter: blur(0.5px);
  opacity: 0.3;
  mix-blend-mode: screen;
  animation: surfaceGlow 22s linear infinite;
  pointer-events: none;
  z-index: 0;
}

[data-theme="dark"] .surface-ornament::before {
  opacity: 0.18;
}

[data-theme="dark"] .surface-ornament::after {
  opacity: 0.22;
  mix-blend-mode: lighten;
}

/* Countries of Operation Section */
.countries-section {
  background-color: var(--bg-primary);
  background-image: url('../media/imgs/pages/seo-agency/page-home/section-1/WorldImageCCK.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
  /* Dark theme defaults */
  --countries-overlay-color: rgba(10, 30, 71, 0.82);
  --countries-title-color: rgba(255, 255, 255, 0.98);
  --countries-title-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  --countries-copy-color: rgba(255, 255, 255, 0.88);
  --countries-copy-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  --countries-flag-label-color: rgba(255, 255, 255, 0.98);
  --countries-flag-label-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.countries-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--countries-overlay-color);
  z-index: 1;
}

.countries-section .section-title {
  color: var(--countries-title-color);
  text-shadow: var(--countries-title-shadow);
}

.countries-section .section-copy {
  color: var(--countries-copy-color);
  text-shadow: var(--countries-copy-shadow);
}

.countries-section .container {
    position: relative;
    z-index: 2;
}

/* Light mode - override presentation variables for the countries section */
[data-theme="dark"] .countries-section {
  --countries-overlay-color: rgba(10, 30, 71, 0.82);
  --countries-title-color: rgba(255, 255, 255, 0.98);
  --countries-title-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  --countries-copy-color: rgba(255, 255, 255, 0.88);
  --countries-copy-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  --countries-flag-label-color: rgba(255, 255, 255, 0.98);
  --countries-flag-label-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

[data-theme="light"] .countries-section {
  --countries-overlay-color: rgba(255, 255, 255, 0.9);
  --countries-title-color: rgba(10, 30, 71, 0.96);
  --countries-title-shadow: 0 8px 24px rgba(10, 30, 71, 0.18);
  --countries-copy-color: rgba(34, 58, 112, 0.9);
  --countries-copy-shadow: 0 6px 18px rgba(10, 30, 71, 0.15);
  --countries-flag-label-color: rgba(10, 30, 71, 0.94);
  --countries-flag-label-shadow: 0 6px 18px rgba(10, 30, 71, 0.2);
}

@keyframes orbitPulse {
  0%, 100% {
    transform: translate(-50%, 0) scale(1);
    opacity: 0.35;
  }
  50% {
    transform: translate(-48%, -2%) scale(1.04);
    opacity: 0.55;
  }
}

@keyframes sparkDrift {
  0% {
    transform: translate3d(-10%, 0, 0) rotate(0deg);
    opacity: 0.45;
  }
  50% {
    transform: translate3d(12%, -6%, 0) rotate(12deg);
    opacity: 0.65;
  }
  100% {
    transform: translate3d(-8%, 0, 0) rotate(0deg);
    opacity: 0.45;
  }
}

@keyframes flagFloat {
  0%, 100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -10px, 0);
  }
}

.countries-section::after {
  content: '';
  position: absolute;
  width: min(70%, 880px);
  aspect-ratio: 1 / 1;
  top: 12%;
  left: 50%;
  border-radius: 50%;
  border: 1.5px dashed rgba(0, 214, 255, 0.18);
  box-shadow: inset 0 0 40px rgba(0, 214, 255, 0.12);
  transform: translateX(-50%);
  animation: orbitPulse 18s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

.flags-grid {
    position: relative;
    z-index: 2;
}

.flags-grid::before,
.flags-grid::after {
    content: '';
    position: absolute;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(0, 214, 255, 0.18) 0%, transparent 70%);
    filter: blur(1.2px);
    opacity: 0.45;
    pointer-events: none;
    z-index: 0;
}

.flags-grid::before {
    top: -70px;
    left: -90px;
    animation: sparkDrift 14s ease-in-out infinite;
}

.flags-grid::after {
    bottom: -60px;
    right: -110px;
    animation: sparkDrift 16s ease-in-out infinite reverse;
}

.section-intro {
    margin-bottom: 4rem;
    text-align: center;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
  color: var(--text-primary);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    text-align: center;
}

.section-copy {
    font-size: 1.3rem;
    line-height: 1.6;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    text-align: center;
  color: var(--text-secondary);
}

/* Flags Grid Layout - Centered for 3 flags */
.flags-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 2rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    justify-items: center;
}

/* Flag Card Styling */
.flag-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    position: relative;
  animation: flagFloat 7s ease-in-out infinite;
  will-change: transform;
}

.flag-card::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(135deg, var(--cck-neon-blue), var(--cck-sky));
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.flag-card:hover::before {
    opacity: 0.1;
}

.flag-card:hover {
    transform: translateY(-10px);
  animation: none;
}

/* Flag Frame with Waving Animation */
.flag-frame {
    width: 140px;
    height: 100px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(0, 0, 0, 0.1);
    position: relative;
  background: var(--glass-strong-bg);
  border: 1px solid var(--glass-strong-border);
    transition: all 0.3s ease;
}

.flag-card:hover .flag-frame {
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(0, 214, 255, 0.3),
        0 0 0 1px rgba(0, 0, 0, 0.2);
    transform: scale(1.05);
}

[data-theme="dark"] .flag-frame {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

.flag-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Waving Animation */
.flag-card:hover .flag-image {
    animation: flagWave 3s ease-in-out infinite;
    transform-origin: center;
}

@keyframes flagWave {
    0%, 100% {
        transform: scale(1.05) rotate(0deg);
    }
    25% {
        transform: scale(1.08) rotate(1deg);
    }
    50% {
        transform: scale(1.05) rotate(0deg);
    }
    75% {
        transform: scale(1.08) rotate(-1deg);
    }
}

/* Country Label */
.countries-section .flag-label {
    margin-top: 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
  color: var(--countries-flag-label-color);
  text-shadow: var(--countries-flag-label-shadow);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.flag-card:hover .flag-label {
    color: var(--cck-neon-blue);
    text-shadow: 0 4px 12px rgba(0, 214, 255, 0.6);
    transform: translateY(2px);
}

[data-theme="light"] .flag-card:hover .flag-label {
    color: var(--cck-neon-blue);
    text-shadow: 0 4px 12px rgba(0, 214, 255, 0.5);
}

.flag-label::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--cck-neon-blue);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.flag-card:hover .flag-label::after {
    width: 40px;
}

/* Staggered Animation for Flag Cards */
.flag-card:nth-child(1) { transition-delay: 0.1s; }
.flag-card:nth-child(2) { transition-delay: 0.2s; }
.flag-card:nth-child(3) { transition-delay: 0.3s; }
.flag-card:nth-child(4) { transition-delay: 0.4s; }
.flag-card:nth-child(5) { transition-delay: 0.5s; }
.flag-card:nth-child(6) { transition-delay: 0.6s; }

.flag-card:nth-child(2) { animation-delay: 0.8s; }
.flag-card:nth-child(3) { animation-delay: 1.4s; }
.flag-card:nth-child(4) { animation-delay: 1.9s; }
.flag-card:nth-child(5) { animation-delay: 2.5s; }
.flag-card:nth-child(6) { animation-delay: 3.1s; }

/* Enhanced focus states for accessibility */
.flag-card:focus {
    outline: 2px solid var(--cck-neon-blue);
    outline-offset: 4px;
  animation: none;
}

.flag-card:focus .flag-frame {
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(0, 214, 255, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.flag-card:focus .flag-image {
    animation: flagWave 3s ease-in-out infinite;
}

.flag-card:focus .flag-label {
    color: var(--cck-neon-blue);
  text-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    transform: translateY(2px);
}

.flag-card:focus .flag-label::after {
    width: 40px;
}

/* Responsive Design for Countries Section */
@media (max-width: 1200px) {
    .flags-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
        max-width: 800px;
    }
}

@media (max-width: 768px) {
    .countries-section {
        padding: 4rem 0;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .section-copy {
        font-size: 1.1rem;
    }
    
    .flags-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.8rem;
        max-width: 600px;
    }
    
    .flag-frame {
        width: 120px;
        height: 85px;
    }
}

@media (max-width: 480px) {
    .flags-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
        max-width: 400px;
    }
    
    .flag-frame {
        width: 90px;
        height: 70px;
    }
    
    .flag-label {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 767.98px) {
  .nav-header .nav-link + .nav-link {
    margin-left: 1rem;
  }

  .nav-header {
    justify-content: center !important;
  }

  
  
  /* Mobile video optimizations */
  .bg-hero-video {
    object-position: center center;
  }
  
  .bg-hero-overlay {
    background: linear-gradient(65deg, rgba(11, 28, 61, 0.6), rgba(0, 63, 135, 0.6));
  }
}

/* ============================================
   OUR STORY PAGE - NEW STYLES
   ============================================ */

/* Story Hero - Split Screen */
.story-hero-split {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--cck-dark);
}

.story-hero-split__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.bg-story-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.story-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 30, 71, 0.7);
    z-index: 1;
}

.digital-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 214, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 214, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.founder-image-wrapper {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.founder-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.6s ease;
}

.founder-image-wrapper:hover .founder-image {
    filter: grayscale(0%);
}

.founder-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(10, 30, 71, 0.9) 100%);
    z-index: 1;
}

.hero-text-block {
    position: relative;
    z-index: 2;
    max-width: 900px;
    text-align: center;
}

.badge-neon {
    background: rgba(0, 214, 255, 0.15);
    color: var(--cck-neon-blue);
    border: 1px solid var(--cck-neon-blue);
    padding: 0.5rem 1rem;
    font-weight: 600;
}

/* Mission & Vision Icons */
.mission-icon, .vision-icon, .security-icon {
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
}

.text-neon-blue {
    color: var(--cck-neon-blue);
}

/* Values Section */
.bg-values-gradient {
    background: linear-gradient(135deg, var(--cck-navy) 0%, var(--cck-blue) 50%, var(--cck-charcoal) 100%);
    position: relative;
    overflow: hidden;
}
/* Force high-contrast typography inside values gradient */
.bg-values-gradient, .bg-values-gradient h1, .bg-values-gradient h2, .bg-values-gradient h3, .bg-values-gradient h4, .bg-values-gradient h5, .bg-values-gradient h6, .bg-values-gradient p, .bg-values-gradient .lead { color: rgba(248,252,255,0.98) !important; }

.values-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="rgba(0,214,255,0.1)"/></svg>');
    background-size: 30px 30px;
    opacity: 0.3;
    z-index: 0;
}

.values-carousel-container {
    position: relative;
    overflow: hidden;
}

.values-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.value-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.value-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 214, 255, 0.1) 0%, transparent 70%);
    background: var(--overlay-strong);
    transition: opacity 0.4s ease;
}

  body.theme-light .bg-hero-overlay {
    background: linear-gradient(180deg, rgba(10, 28, 61, 0.45) 0%, rgba(0, 63, 135, 0.28) 100%) !important;
  }
  body.theme-light .hero .headline-stage-1,
  body.theme-light .hero .headline-stage-2,
  body.theme-light .hero .lead,
  body.theme-light .hero p,
  body.theme-light .hero .text-white-75 {
    color: rgba(255, 255, 255, 0.96);
    text-shadow: 0 10px 28px rgba(5, 12, 28, 0.6);
  }
.value-card:hover::before {
    opacity: 1;
}

.value-card:hover {
    transform: translateY(-8px);
    border-color: var(--cck-neon-blue);
    box-shadow: 0 10px 40px rgba(0, 214, 255, 0.2);
    animation: softPulse 2s ease-in-out infinite;
}

@keyframes softPulse {
    0%, 100% { box-shadow: 0 10px 40px rgba(0, 214, 255, 0.2); }
    50% { box-shadow: 0 15px 50px rgba(0, 214, 255, 0.3); }
}

.value-icon {
    font-size: 3rem;
    color: var(--cck-neon-blue);
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.value-card:hover .value-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Leadership Section */
.bg-leadership-gradient {
    background: linear-gradient(135deg, var(--cck-charcoal) 0%, var(--cck-navy) 100%);
    position: relative;
}
/* Force high-contrast typography inside leadership gradient */
.bg-leadership-gradient, .bg-leadership-gradient h1, .bg-leadership-gradient h2, .bg-leadership-gradient h3, .bg-leadership-gradient h4, .bg-leadership-gradient h5, .bg-leadership-gradient h6, .bg-leadership-gradient p, .bg-leadership-gradient .lead { color: rgba(248,252,255,0.98) !important; }

.leadership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.leader-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

.leader-card:hover {
    transform: translateY(-10px);
    border-color: var(--cck-neon-blue);
    box-shadow: 0 15px 50px rgba(0, 214, 255, 0.15);
}

.leader-image-wrapper {
    position: relative;
    height: 390px;
    background: linear-gradient(135deg, var(--cck-navy) 0%, var(--cck-blue) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 8px;
    border-radius: 12px;
}

.leader-image-wrapper img,
.leader-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: 8px;
    filter: brightness(1.35) contrast(1.1) saturate(1.15);
    transition: all 0.4s ease;
}

.leader-card:hover .leader-image-wrapper img,
.leader-card:hover .leader-image {
    filter: brightness(1.45) contrast(1.12) saturate(1.2);
    transform: scale(1.03);
}

.leader-image-placeholder {
    color: rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
}

.leader-card:hover .leader-image-placeholder {
    color: var(--cck-neon-blue);
    transform: scale(1.1);
}

.leader-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(10, 30, 71, 0.4) 100%);
    z-index: 1;
    transition: opacity 0.4s ease;
    border-radius: 8px;
}

.leader-card:hover .leader-overlay {
    opacity: 0.5;
}

.leader-info {
    padding: 2rem;
}

/* CTA Section */
.bg-cta-gradient {
    background: linear-gradient(135deg, var(--cck-blue) 0%, var(--cck-navy) 100%);
    position: relative;
    overflow: hidden;
}

.sticky-cta {
    position: relative;
    transition: all 0.3s ease;
}

.sticky-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(0, 214, 255, 0.5);
}

/* Security Section */
.security-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.security-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--cck-neon-blue);
    transform: translateY(-5px);
}

.security-card-icon {
    font-size: 2.5rem;
    color: var(--cck-neon-blue);
    margin-bottom: 1rem;
}

/* Footer Tagline Animation */
.footer-tagline {
    position: relative;
    padding-bottom: 2rem;
}

.light-trail {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--cck-neon-blue), transparent);
    animation: trailSweep 3s ease-in-out infinite;
}

@keyframes trailSweep {
    0%, 100% { width: 0; opacity: 0; }
    50% { width: 300px; opacity: 1; }
}

/* Responsive adjustments for Our Story */
@media (max-width: 991px) {
    .story-hero-split {
        min-height: auto;
    }
    
    .founder-image-wrapper {
        height: 50vh;
    }
    
    .hero-text-block {
        padding: 3rem 1rem;
    }
    
    .leadership-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
}



/* Value Cards with Background Images */
.value-card-bg {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(6, 16, 40, 0.82);
  background-size: cover;
  background-position: center;
  backdrop-filter: blur(14px);
  transition: transform 0.35s var(--motion-ease), box-shadow 0.35s var(--motion-ease), border-color 0.35s var(--motion-ease);
  isolation: isolate;
}

.value-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(5, 12, 28, 0.78) 0%, rgba(0, 63, 135, 0.7) 55%, rgba(44, 166, 164, 0.66) 100%);
  z-index: 1;
  transition: opacity 0.35s ease, background 0.35s ease;
  pointer-events: none;
}

.value-card-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  min-height: 220px;
  text-align: center;
}

.value-card-content h5,
.value-card-content p {
  color: rgba(255, 255, 255, 0.96) !important;
}

.value-card-content p {
  margin-bottom: 0;
  color: rgba(230, 244, 255, 0.86) !important;
}

.value-card-content .fa {
  color: var(--cck-neon-blue);
  text-shadow: 0 10px 28px rgba(0, 214, 255, 0.38);
}

[data-theme="light"] .value-card-content .fa {
  color: rgba(108, 214, 255, 0.92);
}

.value-card-bg:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 48px rgba(0, 214, 255, 0.28);
  border-color: rgba(0, 214, 255, 0.32);
}

.value-card-bg:hover .value-card-overlay {
  opacity: 0.85;
}

[data-theme="light"] .value-card-bg {
  border-color: rgba(0, 63, 135, 0.2);
  background: rgba(10, 28, 65, 0.78);
  box-shadow: 0 24px 54px rgba(11, 28, 61, 0.18);
}

[data-theme="light"] .value-card-overlay {
  background: linear-gradient(160deg, rgba(9, 22, 54, 0.7) 0%, rgba(0, 95, 186, 0.58) 55%, rgba(68, 187, 183, 0.52) 100%);
}

[data-theme="light"] .value-card-content h5 {
  color: rgba(248, 252, 255, 0.98) !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}

[data-theme="light"] .value-card-content p {
  color: rgba(245, 250, 255, 0.94) !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.65);
}

@media (max-width: 575.98px) {
  .value-card-content {
    min-height: 180px;
  }
}

/* Our Story narrative overlays */
.bg-nairobi-section {
  position: relative;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.bg-nairobi-section .overlay-dark {
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(5, 12, 28, 0.82) 0%, rgba(0, 63, 135, 0.72) 65%, rgba(44, 166, 164, 0.68) 100%);
  backdrop-filter: blur(6px);
  pointer-events: none;
  z-index: 1;
}

[data-theme="light"] .bg-nairobi-section .overlay-dark {
  background: linear-gradient(140deg, rgba(15, 41, 94, 0.78) 0%, rgba(0, 86, 179, 0.65) 60%, rgba(68, 187, 183, 0.6) 100%);
}

.bg-nairobi-section .container {
  position: relative;
  z-index: 2;
}

.bg-nairobi-section .heading-spotlight,
.bg-nairobi-section .subheading-soft,
.bg-nairobi-section .text-white,
.bg-nairobi-section .text-white-75,
.bg-nairobi-section .text-white-90,
.bg-nairobi-section .lead {
  color: rgba(248, 252, 255, 0.95) !important;
}

.heading-spotlight {
  color: rgba(255, 255, 255, 0.97);
  text-shadow: 0 12px 34px rgba(5, 12, 28, 0.72);
  letter-spacing: -0.01em;
}

.heading-spotlight--navy {
  color: rgba(10, 30, 71, 0.94);
  text-shadow: 0 12px 28px rgba(15, 35, 82, 0.25);
}

.subheading-soft {
  color: rgba(238, 246, 255, 0.9);
}

.subheading-soft--navy {
  color: rgba(18, 46, 104, 0.82);
}

/* Story video grid enhancements */
.story-video-grid {
  gap: 2.5rem;
}

.story-video-card {
  border-radius: 20px;
  box-shadow: 0 22px 52px rgba(11, 28, 61, 0.24);
  transform: translateY(0);
  transition: transform 0.35s var(--motion-ease), box-shadow 0.35s var(--motion-ease);
}

.story-video-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(4, 18, 44, 0.15) 0%, rgba(0, 63, 135, 0.5) 55%, rgba(44, 166, 164, 0.55) 100%);
  z-index: 1;
  mix-blend-mode: screen;
  pointer-events: none;
}

.story-video-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 60px rgba(11, 28, 61, 0.35);
}

.story-video-card__content {
  padding: 2.5rem;
}

.story-video-card__content h4 {
  color: #ffffff;
  text-shadow: 0 8px 24px rgba(5, 12, 28, 0.75);
}

.story-video-card__content p {
  color: rgba(255, 255, 255, 0.9);
}

.story-video-card:hover .story-video-card__content p {
  color: rgba(255, 255, 255, 0.95);
}

[data-theme="light"] .bg-primary-dark .story-video-card::before {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.35) 0%, rgba(215, 230, 255, 0.55) 55%, rgba(200, 244, 242, 0.65) 100%);
  mix-blend-mode: multiply;
}

[data-theme="light"] .bg-primary-dark .story-video-card__content h4,
[data-theme="light"] .bg-primary-dark .story-video-card__content p {
  color: rgba(248, 252, 255, 0.98) !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}

[data-theme="light"] .bg-primary-dark .story-video-card__content p {
  color: rgba(245, 250, 255, 0.94) !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.65);
}

/* CTA section background collage */
#cta {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #061428 0%, #0a2b57 50%, #0f3d7f 100%);
  background-attachment: fixed;
}

#cta::before {
  content: '';
  position: absolute;
  inset: -25% -25% -20% -25%;
  background:
    radial-gradient(circle at 20% 25%, rgba(0, 214, 255, 0.3) 0%, transparent 55%),
    radial-gradient(circle at 80% 75%, rgba(44, 166, 164, 0.28) 0%, transparent 60%);
  opacity: 0.95;
  pointer-events: none;
  z-index: 0;
  transform: translateZ(0);
}

#cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(5, 12, 28, 0.58) 0%, rgba(0, 63, 135, 0.55) 55%, rgba(44, 166, 164, 0.5) 100%);
  mix-blend-mode: lighten;
  opacity: 0.9;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.4s ease;
}

#cta .container {
  position: relative;
  z-index: 1;
}

[data-theme="light"] #cta {
  background: linear-gradient(135deg, #0b1f46 0%, #134d87 55%, #1c72b8 100%);
}

[data-theme="light"] #cta::after {
  background: linear-gradient(120deg, rgba(14, 45, 102, 0.45) 0%, rgba(0, 120, 215, 0.4) 65%, rgba(132, 216, 212, 0.35) 100%);
  mix-blend-mode: normal;
}

[data-theme="light"] #cta h2,
[data-theme="light"] #cta p {
  color: rgba(247, 251, 255, 0.97) !important;
}

@media (max-width: 767.98px) {
  #cta {
    background-attachment: scroll;
  }
}

/* Give CTA buttons extra glow on dark imagery */
#cta .btn-neon-glow {
  box-shadow: 0 16px 35px rgba(0, 214, 255, 0.45);
}

#cta .btn-neon-glow:hover {
  box-shadow: 0 22px 45px rgba(0, 214, 255, 0.55);
}

/* Security section refresh */
#security {
  position: relative;
  overflow: hidden;
}

#security::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(145deg, rgba(5, 12, 28, 0.85), rgba(0, 63, 135, 0.78)),
    url('../media/imgs/pages/seo-agency/page-about/Image15.png');
  background-size: cover;
  background-position: center;
  filter: saturate(1.05);
  z-index: 0;
}

#security::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(0, 63, 135, 0.45) 0%, rgba(44, 166, 164, 0.38) 65%, rgba(0, 214, 255, 0.32) 100%);
  z-index: 0;
  pointer-events: none;
}

#security .container {
  position: relative;
  z-index: 1;
}

[data-theme="light"] #security::before {
  background-image: linear-gradient(145deg, rgba(12, 38, 92, 0.88), rgba(0, 102, 204, 0.75)),
    url('../media/imgs/pages/seo-agency/page-about/Image15.png');
}

[data-theme="light"] #security::after {
  background: linear-gradient(160deg, rgba(236, 244, 255, 0.6) 0%, rgba(196, 232, 255, 0.5) 55%, rgba(188, 245, 238, 0.5) 100%);
  mix-blend-mode: overlay;
}

[data-theme="light"] #security .text-white,
[data-theme="light"] #security .text-white-75,
[data-theme="light"] #security .text-white-50 {
  color: rgba(248, 252, 255, 0.98) !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}

[data-theme="light"] #security .text-white-75,
[data-theme="light"] #security p {
  color: rgba(48, 114, 180, 0.94) !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.65);
}

[data-theme="light"] #security h3 {
  color: rgba(248, 252, 255, 0.98) !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}

[data-theme="light"] #security .security-card {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(10, 30, 71, 0.12);
  box-shadow: 0 22px 54px rgba(11, 28, 61, 0.16);
}

[data-theme="light"] #security .security-card h6 {
  color: rgba(10, 30, 71, 0.92) !important;
}

#security .security-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

#security .security-card:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(0, 214, 255, 0.45);
  box-shadow: 0 20px 60px rgba(0, 214, 255, 0.25);
}

[data-theme="light"] #security .security-card:hover {
  background: rgba(243, 249, 255, 0.96);
}

/* ========================================
   SERVICES PAGE STYLES
   ======================================== */

/* Services Hero Section with Video Background */
.services-hero-split {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--cck-dark);
}

.services-hero-split__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.bg-services-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.services-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 30, 71, 0.7);
    z-index: 1;
}

/* Services Grid - Glassmorphism Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 214, 255, 0.2);
    border-radius: 16px;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 214, 255, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--cck-neon-blue);
    box-shadow: 0 20px 60px rgba(0, 214, 255, 0.3), 0 0 40px rgba(0, 214, 255, 0.2);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card > * {
    position: relative;
    z-index: 1;
}

/* Service Icon with Glow Effect */
.service-icon-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon {
    font-size: 2.5rem;
    color: var(--cck-neon-blue);
    transition: all 0.4s ease;
}

.icon-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 214, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 0 20px var(--cck-neon-blue));
}

.service-card:hover .icon-glow {
    opacity: 1;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

/* Service Typography */
.service-title {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.service-subtitle {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.service-advantages li {
    font-size: 0.95rem;
    line-height: 1.6;
    transition: transform 0.3s ease;
}

.service-card:hover .service-advantages li {
    transform: translateX(5px);
}

.stat-highlight {
    color: var(--cck-neon-blue);
    font-weight: 700;
    text-shadow: 0 0 10px rgba(0, 214, 255, 0.5);
}

/* Service CTA Button */
.btn-service-cta {
    background: rgba(0, 214, 255, 0.1);
    border: 1px solid var(--cck-neon-blue);
    color: var(--cck-neon-blue);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.btn-service-cta:hover {
    background: var(--cck-neon-blue);
    color: var(--cck-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 214, 255, 0.4);
    text-decoration: none;
}

/* Why CCK Global Section */
.neon-divider {
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, var(--cck-neon-blue) 50%, transparent 100%);
    margin: 0 auto;
    box-shadow: 0 0 20px var(--cck-neon-blue);
}

.why-cck-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.why-cck-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.why-cck-card:hover {
    transform: translateY(-8px);
    border-color: var(--cck-neon-blue);
    box-shadow: 0 15px 40px rgba(0, 214, 255, 0.2);
}

.why-icon-wrapper {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 214, 255, 0.1) 0%, rgba(0, 100, 200, 0.1) 100%);
    border-radius: 12px;
    border: 1px solid rgba(0, 214, 255, 0.3);
}

.why-icon-wrapper i {
    font-size: 1.8rem;
    color: var(--cck-neon-blue);
    transition: all 0.3s ease;
}

.why-cck-card:hover .why-icon-wrapper i {
    transform: scale(1.1);
    filter: drop-shadow(0 0 15px var(--cck-neon-blue));
}

/* Data Particles Background Animation */
.data-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.data-particles::before,
.data-particles::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--cck-neon-blue);
    border-radius: 50%;
    opacity: 0.6;
    animation: float 15s ease-in-out infinite;
}

.data-particles::before {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.data-particles::after {
    top: 60%;
    right: 15%;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(50px, -30px); }
    50% { transform: translate(-30px, 50px); }
    75% { transform: translate(40px, 30px); }
}

/* Case Studies Section with Background */
.case-studies-section {
    position: relative;
    overflow: hidden;
}

.case-studies-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 30, 71, 0.85) 0%, rgba(0, 63, 135, 0.75) 100%);
    z-index: 1;
}

/* Video Carousel Section */
.video-carousel-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 16px;
}

.video-carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.video-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.video-slide.active {
    opacity: 1;
    visibility: visible;
    position: relative;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    overflow: hidden;
}

.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(10, 30, 71, 0.8) 0%, rgba(0, 63, 135, 0.6) 100%);
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-placeholder:hover {
    background: linear-gradient(135deg, rgba(10, 30, 71, 0.9) 0%, rgba(0, 63, 135, 0.8) 100%);
}

.video-placeholder i {
    font-size: 4rem;
    color: var(--cck-neon-blue);
    transition: all 0.3s ease;
}

.video-placeholder:hover i {
    transform: scale(1.1);
    filter: drop-shadow(0 0 20px var(--cck-neon-blue));
}

/* Case Study Video Styling */
.case-study-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

/* Video Carousel Controls */
.video-carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.carousel-control {
    width: 50px;
    height: 50px;
    background: rgba(0, 214, 255, 0.1);
    border: 1px solid var(--cck-neon-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cck-neon-blue);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-control:hover {
    background: var(--cck-neon-blue);
    color: var(--cck-dark);
    transform: scale(1.1);
}

.carousel-indicators {
    display: flex;
    gap: 0.75rem;
}

.indicator {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: var(--cck-neon-blue);
    box-shadow: 0 0 15px var(--cck-neon-blue);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 2rem;
    }
    
    .why-cck-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .services-hero-split {
        min-height: 80vh;
    }
    
    .service-title {
        font-size: 1.5rem;
    }
    
    .video-carousel-controls {
        gap: 1rem;
    }
    
    .carousel-control {
        width: 40px;
        height: 40px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .why-cck-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1025px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .why-cck-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ========================================
   COMPREHENSIVE MOBILE RESPONSIVENESS
   ======================================== */



/* Floating Elements Mobile */




/* Prevent Horizontal Scroll on Mobile */
@media (max-width: 767px) {
    body {
        overflow-x: hidden;
    }
    
    .row {
        margin-left: 0;
        margin-right: 0;
    }
    
    .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* ========================================
   NEW CAREERS PAGE STYLING
   ======================================== */

/* Modern Job Cards */
.job-card-modern {
    transition: all 0.3s ease;
    border-radius: 16px !important;
    overflow: hidden;
}

.job-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
}

.job-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Glow on Hover Effect */
.glow-on-hover {
    transition: all 0.3s ease;
}

.glow-on-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
}

/* Job Modal Styling */
.job-modal-content,
.application-modal-content {
    border-radius: 20px !important;
    overflow: hidden;
    border: none;
}

.job-modal-content .modal-header,
.application-modal-content .modal-header {
    border-bottom: none;
}

.job-modal-content .modal-body,
.application-modal-content .modal-body {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

/* Form Enhancements */
.form-control:focus {
    border-color: var(--cck-neon-blue);
    box-shadow: 0 0 0 0.2rem rgba(0, 214, 255, 0.25);
}

.custom-file-input:focus ~ .custom-file-label {
    border-color: var(--cck-neon-blue);
    box-shadow: 0 0 0 0.2rem rgba(0, 214, 255, 0.25);
}

/* Enhanced Badges */
.badge-light {
    background-color: rgba(0, 214, 255, 0.1) !important;
    color: var(--cck-navy) !important;
    border: 1px solid rgba(0, 214, 255, 0.2);
}

/* Alert Animations */
.alert {
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Pop Text Enhancements for Careers */
.careers-intro .pop-text {
    background: linear-gradient(135deg, var(--cck-neon-blue) 0%, #FFFFFF 50%, #28a745 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: none;
    filter: drop-shadow(0 2px 10px rgba(0, 214, 255, 0.3));
}


/* Career Section Background Enhancement */
.bg-white.py-6 {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
}

/* Enhanced Button Styling */
.btn-success.glow-on-hover {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.btn-success.glow-on-hover:hover {
    background: linear-gradient(135deg, #20c997 0%, #28a745 100%);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
}

/* ========================================
   ENHANCED MOBILE RESPONSIVENESS
   ======================================== */

/* Typography Scaling for Mobile */
@media (max-width: 575px) {
    .display-1 {
        font-size: 2.5rem !important;
        line-height: 1.2 !important;
    }
    
    .display-2 {
        font-size: 2rem !important;
        line-height: 1.2 !important;
    }
    
    .display-3 {
        font-size: 1.75rem !important;
        line-height: 1.3 !important;
    }
    
    .display-4 {
        font-size: 1.5rem !important;
        line-height: 1.3 !important;
    }
    
    h1, .h1 {
        font-size: 1.75rem !important;
        line-height: 1.3 !important;
    }
    
    h2, .h2 {
        font-size: 1.5rem !important;
        line-height: 1.3 !important;
    }
    
    h3, .h3 {
        font-size: 1.25rem !important;
        line-height: 1.4 !important;
    }
    
    .lead {
        font-size: 1rem !important;
        line-height: 1.5 !important;
    }
    
    p {
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
    }
}

/* Video Responsiveness Enhancement */
@media (max-width: 767px) {
    video, .bg-video {
        height: 250px !important;
        object-fit: cover;
        width: 100%;
    }
    
    .embed-responsive {
        margin-bottom: 2rem;
    }
    
    .hero-video-container {
        height: 300px !important;
        overflow: hidden;
    }
    
    .hero-video-container video {
        height: 100% !important;
        width: 100% !important;
        object-fit: cover;
    }
}



/* Container and Spacing Mobile */
@media (max-width: 575px) {
    .container {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }
    
    .py-6 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    .mb-5 {
        margin-bottom: 2rem !important;
    }
    
    .mt-5 {
        margin-top: 2rem !important;
    }
}



/* Scroll Behavior Enhancement */
html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}


/* ========================================
   ENHANCED MOBILE NAVIGATION
   ======================================== */

.mobile-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #FFFFFF;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1001;
}

.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: rgba(0, 214, 255, 0.2);
  border-color: var(--cck-neon-blue);
  color: var(--cck-neon-blue);
  transform: scale(1.05);
}

.mobile-menu-toggle.active {
  background: var(--cck-neon-blue);
  color: var(--cck-navy);
  border-color: var(--cck-neon-blue);
}

.mobile-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 85%;
  max-width: 320px;
  height: 100vh;
  background: var(--cck-blue);
  backdrop-filter: blur(20px);
  box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
  z-index: 1500;
  overflow-y: auto;
  display: none;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease, display 0s 0.3s;
}

.mobile-sidebar.active {
  display: flex;
  transform: translateX(0);
  transition: transform 0.3s ease, display 0s;
}

.mobile-sidebar-header {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.mobile-sidebar-logo {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: transform 0.3s ease;
}

.mobile-sidebar-logo:hover {
  transform: scale(1.05);
}

.mobile-sidebar-close {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #FFFFFF;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0.5rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-sidebar-close:hover,
.mobile-sidebar-close:focus {
  background: var(--cck-neon-blue);
  color: var(--cck-navy);
  transform: rotate(90deg);
  border-color: var(--cck-neon-blue);
}

.mobile-nav {
  padding: 1rem 0;
  flex: 1;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  padding: 1.25rem 2rem;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
  border-left: 4px solid transparent;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.mobile-nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 214, 255, 0.15), transparent);
  transition: left 0.6s ease;
}

.mobile-nav-link:hover::before,
.mobile-nav-link:focus::before {
  left: 100%;
}

.mobile-nav-link:hover,
.mobile-nav-link:focus {
  color: var(--cck-neon-blue);
  border-left-color: var(--cck-neon-blue);
  background: rgba(0, 214, 255, 0.08);
  text-decoration: none;
  transform: translateX(8px);
}

.mobile-nav-link.active {
  color: var(--cck-neon-blue);
  border-left-color: var(--cck-neon-blue);
  background: rgba(0, 214, 255, 0.12);
  font-weight: 600;
}

.mobile-nav-link i {
  margin-right: 1rem;
  font-size: 1.2rem;
  width: 24px;
  text-align: center;
  transition: transform 0.3s ease;
}

.mobile-nav-link:hover i,
.mobile-nav-link:focus i {
  transform: scale(1.1);
}

.mobile-sidebar-contact {
  padding: 1.5rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.03);
  flex-shrink: 0;
}

.mobile-contact-item {
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  margin-bottom: 1rem;
  padding: 0.75rem 0;
  transition: all 0.3s ease;
  border-radius: 8px;
}

.mobile-contact-item:hover,
.mobile-contact-item:focus {
  color: var(--cck-neon-blue);
  background: rgba(0, 214, 255, 0.1);
  text-decoration: none;
  transform: translateX(5px);
}

.mobile-contact-item i {
  margin-right: 1rem;
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
}

.mobile-social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  justify-content: center;
}

.mobile-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  text-decoration: none;
  border-radius: 50%;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-social-link:hover,
.mobile-social-link:focus {
  background: var(--cck-neon-blue);
  color: #FFFFFF;
  text-decoration: none;
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 8px 20px rgba(0, 214, 255, 0.4);
  border-color: var(--cck-neon-blue);
}

.mobile-sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 1400;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Body scroll lock when sidebar is open */
body.sidebar-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
}

/* Desktop Navigation Enhancements */
@media (min-width: 992px) {
    .mobile-menu-toggle,
    .mobile-sidebar,
    .mobile-sidebar-overlay {
        display: none !important;
    }
    
    .nav-header .nav-link {
        position: relative;
        overflow: hidden;
    }
    
    .nav-header .nav-link::before {
        content: '';
        position: absolute;
        bottom: 0;
        left: -100%;
        width: 100%;
        height: 2px;
        background: var(--cck-neon-blue);
        transition: left 0.3s ease;
    }
    
    .nav-header .nav-link:hover::before,
    .nav-header .nav-link:focus::before,
    .nav-header .nav-link.active::before {
        left: 0;
    }
}

/* Enhanced Mobile Navigation */
@media (max-width: 991.98px) {
  /* Improved header layout for mobile */
  .sticky-header .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  /* Better header top spacing */
  .header-top {
    padding: 0.5rem 0 !important;
    font-size: 0.8rem;
  }

  /* Contact links - stack vertically */
  .contact-links {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  .contact-links .divider {
    display: none;
  }

  /* Social links - center and space properly */
  .social-links {
    justify-content: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
  }

  /* Main header row - better spacing */
  .sticky-header .row.align-items-center {
    padding: 0.5rem 0;
  }

  .sticky-header .row.align-items-center > .col-md-8 {
    display: flex;
    justify-content: flex-end;
    align-items: center;
  }

  /* Logo sizing for mobile */
  .brand-logo {
    height: 45px !important;
    max-width: 180px;
    object-fit: contain;
  }

  .header-controls {
    justify-content: flex-end !important;
    gap: 1rem;
  }

  .header-controls nav {
    margin-right: 0;
  }

  .header-action-buttons {
    gap: 0.6rem;
  }

  /* Mobile menu toggle button improvements */
  .mobile-menu-toggle {
    display: flex !important;
    margin-left: auto;
  }

  .mobile-menu-toggle:hover,
  .mobile-menu-toggle:focus {
    background: rgba(0, 214, 255, 0.2);
    border-color: var(--cck-neon-blue);
    color: var(--cck-neon-blue);
    transform: scale(1.05);
  }

  .mobile-menu-toggle.active {
    background: var(--cck-neon-blue);
    color: var(--cck-navy);
    border-color: var(--cck-neon-blue);
  }

  /* Hide desktop navigation completely */
  .nav-header {
    display: none !important;
  }

  /* Adjust header when scrolled */
  .sticky-header.scrolled {
    background: rgba(10, 30, 71, 0.98) !important;
    backdrop-filter: blur(20px);
  }

  .sticky-header.scrolled .header-top {
    display: none;
  }

  .sticky-header.scrolled .brand-logo {
    height: 40px !important;
  }
}



/* Animation Enhancements */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.mobile-sidebar.entering {
    animation: slideInRight 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mobile-sidebar.leaving {
    animation: slideOutRight 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Enhanced touch interactions */
.touch-device .touch-friendly {
  -webkit-tap-highlight-color: rgba(0, 214, 255, 0.3);
  cursor: pointer;
}

.touch-device .btn:hover,
.touch-device .nav-link:hover,
.touch-device .mobile-nav-link:hover {
  transform: none;
}

.touch-device .btn:active,
.touch-device .nav-link:active,
.touch-device .mobile-nav-link:active {
  transform: scale(0.98);
}

.touch-friendly {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.touch-friendly:focus {
  outline: 2px solid var(--cck-neon-blue);
  outline-offset: 2px;
}

/* Header scroll states */
.sticky-header {
  background: transparent;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.sticky-header.scrolled {
  background: rgba(10, 30, 71, 0.98);
  box-shadow: 0 6px 20px rgba(11, 28, 61, 0.25);
}

/* Hide header top on scroll */
.header-top {
    transition: all 0.3s ease;
    max-height: 60px;
    opacity: 1;
    overflow: hidden;
}

.sticky-header.scrolled .header-top {
    max-height: 0;
    opacity: 0;
    padding: 0;
    border-bottom: none;
}

/* Fix for white background sections in terms and privacy pages */
.bg-white h2.font-weight-bold,
.bg-white h2,
section.bg-white h2.font-weight-bold,
section.bg-white h2 {
    color: var(--cck-primary) !important;
}

.bg-white h3.font-weight-bold,
.bg-white h3,
section.bg-white h3.font-weight-bold,
section.bg-white h3 {
    color: var(--cck-primary-dark) !important;
}




/* Special styling ONLY for terms and privacy policy pages */
body:has([href*="terms-and-conditions"]) h2.font-weight-bold,
body:has([href*="privacy-policy"]) h2.font-weight-bold,
.terms-page h2.font-weight-bold,
.privacy-page h2.font-weight-bold {
    
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--cck-white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 1rem !important;
}

/* Ensure good contrast for content text on white backgrounds */
.bg-white .text-muted,
section.bg-white .text-muted {
    color: #6c757d !important;
}

/* ============================================
   THEME TOGGLE BUTTON
   ============================================ */
.theme-toggle {
  position: relative;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  overflow: hidden;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--cck-neon-blue);
  box-shadow: 0 0 20px rgba(0, 214, 255, 0.3);
  transform: scale(1.05);
}

.theme-toggle:active {
  transform: scale(0.95);
}

.theme-toggle i {
  position: absolute;
  font-size: 1.25rem;
  transition: all 0.5s ease;
}

.theme-icon-light {
  color: #FFD700;
  transform: rotate(0deg) scale(1);
  opacity: 1;
}

.theme-icon-dark {
  color: #C0C5CE;
  transform: rotate(180deg) scale(0);
  opacity: 0;
}

[data-theme="dark"] .theme-icon-light {
  transform: rotate(-180deg) scale(0);
  opacity: 0;
}

[data-theme="dark"] .theme-icon-dark {
  transform: rotate(0deg) scale(1);
  opacity: 1;
}

.theme-toggle.rotating i {
  animation: iconRotate 0.5s ease;
}

@keyframes iconRotate {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(0.5); }
  100% { transform: rotate(360deg) scale(1); }
}

/* Dark mode adjustments for various sections */
[data-theme="dark"] body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

[data-theme="dark"] .sticky-header {
  background: rgba(11, 15, 26, 0.98);
}

[data-theme="dark"] .sticky-header.scrolled {
  background: rgba(11, 15, 26, 1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .location-card {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

[data-theme="dark"] .location-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--cck-neon-blue);
}

[data-theme="dark"] .location-title {
  color: var(--cck-white);
}

[data-theme="dark"] .location-address {
  color: var(--text-secondary);
}

[data-theme="dark"] .results-snapshot {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .stat-label {
  color: var(--text-secondary);
}

[data-theme="dark"] footer {
  background: var(--bg-secondary) !important;
}

[data-theme="dark"] footer h2,
[data-theme="dark"] footer p {
  color: var(--text-primary) !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .theme-toggle {
    width: 45px;
    height: 45px;
  }
  
  .theme-toggle i {
    font-size: 1.1rem;
  }
}

