/* -------------------------------------------------------------
   Autofocuss Marketing Brand Stylesheet
   Fonts: Plus Jakarta Sans & Inter (Google Fonts loaded in index.html)
   Colors: Default Light Theme with obsidian dark accents
------------------------------------------------------------- */

/* CSS Variables */
:root {
  /* Fonts */
  --font-headings: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  /* Strict Base Colors */
  --bg-dark: #1C1C1C;
  --bg-light: #FFFFFF;
  --text-light: #FFFFFF;
  --text-dark: #1C1C1C;
  --text-muted-dark: #94A3B8;
  --text-muted-light: #475569;
  --border-light: rgba(0, 0, 0, 0.08);
  --card-bg-light: #F8FAFC;
  
  /* Pop Colors */
  --pop-yellow: #F5C518;
  --pop-orange: #FF6B35;
  --pop-magenta: #E6399B;
  --pop-purple: #6A1B9A;
  --pop-blue: #007BFF;
  --pop-teal: #1ABC9C;

  /* Theme Defaults (Starts as SaaS Theme) */
  --accent-primary: var(--pop-blue);
  --accent-secondary: var(--pop-teal);
  --accent-glow: rgba(0, 123, 255, 0.15);
  
  /* Easing */
  --ease-premium: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Dynamic Body Themes governed by JS tab changes */
body.theme-saas {
  --accent-primary: var(--pop-blue);
  --accent-secondary: var(--pop-teal);
  --accent-glow: rgba(0, 123, 255, 0.2);
}

body.theme-healthcare {
  --accent-primary: var(--pop-magenta);
  --accent-secondary: var(--pop-purple);
  --accent-glow: rgba(230, 57, 155, 0.2);
}

body.theme-hospitality {
  --accent-primary: var(--pop-orange);
  --accent-secondary: var(--pop-yellow);
  --accent-glow: rgba(255, 107, 53, 0.2);
}

/* CSS Resets & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none; /* Make UI feel app-like */
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-light);
  color: var(--text-dark);
  font-family: var(--font-body);
  overflow-x: hidden;
  max-width: 100%;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #F1F5F9;
}
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary);
}

/* Base Headings & Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  font-weight: 600;
  letter-spacing: -0.02em;
}

p {
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
}

/* Custom Cursor */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  border: 1.5px solid var(--accent-primary);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, border-color 0.3s ease, background-color 0.2s;
  z-index: 9999;
}

.custom-cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  background-color: var(--accent-secondary);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width 0.1s, height 0.1s, background-color 0.3s ease;
  z-index: 10000;
}

/* Hover effects for cursor */
body.cursor-hover .custom-cursor {
  width: 48px;
  height: 48px;
  background-color: var(--accent-glow);
  border-color: var(--accent-secondary);
}

body.cursor-hover .custom-cursor-dot {
  width: 8px;
  height: 8px;
}

/* Global Container utilities */
.section-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 24px;
}

/* Header & Navigation Styles */
#nav-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  z-index: 1000;
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease, border-bottom 0.3s ease;
  border-bottom: 1px solid transparent;
}

#nav-header.scrolled {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-container {
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo Image Styling */
.logo-img {
  height: 38px;
  width: auto;
  display: block;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-item {
  color: var(--text-dark);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  opacity: 0.8;
  transition: opacity 0.3s, color 0.3s;
}

.nav-item:hover {
  opacity: 1;
  color: var(--accent-primary);
}

/* Nav & General Button Styling */
.nav-btn {
  background: transparent;
  color: var(--text-dark);
  border: 1px solid var(--accent-primary);
  padding: 10px 20px;
  border-radius: 30px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s var(--ease-premium);
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 15px var(--accent-glow);
}

.nav-btn:hover {
  background: var(--accent-primary);
  color: var(--bg-light);
  transform: translateY(-2px);
  box-shadow: 0 0 25px var(--accent-primary);
}

/* Mobile Hamburger Menu */
.hamburger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1002;
}

.hamburger-menu span {
  width: 100%;
  height: 2px;
  background-color: var(--text-dark);
  transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
  border-radius: 2px;
}

