/* ==========================================================================
   Beekman Strategic - Main Stylesheet
   Light mode default with dark mode toggle
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Variables - Light Theme (Default)
   -------------------------------------------------------------------------- */
:root {
  /* Colors - Light Mode (Navy-Tinted with Cyan Continuity) */
  --bg-primary: #f5f7fa;
  --bg-secondary: #eef1f6;
  --bg-tertiary: #e4e9f1;

  --text-primary: #0a1628;
  --text-muted: #4a5d7a;
  --text-light: #7a8da8;

  --border-color: #d0d9e6;
  --border-light: #e2e9f2;

  --accent: #0891b2;
  --accent-light: rgba(8, 145, 178, 0.1);
  --accent-glow: rgba(8, 145, 178, 0.25);

  /* Shadows - Navy-tinted */
  --shadow-sm: 0 1px 2px rgba(10, 22, 40, 0.04);
  --shadow-md: 0 4px 12px rgba(10, 22, 40, 0.07);
  --shadow-lg: 0 12px 32px rgba(10, 22, 40, 0.10);
  --shadow-xl: 0 24px 48px rgba(10, 22, 40, 0.14);

  /* Layout - Using rem for accessibility */
  --container-width: 75rem;      /* 1200px */
  --header-height: 4.5rem;       /* 72px */
  --section-padding: 6.25rem;    /* 100px */
  --radius: 0.75rem;             /* 12px */
  --radius-lg: 1.25rem;          /* 20px */

  /* Fluid spacing */
  --space-sm: clamp(0.5rem, 0.4rem + 0.5vw, 1rem);
  --space-md: clamp(1rem, 0.8rem + 1vw, 2rem);
  --space-lg: clamp(2rem, 1.5rem + 2.5vw, 4rem);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* --------------------------------------------------------------------------
   Dark Theme
   -------------------------------------------------------------------------- */
[data-theme="dark"] {
  --bg-primary: #0a0f1a;
  --bg-secondary: #111827;
  --bg-tertiary: #1a2234;

  --text-primary: #f0f4f8;
  --text-muted: #7a92b0;
  --text-light: rgba(122, 146, 176, 0.6);

  --border-color: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.04);

  --accent: #6ee6ff;
  --accent-light: rgba(110, 230, 255, 0.1);
  --accent-glow: rgba(110, 230, 255, 0.3);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 24px 48px rgba(0, 0, 0, 0.5);
}

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

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

body {
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  overflow-x: hidden;
  transition: background-color var(--transition-base), color var(--transition-base);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul {
  list-style: none;
}

/* --------------------------------------------------------------------------
   Container
   -------------------------------------------------------------------------- */
.container {
  width: min(var(--container-width), calc(100% - 48px));
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Typography - Dual Tone System
   -------------------------------------------------------------------------- */
.text-primary {
  color: var(--text-primary);
  display: block;
}

.text-muted {
  color: var(--text-muted);
  display: block;
}

/* Inline titles for specific sections */
.case-studies .section-title .text-primary,
.case-studies .section-title .text-muted,
.cta-section .section-title .text-primary,
.cta-section .section-title .text-muted {
  display: inline;
}

.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  display: inline-block;
}

.section-label::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--accent);
  margin-top: 12px;
}

.section-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 20px;
}

.section-desc {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 100px;
  transition: all var(--transition-base);
}

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

.btn-primary:hover {
  box-shadow: var(--shadow-lg);
}

@media (hover: hover) {
  .btn-primary:hover {
    transform: translateY(-2px);
  }
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
}

.btn-secondary:hover {
  border-color: var(--text-muted);
  color: var(--text-primary);
}

.btn-lg {
  padding: 18px 36px;
  font-size: 16px;
}

.btn-full {
  width: 100%;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(245, 247, 250, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  transition: all var(--transition-base);
}

[data-theme="dark"] #header {
  background: rgba(10, 15, 26, 0.85);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.logo-main {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

.logo-text {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.logo-tagline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  align-self: center;
}

.logo-tagline::before,
.logo-tagline::after {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--text-muted);
  opacity: 0.5;
}

.main-nav {
  display: flex;
  gap: 32px;
}

.main-nav a {
  font-size: 14px;
  color: var(--text-muted);
}

.main-nav a:hover {
  color: var(--text-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Language Selector */
.lang-selector {
  position: relative;
  order: 4;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  transition: all var(--transition-fast);
}

.lang-btn:hover {
  border-color: var(--text-muted);
  color: var(--text-primary);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 140px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition-fast);
}

.lang-selector.active .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-dropdown button {
  display: block;
  width: 100%;
  padding: 10px 16px;
  text-align: left;
  font-size: 14px;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.lang-dropdown button:hover,
.lang-dropdown button.active {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.lang-dropdown button:first-child {
  border-radius: var(--radius) var(--radius) 0 0;
}

.lang-dropdown button:last-child {
  border-radius: 0 0 var(--radius) var(--radius);
}

/* Theme Toggle - Floating bottom left (avoids cookie banner overlap) */
.theme-toggle {
  position: fixed;
  bottom: 32px;
  left: 32px;
  z-index: 10000;
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.theme-toggle:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
  box-shadow: var(--shadow-xl);
}

@media (hover: hover) {
  .theme-toggle:hover {
    transform: scale(1.05);
  }
}

/* Light mode: show moon icon (to switch to dark) */
.theme-toggle .sun-icon {
  display: none;
}

.theme-toggle .moon-icon {
  display: block;
}

/* Dark mode: show sun icon (to switch to light) */
[data-theme="dark"] .theme-toggle .sun-icon {
  display: block;
}

[data-theme="dark"] .theme-toggle .moon-icon {
  display: none;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--transition-fast);
}

.header-cta {
  padding: 10px 20px;
  order: 2;
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh; /* Modern viewport unit - excludes mobile toolbars */
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  overflow: hidden;
}

/* Hero Background Gradient */
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, var(--accent-light), transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(8, 145, 178, 0.08), transparent 35%),
    radial-gradient(circle at 60% 80%, var(--accent-light), transparent 40%);
  animation: float 20s ease-in-out infinite;
}

[data-theme="dark"] .hero-bg {
  background:
    radial-gradient(circle at 20% 30%, rgba(110, 230, 255, 0.2), transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(70, 140, 255, 0.12), transparent 35%),
    radial-gradient(circle at 60% 80%, rgba(110, 230, 255, 0.08), transparent 40%);
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-20px, 10px) scale(1.02); }
}

/* Floating Particles */
.particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.5;
  animation: particle-float 15s linear infinite;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 12s; }
.particle:nth-child(2) { left: 20%; animation-delay: 2s; animation-duration: 18s; }
.particle:nth-child(3) { left: 30%; animation-delay: 4s; animation-duration: 14s; }
.particle:nth-child(4) { left: 40%; animation-delay: 1s; animation-duration: 16s; }
.particle:nth-child(5) { left: 50%; animation-delay: 3s; animation-duration: 20s; }
.particle:nth-child(6) { left: 60%; animation-delay: 5s; animation-duration: 13s; }
.particle:nth-child(7) { left: 70%; animation-delay: 0.5s; animation-duration: 17s; }
.particle:nth-child(8) { left: 80%; animation-delay: 2.5s; animation-duration: 15s; }
.particle:nth-child(9) { left: 90%; animation-delay: 4.5s; animation-duration: 19s; }
.particle:nth-child(10) { left: 15%; animation-delay: 1.5s; animation-duration: 14s; }

@keyframes particle-float {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  10% { opacity: 0.5; }
  90% { opacity: 0.5; }
  100% { transform: translateY(-100px) scale(1); opacity: 0; }
}

