/* ============================================================
   COMBINOIT - Premium Dark Theme (Spire InfoTech Inspired)
   ============================================================ */

/* --- CSS Variables --- */
:root {
  --bg-primary: #0f1019;
  --bg-secondary: #161726;
  --bg-card: rgba(22, 23, 38, 0.75);
  --bg-glass: rgba(255, 255, 255, 0.04);
  --bg-glass-hover: rgba(255, 255, 255, 0.08);
  --accent: #4B9CD3;
  --accent-secondary: #2E6DA4;
  --accent-dim: rgba(75, 156, 211, 0.15);
  --accent-glow: rgba(75, 156, 211, 0.35);
  --accent-gradient: linear-gradient(135deg, #4B9CD3, #2E6DA4);
  --accent-light: #7BB8E0;
  --silver: #B0B4C0;
  --text-primary: #E0E2EA;
  --text-secondary: rgba(224, 226, 234, 0.65);
  --text-muted: rgba(224, 226, 234, 0.4);
  --border-subtle: rgba(75, 156, 211, 0.12);
  --border-hover: rgba(75, 156, 211, 0.3);
  --radius: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;
  --font-heading: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  --shadow-glow: 0 0 30px rgba(75, 156, 211, 0.15);
  --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: var(--transition-smooth);
}

a:hover {
  color: #fff;
  text-shadow: 0 0 10px var(--accent-glow);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-primary);
}

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

ul {
  list-style: none;
}

::selection {
  background: var(--accent);
  color: var(--bg-primary);
}

/* ============================================================
   LIGHT THEME — Inner / Sub-pages
   Applied via <body class="light-page">
   ============================================================ */
body.light-page {
  --bg-primary: #0f1019;
  --bg-secondary: #161726;
  --bg-card: rgba(22, 23, 38, 0.75);
  --bg-glass: rgba(255, 255, 255, 0.04);
  --bg-glass-hover: rgba(255, 255, 255, 0.08);
  --text-primary: #E0E2EA;
  --text-secondary: rgba(224, 226, 234, 0.65);
  --text-muted: rgba(224, 226, 234, 0.4);
  --border-subtle: rgba(75, 156, 211, 0.12);
  --border-hover: rgba(75, 156, 211, 0.3);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  --shadow-glow: 0 0 30px rgba(75, 156, 211, 0.15);
  background: var(--bg-primary);
  color: var(--text-primary);
}

/* Particle canvas hidden on light pages */
body.light-page #particle-canvas {
  display: none;
}

/* Light-page navbar inherits dark theme — no overrides needed */

/* Page hero on light pages — navy gradient banner */
body.light-page .page-hero {
  background: linear-gradient(135deg, #0f1019 0%, #1a2744 50%, #2E6DA4 100%);
  color: #ffffff;
  margin-bottom: 0;
  padding-bottom: 5rem;
}

body.light-page .page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: linear-gradient(to bottom, transparent, #0f1019);
  pointer-events: none;
}

body.light-page .page-hero h1 {
  color: #ffffff;
}

body.light-page .page-hero p {
  color: rgba(255, 255, 255, 0.8);
}

body.light-page .breadcrumb a {
  color: rgba(255, 255, 255, 0.65);
}

body.light-page .breadcrumb a:hover {
  color: #ffffff;
}

body.light-page .breadcrumb span {
  color: rgba(255, 255, 255, 0.9);
}

body.light-page .breadcrumb .separator {
  color: rgba(255, 255, 255, 0.4);
}

/* Light-page now inherits dark theme — all overrides removed */

/* --- Utility --- */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 1024px) {
  .container { padding: 0 2rem; }
}

.section {
  padding: 5rem 0;
  position: relative;
}

.section-sm {
  padding: 3rem 0;
}

.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.text-cyan { color: var(--accent); }
.text-muted { color: var(--text-secondary); }

/* --- Scroll Progress Bar --- */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--accent-gradient);
  z-index: 10000;
  transition: width 0.1s linear;
  box-shadow: 0 0 10px var(--accent-glow);
}

/* --- Particle Canvas --- */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%) translateY(-120px);
  width: calc(100% - 2rem);
  max-width: 1200px;
  z-index: 1000;
  background: rgba(15, 16, 25, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 0.75rem 1.5rem;
  transition: var(--transition-smooth);
  opacity: 0;
}