.hamburger-menu.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Nav Panel */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background-color: var(--bg-light);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: right 0.5s var(--ease-premium);
  border-left: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-nav.active {
  right: 0;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.mobile-nav-item {
  color: var(--text-dark);
  text-decoration: none;
  font-family: var(--font-headings);
  font-size: 28px;
  font-weight: 500;
  transition: color 0.3s;
}

.mobile-nav-item:hover {
  color: var(--accent-primary);
}

.mobile-nav-btn {
  background: var(--accent-primary);
  color: var(--text-light);
  border: none;
  padding: 16px 32px;
  border-radius: 30px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  margin-top: 16px;
  box-shadow: 0 0 20px var(--accent-glow);
  transition: transform 0.3s, box-shadow 0.3s;
}

.mobile-nav-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px var(--accent-primary);
}

/* Hero Section Styles */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  overflow: hidden;
}

.hero-bg-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* Blurry ambient glow spheres (softened for light background) */
.glow-sphere {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.18;
  transition: background-color 0.8s ease;
}

.sphere-1 {
  width: 500px;
  height: 500px;
  top: -10%;
  right: -5%;
  background-color: var(--accent-primary);
}

.sphere-2 {
  width: 400px;
  height: 400px;
  bottom: -10%;
  left: -5%;
  background-color: var(--accent-secondary);
}

.sphere-3 {
  width: 300px;
  height: 300px;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--accent-glow);
}

.grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  background-position: center;
  mask-image: radial-gradient(circle 600px at center, black, transparent);
  -webkit-mask-image: radial-gradient(circle 600px at center, black, transparent);
}

/* Global Connectivity Network SVG Styling */
.hero-network-visual {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0.65;
  pointer-events: none;
}

.network-svg {
  width: 100%;
  height: 100%;
  max-width: 1200px;
  max-height: 600px;
  object-fit: contain;
}

/* Path stream scroll animations */
.network-path {
  stroke-dasharray: 8, 8;
  animation: network-dash-scroll 25s linear infinite;
  opacity: 0.4;
  transition: stroke 0.8s ease;
}

@keyframes network-dash-scroll {
  to {
    stroke-dashoffset: -500;
  }
}

/* Pulsing dot nodes using SVG 'r' values to avoid transform-origin bugs */
.node-glow {
  fill: var(--accent-primary);
  opacity: 0.12;
  transition: fill 0.8s ease;
}

.node-us .node-glow,
.node-uk .node-glow,
.node-uae .node-glow {
  animation: pulse-node-glow-r 3s infinite ease-in-out;
}

.node-in .node-glow {
  animation: pulse-node-glow-r-large 3.5s infinite ease-in-out;
}

@keyframes pulse-node-glow-r {
  0%, 100% {
    r: 16px;
    opacity: 0.12;
  }
  50% {
    r: 28px;
    opacity: 0.28;
  }
}

@keyframes pulse-node-glow-r-large {
  0%, 100% {
    r: 20px;
    opacity: 0.12;
  }
  50% {
    r: 36px;
    opacity: 0.28;
  }
}

/* Localized label fonts */
.node-label {
  font-family: var(--font-headings);
  font-size: 11px;
  font-weight: 700;
  fill: var(--text-dark);
  text-anchor: middle;
  letter-spacing: 0.08em;
  opacity: 0.75;
}

/* Particle streams running along exact bezier paths */
.pulse-particle {
  offset-rotate: auto;
  animation: move-stream-particle 4.5s infinite linear;
  opacity: 0;
  transition: fill 0.8s ease;
}

.part-us-uk {
  offset-path: path("M220 180 Q350 140 480 200");
  animation-duration: 4.5s;
}

.part-uk-uae {
  offset-path: path("M480 200 Q580 280 680 240");
  animation-duration: 3.5s;
  animation-delay: 0.8s;
}

.part-uae-in {
  offset-path: path("M680 240 Q750 320 820 400");
  animation-duration: 3.2s;
  animation-delay: 0.4s;
}

.part-us-in {
  offset-path: path("M220 180 Q520 450 820 400");
  animation-duration: 5.5s;
  animation-delay: 1.5s;
}