/* Data Stream Lines */
.data-streams {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.data-stream {
  position: absolute;
  width: 1px;
  height: 100px;
  background: linear-gradient(180deg, transparent, var(--accent), transparent);
  opacity: 0.35;
  animation: stream-fall 8s linear infinite;
}

.data-stream:nth-child(1) { left: 15%; animation-delay: 0s; }
.data-stream:nth-child(2) { left: 35%; animation-delay: 2s; }
.data-stream:nth-child(3) { left: 55%; animation-delay: 4s; }
.data-stream:nth-child(4) { left: 75%; animation-delay: 1s; }
.data-stream:nth-child(5) { left: 85%; animation-delay: 3s; }

@keyframes stream-fall {
  0% { transform: translateY(-100px); opacity: 0; }
  20% { opacity: 0.35; }
  80% { opacity: 0.35; }
  100% { transform: translateY(100vh); opacity: 0; }
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 80px 0;
}

/* Hero Visual - Rings Animation */
.hero-visual {
  position: relative;
  height: 100%;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.hero-visual * {
  flex-shrink: 0;
}

.hero-orb {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(8, 145, 178, 0.2), rgba(6, 182, 212, 0.1), transparent 70%);
  filter: blur(60px);
  animation: orb-float 8s ease-in-out infinite;
}

[data-theme="dark"] .hero-orb {
  background: radial-gradient(circle at 30% 30%, rgba(110, 230, 255, 0.25), rgba(70, 140, 255, 0.1), transparent 70%);
}

@keyframes orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -30px) scale(1.1); }
}

.hero-rings {
  position: relative;
  width: 320px;
  height: 320px;
  flex-shrink: 0;
}

.hero-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(8, 145, 178, 0.25);
  animation: ring-spin 20s linear infinite;
}

[data-theme="dark"] .hero-ring {
  border-color: rgba(110, 230, 255, 0.2);
}

.hero-ring:nth-child(1) {
  inset: 0;
  border-color: rgba(8, 145, 178, 0.4);
  opacity: 0.6;
}

[data-theme="dark"] .hero-ring:nth-child(1) {
  border-color: rgba(110, 230, 255, 0.3);
}

.hero-ring:nth-child(2) {
  inset: 30px;
  animation-duration: 15s;
  animation-direction: reverse;
}

.hero-ring:nth-child(3) {
  inset: 60px;
  animation-duration: 25s;
  border-color: rgba(8, 145, 178, 0.2);
}

[data-theme="dark"] .hero-ring:nth-child(3) {
  border-color: rgba(70, 140, 255, 0.2);
}

.hero-ring:nth-child(4) {
  inset: 90px;
  animation-duration: 18s;
  animation-direction: reverse;
}

@keyframes ring-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero-ring::before {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  top: 50%;
  left: -4px;
  box-shadow: 0 0 20px var(--accent-glow);
}

.hero-center {
  position: absolute;
  inset: 110px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(8, 145, 178, 0.08), rgba(6, 182, 212, 0.03));
  border: 1.5px solid rgba(8, 145, 178, 0.35);
  opacity: 0.7;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

[data-theme="dark"] .hero-center {
  background: linear-gradient(135deg, rgba(110, 230, 255, 0.1), rgba(70, 140, 255, 0.05));
  border-color: rgba(110, 230, 255, 0.2);
  opacity: 1;
}

