/* ============================================
   GTM AI - Main Stylesheet
   ============================================ */

/* CSS Variables - Brand Colors */
:root {
  /* Primary Colors */
  --primary: #0fc580;
  --primary-dark: #0a9a64;
  --primary-light: #4dc29d;
  
  /* Accent Colors */
  --accent-orange: #f5b024;
  --accent-red: #ca1c54;
  --accent-coral: #dd5e63;
  --accent-gold: #fad67f;
  
  /* Supporting Colors */
  --mint: #9ad3c1;
  --soft-green: #72cda5;
  
  /* Neutrals */
  --bg-dark: #0a0a0f;
  --bg-darker: #050508;
  --bg-card: rgba(15, 197, 128, 0.03);
  --bg-card-hover: rgba(15, 197, 128, 0.08);
  
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.4);
  
  /* Borders */
  --border-subtle: rgba(15, 197, 128, 0.15);
  --border-hover: rgba(15, 197, 128, 0.4);
  
  /* Typography */
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Spacing */
  --nav-height: 80px;
  --section-padding: clamp(4rem, 10vw, 8rem);
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  font-family: var(--font-body);
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

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

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

/* ============================================
   Shader Background Canvas
   ============================================ */
#shader-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.6;
}

/* ============================================
   Navigation - Magnetic Effect
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
  z-index: 1000;
  background: linear-gradient(to bottom, rgba(10, 10, 15, 0.9), transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo img {
  height: 48px;
  width: auto;
}

.nav-logo span {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: nowrap;
}

.nav-link {
  position: relative;
  padding: 0.6rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  border-radius: 8px;
  white-space: nowrap;
}

.nav-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--bg-card-hover);
  border-radius: 8px;
  opacity: 0;
  transform: scale(0.8);
  transition: all var(--transition-smooth);
}

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

.nav-link:hover::before {
  opacity: 1;
  transform: scale(1);
}

.nav-link span {
  position: relative;
  z-index: 1;
}

/* Magnetic effect handled by JS */
.nav-link.magnetic {
  transition: transform var(--transition-bounce);
}

.nav-cta {
  margin-left: 1rem;
  padding: 0.75rem 1.75rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--bg-dark);
  font-weight: 600;
  border-radius: 50px;
  transition: all var(--transition-smooth);
  box-shadow: 0 4px 20px rgba(15, 197, 128, 0.3);
  white-space: nowrap;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(15, 197, 128, 0.4);
}

.nav-cta-scan {
  margin-left: 1rem;
  padding: 0.75rem 1.75rem;
  background: linear-gradient(135deg, var(--accent-orange) 0%, #e09a10 100%);
  color: var(--bg-dark);
  font-weight: 600;
  border-radius: 50px;
  transition: all var(--transition-smooth);
  box-shadow: 0 4px 20px rgba(245, 176, 36, 0.3);
  white-space: nowrap;
}

.nav-cta-scan:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(245, 176, 36, 0.4);
}

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

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--transition-fast);
}

@media (max-width: 1100px) {
  .nav-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: calc(100vh - var(--nav-height));
    height: calc(100dvh - var(--nav-height));
    flex-direction: column;
    justify-content: flex-start;
    padding: 2rem 1.5rem;
    gap: 0.75rem;
    background: #0a0a0f;
    transform: translateX(100%);
    transition: transform var(--transition-smooth), visibility 0s 0.4s;
    overflow-y: auto;
    z-index: 999;
    visibility: hidden;
  }

  .nav-menu.active {
    transform: translateX(0);
    visibility: visible;
    transition: transform var(--transition-smooth), visibility 0s 0s;
  }

  .nav-menu .nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    opacity: 0;
    transform: translateX(30px);
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.02);
  }

  .nav-menu.active .nav-link {
    opacity: 1;
    transform: translateX(0);
  }

  .nav-menu.active > :nth-child(1) { transition-delay: 0.05s; }
  .nav-menu.active > :nth-child(2) { transition-delay: 0.1s; }
  .nav-menu.active > :nth-child(3) { transition-delay: 0.15s; }
  .nav-menu.active > :nth-child(4) { transition-delay: 0.2s; }

  .nav-link {
    transition: all var(--transition-smooth), opacity 0.3s ease, transform 0.3s ease;
  }

  .nav-link span.nav-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
  }

  .nav-link span.nav-desc {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
    font-weight: 400;
    line-height: 1.3;
  }

  .nav-link:hover {
    background: rgba(15, 197, 128, 0.08);
    border-color: rgba(15, 197, 128, 0.2);
  }

  .nav-toggle {
    display: flex;
  }

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

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

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

  .nav-cta-scan {
    margin: 1.5rem 0 0 0;
    width: 100%;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    padding: 1rem 2rem;
    font-size: 1.1rem;
  }

  .nav-cta {
    margin: 0.5rem 0 0 0;
    width: 100%;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    padding: 1rem 2rem;
    font-size: 1.1rem;
  }

  .nav-menu.active .nav-cta-scan {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
  }

  .nav-menu.active .nav-cta {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s;
  }
}

/* Compact nav on mid-size screens */
@media (min-width: 1101px) and (max-width: 1400px) {
  .nav-link {
    padding: 0.5rem 0.55rem;
    font-size: 0.82rem;
  }
  .nav-cta,
  .nav-cta-scan {
    margin-left: 0.5rem;
    padding: 0.65rem 1.25rem;
    font-size: 0.85rem;
  }
  .nav-lang {
    margin-left: 0.25rem;
  }
}