.navbar.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.navbar.scrolled {
  background: rgba(15, 16, 25, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.05em;
}

.nav-logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
  border-radius: 0;
  /* Lighten blend: dark navy bg disappears into dark navbar, silver text/icon shows */
  mix-blend-mode: lighten;
}

/* Light inner pages: logo displayed as a clean dark badge on white navbar */
/* Nav logo — consistent across all pages */

.nav-brand:hover {
  color: var(--accent);
  text-shadow: 0 0 20px var(--accent-glow);
}

.nav-brand .brand-icon {
  width: 36px;
  height: 36px;
  background: var(--accent-gradient);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--bg-primary);
  font-weight: 800;
}

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

@media (min-width: 1024px) {
  .nav-links {
    display: flex;
    gap: 0.25rem;
  }
}

.nav-links a {
  padding: 0.5rem 0.85rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
  position: relative;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  background: rgba(75, 156, 211, 0.08);
  text-shadow: none;
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown > a::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  margin-left: 0.4rem;
  vertical-align: middle;
  transition: transform 0.3s ease;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  min-width: 220px;
  background: rgba(18, 19, 32, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--transition-smooth);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 0.6rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.dropdown-menu a:hover {
  background: rgba(75, 156, 211, 0.1);
  color: var(--accent);
}

/* Mobile Menu Toggle */
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

@media (min-width: 1024px) {
  .nav-toggle { display: none; }
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition-smooth);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(15, 16, 25, 0.97);
  backdrop-filter: blur(30px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 0.75rem 2rem;
  transition: var(--transition-smooth);
}

.mobile-menu a:hover {
  color: var(--accent);
}

.mobile-menu .mobile-sub {
  padding-left: 1.5rem;
}

.mobile-menu .mobile-sub a {
  font-size: 1rem;
  font-weight: 400;
}

.mobile-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.mobile-close:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  padding: 8rem 0 4rem;
}

/* Split layout: text left, 3-D wave canvas right */
.hero.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2rem;
  padding: 8rem 6vw 4rem;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.hero-content {
  text-align: left;
  max-width: 600px;
  margin: 0;
}

.hero-wave-canvas-wrap {
  position: relative;
  width: 100%;
  height: 520px;
  border-radius: 1.5rem;
  overflow: hidden;
  background: radial-gradient(ellipse 80% 60% at 50% 55%,
    rgba(30, 60, 100, 0.5) 0%,
    rgba(15, 16, 25, 0.92) 70%,
    rgba(15, 16, 25, 1) 100%);
  box-shadow:
    0 0 80px rgba(75, 156, 211, 0.12),
    0 0 160px rgba(46, 109, 164, 0.07),
    inset 0 0 60px rgba(0, 0, 0, 0.6);
}

#particle-wave {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 2;
}

/* Dashed grid overlay (mroads reference look) */
.wave-grid-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(75,156,211,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(75,156,211,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 100%);
}

/* Click & drag hint */
.wave-drag-hint {
  position: absolute;
  bottom: 1.1rem;
  right: 1.4rem;
  z-index: 3;
  font-size: 0.72rem;
  color: rgba(75, 156, 211, 0.45);
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  pointer-events: none;
  animation: fadeInUp 1s ease 1.2s both;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.45s both;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border: 1px solid var(--border-subtle);
  border-radius: 50px;
  font-size: 0.8rem;
  color: var(--accent);
  background: rgba(75, 156, 211, 0.05);
  margin-bottom: 2rem;
  animation: fadeInUp 0.8s ease both;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease 0.15s both;
}

.hero h1 .gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 0 2.5rem;
  animation: fadeInUp 0.8s ease 0.3s both;
}

/* Non-split hero centres everything */
.hero:not(.hero-split) p { margin: 0 auto 2.5rem; }

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.45s both;
}

.hero:not(.hero-split) .hero-cta { justify-content: center; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 0.75rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition-smooth);
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--accent-gradient);
  color: var(--bg-primary);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
  color: var(--bg-primary);
  text-shadow: none;
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--border-hover);
}

.btn-outline:hover {
  background: rgba(75, 156, 211, 0.1);
  border-color: var(--accent);
  transform: translateY(-2px);
  color: var(--accent);
  text-shadow: none;
}

.btn-sm {
  padding: 0.6rem 1.25rem;
  font-size: 0.85rem;
}

/* --- Glass Card --- */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 2rem;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-dim), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.glass-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

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