.hero-center-icon {
  color: var(--accent);
  font-size: 64px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* Orbital Service Labels Container */
.hero-data-points {
  position: absolute;
  width: 320px;
  height: 320px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* Each orbital label - satellite style orbit */
.hero-data-point {
  position: absolute;
  padding: 10px 14px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  backdrop-filter: blur(10px);
  font-size: 10px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
  box-shadow: var(--shadow-md);
  pointer-events: auto;
  /* Position at center, then animate will move them */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: satellite-orbit 90s linear infinite;
}

[data-theme="dark"] .hero-data-point {
  background: rgba(10, 15, 26, 0.8);
  border-color: rgba(110, 230, 255, 0.2);
}

/* Each label starts at different position around the circle (90° apart) */
.hero-data-point:nth-child(1) {
  animation-name: satellite-orbit-1;
}

.hero-data-point:nth-child(2) {
  animation-name: satellite-orbit-2;
}

.hero-data-point:nth-child(3) {
  animation-name: satellite-orbit-3;
}

.hero-data-point:nth-child(4) {
  animation-name: satellite-orbit-4;
}

/* Satellite orbits - true circular path at fixed 200px radius */
/* Using 16 points for perfectly smooth circle (22.5° intervals) */
/* R=200: sin/cos values: 0°=0/200, 22.5°=77/185, 45°=141/141, 67.5°=185/77, 90°=200/0 */
@keyframes satellite-orbit-1 {
  0%      { transform: translate(-50%, -50%) translate(0px, -200px); }
  6.25%   { transform: translate(-50%, -50%) translate(77px, -185px); }
  12.5%   { transform: translate(-50%, -50%) translate(141px, -141px); }
  18.75%  { transform: translate(-50%, -50%) translate(185px, -77px); }
  25%     { transform: translate(-50%, -50%) translate(200px, 0px); }
  31.25%  { transform: translate(-50%, -50%) translate(185px, 77px); }
  37.5%   { transform: translate(-50%, -50%) translate(141px, 141px); }
  43.75%  { transform: translate(-50%, -50%) translate(77px, 185px); }
  50%     { transform: translate(-50%, -50%) translate(0px, 200px); }
  56.25%  { transform: translate(-50%, -50%) translate(-77px, 185px); }
  62.5%   { transform: translate(-50%, -50%) translate(-141px, 141px); }
  68.75%  { transform: translate(-50%, -50%) translate(-185px, 77px); }
  75%     { transform: translate(-50%, -50%) translate(-200px, 0px); }
  81.25%  { transform: translate(-50%, -50%) translate(-185px, -77px); }
  87.5%   { transform: translate(-50%, -50%) translate(-141px, -141px); }
  93.75%  { transform: translate(-50%, -50%) translate(-77px, -185px); }
  100%    { transform: translate(-50%, -50%) translate(0px, -200px); }
}

@keyframes satellite-orbit-2 {
  0%      { transform: translate(-50%, -50%) translate(200px, 0px); }
  6.25%   { transform: translate(-50%, -50%) translate(185px, 77px); }
  12.5%   { transform: translate(-50%, -50%) translate(141px, 141px); }
  18.75%  { transform: translate(-50%, -50%) translate(77px, 185px); }
  25%     { transform: translate(-50%, -50%) translate(0px, 200px); }
  31.25%  { transform: translate(-50%, -50%) translate(-77px, 185px); }
  37.5%   { transform: translate(-50%, -50%) translate(-141px, 141px); }
  43.75%  { transform: translate(-50%, -50%) translate(-185px, 77px); }
  50%     { transform: translate(-50%, -50%) translate(-200px, 0px); }
  56.25%  { transform: translate(-50%, -50%) translate(-185px, -77px); }
  62.5%   { transform: translate(-50%, -50%) translate(-141px, -141px); }
  68.75%  { transform: translate(-50%, -50%) translate(-77px, -185px); }
  75%     { transform: translate(-50%, -50%) translate(0px, -200px); }
  81.25%  { transform: translate(-50%, -50%) translate(77px, -185px); }
  87.5%   { transform: translate(-50%, -50%) translate(141px, -141px); }
  93.75%  { transform: translate(-50%, -50%) translate(185px, -77px); }
  100%    { transform: translate(-50%, -50%) translate(200px, 0px); }
}

@keyframes satellite-orbit-3 {
  0%      { transform: translate(-50%, -50%) translate(0px, 200px); }
  6.25%   { transform: translate(-50%, -50%) translate(-77px, 185px); }
  12.5%   { transform: translate(-50%, -50%) translate(-141px, 141px); }
  18.75%  { transform: translate(-50%, -50%) translate(-185px, 77px); }
  25%     { transform: translate(-50%, -50%) translate(-200px, 0px); }
  31.25%  { transform: translate(-50%, -50%) translate(-185px, -77px); }
  37.5%   { transform: translate(-50%, -50%) translate(-141px, -141px); }
  43.75%  { transform: translate(-50%, -50%) translate(-77px, -185px); }
  50%     { transform: translate(-50%, -50%) translate(0px, -200px); }
  56.25%  { transform: translate(-50%, -50%) translate(77px, -185px); }
  62.5%   { transform: translate(-50%, -50%) translate(141px, -141px); }
  68.75%  { transform: translate(-50%, -50%) translate(185px, -77px); }
  75%     { transform: translate(-50%, -50%) translate(200px, 0px); }
  81.25%  { transform: translate(-50%, -50%) translate(185px, 77px); }
  87.5%   { transform: translate(-50%, -50%) translate(141px, 141px); }
  93.75%  { transform: translate(-50%, -50%) translate(77px, 185px); }
  100%    { transform: translate(-50%, -50%) translate(0px, 200px); }
}

@keyframes satellite-orbit-4 {
  0%      { transform: translate(-50%, -50%) translate(-200px, 0px); }
  6.25%   { transform: translate(-50%, -50%) translate(-185px, -77px); }
  12.5%   { transform: translate(-50%, -50%) translate(-141px, -141px); }
  18.75%  { transform: translate(-50%, -50%) translate(-77px, -185px); }
  25%     { transform: translate(-50%, -50%) translate(0px, -200px); }
  31.25%  { transform: translate(-50%, -50%) translate(77px, -185px); }
  37.5%   { transform: translate(-50%, -50%) translate(141px, -141px); }
  43.75%  { transform: translate(-50%, -50%) translate(185px, -77px); }
  50%     { transform: translate(-50%, -50%) translate(200px, 0px); }
  56.25%  { transform: translate(-50%, -50%) translate(185px, 77px); }
  62.5%   { transform: translate(-50%, -50%) translate(141px, 141px); }
  68.75%  { transform: translate(-50%, -50%) translate(77px, 185px); }
  75%     { transform: translate(-50%, -50%) translate(0px, 200px); }
  81.25%  { transform: translate(-50%, -50%) translate(-77px, 185px); }
  87.5%   { transform: translate(-50%, -50%) translate(-141px, 141px); }
  93.75%  { transform: translate(-50%, -50%) translate(-185px, 77px); }
  100%    { transform: translate(-50%, -50%) translate(-200px, 0px); }
}

.hero-content {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--accent-light);
  border: 1px solid var(--accent);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 24px;
}

[data-theme="dark"] .eyebrow {
  background: var(--accent-light);
  border-color: rgba(110, 230, 255, 0.3);
}

.hero-title {
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 40px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 48px;
  padding-top: 48px;
  border-top: 1px solid var(--border-color);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-value {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 14px;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Trust Bar
   -------------------------------------------------------------------------- */
.trust-bar {
  padding: 48px 0;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-secondary);
}

.trust-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.trust-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
}

.trust-logos {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.trust-logos span {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-muted);
  opacity: 0.5;
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section {
  padding: var(--section-padding) 0;
  position: relative;
}

.bg-alt {
  background: var(--bg-secondary);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-header .section-desc {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 80px;
  align-items: center;
}

.section-content {
  max-width: 100%;
}

/* Feature List */
.feature-list {
  margin-top: 32px;
  display: grid;
  gap: 24px;
  text-align: left;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 16px;
  color: var(--text-muted);
}

.feature-list li::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.feature-list li strong {
  color: var(--text-primary);
  font-weight: 600;
  white-space: nowrap;
}

/* Visual Card */
.section-visual {
  display: flex;
  justify-content: center;
}

.visual-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 60px;
  text-align: center;
}

.visual-number {
  display: block;
  font-size: 80px;
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--text-primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.visual-label {
  display: block;
  font-size: 16px;
  color: var(--text-muted);
  margin-top: 8px;
}

/* --------------------------------------------------------------------------
   Globe Animation - WebGL 3D Globe (Cobe)
   -------------------------------------------------------------------------- */
.globe-card {
  padding: 40px;
  text-align: center;
}

.globe-container {
  position: relative;
  width: min(340px, 85vw);
  aspect-ratio: 1 / 1;
  margin: 0 auto 20px;
  animation: globe-glow-pulse 4s ease-in-out infinite;
}

@keyframes globe-glow-pulse {
  0%, 100% {
    filter: drop-shadow(0 0 20px rgba(0, 200, 255, 0.3));
  }
  50% {
    filter: drop-shadow(0 0 40px rgba(0, 200, 255, 0.6));
  }
}

/* WebGL Canvas */
.globe-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: grab;
}

.globe-canvas:active {
  cursor: grabbing;
}

.globe-label {
  display: block;
  font-size: 16px;
  color: var(--text-muted);
  margin-top: 8px;
}

/* Location Legend */
.globe-legend {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.globe-legend span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--accent);
  padding: 4px 8px;
  background: var(--accent-light);
  border-radius: 4px;
}

/* Globe Responsive */
@media (max-width: 768px) {
  .globe-container {
    width: min(320px, 80vw);
  }

  .globe-legend {
    gap: 10px;
  }

  .globe-legend span {
    font-size: 10px;
    padding: 3px 6px;
  }
}

@media (max-width: 480px) {
  .globe-card {
    padding: 20px 12px;
  }

  .globe-container {
    width: min(280px, 75vw);
  }

  .globe-legend {
    gap: 6px;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 100%;
  }

  .globe-legend span {
    font-size: 9px;
    padding: 3px 5px;
  }

  .section-visual {
    width: 100%;
    justify-content: center;
  }
}

/* --------------------------------------------------------------------------
   Services Section
   -------------------------------------------------------------------------- */
.services {
  background: var(--bg-secondary);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 320px));
  gap: 24px;
  justify-content: center;
}

.service-card {
  position: relative;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 32px;
  transition: all var(--transition-base);
  height: 100%;
}

.service-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

@media (hover: hover) {
  .service-card:hover {
    transform: translateY(-4px);
  }
}

.service-num {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-light);
}

.service-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-light);
  border-radius: 12px;
  margin-bottom: 24px;
  color: var(--accent);
}

.service-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.service-tagline {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.service-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Process Section
   -------------------------------------------------------------------------- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 32px;
  left: 80px;
  right: 80px;
  height: 1px;
  background: var(--border-color);
}

.process-step {
  text-align: center;
  position: relative;
}

.step-marker {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  position: relative;
  z-index: 1;
  transition: all var(--transition-base);
}