/* Hide descriptions on desktop */
@media (min-width: 1101px) {
  .nav-link span.nav-desc {
    display: none;
  }
}

/* Language Switcher */
.nav-lang {
  margin-left: 0.5rem;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 0.4rem 0.75rem !important;
  font-size: 0.8rem !important;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-lang:hover {
  border-color: var(--primary);
  background: rgba(15, 197, 128, 0.1);
}

.nav-lang .nav-title {
  font-size: 0.8rem !important;
}

@media (max-width: 1100px) {
  .nav-lang {
    margin-top: 1rem;
    padding: 0.75rem 1rem !important;
    text-align: center;
    border-color: var(--border-hover);
  }

  .nav-lang .nav-title {
    font-size: 1rem !important;
  }
}

/* ============================================
   Mega Menu / Services Dropdown
   ============================================ */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  position: relative;
  padding: 0.6rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  border-radius: 8px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
}

.nav-dropdown-trigger::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--bg-card-hover);
  border-radius: 8px;
  opacity: 0;
  transform: scale(0.8);
  transition: all var(--transition-smooth);
}

.nav-dropdown-trigger:hover {
  color: var(--text-primary);
}

.nav-dropdown-trigger:hover::before {
  opacity: 1;
  transform: scale(1);
}

.nav-dropdown-trigger span {
  position: relative;
  z-index: 1;
}

.nav-dropdown-arrow {
  position: relative;
  z-index: 1;
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.nav-dropdown.open .nav-dropdown-arrow {
  transform: rotate(180deg);
}

/* Desktop dropdown panel */
@media (min-width: 1101px) {
  .nav-dropdown-trigger .nav-desc {
    display: none;
  }

  /* Invisible bridge fills the gap between trigger and panel so hover never breaks */
  .nav-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 0.7rem;
    background: transparent;
  }

  .nav-dropdown-panel {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 480px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.25rem;
    padding: 1rem;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--transition-fast), transform var(--transition-fast), visibility 0s 0.2s;
    z-index: 1001;
  }

  /* "Alle artikelen" / "All articles" — subtly different background */
  .nav-dropdown-all {
    background: rgba(15, 197, 128, 0.06);
  }

  .nav-dropdown-all:hover {
    background: rgba(15, 197, 128, 0.14) !important;
  }

  /* Wide blog-index CTA — spans both grid columns */
  .nav-dropdown-cta {
    grid-column: 1 / -1;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between;
    background: rgba(15, 197, 128, 0.09) !important;
    border: 1px solid rgba(15, 197, 128, 0.22);
    margin-top: 0.25rem;
    padding: 0.85rem 1.25rem !important;
    border-radius: 10px;
  }
  .nav-dropdown-cta:hover {
    background: rgba(15, 197, 128, 0.18) !important;
  }
  .nav-dropdown-cta .nav-dropdown-title {
    color: var(--primary) !important;
    font-weight: 700;
    letter-spacing: 0.01em;
  }
  .nav-dropdown-cta svg {
    color: var(--primary);
    flex-shrink: 0;
  }

  .nav-dropdown:hover .nav-dropdown-panel,
  .nav-dropdown.open .nav-dropdown-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
    transition: opacity var(--transition-fast), transform var(--transition-fast), visibility 0s 0s;
  }

  .nav-dropdown-item {
    display: flex;
    flex-direction: column;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    transition: background var(--transition-fast);
  }

  .nav-dropdown-item:hover {
    background: rgba(15, 197, 128, 0.08);
  }

  .nav-dropdown-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
  }

  .nav-dropdown-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.15rem;
    line-height: 1.3;
  }
}

/* Compact nav dropdown on mid-size screens */
@media (min-width: 1101px) and (max-width: 1400px) {
  .nav-dropdown-trigger {
    padding: 0.5rem 0.55rem;
    font-size: 0.82rem;
  }
}

/* Mobile mega menu (<=1100px) */
@media (max-width: 1100px) {
  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown-trigger {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-secondary);
    font-size: 1rem;
    position: relative;
  }

  .nav-dropdown-trigger .nav-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    width: 100%;
    text-align: center;
  }

  .nav-dropdown-trigger .nav-desc {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
    font-weight: 400;
    line-height: 1.3;
    width: 100%;
    text-align: center;
  }

  .nav-dropdown-arrow {
    position: absolute;
    right: 1.25rem;
    top: 1.15rem;
    width: 16px;
    height: 16px;
  }

  .nav-dropdown.open .nav-dropdown-arrow {
    transform: rotate(180deg);
  }

  .nav-dropdown-trigger:hover {
    background: rgba(15, 197, 128, 0.08);
    border-color: rgba(15, 197, 128, 0.2);
  }

  .nav-dropdown-panel {
    display: none;
    width: 100%;
    padding: 0.5rem 0 0.5rem 1rem;
    flex-direction: column;
    gap: 0.25rem;
  }

  .nav-dropdown.open .nav-dropdown-panel {
    display: flex;
  }

  .nav-dropdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    border: 1px solid transparent;
    transition: all var(--transition-fast);
  }

  .nav-dropdown-item:hover {
    background: rgba(15, 197, 128, 0.06);
    border-color: rgba(15, 197, 128, 0.15);
  }

  .nav-dropdown-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
  }

  .nav-dropdown-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.15rem;
  }

  /* Stagger animation for dropdown in mobile menu */
  .nav-menu .nav-dropdown {
    opacity: 0;
    transform: translateX(30px);
    transition: all var(--transition-smooth), opacity 0.3s ease, transform 0.3s ease;
  }

  .nav-menu.active .nav-dropdown {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: calc(var(--nav-height) + 2rem) clamp(1.5rem, 5vw, 4rem) 4rem;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 900px;
  animation: fadeInUp 1s ease-out;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 50px;
  font-size: 0.875rem;
  color: var(--primary);
  margin-bottom: 2rem;
}

