/* ==========================================================================
   OJN Solutions Group - Deep Navy / Sea Green Rebrand
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Backgrounds */
  --color-bg:           #0A0F1E;   /* deep navy — main page background */
  --color-surface:      #0F1628;   /* slightly lighter navy — card/section bg */
  --color-surface-2:    #162040;   /* medium navy — dropdown, hover panels */
  --color-nav-bg:       #080D1A;   /* darkest navy — sticky nav */

  /* Borders */
  --color-border:       #1E2D4A;   /* subtle navy border */
  --color-border-light: #2A3F66;   /* slightly visible border */

  /* Accent — Sea Green */
  --color-accent:       #2DD4A0;   /* primary sea green */
  --color-accent-hover: #4DEBB6;   /* lighter sea green on hover */
  --color-accent-dim:   #1A7A5E;   /* muted sea green for tags/eyebrows */
  --color-accent-bg:    rgba(45, 212, 160, 0.08); /* very subtle green tint for active states */

  /* Text */
  --color-text:         #D8E4F0;   /* soft off-white — primary text */
  --color-muted:        #6B82A0;   /* steel blue-grey — secondary text */
  --color-white:        #FFFFFF;

  /* Button colors */
  --btn-primary-bg:     #2DD4A0;
  --btn-primary-text:   #0A0F1E;   /* dark navy text on green button */
  --btn-outline-border: #2DD4A0;
  --btn-outline-text:   #2DD4A0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Albert Sans', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  background: var(--color-bg);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.25s ease;
}

ul {
  list-style: none;
}

img, svg {
  max-width: 100%;
  display: block;
}

/* Typography */
h1 { font-family: 'Albert Sans', sans-serif; font-weight: 800; font-size: clamp(36px, 5vw, 62px); line-height: 1.1; color: var(--color-white); }
h2 { font-family: 'Albert Sans', sans-serif; font-weight: 700; font-size: clamp(26px, 3.5vw, 42px); line-height: 1.2; color: var(--color-white); }
h3 { font-family: 'Albert Sans', sans-serif; font-weight: 600; font-size: clamp(18px, 2.5vw, 24px); line-height: 1.3; color: var(--color-white); }
h4 { font-family: 'Albert Sans', sans-serif; font-weight: 600; font-size: 18px; color: var(--color-white); }
h5, h6 { font-family: 'Albert Sans', sans-serif; font-weight: 600; line-height: 1.2; color: var(--color-white); }

p  { font-family: 'Albert Sans', sans-serif; font-weight: 400; line-height: 1.7; color: var(--color-text); }

.section-title {
  font-family: 'Albert Sans', sans-serif;
  font-weight: 700;
  font-size: clamp(26px, 3.5vw, 42px);
  color: var(--color-white);
  margin-bottom: 20px;
  line-height: 1.2;
}

.eyebrow {
  font-family: 'Albert Sans', sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-accent);
  display: block;
  margin-bottom: 14px;
}

.eyebrow-muted {
  color: var(--color-muted);
}

.stat-number, .stat-num {
  font-family: 'Albert Sans', sans-serif;
  font-weight: 800;
  font-size: 44px;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 8px;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  width: 100%;
}

section, .section-padding {
  padding: 88px 0;
}

.surface-bg {
  background-color: var(--color-surface);
}

.border-y {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.border-top-accent {
  border-top: 1px solid var(--color-accent);
}

.border-bottom-accent {
  border-bottom: 1px solid var(--color-accent);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, transform 0.2s ease;
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  font-family: 'Albert Sans', sans-serif;
  font-weight: 600;
  font-size: 15px;
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  border: none;
  padding: 13px 30px;
  border-radius: 3px;
  text-decoration: none;
  display: inline-block;
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  color: var(--btn-primary-text);
  transform: translateY(-1px);
}

.btn-outline {
  font-family: 'Albert Sans', sans-serif;
  font-weight: 600;
  font-size: 15px;
  background: transparent;
  color: var(--btn-outline-text);
  border: 1.5px solid var(--btn-outline-border);
  padding: 12px 29px;
  border-radius: 3px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.25s ease;
}

.btn-outline:hover {
  background: var(--color-accent);
  color: var(--color-bg);
  transform: translateY(-1px);
}

/* Header & Nav */
.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.25s ease;
  background: var(--color-nav-bg);
}