.process-step:hover .step-marker {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.process-step h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.process-step p {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 200px;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Stats Section
   -------------------------------------------------------------------------- */
.stats-section {
  background: linear-gradient(180deg, var(--accent-light), transparent);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
  text-align: center;
}

.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.stat-card .stat-value {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--text-primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-card .stat-label {
  font-size: 14px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* --------------------------------------------------------------------------
   Why Us Section
   -------------------------------------------------------------------------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.why-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 40px;
  transition: all var(--transition-base);
}

.why-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

@media (hover: hover) {
  .why-card:hover {
    transform: translateY(-2px);
  }
}

.why-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 16px;
}

.why-card p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   CTA Section
   -------------------------------------------------------------------------- */
.cta-section {
  background: linear-gradient(135deg, var(--accent-light), var(--bg-secondary));
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.cta-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.cta-content p {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

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

.contact-details {
  margin-top: 40px;
  display: grid;
  gap: 24px;
}

.contact-item {
  display: flex;
  gap: 16px;
}

.contact-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: var(--accent);
  flex-shrink: 0;
}

.contact-item strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}

.contact-item span {
  font-size: 15px;
  color: var(--text-muted);
}

/* Contact Form */
.contact-form {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
}

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

.form-group {
  margin-bottom: 16px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  min-height: 48px; /* Touch-friendly minimum */
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  font-size: 16px; /* Prevents iOS zoom on focus */
  color: var(--text-primary);
  transition: border-color var(--transition-fast);
  -webkit-appearance: none; /* Remove iOS default styling */
  appearance: none;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

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

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group select {
  width: 100%;
  padding: 14px 18px;
  min-height: 48px; /* Touch-friendly minimum */
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  font-size: 16px; /* Prevents iOS zoom on focus */
  color: var(--text-primary);
  transition: border-color var(--transition-fast);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
}

[data-theme="dark"] .form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%237a92b0' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
}

.form-group select:focus {
  outline: none;
  border-color: var(--accent);
}

.form-group select option {
  background: var(--bg-primary);
  color: var(--text-primary);
  padding: 12px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand .logo {
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 16px;
  max-width: 280px;
  line-height: 1.7;
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 20px;
}

.footer-col ul {
  display: grid;
  gap: 12px;
}

.footer-col a {
  font-size: 14px;
  color: var(--text-muted);
}

.footer-col a:hover {
  color: var(--text-primary);
}

.footer-col li {
  font-size: 14px;
  color: var(--text-muted);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 40px;
  border-top: 1px solid var(--border-color);
  font-size: 13px;
  color: var(--text-light);
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  color: var(--text-light);
}

.footer-legal a:hover {
  color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   Animations
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  transition: all 1s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* Stagger children */
.services-grid .reveal:nth-child(1) { transition-delay: 0s; }
.services-grid .reveal:nth-child(2) { transition-delay: 0.15s; }
.services-grid .reveal:nth-child(3) { transition-delay: 0.3s; }
.services-grid .reveal:nth-child(4) { transition-delay: 0.45s; }

.process-steps .reveal:nth-child(1) { transition-delay: 0s; }
.process-steps .reveal:nth-child(2) { transition-delay: 0.15s; }
.process-steps .reveal:nth-child(3) { transition-delay: 0.3s; }
.process-steps .reveal:nth-child(4) { transition-delay: 0.45s; }

.why-grid .reveal:nth-child(1) { transition-delay: 0s; }
.why-grid .reveal:nth-child(2) { transition-delay: 0.15s; }
.why-grid .reveal:nth-child(3) { transition-delay: 0.3s; }

/* --------------------------------------------------------------------------
   Reduced Motion Support - Accessibility
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero-bg {
    animation: none;
  }

  .particle,
  .data-stream {
    display: none;
  }

  .hero-ring {
    animation: none;
  }

  .hero-orb {
    animation: none;
  }

  .hero-data-point {
    animation: none;
    position: relative;
    display: inline-block;
    margin: 8px;
  }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  :root {
    --section-padding: 5rem; /* 80px */
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-visual {
    min-height: 300px;
    max-height: 350px;
  }

  .hero-rings {
    width: 240px;
    height: 240px;
  }

  .hero-center {
    inset: 82px;
  }

  .hero-orb {
    width: 320px;
    height: 320px;
  }

  .hero-data-points {
    display: none;
  }

  .section-grid {
    gap: 48px;
  }
}

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

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 320px));
  }

  .process-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
  }

  .process-steps::before {
    display: none;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --------------------------------------------------------------------------
   Large Tablet Breakpoint (1200px) - 3-column intermediate state
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
  .services-grid {
    grid-template-columns: repeat(3, minmax(0, 320px));
  }
}

/* --------------------------------------------------------------------------
   Tablet Breakpoint (900px) - Smoother transition
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 320px));
  }

  .process-steps,
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 3.75rem; /* 60px */
    --header-height: 4rem;      /* 64px */
  }

  #header {
    z-index: 10000;
    backdrop-filter: none; /* Remove to fix nav position:fixed containing block */
    background: #f5f7fa; /* Solid background since no blur */
  }

  [data-theme="dark"] #header {
    background: #0a0f1a;
  }

  /* Mobile Logo Alignment */
  .logo {
    align-items: flex-start;
  }

  .logo-tagline {
    font-size: 7px;
    gap: 4px;
    letter-spacing: 0.1em;
  }

  .logo-tagline::before,
  .logo-tagline::after {
    width: 12px;
    opacity: 0.6;
  }

  .main-nav {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 15, 26, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 24px;
    gap: 32px;
    z-index: 9999;
    overflow-y: auto;
  }

  .main-nav.active {
    display: flex;
  }

  .main-nav a {
    font-size: 28px;
    font-weight: 600;
    color: #ffffff;
    text-align: center;
    padding: 12px 24px;
    transition: all 0.2s ease;
  }

  .main-nav a:hover,
  .main-nav a.active {
    color: var(--accent);
  }

  .main-nav .nav-dropdown > a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  .main-nav .nav-dropdown {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .main-nav .nav-dropdown-content {
    display: none;
    position: static !important;
    transform: none !important;
    left: auto !important;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 8px 0;
    min-width: auto;
    opacity: 1;
    visibility: visible;
    width: 100%;
  }

  .main-nav .nav-dropdown-content::before,
  .main-nav .nav-dropdown-content::after {
    display: none;
  }

  .main-nav .nav-dropdown.expanded .nav-dropdown-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .main-nav .nav-dropdown.expanded > a svg {
    transform: rotate(180deg);
  }

  .main-nav .nav-dropdown-content a {
    font-size: 16px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    padding: 8px 24px;
    text-align: center;
    white-space: nowrap;
    width: auto;
  }

  .main-nav .nav-dropdown-content a:hover {
    color: var(--accent);
    background: transparent;
  }

  .mobile-toggle {
    display: flex;
    z-index: 10001;
  }

  .header-cta {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 100px;
    padding-bottom: 60px;
  }

  .hero-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* Simplified hero visual on mobile - scaled up for better visibility */
  .hero-visual {
    min-height: 220px;
    max-height: 260px;
    margin-bottom: 32px;
    order: -1; /* Move above content */
  }

  .hero-rings {
    width: 200px;
    height: 200px;
  }

  .hero-center {
    inset: 70px;
  }

  .hero-center-icon {
    font-size: 42px;
  }

  .hero-orb {
    width: 240px;
    height: 240px;
    filter: blur(40px); /* Lighter blur for performance */
  }

  .hero-ring {
    animation-duration: 30s; /* Slower for performance */
  }

  /* Hide orbiting data point labels on mobile */
  .hero-data-points {
    display: none;
  }

  .hero-content {
    text-align: center;
  }

  .hero-title {
    font-size: 36px;
    line-height: 1.15;
  }

  .hero-subtitle {
    font-size: 16px;
    margin-bottom: 32px;
    line-height: 1.6;
    max-width: 100%;
  }

  .eyebrow {
    padding: 8px 16px;
    font-size: 11px;
    margin-bottom: 24px;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 48px;
    padding-top: 32px;
    text-align: center;
  }

  .stat {
    text-align: center;
  }

  .stat-value {
    font-size: 24px;
  }

  .stat-label {
    font-size: 11px;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }

  .hero-buttons .btn {
    padding: 14px 32px;
    font-size: 14px;
    width: 100%;
    max-width: 300px;
  }

  .trust-bar .container {
    flex-direction: column;
    text-align: center;
  }

  .trust-logos {
    justify-content: center;
  }

  .services-grid {
    grid-template-columns: minmax(0, 400px);
  }

  .process-steps,
  .why-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

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

  .form-group input,
  .form-group textarea,
  .form-group select {
    padding: 12px 14px;
    font-size: 14px;
    border-radius: 8px;
  }

  .form-group select {
    background-position: right 14px center;
  }

  .footer {
    padding: 40px 0 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-brand p {
    margin-top: 12px;
  }

  .footer-col h4 {
    margin-bottom: 12px;
  }

  .footer-col ul {
    gap: 8px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
    padding-top: 24px;
  }
}

@media (max-width: 480px) {
  .container {
    width: calc(100% - 32px);
  }

  .hero {
    padding-top: 90px;
    padding-bottom: 50px;
  }

  .hero-title {
    font-size: 30px;
  }

  .hero-subtitle {
    font-size: 15px;
    margin-bottom: 28px;
  }

  .eyebrow {
    padding: 6px 14px;
    font-size: 10px;
    margin-bottom: 20px;
  }

  .hero-stats {
    gap: 12px;
    margin-top: 40px;
    padding-top: 28px;
  }

  .stat-value {
    font-size: 20px;
  }

  .stat-label {
    font-size: 10px;
  }

  .hero-buttons .btn {
    padding: 14px 28px;
    font-size: 13px;
  }

  .section-title {
    font-size: 28px;
  }

  .stat-card .stat-value {
    font-size: 36px;
  }

  .visual-number {
    font-size: 60px;
  }

  .service-card,
  .why-card,
  .contact-form {
    padding: 24px;
  }

  .form-group input,
  .form-group textarea,
  .form-group select {
    padding: 10px 12px;
    font-size: 13px;
  }

  .form-group select {
    background-position: right 12px center;
  }

  /* Reduce background animation intensity on small screens */
  .particles,
  .data-streams {
    opacity: 0.5;
  }

  .footer {
    padding: 32px 0 20px;
  }

  .footer-grid {
    gap: 20px;
    margin-bottom: 24px;
  }

  .footer-col h4 {
    font-size: 11px;
    margin-bottom: 10px;
  }

  .footer-col a {
    font-size: 13px;
  }

  .footer-col ul {
    gap: 6px;
  }

  .footer-bottom {
    padding-top: 20px;
    font-size: 12px;
  }

  .footer-legal {
    gap: 16px;
  }
}

/* Extra small devices - iPhone SE (375px) */
@media (max-width: 375px) {
  .hero {
    padding-top: 85px;
    padding-bottom: 40px;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-subtitle {
    font-size: 14px;
  }

  .stat-value {
    font-size: 18px;
  }

  .stat-label {
    font-size: 9px;
  }

  .footer {
    padding: 24px 0 16px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 20px;
  }

  .footer-col h4 {
    font-size: 10px;
    margin-bottom: 8px;
  }

  .footer-col a {
    font-size: 12px;
  }

  .footer-bottom {
    padding-top: 16px;
    font-size: 11px;
  }

  .footer-legal {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  /* Globe adjustments for iPhone SE */
  .globe-card {
    padding: 16px 8px;
  }

  .globe-container {
    width: min(240px, 70vw);
  }

  .globe-label {
    font-size: 13px;
    margin-top: 10px;
  }

  .globe-legend {
    gap: 4px;
    margin-top: 8px;
  }

  .globe-legend span {
    font-size: 7px;
    padding: 2px 4px;
  }

  /* Section grid spacing - already handled in 768px breakpoint */

  .feature-list {
    text-align: left;
  }

  .feature-list li {
    font-size: 14px;
    gap: 12px;
  }

  .section-desc {
    font-size: 14px;
  }

  .page-header .section-desc {
    font-size: 15px;
    margin-bottom: 20px;
  }
}

.mobile-toggle.active span {
  background: #ffffff;
}

.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --------------------------------------------------------------------------
   Header Secondary Button (Client Portal)
   -------------------------------------------------------------------------- */
.header-cta-secondary {
  padding: 10px 18px;
  font-size: 14px;
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-primary);
  margin-left: 12px;
  order: 3;
}

.header-cta-secondary:hover {
  background: var(--bg-secondary);
  border-color: var(--accent);
}

@media (max-width: 1024px) {
  .header-cta-secondary {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Service Taglines
   -------------------------------------------------------------------------- */
.service-tagline {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 12px;
  font-style: italic;
}

/* --------------------------------------------------------------------------
   Team / Leadership Section
   -------------------------------------------------------------------------- */
.leadership-section {
  padding: 80px 0;
}

.leadership-section .section-header {
  margin-bottom: 40px;
}

.leadership-section .section-desc {
  margin-bottom: 0;
}

.expertise-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  max-width: 800px;
  margin: 2rem auto 0;
}

.expertise-list {
  margin: 0;
  gap: 16px;
}

.expertise-list li {
  font-size: 15px;
  line-height: 1.6;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.team-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  transition: all var(--transition-base);
}

.team-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
}

@media (hover: hover) {
  .team-card:hover {
    transform: translateY(-4px);
  }
}

.team-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  overflow: hidden;
}

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

.team-avatar svg {
  stroke: var(--accent);
  width: 32px;
  height: 32px;
}

.team-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
}