.hero-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--mint) 50%, var(--accent-orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all var(--transition-smooth);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--bg-dark);
  box-shadow: 0 4px 20px rgba(15, 197, 128, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(15, 197, 128, 0.5);
}

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

.btn-secondary:hover {
  border-color: var(--primary);
  background: var(--bg-card);
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  animation: fadeInUp 1s ease-out 0.5s both;
}

.hero-scroll .mouse {
  width: 24px;
  height: 38px;
  border: 2px solid var(--border-subtle);
  border-radius: 12px;
  position: relative;
}

.hero-scroll .mouse::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--primary);
  border-radius: 2px;
  animation: scrollWheel 2s infinite;
}

/* ============================================
   Services Section - 3D Tilt Cards
   ============================================ */
.services {
  padding: var(--section-padding) clamp(1.5rem, 5vw, 4rem);
  position: relative;
  overflow: hidden;
}

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

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

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

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Limit to max 3 columns on large screens */
@media (min-width: 1000px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 3D Tilt Card */
.service-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 2.5rem;
  transform-style: preserve-3d;
  transition: all var(--transition-smooth);
  cursor: pointer;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(15, 197, 128, 0.1),
    transparent 40%
  );
  border-radius: inherit;
  opacity: 0;
  transition: opacity var(--transition-smooth);
  pointer-events: none;
}

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

.service-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-8px);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.3),
    0 0 60px rgba(15, 197, 128, 0.1);
}

.service-card-inner {
  transform: translateZ(30px);
}

.service-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 16px;
  margin-bottom: 1.5rem;
  font-size: 1.75rem;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  font-weight: 500;
  transition: gap var(--transition-fast);
}

.service-link:hover {
  gap: 1rem;
}

.service-link svg {
  width: 20px;
  height: 20px;
  transition: transform var(--transition-fast);
}

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

/* ============================================
   About Section
   ============================================ */
.about {
  padding: var(--section-padding) clamp(1.5rem, 5vw, 4rem);
  position: relative;
  overflow: hidden;
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 900px) {
  .about-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.about-image {
  position: relative;
  overflow: hidden;
}

.about-image-wrapper {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
}

.about-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-image-glow {
  position: absolute;
  inset: -50%;
  background: radial-gradient(circle, rgba(15, 197, 128, 0.2) 0%, transparent 70%);
  pointer-events: none;
  animation: pulse 4s ease-in-out infinite;
}

.about-content h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.about-content p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.8;
}

.about-highlight {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  margin-top: 1rem;
}

.about-highlight svg {
  color: var(--accent-orange);
}

.about-highlight span {
  color: var(--text-secondary);
}

.about-highlight a {
  color: var(--primary);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ============================================
   Homepage Random Blog Section
   ============================================ */
.homepage-blogs {
  padding: var(--section-padding) clamp(1.5rem, 5vw, 4rem);
}

.homepage-blogs .container {
  max-width: 1200px;
  margin: 0 auto;
}

.homepage-blogs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}

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

@media (max-width: 560px) {
  .homepage-blogs-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Contact Section
   ============================================ */
.contact {
  padding: var(--section-padding) clamp(1.5rem, 5vw, 4rem);
  position: relative;
}

.contact-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.contact-form {
  margin-top: 1.5rem;
  display: grid;
  gap: 1.5rem;
}

/* Alternative contact methods */
.contact-alt {
  margin-top: 3rem;
  text-align: center;
}

.contact-alt-label {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.contact-direct-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 700px;
  margin: 0 auto;
}

.contact-direct-item {
  text-decoration: none;
}

.contact-direct-link {
  color: var(--primary) !important;
}

/* Location info box */
.contact-location {
  margin-top: 3rem;
  text-align: center;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
}

.contact-location-title {
  font-family: var(--font-display);
  margin-bottom: 1rem;
}

.contact-location-text {
  color: var(--text-secondary);
}

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

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

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

.form-group {
  text-align: left;
}

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

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 197, 128, 0.1);
}

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

.form-group select {
  cursor: pointer;
  color-scheme: dark;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.5)' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}

/* Custom Select Dropdown */
.custom-select {
  position: relative;
  width: 100%;
}

.custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.custom-select-trigger:hover {
  border-color: var(--primary);
}

.custom-select.open .custom-select-trigger {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 197, 128, 0.1);
}

.custom-select-trigger svg {
  opacity: 0.5;
  transition: transform var(--transition-fast);
}

.custom-select.open .custom-select-trigger svg {
  transform: rotate(180deg);
}