/* --- Section Headers --- */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.5rem;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section-label::before,
.section-label::after {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--accent);
  opacity: 0.5;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* --- Page Header (Breadcrumb Hero) --- */
.page-header,
.page-hero {
  padding: 10rem 0 4rem;
  position: relative;
  z-index: 1;
  text-align: center;
  overflow: visible;
}

.page-hero + .section {
  padding-top: 1.5rem;
}

.page-header h1,
.page-hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  margin-bottom: 1.5rem;
  line-height: 1.4;
  padding-bottom: 0.25em;
  animation: fadeInUp 0.6s ease both;
}

.page-header p,
.page-hero p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 1.5rem;
  animation: fadeInUp 0.6s ease 0.1s both;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  animation: fadeInUp 0.6s ease 0.2s both;
}

.breadcrumb a {
  color: var(--text-secondary);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb span {
  color: var(--accent);
}

.breadcrumb .sep,
.breadcrumb .separator {
  color: var(--text-muted);
}

/* --- Services Grid --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2.5rem;
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

.service-card {
  padding: 2.5rem 2rem;
  text-align: left;
}

.service-card .icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 1rem;
  background: rgba(75, 156, 211, 0.08);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  transition: var(--transition-smooth);
}

.service-card:hover .icon-wrap {
  background: rgba(75, 156, 211, 0.15);
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-dim);
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.service-card .card-link {
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.service-card .card-link .arrow {
  transition: transform 0.3s ease;
}

.service-card:hover .card-link .arrow {
  transform: translateX(4px);
}

/* --- Features / Info Cards --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2.5rem;
}

.feature-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.feature-item .bullet {
  width: 8px;
  height: 8px;
  min-width: 8px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 0.55rem;
  box-shadow: 0 0 8px var(--accent-glow);
}

.feature-item h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.feature-item p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* --- Stats Row --- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  padding: 3rem 0;
}

.stat-item {
  text-align: center;
}

.stat-item .stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  display: block;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-item .stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* --- Content Page (single service/solution) --- */
.content-section {
  position: relative;
  z-index: 1;
}

.content-card,
.content-block {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem;
}

@media (max-width: 768px) {
  .content-card,
  .content-block { padding: 2rem 1rem; }
}

.content-card h2,
.content-block h2 {
  font-size: 1.75rem;
  margin: 2.5rem 0 1rem;
  color: var(--accent);
  font-weight: 700;
}

.content-card h3,
.content-block h3 {
  font-size: 1.35rem;
  margin: 2.5rem 0 1rem;
  color: var(--accent);
  font-weight: 700;
}

.content-card h4,
.content-block h4 {
  font-size: 1.15rem;
  margin: 2rem 0 0.75rem;
  color: var(--accent);
  font-weight: 600;
}

.content-card p,
.content-block p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 1.02rem;
  line-height: 1.8;
}

.content-card ul.styled-list,
.content-block ul.styled-list,
ul.styled-list,
ul.feature-list {
  margin: 1.5rem 0 2rem;
  padding-left: 1.5rem;
  list-style: none;
}

.content-card ul.styled-list li,
.content-block ul.styled-list li,
ul.styled-list li,
ul.feature-list li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 1rem;
  color: var(--text-secondary);
  font-size: 1.02rem;
  line-height: 1.75;
}

.content-card ul.styled-list li strong,
.content-block ul.styled-list li strong,
ul.styled-list li strong,
ul.feature-list li strong {
  color: var(--text-primary);
  font-weight: 600;
}

.content-card ul.styled-list li::before,
.content-block ul.styled-list li::before,
ul.styled-list li::before,
ul.feature-list li::before {
  content: '';
  position: absolute;
  left: -1rem;
  top: 0.55rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}

.content-card .highlight-box,
.content-block .highlight-box,
.highlight-box {
  background: rgba(75, 156, 211, 0.05);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--text-primary);
  font-size: 1.05rem;
  line-height: 1.7;
}

.content-card .cta-text {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--text-primary);
  margin-top: 2rem;
}

/* --- Two Column Layout --- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 768px) {
  .two-col { grid-template-columns: 1fr; gap: 2rem; }
}

/* --- Clients Grid --- */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 2.5rem;
}

.client-card {
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  transition: var(--transition-smooth);
}

.client-card:hover {
  background: rgba(75, 156, 211, 0.05);
  border-color: var(--border-hover);
}