.team-role {
  display: block;
  font-size: 12px;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.team-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

@media (max-width: 992px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .leadership-section {
    padding: 60px 0;
  }

  .expertise-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 100%;
  }

  .expertise-list li {
    font-size: 14px;
  }

  .team-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .team-card {
    padding: 20px;
  }
}

/* --------------------------------------------------------------------------
   Case Studies Section
   -------------------------------------------------------------------------- */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.case-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  transition: all var(--transition-base);
}

.case-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
}

@media (hover: hover) {
  .case-card:hover {
    transform: translateY(-4px);
  }
}

.case-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.case-tag {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  background: var(--accent-light);
  padding: 6px 12px;
  border-radius: 20px;
}

.case-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
}

.case-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}

.case-card p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.case-meta {
  font-size: 13px;
  color: var(--text-light);
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

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

  .case-card {
    padding: 28px 24px;
  }

  .case-value {
    font-size: 20px;
  }
}

/* Reduce spacing between Why section and Case Studies */
.case-studies {
  padding-top: 60px;
}

/* --------------------------------------------------------------------------
   Newsletter Section
   -------------------------------------------------------------------------- */
.newsletter-section {
  margin-top: 80px;
  padding: 60px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.newsletter-content h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 8px;
}

.newsletter-content p {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 400px;
}

.newsletter-form {
  display: flex;
  gap: 12px;
}

.newsletter-form input {
  padding: 14px 20px;
  min-height: 48px; /* Touch-friendly minimum */
  font-size: 16px; /* Prevents iOS zoom on focus */
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  background: var(--bg-secondary);
  color: var(--text-primary);
  min-width: 280px;
  transition: all var(--transition-fast);
  -webkit-appearance: none;
  appearance: none;
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.newsletter-form input::placeholder {
  color: var(--text-light);
}

@media (max-width: 900px) {
  .newsletter-section {
    flex-direction: column;
    text-align: center;
    padding: 40px 24px;
  }

  .newsletter-content p {
    max-width: none;
  }

  .newsletter-form {
    width: 100%;
    flex-direction: column;
  }

  .newsletter-form input {
    min-width: unset;
    width: 100%;
  }

  .newsletter-form button {
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   Media & Press Section
   -------------------------------------------------------------------------- */
.media-section {
  margin-top: 60px;
  text-align: center;
  padding: 40px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
}

.media-section h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.media-section p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.media-placeholder {
  padding: 40px;
  border: 2px dashed var(--border-color);
  border-radius: var(--radius);
  color: var(--text-light);
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   Insights Grid - Centered and Compact
   -------------------------------------------------------------------------- */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.insight-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 24px;
  transition: var(--transition);
  text-align: left;
}

.insight-card:hover {
  border-color: var(--accent);
}

@media (hover: hover) {
  .insight-card:hover {
    transform: translateY(-2px);
  }
}

.insight-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent);
  background: rgba(200, 169, 126, 0.1);
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.insight-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.4;
}

.insight-card p {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.5;
  margin: 0;
}

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

  .insight-card {
    padding: 20px;
  }
}

/* Insights Section - Compact Layout */
.insights .section-header {
  margin-bottom: 48px;
}