.custom-select-options {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #0d1117;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  z-index: 100;
  display: none;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.custom-select.open .custom-select-options {
  display: block;
}

.custom-select-option {
  padding: 0.875rem 1.25rem;
  cursor: pointer;
  transition: background var(--transition-fast);
  color: var(--text-primary);
}

.custom-select-option:hover {
  background: rgba(15, 197, 128, 0.1);
}

.custom-select-option.selected {
  background: rgba(15, 197, 128, 0.15);
  color: var(--primary);
}

/* ============================================
   Footer
   ============================================ */
.footer {
  padding: 4rem clamp(1.5rem, 5vw, 4rem) 2rem;
  border-top: 1px solid var(--border-subtle);
  position: relative;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}

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

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

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

.footer-brand img {
  height: 48px;
  margin-bottom: 1rem;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.footer-nav h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-nav a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  transition: color var(--transition-fast);
}

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

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

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

.footer-socials {
  display: flex;
  gap: 1rem;
}

.footer-socials a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.footer-socials a:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

/* ============================================
   Bottom Light Effect
   ============================================ */
.bottom-light {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  pointer-events: none;
  z-index: 100;
  overflow: hidden;
}

.bottom-light::before {
  content: '';
  position: absolute;
  bottom: -50%;
  left: var(--light-x, 50%);
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(
    ellipse at center,
    rgba(15, 197, 128, 0.15) 0%,
    rgba(15, 197, 128, 0.05) 40%,
    transparent 70%
  );
  transition: left 0.3s ease-out;
}

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

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes scrollWheel {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(12px);
  }
}

/* Staggered animations for cards */
.service-card {
  animation: fadeInUp 0.6s ease-out both;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
.service-card:nth-child(5) { animation-delay: 0.5s; }
.service-card:nth-child(6) { animation-delay: 0.6s; }

/* ============================================
   Utility Classes
   ============================================ */
.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;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
}

/* ============================================
   Page-specific styles
   ============================================ */

/* Service detail pages */
.page-hero {
  padding: calc(var(--nav-height) + 4rem) clamp(1.5rem, 5vw, 4rem) 4rem;
  text-align: center;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.page-hero p {
  color: var(--text-secondary);
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto;
}

.page-content {
  padding: 4rem clamp(1.5rem, 5vw, 4rem);
  max-width: 900px;
  margin: 0 auto;
}

/* Center photo on mobile for over.html */
@media (max-width: 600px) {
  .page-content > div:first-child {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .page-content > div:first-child img {
    margin: 0 auto;
  }
}

.page-content h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  margin: 3rem 0 1rem;
}

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

.page-content p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.page-content ul {
  margin-bottom: 1.5rem;
}

.page-content li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
}

.page-content li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
}

/* Features grid on service pages */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.feature-item {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  transition: all var(--transition-fast);
}

.feature-item:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.feature-item h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

/* ============================================
   Blog Landing Page
   ============================================ */
.blog-grid-section {
  padding: 0 clamp(1.5rem, 5vw, 4rem) var(--section-padding);
  max-width: 1200px;
  margin: 0 auto;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}

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

.blog-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 280px;
  border: none;
  border-radius: 16px;
  background: transparent var(--card-bg) center/cover no-repeat;
  transition: all var(--transition-smooth);
}

.blog-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,15,0.92) 0%, rgba(10,10,15,0.55) 50%, rgba(10,10,15,0.18) 100%);
  z-index: 0;
  transition: opacity var(--transition-smooth);
}

.blog-card:hover {
  border-color: rgba(15, 197, 128, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 40px rgba(15,197,128,0.1);
}

.blog-card-image {
  display: none;
}

.blog-card-content {
  position: relative;
  z-index: 1;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.blog-card-content h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.blog-card-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex: 1;
}

/* Ask AI Bar */
.ask-ai-bar {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  margin-top: 1.5rem;
}

.ask-ai-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

.ask-ai-divider {
  width: 1px;
  height: 1.5rem;
  background: rgba(255, 255, 255, 0.15);
}

.ask-ai-icons {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.ask-ai-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  transition: all 0.2s ease;
  text-decoration: none;
}

.ask-ai-btn:hover {
  transform: scale(1.1);
  color: #fff;
}

.ask-ai-btn svg {
  width: 1rem;
  height: 1rem;
}

/* Blog Share Bar */
.blog-share-bar {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  margin: 2rem 0;
}

.blog-share-bar .share-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-right: 0.5rem;
  white-space: nowrap;
}

.blog-share-bar button,
.blog-share-bar a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  padding: 0;
}

.blog-share-bar button:hover,
.blog-share-bar a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.blog-share-bar svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.blog-share-bar .share-native {
  display: none;
}

.blog-share-bar .share-copied {
  display: none;
  font-size: 0.7rem;
  color: var(--primary);
  font-weight: 500;
  white-space: nowrap;
  margin-left: 0.25rem;
}

.blog-share-bar .share-copied.visible {
  display: inline;
}

@media (max-width: 768px) {
  .blog-share-bar .share-native {
    display: inline-flex;
  }
}

/* ============================================
   Blog Article Page
   ============================================ */
.blog-article {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
}

.blog-article-header {
  padding-top: calc(var(--nav-height) + 4rem);
  text-align: center;
  margin-bottom: 3rem;
}

.blog-article-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 1rem 0 1.5rem;
}

.blog-article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
}

.blog-author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-subtle);
}

.blog-author-name {
  font-weight: 600;
  color: var(--text-primary);
  display: block;
  font-size: 0.95rem;
}