@keyframes move-stream-particle {
  0% {
    offset-distance: 0%;
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  92% {
    opacity: 1;
  }
  100% {
    offset-distance: 100%;
    opacity: 0;
  }
}


.hero-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  z-index: 2;
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-tagline-container {
  margin-bottom: 24px;
}

.badge-ai {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid var(--border-light);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dark);
}

.pulse-indicator {
  width: 8px;
  height: 8px;
  background-color: var(--pop-teal);
  border-radius: 50%;
  animation: pulse-glow 2s infinite;
}

.hero-title {
  font-size: 72px;
  line-height: 1.05;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 24px;
  max-width: 900px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: background 0.8s ease;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-muted-light);
  max-width: 700px;
  margin-bottom: 40px;
}

/* Niche Quick Switcher styling */
.niche-quick-toggle {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.05);
  padding: 6px;
  border-radius: 40px;
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.niche-tab {
  background: transparent;
  border: none;
  color: var(--text-muted-light);
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 30px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.niche-tab:hover {
  color: var(--text-dark);
  background: rgba(0, 0, 0, 0.02);
}

.niche-tab.active {
  background: var(--text-dark);
  color: var(--bg-light);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.niche-tab .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.hero-dynamic-details {
  height: 48px;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-group {
  display: none;
  gap: 24px;
  font-size: 14px;
  animation: fadeInFocus 0.5s var(--ease-premium);
}

.detail-group.active {
  display: flex;
}

.detail-tag {
  color: var(--accent-primary);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.detail-stat {
  color: var(--text-dark);
}

.detail-stat strong {
  font-family: var(--font-headings);
  font-size: 16px;
  color: var(--accent-secondary);
}

/* Button CTA blocks */
.hero-ctas {
  display: flex;
  gap: 16px;
}

.btn-primary {
  background: var(--accent-primary);
  color: var(--bg-light);
  border: none;
  padding: 16px 36px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 0 20px var(--accent-glow);
  transition: all 0.3s var(--ease-premium);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 30px var(--accent-primary);
}

.btn-secondary {
  background: transparent;
  color: var(--text-dark);
  border: 1px solid rgba(0, 0, 0, 0.15);
  padding: 16px 36px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s;
}

.btn-secondary:hover {
  border-color: var(--text-dark);
  background: rgba(0, 0, 0, 0.03);
}

/* Niches Section styling */
.niches-section {
  position: relative;
  background-color: var(--bg-light);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-title {
  font-size: 48px;
  text-transform: uppercase;
  margin-bottom: 16px;
  line-height: 1.1;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-muted-light);
  max-width: 600px;
  margin: 0 auto;
}


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

.niche-card {
  background: var(--card-bg-light);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 40px 32px;
  transition: all 0.4s var(--ease-premium);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.01), 0 2px 4px -1px rgba(0, 0, 0, 0.01);
}

.card-focus-indicator {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 2px solid transparent;
  border-radius: 20px;
  pointer-events: none;
  transition: border-color 0.4s ease;
}

.niche-card:hover {
  transform: translateY(-8px);
  background: #FFFFFF;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

.niche-card:hover .card-focus-indicator {
  border-color: var(--theme-color);
}

/* Apply CSS themes on cards hover dynamic color adjustments */
.niche-card[data-niche="saas"] { --theme-color: var(--pop-blue); }
.niche-card[data-niche="healthcare"] { --theme-color: var(--pop-magenta); }
.niche-card[data-niche="hospitality"] { --theme-color: var(--pop-orange); }

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

.niche-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.niche-badge {
  border: 1px solid;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.niche-card-title {
  font-size: 24px;
  margin-bottom: 16px;
  color: var(--text-dark);
}

.niche-card-desc {
  font-size: 14px;
  color: var(--text-muted-light);
  margin-bottom: 24px;
}

.niche-list {
  list-style: none;
  margin-bottom: 32px;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.niche-list li {
  position: relative;
  padding-left: 16px;
  color: var(--text-muted-light);
}

.niche-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--theme-color);
}

.niche-list li strong {
  color: var(--text-dark);
  font-weight: 600;
}

.niche-card-footer {
  border-top: 1px solid var(--border-light);
  padding-top: 20px;
  font-size: 14px;
  font-weight: 600;
}


/* AI Engine Section */
.ai-section {
  position: relative;
  overflow: hidden;
  background: var(--bg-dark);
}

.ai-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 24px;
}

.ai-pill {
  display: inline-block;
  background: rgba(26, 188, 156, 0.1);
  color: var(--pop-teal);
  border: 1px solid rgba(26, 188, 156, 0.2);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.ai-title {
  font-size: 48px;
  line-height: 1.1;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.ai-desc {
  color: var(--text-muted-dark);
  font-size: 16px;
  margin-bottom: 40px;
}

.ai-feature-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

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

.ai-feat-item > div {
  flex: 1;
  min-width: 0;
}

.feat-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}

.ai-feat-item h4 {
  font-size: 18px;
  margin-bottom: 4px;
  color: var(--text-light);
}

.ai-feat-item p {
  font-size: 13px;
  color: var(--text-muted-dark);
}

/* Dynamic Interactive SVG Hub Visual */
.ai-visual-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.ai-interactive-hub {
  width: 320px;
  height: 320px;
  position: relative;
}

@media (max-width: 432px) {
  .ai-interactive-hub {
    width: calc(100vw - 128px);
    height: calc(100vw - 128px);
  }
}

.connection-svg {
  position: absolute;
  top: -12.5%;
  left: -12.5%;
  width: 125%;
  height: 125%;
  z-index: 1;
  pointer-events: none;
}

.conn-line {
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 1.5;
  transition: stroke 0.3s, stroke-width 0.3s;
}

.conn-line.active {
  stroke: var(--accent-primary);
  stroke-width: 2.5;
}

.orbit-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  z-index: 1;
}

.hub-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 110px;
  height: 110px;
  background: #111;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hub-core-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--accent-primary);
  border-radius: 50%;
  opacity: 0.15;
  filter: blur(10px);
  animation: pulse-core 4s infinite ease-in-out;
}

.hub-core-icon {
  width: 40px;
  height: 40px;
  animation: spin-clockwise 25s linear infinite;
  z-index: 2;
}

.hub-label {
  font-size: 8px;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: 0.1em;
  margin-top: 4px;
  z-index: 2;
}

/* Orbit Nodes positionings */
.orbit-node {
  position: absolute;
  width: 80px;
  height: 48px;
  background: rgba(30, 30, 35, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  cursor: pointer;
  transition: all 0.3s var(--ease-premium);
}

.node-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted-dark);
  transition: background-color 0.3s, transform 0.3s;
}

.node-text {
  font-size: 11px;
  font-weight: 600;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s var(--ease-premium);
  position: absolute;
}

.node-1 {
  top: -24px;
  left: calc(50% - 40px);
}
.node-1 .node-dot { top: -4px; left: 36px; }

.node-2 {
  top: calc(50% - 24px);
  right: -40px;
}
.node-2 .node-dot { right: -4px; top: 20px; }

.node-3 {
  bottom: -24px;
  left: calc(50% - 40px);
}
.node-3 .node-dot { bottom: -4px; left: 36px; }

.node-4 {
  top: calc(50% - 24px);
  left: -40px;
}
.node-4 .node-dot { left: -4px; top: 20px; }

.orbit-node:hover, .orbit-node.active {
  background: #FFFFFF;
  border-color: #FFFFFF;
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.orbit-node:hover .node-dot, .orbit-node.active .node-dot {
  background: var(--accent-primary);
  transform: scale(1.5);
}

.orbit-node:hover .node-text, .orbit-node.active .node-text {
  opacity: 1;
  transform: scale(1);
  color: var(--bg-dark);
}

.hub-info-box {
  width: 100%;
  max-width: 320px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 16px;
  font-size: 12px;
  color: var(--text-muted-dark);
  text-align: center;
  min-height: 70px;
}

/* High Contrast light comparison block */
.why-us-section {
  background-color: var(--bg-light);
  color: var(--text-dark);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.why-us-section .section-title {
  color: var(--text-dark);
}

.why-us-section .section-subtitle {
  color: var(--text-muted-light);
}

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

.comparison-panel {
  border-radius: 24px;
  padding: 48px;
  transition: all 0.3s ease;
}

.agency-panel {
  background: rgba(0,0,0,0.02);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.consulting-panel {
  background: var(--bg-dark);
  color: var(--text-light);
  box-shadow: 0 30px 60px rgba(0,0,0,0.2);
  border: 1px solid rgba(255, 255, 255, 0.02);
}

.panel-title {
  font-size: 28px;
  margin-bottom: 40px;
  text-transform: uppercase;
}

.consulting-panel .panel-title {
  color: #FFFFFF;
}

.panel-items {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.comp-item {
  display: flex;
  gap: 20px;
}

.comp-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 4px;
}

.error-icon {
  background: rgba(220, 38, 38, 0.1);
  color: #DC2626;
}

.success-icon {
  background: rgba(16, 185, 129, 0.1);
  color: #10B981;
}

.comp-item h5 {
  font-size: 16px;
  margin-bottom: 6px;
}

.comp-item p {
  font-size: 13px;
}

.agency-panel .comp-item p { color: var(--text-muted-light); }
.consulting-panel .comp-item p { color: var(--text-muted-dark); }

/* ROI Simulator Section Styling */
.simulator-section {
  background: var(--bg-light);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  color: var(--text-dark);
}

.simulator-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.text-left {
  text-align: left !important;
}

.simulator-controls {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.control-group label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted-light);
}

.label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#label-spend-val {
  font-family: var(--font-headings);
  font-size: 20px;
  color: var(--accent-primary);
  font-weight: 700;
}

.calc-select {
  background: #F8FAFC;
  border: 1px solid var(--border-light);
  padding: 16px;
  border-radius: 12px;
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  cursor: pointer;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.calc-select:focus {
  border-color: var(--accent-primary);
  background: #FFFFFF;
  box-shadow: 0 0 15px var(--accent-glow);
}

.calc-range {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #E2E8F0;
  outline: none;
}

.calc-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-primary);
  cursor: pointer;
  transition: transform 0.15s, background-color 0.3s;
  box-shadow: 0 0 10px var(--accent-glow);
}

.calc-range::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* Simulator display cards */
.simulator-display {
  perspective: 1000px;
}

.display-panel {
  background: #F8FAFC;
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 48px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.02);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.display-metric-box {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.01);
}