.insights .section-desc {
  font-size: 15px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.insights .media-section {
  margin-top: 48px;
  padding: 32px;
}

.insights .media-placeholder {
  padding: 30px;
}

.insights .newsletter-section {
  margin-top: 40px;
  padding: 32px 40px;
}

/* --------------------------------------------------------------------------
   Cookie Consent Overlay & Banner
   -------------------------------------------------------------------------- */

/* Dark overlay that blocks interaction */
.cookie-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

[data-theme="dark"] .cookie-overlay {
  background: rgba(0, 0, 0, 0.75);
}

.cookie-overlay.visible {
  opacity: 1;
  visibility: visible;
}

/* Floating Cookie Consent Banner */
.cookie-consent {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 9999;
  width: 420px;
  max-width: calc(100vw - 32px);
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 8px 24px rgba(0, 0, 0, 0.1);
  transform: translateY(20px) scale(0.95);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.4s ease,
              visibility 0.4s ease;
}

[data-theme="dark"] .cookie-consent {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.1);
}

.cookie-consent.visible {
  transform: translateY(0) scale(1);
  opacity: 1;
  visibility: visible;
}

.cookie-consent-inner {
  padding: 28px;
}

/* Header with icon and title */
.cookie-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.cookie-header h4 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.cookie-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-light);
  border-radius: 12px;
  color: var(--accent);
}

/* Text content */
.cookie-text {
  margin-bottom: 24px;
}

.cookie-text p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0 0 12px 0;
}

.cookie-text p:last-child {
  margin-bottom: 0;
}

.cookie-text .cookie-text-secondary {
  font-size: 13px;
  color: var(--text-light);
}

.cookie-text a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: opacity var(--transition-fast);
}

.cookie-text a:hover {
  opacity: 0.8;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Action buttons */
.cookie-actions {
  display: flex;
  gap: 12px;
}

.cookie-btn {
  flex: 1;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
  transition: all var(--transition-fast);
  cursor: pointer;
  text-align: center;
}

.cookie-btn-accept {
  background: var(--accent);
  color: #fff;
  border: none;
}

.cookie-btn-accept:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px var(--accent-glow);
}

.cookie-btn-decline {
  background: var(--bg-secondary);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

.cookie-btn-decline:hover {
  border-color: var(--text-muted);
  color: var(--text-primary);
  background: var(--bg-tertiary);
}

/* Responsive */
@media (max-width: 768px) {
  .cookie-consent {
    bottom: 16px;
    right: 16px;
    left: 16px;
    width: auto;
    max-width: none;
  }

  .cookie-consent-inner {
    padding: 24px;
  }

  .cookie-header h4 {
    font-size: 16px;
  }

  .cookie-icon {
    width: 40px;
    height: 40px;
  }

  .cookie-text p {
    font-size: 13px;
  }

  .cookie-text .cookie-text-secondary {
    font-size: 12px;
  }

  .cookie-btn {
    padding: 12px 16px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .cookie-consent {
    bottom: 12px;
    right: 12px;
    left: 12px;
  }

  .cookie-consent-inner {
    padding: 20px;
  }

  .cookie-header {
    gap: 12px;
    margin-bottom: 14px;
  }

  .cookie-header h4 {
    font-size: 15px;
  }

  .cookie-icon {
    width: 36px;
    height: 36px;
  }

  .cookie-icon svg {
    width: 20px;
    height: 20px;
  }

  .cookie-text {
    margin-bottom: 20px;
  }

  .cookie-actions {
    flex-direction: column;
    gap: 10px;
  }

  .cookie-btn {
    width: 100%;
  }
}

/* Hide theme toggle when cookie banner is visible */
body.cookie-banner-visible .theme-toggle {
  opacity: 0.3;
  pointer-events: none;
}

/* ==========================================================================
   Multi-Page Navigation & Page Headers
   ========================================================================== */

/* --------------------------------------------------------------------------
   Page Header (Inner Pages)
   -------------------------------------------------------------------------- */
.page-header {
  padding: calc(var(--header-height) + 80px) 0 60px;
  background: var(--bg-secondary);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 50% 0%, var(--accent-light) 0%, transparent 70%);
  pointer-events: none;
}

.page-header .container {
  position: relative;
  z-index: 1;
}

.page-header .section-label {
  margin-bottom: 20px;
}

.page-header .section-title {
  font-size: clamp(36px, 6vw, 56px);
  margin-bottom: 16px;
}

.page-header .section-desc {
  max-width: 700px;
  margin: 0 auto 24px;
  text-align: center;
  font-size: 16px;
  line-height: 1.8;
}

.page-header .section-desc:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Constellation Animation Container
   -------------------------------------------------------------------------- */
.constellation-wrapper {
  position: relative;
  width: 100%;
  min-height: 400px;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(180deg, #0a1628 0%, #111c2d 100%);
}

.constellation-wrapper canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* Constellation Mobile Responsive */
@media (max-width: 768px) {
  .constellation-wrapper {
    min-height: 340px;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .constellation-wrapper {
    min-height: 320px;
  }
}

/* --------------------------------------------------------------------------
   Active Navigation State
   -------------------------------------------------------------------------- */
.main-nav a {
  position: relative;
}

.main-nav a.active {
  color: var(--accent);
}

.main-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

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

.nav-dropdown > a {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-dropdown > a svg {
  width: 12px;
  height: 12px;
  transition: transform var(--transition-fast);
}

.nav-dropdown:hover > a svg {
  transform: rotate(180deg);
}

.nav-dropdown-content {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px 0;
  min-width: 240px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
  z-index: 1000;
}

.nav-dropdown-content::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-bottom-color: var(--border-color);
}

.nav-dropdown-content::after {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-bottom-color: var(--bg-primary);
}

.nav-dropdown:hover .nav-dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-content a {
  display: block;
  padding: 12px 20px;
  font-size: 14px;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.nav-dropdown-content a:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.nav-dropdown-content a.active {
  color: var(--accent);
  background: var(--accent-light);
}

/* --------------------------------------------------------------------------
   Blog Page Styles
   -------------------------------------------------------------------------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 32px;
}

.blog-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition-base);
}

.blog-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

@media (hover: hover) {
  .blog-card:hover {
    transform: translateY(-4px);
  }
}

.blog-card .insight-tag {
  margin-bottom: 16px;
}

.blog-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.3;
}

.blog-card p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.blog-card .read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  transition: gap var(--transition-fast);
}

.blog-card:hover .read-more {
  gap: 12px;
}

.blog-card .read-more svg {
  width: 16px;
  height: 16px;
}

/* --------------------------------------------------------------------------
   Service Page Specific Styles
   -------------------------------------------------------------------------- */
.service-detail {
  padding: var(--section-padding) 0;
}

.service-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 80px;
}

.service-intro-content .section-label {
  margin-bottom: 20px;
}

.service-intro-content .section-title {
  margin-bottom: 24px;
}

.service-intro-content .section-desc {
  margin-bottom: 32px;
}

.service-intro-visual {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.service-intro-visual .service-illustration {
  width: 100%;
  height: 100%;
}

.service-intro-visual .service-illustration svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Legacy support for simple icons */
.service-intro-visual .service-icon {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-intro-visual .service-icon svg {
  width: 60px;
  height: 60px;
  color: var(--accent);
}

/* Service Features List */
.service-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.service-feature-item {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: var(--bg-secondary);
  border-radius: var(--radius);
}

.service-feature-item .feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.service-feature-item .feature-icon svg {
  width: 24px;
  height: 24px;
  color: var(--accent);
}

.service-feature-item h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.service-feature-item p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Contact Page Specific Styles
   -------------------------------------------------------------------------- */
.contact-page-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 40px;
}

.contact-method-card {
  display: flex;
  gap: 20px;
  padding: 24px;
  background: var(--bg-secondary);
  border-radius: var(--radius);
  transition: all var(--transition-base);
}

.contact-method-card:hover {
  background: var(--accent-light);
}

@media (hover: hover) {
  .contact-method-card:hover {
    transform: translateX(8px);
  }
}

.contact-method-card .method-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-method-card .method-icon svg {
  width: 24px;
  height: 24px;
  color: var(--accent);
}

.contact-method-card h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.contact-method-card p {
  font-size: 14px;
  color: var(--text-muted);
}

.contact-method-card a {
  color: var(--accent);
  font-weight: 500;
}

/* Global Locations Grid */
.locations-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.location-item {
  text-align: center;
  padding: 20px 16px;
  background: var(--bg-secondary);
  border-radius: var(--radius);
  transition: all var(--transition-base);
}

.location-item:hover {
  background: var(--accent-light);
}

@media (hover: hover) {
  .location-item:hover {
    transform: translateY(-4px);
  }
}

.location-item span {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   Responsive - Multi-Page Styles
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .service-intro {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .service-intro-visual {
    order: -1;
    padding: 40px;
  }

  .contact-page-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .locations-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .page-header {
    padding: calc(var(--header-height) + 60px) 24px 40px;
  }

  .page-header .section-title {
    font-size: clamp(28px, 6vw, 40px);
  }

  .page-header .section-desc {
    font-size: 16px;
    line-height: 1.65;
    max-width: 100%;
  }

  .nav-dropdown-content {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    transform: none;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  .nav-dropdown-content::before,
  .nav-dropdown-content::after {
    display: none;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .service-features {
    grid-template-columns: 1fr;
  }

  .service-intro-visual {
    padding: 16px;
  }

  .locations-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .page-header {
    padding: calc(var(--header-height) + 48px) 20px 32px;
  }

  .page-header .section-desc {
    font-size: 15px;
    line-height: 1.6;
    padding: 0 4px;
  }

  .page-header .section-title {
    font-size: clamp(24px, 7vw, 32px);
  }

  .service-intro-visual {
    padding: 32px;
  }

  .service-intro-visual .service-icon {
    width: 80px;
    height: 80px;
  }

  .service-intro-visual .service-icon svg {
    width: 40px;
    height: 40px;
  }
}

/* ==========================================================================
   Legal Pages Styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   Legal Page Layout
   -------------------------------------------------------------------------- */
.legal-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 60px;
  align-items: start;
}

/* --------------------------------------------------------------------------
   Table of Contents (Sidebar)
   -------------------------------------------------------------------------- */
.legal-toc {
  position: sticky;
  top: calc(var(--header-height) + 40px);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.legal-toc-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}

.legal-toc-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--accent);
  margin-top: 12px;
}

.legal-toc-list {
  list-style: none;
}

.legal-toc-list li {
  margin-bottom: 12px;
}

.legal-toc-list a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 8px;
}

.legal-toc-list a::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border-color);
  transition: background var(--transition-fast);
  flex-shrink: 0;
}

.legal-toc-list a:hover,
.legal-toc-list a.active {
  color: var(--accent);
}

.legal-toc-list a:hover::before,
.legal-toc-list a.active::before {
  background: var(--accent);
}

/* --------------------------------------------------------------------------
   Legal Content Typography
   -------------------------------------------------------------------------- */
.legal-content {
  max-width: 800px;
}

.legal-meta {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
}

.legal-content h2 {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 48px;
  margin-bottom: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
  scroll-margin-top: calc(var(--header-height) + 40px);
}

.legal-content h2:first-of-type {
  margin-top: 0;
  border-top: none;
  padding-top: 0;
}

.legal-content h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 32px;
  margin-bottom: 12px;
}