.blog-meta-details {
  display: flex;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.blog-article-body h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  margin: 2.5rem 0 1rem;
}

.blog-article-body h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
}

.blog-article-body p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.8;
  font-size: 1.05rem;
}

.blog-article-body ul,
.blog-article-body ol {
  margin-bottom: 1.5rem;
  padding-left: 0;
}

.blog-article-body li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.blog-article-body li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
}

.blog-article-body blockquote {
  border-left: 3px solid var(--primary);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: var(--bg-card);
  border-radius: 0 12px 12px 0;
  color: var(--text-secondary);
  font-style: italic;
}

.blog-article-body code {
  background: rgba(15, 197, 128, 0.1);
  color: var(--primary);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9em;
}

.blog-article-body pre {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.blog-article-body pre code {
  background: none;
  color: var(--text-primary);
  padding: 0;
}

.blog-article-body strong {
  color: var(--text-primary);
  font-weight: 600;
}

.blog-article-body em {
  color: var(--text-secondary);
}

.blog-article-body hr {
  border: none;
  border-top: 1px solid var(--border-subtle);
  margin: 3rem 0;
}

/* Links inside blog body — clearly underlined, excluding glossary terms */
.blog-article-body a:not(.glossary-term) {
  color: var(--primary, #0fc580);
  text-decoration: underline;
  text-decoration-color: rgba(15, 197, 128, 0.35);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s ease, background 0.15s ease;
  border-radius: 2px;
}
.blog-article-body a:not(.glossary-term):hover {
  text-decoration-color: var(--primary, #0fc580);
  background: rgba(15, 197, 128, 0.08);
  padding: 0 2px;
  margin: 0 -2px;
}

/* Blog CTA Section */
.blog-cta-section {
  margin: 4rem 0;
}

.blog-cta-card {
  padding: 2.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  text-align: center;
}

.blog-cta-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.blog-cta-card p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* Blog Hero Image */
.blog-hero-image {
  margin: -1rem 0 2.5rem;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-darker);
}

.blog-hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Blog Related Articles */
.blog-related {
  margin: 3rem 0 0;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border-subtle);
}

.blog-related h2,
.blog-related h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.blog-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.blog-related-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 240px;
  padding: 1.5rem;
  border: none;
  border-radius: 16px;
  background: transparent var(--card-bg) center/cover no-repeat;
  transition: all var(--transition-smooth);
}

.blog-related-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,15,0.9) 0%, rgba(10,10,15,0.5) 55%, rgba(10,10,15,0.15) 100%);
  z-index: 0;
  transition: opacity var(--transition-smooth);
}

.blog-related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

.blog-related-card > * {
  position: relative;
  z-index: 1;
}

.blog-related-date,
.blog-related-card .blog-card-meta time {
  display: block;
  font-size: 0.72rem;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.5rem;
}

.blog-related-card h3,
.blog-related-card h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-primary);
}

.blog-related-card p {
  color: rgba(255,255,255,0.65);
  font-size: 0.85rem;
  line-height: 1.5;
  margin-top: 0.4rem;
}

/* Service Page - Related Blog Articles */
.service-blog-section {
  padding: 0 clamp(1.5rem, 5vw, 4rem);
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: var(--section-padding);
}

.service-blog-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.75rem;
}

.service-blog-section > p {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.service-blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

@media (max-width: 400px) {
  .service-blog-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   NEW SECTIONS - Website Repositioning 2026
   ============================================ */

/* Problem Section ("Herkenbaar?") */
.problem-section {
  padding: var(--section-padding) clamp(1.5rem, 5vw, 4rem);
  max-width: 1200px;
  margin: 0 auto;
}

.problem-section .section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.problem-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.problem-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 2rem;
  transition: border-color var(--transition-fast);
}

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

.problem-card .problem-emoji {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}

.problem-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.problem-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Solution Section */
.solution-section {
  padding: var(--section-padding) clamp(1.5rem, 5vw, 4rem);
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.solution-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.solution-section p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.solution-highlight {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(15, 197, 128, 0.08);
  border: 1px solid var(--border-subtle);
  border-radius: 9999px;
  padding: 0.75rem 1.5rem;
  margin-top: 1.5rem;
  color: var(--primary);
  font-weight: 500;
}

/* Audience Section ("Voor wie") */
.audience-section {
  padding: var(--section-padding) clamp(1.5rem, 5vw, 4rem);
  max-width: 1200px;
  margin: 0 auto;
}

.audience-section .section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.audience-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

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

.audience-profile {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 2rem;
}

.audience-profile h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--primary);
}

.audience-profile p,
.audience-profile li {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.audience-profile ul {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
}

.audience-profile li {
  padding: 0.4rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.audience-profile li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--primary);
}

/* Process Section ("Hoe het werkt") */
.process-section {
  padding: var(--section-padding) clamp(1.5rem, 5vw, 4rem);
  max-width: 900px;
  margin: 0 auto;
}

.process-section .section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.process-steps {
  display: grid;
  gap: 2rem;
}

.process-step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.process-step-number {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  background: rgba(15, 197, 128, 0.1);
  border: 1px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--primary);
  font-size: 1.1rem;
}

.process-step-content h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.process-step-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Credibility / Trust Section */
.credibility-section {
  padding: var(--section-padding) clamp(1.5rem, 5vw, 4rem);
  max-width: 1200px;
  margin: 0 auto;
}