.metric-title {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--text-muted-light);
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.metric-value {
  font-family: var(--font-headings);
  font-size: 36px;
  font-weight: 700;
  color: var(--text-dark);
}

.dashboard-visuals {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-top: 1px solid var(--border-light);
  padding-top: 24px;
}

.progress-bar-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.progress-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted-light);
}

.progress-row span:last-child {
  font-weight: 600;
  color: var(--text-dark);
}

.bar-bg {
  width: 100%;
  height: 6px;
  background: #E2E8F0;
  border-radius: 3px;
  overflow: hidden;
}


.bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.6s var(--ease-premium), background-color 0.8s ease;
}

/* Team Section Styles */
.team-section {
  background-color: var(--bg-light);
  color: var(--text-dark);
}

.team-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.team-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-primary);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.team-title {
  font-size: 48px;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 24px;
}

.team-desc {
  font-size: 15px;
  color: var(--text-muted-light);
  margin-bottom: 40px;
}

.team-values {
  display: flex;
  gap: 48px;
}

.val-box h3 {
  font-size: 32px;
  color: var(--accent-primary);
  margin-bottom: 4px;
}

.val-box p {
  font-size: 12px;
  color: var(--text-muted-light);
  font-weight: 500;
}

/* Vibe Card Grid */
.team-visual-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.vibe-card {
  background: var(--bg-dark);
  color: var(--text-light);
  border-radius: 20px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid rgba(255, 255, 255, 0.02);
}