.site-header.scrolled {
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.header-top {
  display: none !important;
}

.header-top-inner {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  gap: 16px;
  font-size: 12px;
  color: var(--color-muted);
}

.header-top-inner a:hover {
  color: var(--color-accent);
}

.header-main {
  background: var(--color-nav-bg);
  border-bottom: 1px solid var(--color-border);
  height: 64px;
  display: flex;
  align-items: center;
}

.header-main .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-text {
  font-family: 'Albert Sans', sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: var(--color-white);
  letter-spacing: 1px;
}

.main-nav {
  display: flex;
  gap: 24px;
  height: 100%;
  align-items: center;
}

nav a, .nav-link {
  font-family: 'Albert Sans', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: var(--color-text);
  padding: 22px 0;
  cursor: pointer;
  position: relative;
}

nav a.active, .nav-link.active, .nav-link:hover {
  color: var(--color-accent);
}

nav a.active::after, .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-accent);
}

.header-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

/* Mega Dropdown */
.nav-item {
  position: relative;
}

.megamenu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: 1000px;
  background: radial-gradient(circle at 50% 50%, #0c1329 0%, #060913 100%);
  border-top: 2px solid var(--color-accent);
  border-bottom: 1px solid var(--color-border);
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  box-shadow: 0 20px 40px rgba(0,0,0,0.8);
  overflow: hidden;
}

.megamenu::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -20%;
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(74, 58, 255, 0.2) 0%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
  z-index: 0;
  animation: spotlightRotate1 15s infinite alternate ease-in-out;
}

.megamenu::after {
  content: '';
  position: absolute;
  bottom: -20%;
  right: -20%;
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(45, 212, 160, 0.15) 0%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
  z-index: 0;
  animation: spotlightRotate2 18s infinite alternate ease-in-out;
}

.megamenu-header, .megamenu-links {
  position: relative;
  z-index: 1;
}


/* Mega dropdown variations */
.megamenu-capabilities {
  grid-template-columns: 1fr 1fr;
  width: 600px;
}

.nav-item.dropdown:hover .megamenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.megamenu-header h4 {
  font-size: 18px;
  margin-bottom: 12px;
  color: var(--color-accent);
}

.megamenu-header p {
  font-size: 14px;
  color: var(--color-muted);
}

.megamenu-links h5 {
  font-family: 'Albert Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--color-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.megamenu-links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 14px;
  color: var(--color-text);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.megamenu-links a:hover {
  color: var(--color-accent);
  padding-left: 8px;
  border-color: rgba(255,255,255,0.1);
}

.megamenu-links a.active::after {
  display: none;
}

.megamenu-featured {
  grid-column: 1 / -1;
  border: 1px solid var(--color-accent);
  padding: 24px;
  border-radius: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--color-bg);
}

.megamenu-featured p {
  font-size: 14px;
  color: var(--color-text);
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 24px;
  cursor: pointer;
}

/* Hero Carousel */
.hero-carousel, .hero {
  width: 100%;
  position: relative;
  overflow: hidden;
  background-color: var(--color-bg);
}

.hero-carousel {
  height: 680px;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease;
  z-index: 1;
}

.slide.active {
  opacity: 1;
  z-index: 2;
}

.slide-1-bg {
  background-image: radial-gradient(circle, rgba(45, 212, 160, 0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  position: absolute;
  inset: 0;
  z-index: -1;
}

.slide-video-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: -2;
  background: var(--color-bg);
}

#hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.3;
  mix-blend-mode: screen;
}