.client-card img {
  max-height: 60px;
  object-fit: contain;
  filter: grayscale(1) brightness(1.5);
  opacity: 0.6;
  transition: var(--transition-smooth);
}

.client-card:hover img {
  filter: grayscale(0) brightness(1);
  opacity: 1;
}

.client-logo-card {
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  transition: var(--transition-smooth);
}

.client-logo-card:hover {
  background: rgba(75, 156, 211, 0.05);
  border-color: var(--border-hover);
}

.client-logo-card img {
  max-height: 70px;
  object-fit: contain;
  filter: grayscale(0.5) brightness(1.3);
  opacity: 0.8;
  transition: var(--transition-smooth);
}

.client-logo-card:hover img {
  filter: grayscale(0) brightness(1);
  opacity: 1;
}

/* --- Contact Section --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-form .form-group {
  margin-bottom: 1.25rem;
}

.contact-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 0.75rem;
  padding: 0.85rem 1.15rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-primary);
  transition: var(--transition-smooth);
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(75, 156, 211, 0.1);
  background: rgba(255, 255, 255, 0.06);
}

.contact-form textarea {
  resize: vertical;
  min-height: 140px;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-muted);
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-info-item .ci-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 0.75rem;
  background: rgba(75, 156, 211, 0.08);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.contact-info-item h4 {
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.contact-info-item p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.map-embed,
.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  margin-top: 2rem;
}

.map-embed iframe,
.map-container iframe {
  width: 100%;
  height: 300px;
  border: none;
  filter: invert(90%) hue-rotate(180deg) brightness(0.9) contrast(1.1);
  display: block;
}

/* --- Footer --- */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand {
  font-family: var(--font-heading);
}

.footer-brand h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.footer-logo {
  height: 40px;
  width: auto;
  margin-bottom: 1rem;
  display: block;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-col h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.footer-col a {
  display: block;
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding: 0.3rem 0;
  transition: var(--transition-smooth);
}

.footer-col a:hover {
  color: var(--accent);
  padding-left: 0.25rem;
  text-shadow: none;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.fc-icon {
  color: var(--accent);
  font-size: 1.1rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.fc-details {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.fc-details strong {
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 600;
}

.fc-details p,
.fc-details a {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 0;
}

.fc-details a:hover {
  color: var(--accent);
  text-shadow: none;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 0.5rem;
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1rem;
  transition: var(--transition-smooth);
}

.footer-social a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(75, 156, 211, 0.08);
  text-shadow: none;
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --- Back to Top --- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition-smooth);
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  border-color: var(--accent);
  background: rgba(75, 156, 211, 0.1);
  text-shadow: none;
}

/* --- Homepage Specials --- */

/* Intro cards on home */
.intro-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: -3rem;
  position: relative;
  z-index: 2;
}

@media (max-width: 768px) {
  .intro-cards { grid-template-columns: 1fr; margin-top: 0; }
}

.intro-card {
  text-align: center;
  padding: 2.5rem 2rem;
}

.intro-card .ic-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

.intro-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.intro-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* About section home */
.about-preview {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-preview h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.about-preview p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* CTA Banner */
.cta-banner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 5rem 2rem;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: linear-gradient(135deg, rgba(75, 156, 211, 0.08), rgba(46, 109, 164, 0.05));
  border: 1px solid var(--border-subtle);
  margin: 2rem;
}

.cta-banner h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 1rem;
}

.cta-banner p {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
}

/* --- Typewriter effect --- */
.typewriter {
  overflow: hidden;
  border-right: 2px solid var(--accent);
  white-space: nowrap;
  animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
  display: inline-block;
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blink-caret {
  from, to { border-color: transparent; }
  50% { border-color: var(--accent); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* --- People page --- */
.team-section .two-col {
  align-items: center;
}

.team-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.team-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.team-blocks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}

@media (max-width: 768px) {
  .team-blocks { grid-template-columns: 1fr; }
}

.team-block {
  padding: 2rem;
}

.team-block h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  color: var(--accent);
}

.team-block p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* --- Career page --- */
.career-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 768px) {
  .career-content { grid-template-columns: 1fr; }
}

.career-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.career-text h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.career-text p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-size: 1rem;
}

.career-text .cta-email {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--accent);
  margin-top: 1.5rem;
  display: block;
}