.card-a { grid-column: span 2; }

.vibe-glow {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100px;
  height: 100px;
  background: var(--accent-primary);
  opacity: 0.15;
  filter: blur(30px);
  border-radius: 50%;
  transition: transform 0.5s;
}

.vibe-card:hover .vibe-glow {
  transform: scale(1.8);
}

.vibe-card h4 {
  font-size: 20px;
  margin-bottom: 8px;
  z-index: 2;
}

.vibe-card p {
  font-size: 12px;
  color: var(--text-muted-dark);
  z-index: 2;
}

/* Contact / Booking section */
.contact-section {
  background: var(--bg-light);
  border-top: 1px solid var(--border-light);
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}

.contact-title {
  font-size: 48px;
  line-height: 1.1;
  text-transform: uppercase;
  margin-bottom: 24px;
  color: var(--text-dark);
}

.contact-desc {
  color: var(--text-muted-light);
  font-size: 15px;
  margin-bottom: 48px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text-dark);
  font-size: 14px;
}

.detail-item span {
  word-break: break-word;
  overflow-wrap: anywhere;
}

.detail-item svg {
  color: var(--accent-primary);
  flex-shrink: 0;
}

/* Form Styles */
.contact-form-panel {
  background: #F8FAFC;
  border: 1px solid var(--border-light);
  padding: 48px;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.01);
}