.credibility-section .section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.credibility-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.credibility-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  transition: border-color var(--transition-fast);
}

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

.credibility-card .cred-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}

.credibility-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.credibility-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Capability Areas (for /hoe-ik-werk) */
.capabilities-section {
  padding: var(--section-padding) clamp(1.5rem, 5vw, 4rem);
  max-width: 1200px;
  margin: 0 auto;
}

.capabilities-section .section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
}

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

.capability-area {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  transition: border-color var(--transition-fast);
}

.capability-area:hover {
  border-color: var(--border-hover);
}

.capability-area .cap-icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
  display: block;
}

.capability-area h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.capability-area p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  flex: 1;
}

.cap-link {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 8px;
  text-decoration: none;
  transition: all var(--transition-fast);
  align-self: flex-start;
}

.cap-link:hover {
  background: var(--primary);
  color: var(--bg-primary);
}

/* Work Model Section */
.workmodel-section {
  padding: var(--section-padding) clamp(1.5rem, 5vw, 4rem);
  max-width: 1000px;
  margin: 0 auto;
}

.workmodel-section .section-header {
  text-align: center;
  margin-bottom: 3rem;
}

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

.workmodel-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 2.5rem;
  transition: border-color var(--transition-fast);
}

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

.workmodel-card.highlighted {
  border-color: var(--primary);
}

.workmodel-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.workmodel-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* HubSpot / Pack of Nodes Section */
.partner-section {
  padding: var(--section-padding) clamp(1.5rem, 5vw, 4rem);
  max-width: 900px;
  margin: 0 auto;
}

.partner-block {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 2.5rem;
  text-align: center;
}

.partner-block h2 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.partner-block p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

/* Expect Block (Contact page) */
.expect-block {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 2rem;
  margin-top: 2rem;
}

.expect-block h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.expect-block ul {
  list-style: none;
  padding: 0;
}

.expect-block li {
  color: var(--text-secondary);
  font-size: 0.95rem;
  padding: 0.5rem 0;
  padding-left: 1.75rem;
  position: relative;
  line-height: 1.5;
}

.expect-block li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 600;
}

/* About Page - Differentiators */
.differentiators-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

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

.differentiator-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 2rem;
  transition: border-color var(--transition-fast);
}

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