/* --- Solutions page cards --- */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.success-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
}

@media (max-width: 768px) {
  .solutions-grid { grid-template-columns: 1fr; }
}

.solution-card {
  padding: 2.5rem 2rem;
  text-align: center;
}

.solution-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.solution-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

/* --- Success page --- */
.success-sectors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 768px) {
  .success-sectors { grid-template-columns: 1fr; }
}

.success-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.sector-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sector-item {
  padding: 1.5rem 2rem;
}

.sector-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.sector-item p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* --- Loading animation --- */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
}

.page-loader.hide {
  opacity: 0;
  pointer-events: none;
}

.loader-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-subtle);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* --- Responsive: Split Hero -------------------------------- */
@media (max-width: 960px) {
  .hero.hero-split {
    grid-template-columns: 1fr;
    padding: 8rem 5vw 3rem;
    text-align: center;
  }
  .hero.hero-split .hero-content {
    text-align: center;
    max-width: 100%;
  }
  .hero.hero-split .hero-buttons { justify-content: center; }
  .hero-wave-canvas-wrap { height: 340px; }
}

/* --- Responsive Adjustments --- */
@media (max-width: 480px) {
  .section { padding: 3.5rem 0; }
  .hero { padding: 6rem 0 3rem; }
  .page-header, .page-hero { padding: 7rem 0 3rem; }
  .content-card { padding: 1.5rem 1rem; }
  .footer-grid { gap: 1.5rem; }
  .cta-banner { margin: 1rem; padding: 3rem 1.5rem; }
  .hero-wave-canvas-wrap { height: 260px; }
  .container { padding: 0 1rem; }
  .navbar { width: calc(100% - 1rem); padding: 0.6rem 1rem; }
  .nav-logo-img { height: 28px; }
  .btn { padding: 0.7rem 1.5rem; font-size: 0.85rem; }
  .btn-lg { padding: 0.8rem 1.8rem; }
  .clients-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .client-logo-card { padding: 1rem; }
  .client-logo-card img { max-height: 50px; }
  .content-card h2 { font-size: 1.35rem; }
  .content-card h3 { font-size: 1.1rem; }
  .service-card { padding: 1.5rem 1.25rem; }
  .solution-card { padding: 1.5rem 1.25rem; }
  .contact-info-item { flex-direction: column; text-align: center; }
  .mobile-menu a { font-size: 1.2rem; padding: 0.6rem 1.5rem; }
  .mobile-menu .mobile-sub a { font-size: 0.9rem; }
}

/* Very small phones */
@media (max-width: 360px) {
  .container { padding: 0 0.75rem; }
  .hero-wave-canvas-wrap { height: 200px; }
  .clients-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* Typewriter fix for mobile */
@media (max-width: 768px) {
  .typewriter {
    white-space: normal;
    border-right: none;
    animation: none;
    display: inline;
  }
  .hero-content { text-align: center; }
  .hero-buttons { justify-content: center; }
  .map-container iframe { height: 250px; }
}

/* ============================================================
   WAVE DIVIDER
   ============================================================ */
.wave-divider {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  margin-top: -2px;
  background: var(--bg-primary);
}

.wave-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Three layered SVG waves — 200% wide so translateX drift doesn't expose gaps */
.wave {
  position: absolute;
  bottom: 0;
  left: -50%;
  width: 200%;
  height: 100%;
}

.wave-back path {
  fill: rgba(46, 109, 164, 0.18);
  animation: wave-drift 9s ease-in-out infinite;
}

.wave-mid path {
  fill: rgba(75, 156, 211, 0.12);
  animation: wave-drift 6s ease-in-out infinite reverse;
}

.wave-front path {
  fill: rgba(75, 156, 211, 0.22);
  animation: wave-drift 4s ease-in-out infinite;
}

/* Glowing blur blob under waves */
.wave-glow {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 60px;
  background: radial-gradient(ellipse at center, rgba(75, 156, 211, 0.18) 0%, transparent 70%);
  filter: blur(18px);
  pointer-events: none;
  animation: glow-pulse 5s ease-in-out infinite;
}

@keyframes wave-drift {
  0%, 100% { transform: translateX(0); }
  50%       { transform: translateX(-28px); }
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.7; }
  50%       { opacity: 1; }
}

/* Thin cyan line at the crest */
.wave-front::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-gradient);
  opacity: 0.6;
  filter: blur(1px);
}