.growth-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.form-group label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted-light);
}

.form-group input, .form-group select, .form-group textarea {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  padding: 14px 16px;
  border-radius: 8px;
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: 13px;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input::placeholder, .form-group textarea::placeholder {
  color: #94A3B8;
  opacity: 1;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 15px var(--accent-glow);
  background: #FFFFFF;
}

/* Form Validation styles */
.form-group.error input, .form-group.error select {
  border-color: var(--pop-magenta);
}

.err-msg {
  position: absolute;
  bottom: -18px;
  left: 0;
  font-size: 10px;
  color: var(--pop-magenta);
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.2s;
}

.form-group.error .err-msg {
  opacity: 1;
}

/* Submit Button & Loader Animations */
.submit-btn {
  background: var(--accent-primary);
  color: var(--bg-light);
  border: none;
  padding: 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px var(--accent-primary);
}

.btn-loader {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid var(--bg-light);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin-clockwise 0.6s linear infinite;
}

.submit-btn.loading .btn-text {
  visibility: hidden;
}

.submit-btn.loading .btn-loader {
  display: block;
}

/* Clean Modal styling */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-premium);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  padding: 48px;
  border-radius: 24px;
  max-width: 450px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  transform: scale(0.9);
  transition: transform 0.4s var(--ease-premium);
}

.modal-overlay.active .modal-card {
  transform: scale(1);
}

.modal-success-icon {
  margin-bottom: 24px;
}

.modal-card h3 {
  font-size: 24px;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.modal-card p {
  font-size: 13px;
  color: var(--text-muted-light);
  margin-bottom: 32px;
}

.modal-close-btn {
  background: var(--accent-primary);
  color: var(--bg-light);
  border: none;
  padding: 12px 32px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s;
}

.modal-close-btn:hover {
  transform: scale(1.05);
}


/* Footer Section Styles */
#footer-main {
  background: #111113;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px 40px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 64px;
}

.footer-brand .logo-img {
  margin-bottom: 16px;
}

.footer-slogan {
  font-size: 13px;
  color: var(--text-muted-dark);
  max-width: 250px;
}

.footer-link-group h4 {
  font-size: 14px;
  text-transform: uppercase;
  color: #FFFFFF;
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}

.footer-link-group a, .footer-link-group span {
  display: block;
  font-size: 13px;
  color: var(--text-muted-dark);
  text-decoration: none;
  margin-bottom: 12px;
  transition: color 0.3s;
}

.footer-link-group a:hover {
  color: var(--accent-primary);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-links a {
  color: var(--text-muted-dark);
  transition: color 0.3s, transform 0.3s;
}

.social-links a:hover {
  color: var(--accent-primary);
  transform: translateY(-2px);
}

/* Animations */
@keyframes pulse-glow {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(26, 188, 156, 0.4);
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 0 10px 4px rgba(26, 188, 156, 0.2);
  }
}

@keyframes pulse-core {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.15; }
  50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.3; }
}

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

/* Scroll Fade-In Utilities */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s var(--ease-premium), transform 1s var(--ease-premium);
}

.fade-up.show {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }
.delay-4 { transition-delay: 0.6s; }
.delay-5 { transition-delay: 0.75s; }