.slide-video-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 20%, var(--color-bg) 80%);
  z-index: 1;
}

.slide-2-bg {
  background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-surface-2) 100%);
  position: absolute;
  inset: 0;
  z-index: -1;
}

.slide h1 {
  margin-bottom: 24px;
  max-width: 800px;
}

.slide p {
  font-size: 18px;
  color: var(--color-muted);
  max-width: 600px;
  margin-bottom: 40px;
}

.carousel-dots {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-border);
  cursor: pointer;
  transition: all 0.25s ease;
}

.dot.active {
  background: var(--color-accent);
}

/* Stat Strip */
.stat-strip {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 40px 0;
  display: flex;
  align-items: center;
}

.stat-strip-hero {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to bottom, rgba(10, 15, 30, 0) 0%, rgba(10, 15, 30, 0.8) 100%);
  padding: 40px 0 30px;
  z-index: 5;
  display: flex;
  align-items: center;
}

.stat-grid, .stats-row {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.stat-item {
  flex: 1;
  text-align: center;
  border-right: 1px solid var(--color-border);
  padding: 0 24px;
}

.stat-item:last-child {
  border-right: none;
}

.stat-label {
  font-size: 13px;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Grid Layouts */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

/* Cards */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 28px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.card:hover {
  border-color: var(--color-accent-hover);
  background: var(--color-surface-2);
  transform: translateY(-8px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), 0 0 20px rgba(45, 212, 160, 0.12);
}

.card-top-accent {
  border-top: 2px solid var(--color-accent);
}

.card-icon {
  width: 32px;
  height: 32px;
  color: var(--color-accent);
  margin-bottom: 24px;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.3s ease, filter 0.3s ease;
}

.card:hover .card-icon {
  transform: translateY(-8px) scale(1.2) rotate(12deg);
  color: var(--color-accent-hover);
  filter: drop-shadow(0 4px 10px rgba(45, 212, 160, 0.4));
}

.card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.card p {
  font-size: 14px;
  color: var(--color-muted);
  margin-bottom: 24px;
}

.link-arrow {
  font-family: 'Albert Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s ease, gap 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover .link-arrow, .link-arrow:hover {
  color: var(--color-accent-hover);
  gap: 14px;
}

.benefits-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  font-size: 14px;
  color: var(--color-muted);
  list-style-type: square;
  padding-left: 20px;
  margin: 0;
}

@media (max-width: 768px) {
  .benefits-list {
    grid-template-columns: 1fr;
  }
}

/* Region Tiles */
.region-tile {
  background: var(--color-surface);
  border: 1px solid var(--color-accent);
  border-radius: 4px;
  padding: 24px;
  text-align: center;
}

.region-tile h3 {
  font-family: 'Albert Sans', sans-serif;
  font-size: 20px;
  color: var(--color-accent);
  margin-bottom: 8px;
}

.region-tile p {
  font-size: 12px;
  color: var(--color-muted);
}

/* Tab Section */
.tabs-header {
  display: flex;
  gap: 48px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 48px;
}

.tab-btn {
  background: none;
  border: none;
  color: var(--color-muted);
  font-family: 'Albert Sans', sans-serif;
  font-size: 16px;
  font-weight: 600;
  padding-bottom: 16px;
  cursor: pointer;
  position: relative;
}

.tab-btn.active {
  color: var(--color-white);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-accent);
}

.tab-content {
  display: none;
  animation: fadeIn 0.4s ease;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.tab-pane-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  align-items: center;
}

.tab-pane-grid p {
  font-size: 18px;
  color: var(--color-text);
  margin-bottom: 32px;
}