.legal-content h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 24px;
  margin-bottom: 10px;
}

.legal-content p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.legal-content ul,
.legal-content ol {
  margin-bottom: 24px;
  padding-left: 24px;
}

.legal-content ul {
  list-style: disc;
}

.legal-content ol {
  list-style: decimal;
}

.legal-content li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.legal-content a {
  color: var(--accent);
  transition: opacity var(--transition-fast);
}

.legal-content a:hover {
  opacity: 0.8;
}

/* --------------------------------------------------------------------------
   Legal Highlight Boxes
   -------------------------------------------------------------------------- */
.legal-highlight {
  display: flex;
  gap: 20px;
  padding: 24px;
  background: var(--bg-secondary);
  border-radius: var(--radius);
  border-left: 3px solid var(--accent);
  margin: 32px 0;
}

.legal-highlight-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-light);
  border-radius: 12px;
  color: var(--accent);
  flex-shrink: 0;
}

.legal-highlight-content h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  margin-top: 0;
}

.legal-highlight-content p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Back to Top Button
   -------------------------------------------------------------------------- */
.back-to-top {
  position: fixed;
  bottom: 100px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  cursor: pointer;
  z-index: 100;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--bg-secondary);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* --------------------------------------------------------------------------
   Legal Pages Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .legal-toc {
    position: relative;
    top: 0;
  }

  .legal-toc-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
  }

  .legal-toc-list li {
    margin-bottom: 0;
  }
}

@media (max-width: 768px) {
  .legal-toc {
    padding: 24px;
  }

  .legal-toc-list a {
    padding: 8px 0;
    min-height: 44px;
    align-items: center;
  }

  .legal-content h2 {
    font-size: 20px;
    margin-top: 32px;
    scroll-margin-top: calc(var(--header-height) + 24px);
  }

  .legal-content h3 {
    font-size: 17px;
  }

  .legal-content p,
  .legal-content li {
    font-size: 15px;
    line-height: 1.7;
  }

  .legal-highlight {
    flex-direction: column;
    gap: 16px;
  }

  .back-to-top {
    bottom: 90px;
    right: 24px;
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 480px) {
  .legal-toc-list {
    flex-direction: column;
  }

  .legal-content h2 {
    font-size: 18px;
  }

  .legal-highlight {
    padding: 20px;
  }
}

/* ==========================================================================
   Blog & Insights Pages - SEO Optimized Styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   Breadcrumb Navigation
   -------------------------------------------------------------------------- */
.breadcrumb {
  padding: 16px 0;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-light);
}

.breadcrumb ol {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
}

.breadcrumb li:not(:last-child)::after {
  content: '/';
  color: var(--text-light);
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

.breadcrumb [aria-current="page"] {
  color: var(--text-primary);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   Blog Header
   -------------------------------------------------------------------------- */
.blog-header {
  padding-top: calc(var(--header-height) + 40px);
}

/* --------------------------------------------------------------------------
   Blog Filters
   -------------------------------------------------------------------------- */
.blog-filters-section {
  padding: 24px 0;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: var(--header-height);
  z-index: 90;
}

.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.filter-btn {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 100px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  border-color: var(--text-muted);
  color: var(--text-primary);
}

.filter-btn.active {
  background: var(--text-primary);
  border-color: var(--text-primary);
  color: var(--bg-primary);
}

/* --------------------------------------------------------------------------
   Featured Article
   -------------------------------------------------------------------------- */
.featured-section {
  padding-top: 40px;
}

.featured-article {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
}

.featured-article:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.featured-article-link {
  display: grid;
  grid-template-columns: 1fr 1fr;
  text-decoration: none;
  color: inherit;
}

.featured-article-image {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-tertiary);
}

.featured-article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.featured-article:hover .featured-article-image img {
  transform: scale(1.05);
}

.featured-article-content {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--text-muted);
}

.featured-article-content h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.featured-article-content p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.read-more-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  transition: gap var(--transition-fast);
}

.featured-article:hover .read-more-link {
  gap: 12px;
}

/* --------------------------------------------------------------------------
   Enhanced Blog Cards with Images
   -------------------------------------------------------------------------- */
.blog-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.blog-card-image {
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  margin: -32px -32px 24px -32px;
  background: var(--bg-tertiary);
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.05);
}

.blog-card-content {
  display: flex;
  flex-direction: column;
  height: calc(100% - 200px);
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--text-muted);
}

.blog-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 16px;
}

/* --------------------------------------------------------------------------
   Category Tags
   -------------------------------------------------------------------------- */
.category-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent);
  background: var(--accent-light);
  padding: 4px 10px;
  border-radius: 4px;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.category-tag:hover {
  background: var(--accent);
  color: var(--bg-primary);
}

/* --------------------------------------------------------------------------
   Reading Time
   -------------------------------------------------------------------------- */
.reading-time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
}

.reading-time svg {
  opacity: 0.7;
}