/* Responsive adjustments */
@media (max-width: 1024px) {
  .custom-cursor,
  .custom-cursor-dot {
    display: none !important;
  }
  .hero-title { font-size: 54px; }
  .niches-grid { grid-template-columns: 1fr; gap: 24px; }
  .ai-layout { grid-template-columns: 1fr; gap: 48px; padding-left: 0; padding-right: 0; }
  .comparison-grid { grid-template-columns: 1fr; gap: 24px; }
  .simulator-layout { grid-template-columns: 1fr; gap: 48px; }
  .team-layout { grid-template-columns: 1fr; gap: 48px; }
  .contact-layout { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 768px) {
  .nav-menu { display: none; }
  .hamburger-menu { display: flex; }
  .hero-title { font-size: 40px; }
  .section-title { font-size: 32px; }
  .ai-title { font-size: 28px; }
  .ai-feat-item h4 { font-size: 16px; }
  .form-row { grid-template-columns: 1fr; gap: 24px; }
  .contact-form-panel { padding: 32px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  
  .section-container {
    padding: 60px 16px;
  }
  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 12px;
  }
  .hero-ctas a {
    text-align: center;
  }
  .niche-quick-toggle {
    flex-wrap: wrap;
    justify-content: center;
    border-radius: 20px;
    width: 100%;
    margin-bottom: 24px;
  }
  .niche-tab {
    padding: 8px 16px;
    font-size: 13px;
  }
  .team-visual-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .vibe-card {
    height: 160px;
    padding: 24px;
  }
  .card-a {
    grid-column: span 1;
  }
  .team-values {
    gap: 24px;
  }
  .hero-dynamic-details {
    height: auto;
    min-height: 48px;
    margin-bottom: 30px;
  }
  .detail-group {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
}

/* AI Interactive Hub mobile scaling is handled dynamically above using media queries and responsive styling */

/* Case Studies - Homepage Teaser & Details page */
.case-studies-section {
  position: relative;
  background-color: var(--bg-light);
  border-top: 1px solid var(--border-light);
}

.case-studies-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-top: 40px;
}

.case-study-card {
  display: flex;
  background: var(--card-bg-light);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
  transition: transform 0.4s var(--ease-premium), box-shadow 0.4s var(--ease-premium), border-color 0.4s ease;
  max-height: 420px;
}

.case-study-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 123, 255, 0.2);
}

.card-image-wrapper {
  flex: 1.1;
  position: relative;
  min-height: 360px;
  background: #121212;
  overflow: hidden;
}

.case-study-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-premium);
}

.case-study-card:hover .case-study-img {
  transform: scale(1.05);
}

.card-badges {
  position: absolute;
  top: 24px;
  left: 24px;
  display: flex;
  gap: 10px;
  z-index: 2;
}

.card-badge {
  padding: 6px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.card-badge.bg-saas {
  background: rgba(0, 123, 255, 0.9);
  color: #fff;
  backdrop-filter: blur(10px);
}

.card-badge.bg-region {
  background: rgba(26, 188, 156, 0.9);
  color: #fff;
  backdrop-filter: blur(10px);
}

.card-badge.bg-healthcare {
  background: rgba(230, 57, 155, 0.95);
  color: #fff;
  backdrop-filter: blur(10px);
}

@media (max-width: 992px) {
  .case-study-card {
    flex-direction: column;
    max-height: none;
  }
  .card-image-wrapper {
    min-height: unset;
    aspect-ratio: 16 / 9;
  }
  .card-content {
    padding: 24px;
  }
  .card-stats {
    flex-wrap: wrap;
    gap: 16px;
  }
  .stat-num {
    font-size: 28px;
  }
  .card-title {
    font-size: 22px;
  }
  .comparison-panel {
    padding: 24px;
  }
  .display-panel {
    grid-template-columns: 1fr;
    padding: 24px;
    gap: 20px;
  }
  .dashboard-visuals {
    grid-column: span 1;
  }
}

.card-content {
  flex: 1;
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-stats {
  display: flex;
  gap: 32px;
  margin-bottom: 24px;
}

.stat-badge {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-family: var(--font-headings);
  font-size: 36px;
  font-weight: 800;
  color: var(--accent-primary);
  line-height: 1.1;
}

.stat-lbl {
  font-size: 12px;
  color: var(--text-muted-light);
  font-weight: 500;
  margin-top: 4px;
}

.card-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
  line-height: 1.25;
}

.card-desc {
  font-size: 16px;
  color: var(--text-muted-light);
  margin-bottom: 32px;
  font-weight: 400;
  line-height: 1.6;
}

.btn-primary-outline {
  display: inline-block;
  padding: 14px 28px;
  border: 2px solid var(--accent-primary);
  border-radius: 100px;
  color: var(--accent-primary);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.3s ease;
  background: transparent;
  cursor: pointer;
}

.btn-primary-outline:hover {
  background: var(--accent-primary);
  color: #fff;
  transform: translateY(-2px);
}

/* Dedicated Details Page Layout */
.case-detail-hero {
  position: relative;
  padding: 140px 24px 80px 24px;
  background: radial-gradient(circle at 80% 20%, var(--accent-glow) 0%, transparent 60%);
  border-bottom: 1px solid var(--border-light);
}

.case-hero-container {
  max-width: 1000px;
  margin: 0 auto;
}

.case-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted-light);
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  margin-bottom: 24px;
  transition: color 0.3s ease;
}