.image-placeholder {
  background: var(--color-surface-2);
  border-radius: 4px;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.image-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Logo Strip & Infinite Slider */
.logo-strip {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.logo-slider-container {
  overflow: hidden;
  width: 100%;
  position: relative;
  padding: 12px 0;
  mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}

.logo-slider-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: marquee 25s linear infinite;
}

.logo-slider-track:hover {
  animation-play-state: paused;
}

.logo-slider-track .logo-badge {
  flex: 0 0 250px;
  box-sizing: border-box;
}

.logo-badge {
  flex: 1;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 24px 16px;
  text-align: center;
  border-radius: 4px;
  font-family: 'Albert Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-muted);
  white-space: nowrap;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Resource cards */
.resource-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 28px;
  transition: border-color 0.25s ease;
}

.resource-card:hover {
  border-color: var(--color-accent);
}

.resource-card .resource-type {
  font-family: 'Albert Sans', sans-serif;
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 10px;
}

/* CTA banner */
.cta-banner {
  background: var(--color-surface);
  border-top: 1px solid var(--color-accent);
  border-bottom: 1px solid var(--color-accent);
  text-align: center;
  padding: 72px 40px;
}

/* Form Styles */
.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-family: 'Albert Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.form-control {
  width: 100%;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  padding: 16px;
  border-radius: 4px;
  font-family: 'Albert Sans', sans-serif;
  font-size: 16px;
  transition: all 0.25s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-accent);
}

textarea.form-control {
  resize: vertical;
}

.contact-info-panel {
  background: var(--color-surface);
  border-top: 2px solid var(--color-accent);
  padding: 40px;
  border-radius: 4px;
}

.contact-info-item {
  margin-bottom: 32px;
}

.contact-info-item h4 {
  font-family: 'Albert Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 8px;
  letter-spacing: 2px;
}

.contact-info-item p {
  font-size: 14px;
  color: var(--color-muted);
}

.success-message {
  display: none;
  background: var(--color-surface);
  border: 1px solid var(--color-accent);
  padding: 40px;
  border-radius: 4px;
  text-align: center;
}

.success-message h3 {
  color: var(--color-accent);
  margin-bottom: 16px;
  font-size: 24px;
}

/* Footer */
footer, .site-footer {
  background: #060A14;
  border-top: 1px solid var(--color-border);
  padding: 60px 0 30px;
  font-family: 'Albert Sans', sans-serif;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}

.footer-tagline {
  font-size: 14px;
  font-style: italic;
  color: var(--color-muted);
  margin: 16px 0;
}

.footer-copyright {
  font-size: 12px;
  color: var(--color-muted);
}