/* --------------------------------------------------------------------------
   Pagination
   -------------------------------------------------------------------------- */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 60px;
}

.pagination-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.pagination-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.pagination-btn.active {
  background: var(--text-primary);
  border-color: var(--text-primary);
  color: var(--bg-primary);
}

.pagination-next,
.pagination-prev {
  padding: 0;
}

/* --------------------------------------------------------------------------
   Topics Grid
   -------------------------------------------------------------------------- */
.topics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.topic-card {
  display: flex;
  flex-direction: column;
  padding: 32px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-base);
}

.topic-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.topic-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-light);
  border-radius: 12px;
  color: var(--accent);
  margin-bottom: 20px;
}

.topic-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.topic-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 16px;
  flex-grow: 1;
}

.topic-count {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   Blog Post Page Styles
   -------------------------------------------------------------------------- */

/* Post Header */
.post-header {
  padding: calc(var(--header-height) + 60px) 0 40px;
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.post-header-content {
  max-width: 800px;
}

.post-meta-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.post-date {
  font-size: 14px;
  color: var(--text-muted);
}

.post-header h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.post-excerpt {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 32px;
}

/* Post Author */
.post-author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.author-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-tertiary);
}

.author-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.author-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.author-title {
  font-size: 13px;
  color: var(--text-muted);
}

/* Post Hero Image */
.post-hero-image {
  margin: 0 0 40px;
}

.post-hero-image img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  background: var(--bg-tertiary);
}

.post-hero-image figcaption {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-light);
  text-align: center;
}

/* Table of Contents */
.table-of-contents {
  margin-bottom: 48px;
}

.toc-wrapper {
  max-width: 720px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
}

/* Decorative accent line */
.toc-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent) 0%, rgba(8, 145, 178, 0.3) 100%);
}

[data-theme="dark"] .toc-wrapper::before {
  background: linear-gradient(180deg, var(--accent) 0%, rgba(110, 230, 255, 0.2) 100%);
}

.toc-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}

.toc-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-light);
  border-radius: 10px;
  color: var(--accent);
  flex-shrink: 0;
}

.toc-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.toc-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

.toc-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: toc;
}

.toc-list li {
  counter-increment: toc;
  border-bottom: 1px solid var(--border-light);
}

.toc-list li:nth-last-child(-n+2) {
  border-bottom: none;
}

.toc-list li:nth-child(odd) {
  border-right: 1px solid var(--border-light);
  padding-right: 20px;
}

.toc-list li:nth-child(even) {
  padding-left: 20px;
}

.toc-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: all var(--transition-fast);
  position: relative;
}

.toc-list a::before {
  content: counter(toc, decimal-leading-zero);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-light);
  border-radius: 6px;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.toc-list a:hover {
  color: var(--text-primary);
}

.toc-list a:hover::before {
  background: var(--accent);
  color: white;
}

.toc-list a.active {
  color: var(--text-primary);
}

.toc-list a.active::before {
  background: var(--accent);
  color: white;
}

/* TOC Progress indicator */
.toc-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--accent);
  width: 0;
  transition: width var(--transition-base);
}

/* Post Content Layout */
.content-wrapper {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 60px;
  align-items: start;
}

.content-main {
  max-width: 800px;
}

/* Post Content Typography */
.post-content {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-primary);
}

.post-content h2 {
  font-size: 28px;
  font-weight: 600;
  margin: 48px 0 20px;
  padding-top: 24px;
  color: var(--text-primary);
  scroll-margin-top: calc(var(--header-height) + 24px);
}

.post-content h2:first-child {
  margin-top: 0;
  padding-top: 0;
}

.post-content h3 {
  font-size: 22px;
  font-weight: 600;
  margin: 32px 0 16px;
  color: var(--text-primary);
}

.post-content p {
  margin-bottom: 24px;
}

.post-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity var(--transition-fast);
}

.post-content a:hover {
  opacity: 0.8;
}

.post-content ul,
.post-content ol {
  margin: 24px 0;
  padding-left: 24px;
}

.post-content li {
  margin-bottom: 12px;
  padding-left: 8px;
}

.post-content li strong {
  color: var(--text-primary);
}

.post-content blockquote {
  margin: 32px 0;
  padding: 24px 32px;
  background: var(--bg-secondary);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.post-content blockquote p {
  font-size: 18px;
  font-style: italic;
  color: var(--text-primary);
  margin: 0;
}

/* Content Sidebar */
.content-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 40px);
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Sidebar Widgets */
.share-widget,
.topics-widget,
.newsletter-widget {
  padding: 24px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
}

.share-widget h3,
.topics-widget h3,
.newsletter-widget h3 {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* Share Buttons */
.share-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.share-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.share-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.share-linkedin:hover {
  border-color: #0077b5;
  color: #0077b5;
}

.share-twitter:hover {
  border-color: #1da1f2;
  color: #1da1f2;
}

/* Topic Tags */
.topic-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.topic-tags a {
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 100px;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.topic-tags a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Newsletter Widget */
.newsletter-widget p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.newsletter-form-small {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.newsletter-form-small input {
  padding: 12px 16px;
  font-size: 14px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  transition: border-color var(--transition-fast);
}

.newsletter-form-small input:focus {
  outline: none;
  border-color: var(--accent);
}

.newsletter-form-small .btn {
  width: 100%;
}

/* Post Footer */
.post-footer {
  padding: 48px 0;
  margin-top: 48px;
  border-top: 1px solid var(--border-light);
}

/* Author Bio */
.author-bio {
  display: flex;
  gap: 24px;
  padding: 32px;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  margin-bottom: 32px;
}

.author-bio-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-tertiary);
}

.author-bio-content h3 {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light);
  margin-bottom: 8px;
}

.author-bio-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  display: block;
}

.author-bio-title {
  font-size: 14px;
  color: var(--text-muted);
  display: block;
  margin-bottom: 12px;
}

.author-bio-text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.author-bio-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.author-bio-link:hover {
  text-decoration: underline;
}

/* Post Tags */
.post-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.tags-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}

.post-tags a {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 100px;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.post-tags a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Related Articles */
.related-articles {
  padding: var(--section-padding) 0;
  background: var(--bg-secondary);
}

.related-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 32px;
  color: var(--text-primary);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.related-grid .blog-card {
  background: var(--bg-primary);
}

/* --------------------------------------------------------------------------
   Screen Reader Only (Accessibility)
   -------------------------------------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   Blog Responsive Styles
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .featured-article-link {
    grid-template-columns: 1fr;
  }

  .featured-article-content {
    padding: 32px;
  }

  .topics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .content-wrapper {
    grid-template-columns: 1fr;
  }

  .content-sidebar {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .content-sidebar > * {
    flex: 1;
    min-width: 280px;
  }

  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .blog-filters {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }

  .filter-btn {
    flex-shrink: 0;
  }

  .featured-article-content {
    padding: 24px;
  }

  .featured-article-content h2 {
    font-size: 22px;
  }

  .topics-grid {
    grid-template-columns: 1fr;
  }

  .post-header {
    padding: calc(var(--header-height) + 40px) 0 32px;
  }

  .post-header h1 {
    font-size: 28px;
  }

  .post-excerpt {
    font-size: 16px;
  }

  .toc-wrapper {
    padding: 24px;
  }

  .toc-list {
    grid-template-columns: 1fr;
  }

  .toc-list li {
    border-right: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .toc-list li:last-child {
    border-bottom: none;
  }

  .toc-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .post-content {
    font-size: 16px;
  }

  .post-content h2 {
    font-size: 24px;
  }

  .post-content h3 {
    font-size: 20px;
  }

  .author-bio {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .content-sidebar {
    flex-direction: column;
  }

  .content-sidebar > * {
    min-width: 100%;
  }
}

@media (max-width: 480px) {
  .post-meta-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .featured-article-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .blog-card-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .pagination {
    flex-wrap: wrap;
  }
}