.case-back-btn:hover {
  color: var(--accent-primary);
}

.case-detail-title {
  font-size: 48px;
  line-height: 1.15;
  color: var(--text-dark);
  margin-bottom: 24px;
}

.case-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 24px 0;
  margin-top: 32px;
}

.meta-item {
  display: flex;
  flex-direction: column;
}

.meta-label {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--text-muted-light);
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: 0.05em;
}

.meta-value {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
}

/* Interactive Slide Carousel */
.carousel-wrapper {
  max-width: 1000px;
  margin: 60px auto;
  padding: 0 24px;
  position: relative;
}

.carousel-container {
  position: relative;
  background: #121212;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
  aspect-ratio: 16 / 9;
}

.carousel-slides-track {
  width: 100%;
  height: 100%;
  display: flex;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Controls */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.carousel-btn:hover {
  background: var(--accent-primary);
  color: #fff;
  border-color: var(--accent-primary);
}

.carousel-btn.prev {
  left: 8px;
}

.carousel-btn.next {
  right: 8px;
}

.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #CBD5E1;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-dot.active {
  background: var(--accent-primary);
  width: 24px;
  border-radius: 100px;
}

/* Structured Case Narrative Section */
.case-narrative-section {
  padding: 60px 24px 100px 24px;
  background-color: var(--bg-light);
}

.narrative-container {
  max-width: 800px;
  margin: 0 auto;
}

.narrative-block {
  margin-bottom: 56px;
}

.narrative-block h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
  border-left: 4px solid var(--accent-primary);
  padding-left: 16px;
}

.narrative-block p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-muted-light);
  margin-bottom: 20px;
  font-weight: 400;
}

.narrative-block ul {
  margin-left: 24px;
  margin-bottom: 20px;
}

.narrative-block li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-muted-light);
  margin-bottom: 10px;
}

.results-table-wrapper {
  margin: 32px 0;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.results-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.results-table th, .results-table td {
  padding: 16px 20px;
  font-size: 15px;
}

.results-table th {
  background-color: var(--card-bg-light);
  font-weight: 600;
  color: var(--text-dark);
  border-bottom: 1px solid var(--border-light);
}

.results-table td {
  border-bottom: 1px solid var(--border-light);
  color: var(--text-muted-light);
}

.results-table tr:last-child td {
  border-bottom: none;
}

.results-table td.highlight {
  color: var(--accent-primary);
  font-weight: 600;
  background-color: var(--accent-glow);
}

/* Callout Box */
.narrative-callout {
  background: var(--card-bg-light);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 32px;
  margin: 40px 0;
}

.narrative-callout h4 {
  font-size: 18px;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.narrative-callout p {
  margin-bottom: 0;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .case-detail-title { font-size: 36px; }
  .case-meta-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

@media (max-width: 600px) {
  .case-meta-grid { grid-template-columns: 1fr; }
  .carousel-wrapper { padding: 0 10px; }
  .carousel-btn { width: 36px; height: 36px; }
}