.footer-col h4 {
  font-family: 'Albert Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--color-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

footer a, .site-footer a {
  font-size: 14px;
  color: var(--color-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

footer a:hover, .site-footer a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding: 24px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--color-muted);
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

/* Utilities */
.reveal {
  opacity: 0;
  transform: translateY(24px) scale(0.96);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.hero-reveal {
  /* Default to visible so if animation is blocked/fails, the text is still shown */
  opacity: 1;
  transform: translateY(0) scale(1);
  animation: heroPop 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

@keyframes heroPop {
  0% {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.mb-0 { margin-bottom: 0; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }

/* Responsive */
@media (max-width: 1024px) {
  .container { padding: 0 24px; }
  .grid-3, .grid-5 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  section, .section-padding { padding: 60px 0; }
  h1 { font-size: 32px; }
  h2 { font-size: 26px; }
  .header-main .main-nav, .header-main .header-actions { display: none; }
  .mobile-nav-toggle { display: block; }
  .grid-3, .grid-2, .grid-5, .footer-top, .tab-pane-grid, .logo-strip { grid-template-columns: 1fr; flex-direction: column; }
  .logo-badge { width: 100%; }
  .stat-grid, .stats-row { flex-direction: column; }
  .stat-item { flex: 0 0 100%; border-right: none; border-bottom: 1px solid var(--color-border); padding: 24px 0; }
  .stat-item:last-child { border-bottom: none; }
  .hero-carousel, .hero { height: auto; min-height: 840px; }
  .slide { position: relative; height: auto; min-height: 840px; display: flex; flex-direction: column; }
  .stat-strip-hero { position: absolute; bottom: 0; left: 0; background: linear-gradient(to bottom, rgba(10, 15, 30, 0) 0%, rgba(10, 15, 30, 0.9) 100%); }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .megamenu { display: none; }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .hero-reveal {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
  position: fixed;
  top: 100px;
  left: 0;
  width: 100%;
  height: calc(100vh - 100px);
  background: var(--color-nav-bg);
  z-index: 999;
  padding: 24px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}

.mobile-nav-overlay.active {
  transform: translateX(0);
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mobile-nav-link {
  font-family: 'Albert Sans', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 16px;
  display: block;
}

.mobile-dropdown-content {
  display: none;
  padding-top: 16px;
  padding-left: 16px;
}

.mobile-dropdown-content.active {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-dropdown-content a {
  color: var(--color-muted);
  font-size: 15px;
}

/* ==========================================================================
   Services Interactive Explorer (Tabs on Desktop, Accordions on Mobile)
   ========================================================================== */
.services-explorer {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: start;
}

.services-sidebar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 16px;
  border-radius: 4px;
  position: sticky;
  top: 100px;
}

.services-tab-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: transparent;
  border: 1px solid transparent;
  border-left: 3px solid transparent;
  color: var(--color-muted);
  font-family: 'Albert Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.25s ease;
  width: 100%;
}

.services-tab-btn:hover {
  color: var(--color-accent);
  background: var(--color-surface-2);
}

.services-tab-btn.active {
  color: var(--color-accent);
  background: rgba(45, 212, 160, 0.05);
  border-left: 3px solid var(--color-accent);
  border-radius: 0 3px 3px 0;
}

.services-tab-btn svg {
  width: 16px;
  height: 16px;
  opacity: 0;
  transform: translateX(-5px);
  transition: all 0.25s ease;
}

.services-tab-btn.active svg {
  opacity: 1;
  transform: translateX(0);
}

.services-detail-pane {
  background: radial-gradient(circle at 50% 50%, #0c1329 0%, #060913 100%);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 40px;
  min-height: 500px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.services-detail-pane::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -20%;
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(74, 58, 255, 0.18) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: -1;
  animation: spotlightRotate1 15s infinite alternate ease-in-out;
}

.services-detail-pane::after {
  content: '';
  position: absolute;
  bottom: -20%;
  right: -20%;
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(45, 212, 160, 0.12) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: -1;
  animation: spotlightRotate2 18s infinite alternate ease-in-out;
}

.service-panel {
  display: none;
  animation: fadeIn 0.4s ease;
  position: relative;
  z-index: 1;
}

.service-panel.active {
  display: block;
}

/* Accordion Header (Mobile Only) */
.service-accordion-header {
  display: none;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  color: var(--color-white);
  font-family: 'Albert Sans', sans-serif;
  font-size: 16px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.25s ease;
}

.service-accordion-header:hover {
  border-color: var(--color-accent);
}

.service-accordion-header .accordion-icon {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
  color: var(--color-accent);
}

.service-panel.active .service-accordion-header {
  border-color: var(--color-accent);
  background: rgba(45, 212, 160, 0.05);
}

.service-panel.active .service-accordion-header .accordion-icon {
  transform: rotate(180deg);
}

.service-accordion-body {
  padding-top: 24px;
}

/* Service Detail styling */
.service-detail-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 20px;
}

.service-detail-header svg {
  width: 40px;
  height: 40px;
  color: var(--color-accent);
}

.service-detail-header h2 {
  font-size: 28px;
  margin: 0;
}

.service-desc {
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-text);
  margin-bottom: 32px;
}

.service-caps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 32px;
}

.service-cap-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--color-surface-2);
  padding: 16px;
  border-radius: 4px;
  border: 1px solid var(--color-border);
}

.service-cap-item svg {
  width: 16px;
  height: 16px;
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 4px;
}

.service-cap-item h4 {
  font-size: 14px;
  margin: 0;
  color: var(--color-white);
  line-height: 1.4;
}

.service-audiences {
  border-top: 1px solid var(--color-border);
  padding-top: 24px;
}

.service-audiences h4 {
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--color-muted);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.audience-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.audience-badge {
  background: rgba(45, 212, 160, 0.08);
  border: 1px solid rgba(45, 212, 160, 0.2);
  color: var(--color-accent);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 30px;
}

/* Responsiveness overrides for the Explorer */
@media (max-width: 1024px) {
  .services-explorer {
    grid-template-columns: 240px 1fr;
    gap: 24px;
  }
  .services-detail-pane {
    padding: 30px;
  }
}

@media (max-width: 768px) {
  .services-explorer {
    grid-template-columns: 1fr;
  }
  .services-sidebar {
    display: none;
  }
  .services-detail-pane {
    background: transparent;
    border: none;
    padding: 0;
    min-height: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .service-panel {
    display: block; /* always present, but collapsed */
  }
  .service-accordion-header {
    display: flex;
  }
  .service-accordion-body {
    display: none;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-top: none;
    padding: 24px;
    border-radius: 0 0 4px 4px;
    animation: fadeIn 0.4s ease;
  }
  .service-panel.active .service-accordion-body {
    display: block;
  }
  .service-caps-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .service-detail-header {
    display: none; /* redundant on mobile since accordion header has the title */
  }
}

/* Service Single Page Styling Overrides */
.service-single-page .services-sidebar {
  display: none !important;
}
.service-single-page .services-explorer {
  display: block !important;
  max-width: 1200px; /* Covers full page width */
  margin: 0 auto;
}
.service-single-page .services-detail-pane {
  min-height: auto !important;
}
.service-single-page .service-detail-header {
  display: flex !important;
}
.service-single-page .service-accordion-header {
  display: none !important;
}
.service-single-page .service-accordion-body {
  display: block !important;
}



/* Service Page Background Graphic watermark overlay */
.service-pane-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.05; /* Low opacity for a subtle, premium look */
  pointer-events: none;
  overflow: hidden;
}

.service-pane-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Ensure the panel content sits above the background watermark */
.service-panel {
  position: relative;
  z-index: 2;
}

@media (max-width: 768px) {
  .service-single-page .services-detail-pane {
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
  }
}

/* ==========================================================================
   Premium Custom Cursor Animation (Desktop Only)
   ========================================================================== */
@media (min-width: 769px) {
  body {
    cursor: none;
  }
  a, button, .btn, .card, .services-tab-btn, .tab-btn, .mobile-nav-toggle {
    cursor: none;
  }
  .cursor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--color-accent);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transition: width 0.2s, height 0.2s, background-color 0.2s, opacity 0.2s;
    opacity: 0; /* Fade in on mouseenter */
  }
  .cursor-ring {
    width: 32px;
    height: 32px;
    border: 1px solid var(--color-accent);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9998;
    transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1), height 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s, border-color 0.25s, opacity 0.25s;
    opacity: 0; /* Fade in on mouseenter */
  }
  .cursor-dot.hovered {
    width: 4px;
    height: 4px;
    background-color: var(--color-white);
  }
  .cursor-ring.hovered {
    width: 44px;
    height: 44px;
    background-color: rgba(45, 212, 160, 0.15);
    border-color: var(--color-accent-hover);
  }
}
@media (max-width: 768px) {
  .cursor-dot, .cursor-ring {
    display: none !important;
  }
}