.differentiator-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.differentiator-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Service Page Degradation - Intro Banner */
.service-intro-banner {
  background: rgba(15, 197, 128, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin: 0 auto 2rem;
  max-width: 800px;
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.service-intro-banner a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.service-intro-banner a:hover {
  text-decoration: underline;
}

/* ============================================
   GLOSSARY SYSTEM
   ============================================ */

/* Inline tooltip terms in blog content */
.glossary-term {
  position: relative;
  border-bottom: 1px dotted var(--primary, #0fc580);
  cursor: help;
  color: inherit;
  text-decoration: none;
  background: linear-gradient(180deg, transparent 92%, rgba(15, 197, 128, 0.18) 92%);
  transition: background 0.2s ease;
}
.glossary-term dfn { font-style: normal; }
.glossary-term:hover,
.glossary-term:focus-visible {
  background: linear-gradient(180deg, transparent 88%, rgba(15, 197, 128, 0.32) 88%);
  outline: none;
}
.glossary-term:focus-visible { box-shadow: 0 0 0 2px rgba(15, 197, 128, 0.4); border-radius: 2px; }

/* Tooltip popover — fixed-positioned, shown via JS on desktop hover */
.glossary-popover {
  display: none;
  position: fixed;
  z-index: 9000;
  margin: 0;
  padding: 1.25rem 1.4rem;
  width: min(360px, calc(100vw - 24px));
  background: rgba(10, 10, 15, 0.97);
  color: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 197, 128, 0.35);
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(15, 197, 128, 0.08);
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  line-height: 1.5;
  backdrop-filter: blur(14px);
  pointer-events: auto;
}
.glossary-popover-term {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary, #0fc580);
  margin-bottom: 0.4rem;
}
.glossary-popover-short {
  margin: 0 0 0.85rem 0;
  color: rgba(255, 255, 255, 0.82);
}
.glossary-popover-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-orange, #f5b024);
  text-decoration: none;
}
.glossary-popover-link:hover { text-decoration: underline; }

/* Mobile inline definition (shown inline in text flow on tap) */
.glossary-inline-def {
  display: none;
}
.glossary-inline-def.is-open {
  display: block;
  margin: 0.55rem 0 0.75rem;
  padding: 0.75rem 1rem 0.75rem 1rem;
  background: rgba(15, 197, 128, 0.07);
  border: 1px solid rgba(15, 197, 128, 0.22);
  border-left: 3px solid var(--primary, #0fc580);
  border-radius: 0 8px 8px 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
}
.glossary-inline-term {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--primary, #0fc580);
  margin-bottom: 0.3rem;
}
.glossary-inline-short {
  display: block;
  margin-bottom: 0.5rem;
}
.glossary-inline-link {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-orange, #f5b024);
  text-decoration: none;
}
.glossary-inline-link:hover { text-decoration: underline; }

/* On desktop: hide inline defs entirely (only used on mobile) */
@media (pointer: fine) and (min-width: 768px) {
  .glossary-inline-def { display: none !important; }
}

/* Term page (article layout) */
.glossary-article {
  max-width: 1180px;
  margin: 0 auto;
  padding: 3rem clamp(1.25rem, 5vw, 4rem) var(--section-padding, 6rem);
}
.glossary-article-header {
  text-align: center;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.glossary-article-header h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  margin: 1rem 0 0.75rem;
  color: #fff;
}
.glossary-breadcrumb {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 1rem;
}
.glossary-breadcrumb a { color: rgba(255, 255, 255, 0.7); text-decoration: none; }
.glossary-breadcrumb a:hover { color: var(--primary, #0fc580); }
.glossary-breadcrumb span { margin: 0 0.4rem; opacity: 0.5; }
.glossary-aliases {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
  font-style: italic;
  margin: 0.5rem 0;
}
.glossary-short {
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  max-width: 720px;
  margin: 1rem auto 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
}

/* Category badges */
.glossary-category { display: inline-flex; }
.glossary-category-concept   { background: rgba(15, 197, 128, 0.15);  color: var(--primary, #0fc580); border-color: rgba(15, 197, 128, 0.4); }
.glossary-category-tool      { background: rgba(245, 176, 36, 0.15);  color: var(--accent-orange, #f5b024); border-color: rgba(245, 176, 36, 0.4); }
.glossary-category-framework { background: rgba(221, 94, 99, 0.15);   color: var(--accent-coral, #dd5e63); border-color: rgba(221, 94, 99, 0.4); }
.glossary-category-metric    { background: rgba(250, 214, 127, 0.15); color: var(--accent-gold, #fad67f); border-color: rgba(250, 214, 127, 0.4); }

/* Two-column content layout: body + mini-graph sidebar */
.glossary-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 1024px) {
  .glossary-content { grid-template-columns: minmax(0, 1fr) 320px; }
}
.glossary-body { min-width: 0; }
.glossary-body h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  margin: 2.5rem 0 1rem;
  color: #fff;
}
.glossary-body p { color: rgba(255, 255, 255, 0.82); line-height: 1.75; margin-bottom: 1.1rem; }
.glossary-body strong { color: #fff; }
.glossary-body a { color: var(--primary, #0fc580); text-decoration: none; }
.glossary-body a:hover { text-decoration: underline; }

/* Related-term chips */
.glossary-related-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}
.glossary-chip {
  display: inline-block;
  padding: 0.5rem 0.95rem;
  border: 1px solid rgba(15, 197, 128, 0.35);
  border-radius: 999px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  background: rgba(15, 197, 128, 0.05);
  transition: all 0.2s ease;
}
.glossary-chip:hover {
  background: rgba(15, 197, 128, 0.15);
  border-color: var(--primary, #0fc580);
  color: #fff;
  transform: translateY(-1px);
}

/* FAQ block */
.glossary-faq {
  margin-top: 2.5rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
}
.glossary-faq details {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.85rem 0;
}
.glossary-faq details:last-child { border-bottom: none; }
.glossary-faq summary {
  cursor: pointer;
  font-weight: 600;
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
}
.glossary-faq summary:hover { color: var(--primary, #0fc580); }
.glossary-faq details[open] summary { color: var(--primary, #0fc580); }
.glossary-faq details p { margin: 0.6rem 0 0.4rem; color: rgba(255, 255, 255, 0.78); }

/* Backlinks ("Where this appears") */
.glossary-backlinks { margin-top: 2.5rem; }
.glossary-backlinks-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
  margin-top: 1rem;
}
.glossary-backlinks-list a {
  display: block;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}
.glossary-backlinks-list a:hover {
  background: rgba(15, 197, 128, 0.08);
  border-color: rgba(15, 197, 128, 0.3);
  color: #fff;
  transform: translateX(2px);
}
.glossary-backlinks-list a span {
  display: block;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 0.15rem;
}

/* Mini knowledge graph sidebar (desktop only) */
.glossary-mini-graph {
  display: none;
}
@media (min-width: 1024px) {
  .glossary-mini-graph {
    display: block;
    position: sticky;
    top: 6rem;
    align-self: start;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(15, 197, 128, 0.15);
    border-radius: 14px;
  }
}
.glossary-mini-graph h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 1rem;
  color: rgba(255, 255, 255, 0.85);
}
.glossary-mini-graph svg {
  width: 100%;
  height: auto;
  display: block;
}
.glossary-mini-graph svg .node-circle { transition: all 0.2s ease; cursor: pointer; }
.glossary-mini-graph svg .node-label { font-family: 'Inter', sans-serif; font-size: 11px; fill: rgba(255, 255, 255, 0.85); pointer-events: none; }
.glossary-mini-graph svg .edge-line { stroke: rgba(15, 197, 128, 0.25); stroke-width: 1.2; fill: none; }
.glossary-mini-graph svg a:hover .node-circle { stroke-width: 3; transform-origin: center; }
.glossary-mini-graph-caption {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  margin: 0.85rem 0 0;
}

/* Glossary index page */
.glossary-graph-section {
  max-width: 1280px;
  margin: 0 auto 3rem;
  padding: 0 clamp(1.25rem, 5vw, 4rem);
}
.glossary-graph-container {
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(15, 197, 128, 0.18);
  border-radius: 18px;
  overflow: hidden;
}
.glossary-graph-canvas {
  width: 100%;
  height: 560px;
  background: radial-gradient(ellipse at center, rgba(15, 197, 128, 0.04), transparent 70%);
}
@media (max-width: 768px) { .glossary-graph-canvas { height: 380px; } }
.glossary-graph-legend {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  z-index: 5;
}
.glossary-cat {
  display: inline-flex;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid currentColor;
  background: rgba(10, 10, 15, 0.7);
  cursor: pointer;
  user-select: none;
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.glossary-cat:hover {
  background: rgba(10, 10, 15, 0.92);
  box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 18%, transparent);
}
.glossary-cat:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
.glossary-cat.is-active {
  background: color-mix(in srgb, currentColor 22%, rgba(10, 10, 15, 0.9));
  box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 35%, transparent);
  transform: translateY(-1px);
}
.glossary-cat::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: currentColor;
  margin-right: 0.5rem;
}
.glossary-cat-concept   { color: var(--primary, #0fc580); }
.glossary-cat-tool      { color: var(--accent-orange, #f5b024); }
.glossary-cat-framework { color: var(--accent-coral, #dd5e63); }
.glossary-cat-metric    { color: var(--accent-gold, #fad67f); }

/* Zoom + fit controls — injected into .glossary-graph-container / .blog-graph-wrap */
.glossary-graph-controls {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  z-index: 6;
}
.graph-ctrl {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 8px;
  border: 1px solid rgba(15, 197, 128, 0.35);
  background: rgba(10, 10, 15, 0.85);
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.graph-ctrl:hover {
  background: rgba(15, 197, 128, 0.18);
  border-color: var(--primary, #0fc580);
  color: #fff;
}
.graph-ctrl:active { transform: translateY(1px); }
.graph-ctrl:focus-visible {
  outline: 2px solid var(--primary, #0fc580);
  outline-offset: 2px;
}

.glossary-index-section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 4rem) var(--section-padding, 6rem);
}
.glossary-search-bar {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
#glossary-search {
  flex: 1;
  min-width: 220px;
  padding: 0.85rem 1.1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
}
#glossary-search:focus { outline: none; border-color: var(--primary, #0fc580); }
.glossary-filter-chips { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.glossary-filter-chip {
  padding: 0.5rem 0.95rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}
.glossary-filter-chip:hover { color: #fff; border-color: rgba(15, 197, 128, 0.4); }
.glossary-filter-chip.active {
  background: rgba(15, 197, 128, 0.15);
  border-color: var(--primary, #0fc580);
  color: var(--primary, #0fc580);
}

.glossary-letter-group { margin-bottom: 2rem; }
.glossary-letter-group h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary, #0fc580);
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(15, 197, 128, 0.2);
}
.glossary-entries {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.glossary-entry {
  display: block;
  padding: 1.1rem 1.2rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: all 0.2s ease;
}
.glossary-entry:hover {
  background: rgba(15, 197, 128, 0.06);
  border-color: rgba(15, 197, 128, 0.3);
  transform: translateY(-2px);
}
.glossary-entry-term {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  display: block;
  margin-bottom: 0.3rem;
}
.glossary-entry-short {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Print: expand definitions inline */
@media print {
  .glossary-term { border-bottom: none; background: none; }
  .glossary-term::after { content: " (" attr(data-definition) ")"; font-style: italic; color: #555; }
  .glossary-popover, .glossary-mini-graph, .glossary-graph-section, .blog-mini-graph { display: none !important; }
}

/* ============================================
   BLOG POST MINI KNOWLEDGE GRAPH
   Dynamically injected by initGlossaryTooltips for blog posts.
   On wide screens it floats as a sticky sidebar; on narrow screens it
   appears as a block element after the article content.
   ============================================ */
.blog-mini-graph {
  margin: 3rem auto 2rem;
  padding: 1.5rem;
  max-width: 720px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(15, 197, 128, 0.18);
  border-radius: 14px;
}
.blog-mini-graph h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 1rem;
  color: rgba(255, 255, 255, 0.9);
}
.blog-mini-graph-svg {
  display: flex;
  justify-content: center;
}
.blog-mini-graph svg {
  width: 100%;
  height: auto;
  max-width: 380px;
  display: block;
}
.blog-mini-graph svg .node-circle { transition: all 0.2s ease; cursor: pointer; }
.blog-mini-graph svg .node-label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  fill: rgba(255, 255, 255, 0.85);
  pointer-events: none;
}
.blog-mini-graph svg .edge-line {
  stroke: rgba(15, 197, 128, 0.25);
  stroke-width: 1.2;
  fill: none;
}
.blog-mini-graph svg a:hover .node-circle {
  stroke-width: 3.5;
}
.blog-mini-graph svg a:focus-visible {
  outline: 2px solid #0fc580;
  outline-offset: 2px;
  border-radius: 50%;
}
.blog-mini-graph-caption {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
  margin: 0.85rem 0 0;
  text-align: center;
  line-height: 1.5;
}
.blog-mini-graph-caption span {
  display: inline-block;
  margin-top: 0.25rem;
  color: rgba(255, 255, 255, 0.4);
}

/* On wide screens float as a sticky right sidebar next to the article body */
@media (min-width: 1400px) {
  .blog-mini-graph {
    position: fixed;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 320px;
    max-width: 320px;
    margin: 0;
    z-index: 30;
    max-height: calc(100vh - 8rem);
    overflow-y: auto;
    backdrop-filter: blur(12px);
    background: rgba(10, 10, 15, 0.85);
  }
  .blog-mini-graph svg { max-width: 280px; }
}