/* Animated Glow/Spotlight Section */
.animated-glow-section {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 50% 50%, #0c1329 0%, #060913 100%);
  z-index: 1;
}

.animated-glow-section::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -20%;
  width: 75%;
  height: 75%;
  background: radial-gradient(circle, rgba(74, 58, 255, 0.25) 0%, transparent 70%);
  filter: blur(90px);
  pointer-events: none;
  z-index: -1;
  animation: spotlightRotate1 18s infinite alternate ease-in-out;
}

.animated-glow-section::after {
  content: '';
  position: absolute;
  bottom: -20%;
  right: -20%;
  width: 75%;
  height: 75%;
  background: radial-gradient(circle, rgba(45, 212, 160, 0.2) 0%, transparent 70%);
  filter: blur(90px);
  pointer-events: none;
  z-index: -1;
  animation: spotlightRotate2 22s infinite alternate ease-in-out;
}

@keyframes spotlightRotate1 {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(120px, 60px) scale(1.15);
  }
  100% {
    transform: translate(40px, 140px) scale(0.95);
  }
}

@keyframes spotlightRotate2 {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-120px, -60px) scale(1.15);
  }
  100% {
    transform: translate(-60px, -140px) scale(0.95);
  }
}

/* Background Wavy Lines Decoration */
.decor-wavy-lines {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  opacity: 0.85;
}

.decor-wavy-lines.bottom-left {
  bottom: -40px;
  left: -40px;
  width: 400px;
  height: 400px;
}

.decor-wavy-lines.top-right {
  top: -40px;
  right: -40px;
  width: 400px;
  height: 400px;
  transform: rotate(180deg);
}

.decor-wavy-lines svg {
  width: 100%;
  height: 100%;
}

/* Interactive Cursor Glow */
.animated-glow-section .interactive-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    500px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(45, 212, 160, 0.08) 0%,
    rgba(74, 58, 255, 0.04) 50%,
    transparent 100%
  );
  pointer-events: none;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.animated-glow-section:hover .interactive-glow {
  opacity: 1;
}

/* Ambient 3D Blur Background Elements */
.ambient-blur-bg {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.ambient-blur-bg::before,
.ambient-blur-bg::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: -1;
  opacity: 0.25;
  mix-blend-mode: screen;
}

.ambient-blur-bg::before {
  top: -10%;
  left: -15%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(74, 58, 255, 0.22) 0%, rgba(45, 212, 160, 0.05) 50%, transparent 100%);
  animation: floatOrb1 25s infinite alternate ease-in-out;
}

.ambient-blur-bg::after {
  bottom: -15%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(45, 212, 160, 0.18) 0%, rgba(74, 58, 255, 0.05) 50%, transparent 100%);
  animation: floatOrb2 30s infinite alternate ease-in-out;
}

@keyframes floatOrb1 {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(80px, 40px) scale(1.15);
  }
  100% {
    transform: translate(-40px, 90px) scale(0.9);
  }
}

@keyframes floatOrb2 {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-90px, -40px) scale(1.15);
  }
  100% {
    transform: translate(40px, -90px) scale(0.95);
  }
}

/* Decorative Swoosh Background Graphic */
.swoosh-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.swoosh-svg {
  position: absolute;
  width: 150%;
  height: 120%;
  top: -10%;
  left: -25%;
  opacity: 0; /* Starts hidden and fades in */
  mix-blend-mode: screen;
  animation: swooshLoadIn 4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.swoosh-svg.swoosh-right {
  left: auto;
  right: -25%;
  animation: swooshLoadInRight 4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes swooshLoadIn {
  0% {
    transform: translateX(-15%) translateY(-3%) rotate(-2deg);
    opacity: 0;
  }
  100% {
    transform: translateX(0) translateY(0) rotate(0deg);
    opacity: 0.08; /* Final opacity */
  }
}

@keyframes swooshLoadInRight {
  0% {
    transform: translateX(15%) translateY(-3%) rotate(2deg) scaleX(-1);
    opacity: 0;
  }
  100% {
    transform: translateX(0) translateY(0) rotate(0deg) scaleX(-1);
    opacity: 0.08; /* Final opacity */
  }
}

/* Ensure sections containing the swoosh have relative positioning and correct stacking */
.site-footer {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

/* Make sure container content stands on top of z-index 0 swoosh */
.site-footer > .container,
.ambient-blur-bg > .container,
.section-padding > .container {
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   Mobile Responsiveness Enhancements (Tabs, Videos, Images, Layout)
   ========================================================================== */
html, body {
  overflow-x: hidden !important;
  width: 100% !important;
}

@media (max-width: 768px) {
  /* 1. Prevent Horizontal Scrolling globally */
  body {
    position: relative;
  }

  /* 2. Tabs Header Horizontal Scrolling */
  .tabs-header {
    display: flex !important;
    gap: 16px !important;
    margin-bottom: 24px !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    border-bottom: 1px solid var(--color-border) !important;
    padding-bottom: 10px !important;
    scrollbar-width: none !important; /* Firefox */
    -webkit-overflow-scrolling: touch !important;
    width: 100% !important;
    justify-content: flex-start !important;
  }
  
  .tabs-header::-webkit-scrollbar {
    display: none !important; /* Chrome, Safari, Opera */
  }
  
  .tab-btn {
    flex: 0 0 auto !important;
    font-size: 14px !important;
    padding-bottom: 8px !important;
    white-space: nowrap !important;
    background: none !important;
    border: none !important;
  }

  /* 3. Responsive Videos & Images */
  img:not(.logo-container img):not(.logo-badge img), video {
    max-width: 100% !important;
    height: auto !important;
  }

  /* Keep Logo sizes exact on mobile */
  .logo-container img {
    height: 36px !important;
    width: auto !important;
    max-width: none !important;
  }

  .logo-badge img {
    height: 53px !important;
    width: auto !important;
    max-width: none !important;
  }

  /* Fix Video Autoplay/Safari Black Screen bug (Disable mix-blend-mode: screen on mobile) */
  #hero-video {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    max-width: none !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    mix-blend-mode: normal !important; /* Safari/iOS bug fix: hardware accelerated blend modes fail on videos */
    opacity: 0.3 !important; /* Visible clearly on mobile as a background video */
    display: block !important;
  }

  /* Clear fallback image so the video displays cleanly without bleeding */
  .slide-video-bg {
    background-image: none !important;
    background-color: var(--color-bg) !important;
  }

  /* Hide service watermark images on mobile to keep layout clean and text legible */
  .service-pane-bg {
    display: none !important;
  }

  /* 4. Fix Overlapping Hero Stats and Content */
  .hero-reveal {
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
  }

  .hero-carousel, .hero {
    height: auto !important;
    min-height: 100vh !important; /* Full height support */
    display: flex !important;
    flex-direction: column !important;
  }

  .slide {
    position: relative !important;
    height: auto !important;
    min-height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    padding-bottom: 0 !important;
  }

  /* Shift container to fit content properly above stats (reduced padding-top to 40px) */
  .slide > .container {
    padding-top: 40px !important;
    padding-bottom: 60px !important;
    height: auto !important;
    flex-grow: 1 !important;
  }

  /* Make stat strip flow naturally below the content instead of overlapping it */
  .stat-strip-hero {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    width: 100% !important;
    background: var(--color-surface) !important;
    border-top: 1px solid var(--color-border) !important;
    padding: 30px 20px !important;
    z-index: 5 !important;
    margin-top: auto !important; /* Stays at the bottom of the content flow */
  }

  .stat-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .stat-item {
    border-right: none !important;
    border-bottom: 1px solid var(--color-border) !important;
    padding: 16px 0 !important;
    text-align: center !important;
  }

  .stat-item:last-child {
    border-bottom: none !important;
  }

  /* 5. Tab image panels responsiveness */
  .tab-pane-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  .image-placeholder {
    aspect-ratio: 16/9 !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Services page lists & grids */
  .grid-3, .grid-2 {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
}

/* Hide native Safari/iOS play button overlay on background videos */
video::-webkit-media-controls-play-button,
video::-webkit-media-controls-start-playback-button,
video::-webkit-media-controls-panel {
  display: none !important;
  -webkit-appearance: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}






