/* ==========================================================================
   Premium Blog UI/UX Additions
   ========================================================================== */

/* Reading Progress Bar */
#reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.05);
  z-index: 9999;
}

#progress-bar {
  height: 100%;
  width: 0%;
  background: var(--gradient-primary);
  box-shadow: 0 0 10px var(--accent-primary);
  transition: width 0.1s ease;
}

/* Featured Post Highlight */
.featured-post-section {
  padding: 40px 0;
  margin-top: 40px;
}

.featured-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  background: var(--gradient-card);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  border: 1px solid rgba(102, 252, 241, 0.1);
  min-height: 450px;
  transition: var(--transition-normal);
}

.featured-card:hover {
  transform: translateY(-5px);
  border-color: rgba(102, 252, 241, 0.3);
  box-shadow: var(--shadow-lg);
}

.featured-img-wrapper {
  position: relative;
  overflow: hidden;
}

.featured-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.featured-card:hover .featured-img-wrapper img {
  transform: scale(1.05);
}

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

.featured-badge {
  background: rgba(102, 252, 241, 0.1);
  color: var(--accent-primary);
  padding: 6px 15px;
  border-radius: var(--border-radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  width: fit-content;
  margin-bottom: 20px;
}

.featured-title {
  font-size: 2.8rem;
  margin-bottom: 20px;
  line-height: 1.1;
}

.featured-excerpt {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 30px;
  max-width: 500px;
}

/* Sidebar TOC Widget */
.toc-widget {
  padding: 25px;
  background: var(--bg-surface-glass);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-md);
  position: sticky;
  top: 120px;
}

.toc-title {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.toc-list {
  list-style: none;
  padding: 0;
}

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

.toc-list a {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-decoration: none;
  transition: var(--transition-fast);
  display: block;
}

.toc-list a:hover,
.toc-list a.active {
  color: var(--accent-primary);
  padding-left: 5px;
}

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

/* Article Typography Overhaul */
.article-content h2 {
  font-size: 2rem;
  margin: 60px 0 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(102, 252, 241, 0.1);
}

.article-content h3 {
  font-size: 1.5rem;
  margin: 40px 0 20px;
}

.article-content p {
  line-height: 1.8;
  margin-bottom: 25px;
  font-size: 1.1rem;
}

.article-content blockquote {
  border-left: 4px solid var(--accent-primary);
  background: rgba(102, 252, 241, 0.05);
  padding: 30px;
  margin: 40px 0;
  font-style: italic;
  font-size: 1.2rem;
  border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0;
}

@media (max-width: 991px) {
  .featured-card {
    grid-template-columns: 1fr;
  }
  .featured-content {
    padding: 40px;
  }
}
:root {
  /* Colors - Base */
  --bg-body: #0B0C10;
  /* Deep Obsidian */
  --bg-surface: #1F2833;
  /* Gunmetal */
  --bg-surface-glass: rgba(31, 40, 51, 0.7);
  --bg-surface-hover: #262f3b;

  /* Colors - Text */
  --text-primary: #FFFFFF;
  --text-secondary: #C5C6C7;
  --text-muted: #8892b0;
  --text-inverse: #0B0C10;

  /* Colors - Accents */
  --accent-primary: #66FCF1;
  /* Neon Cyan */
  --accent-secondary: #45A29E;
  --accent-hover: #45A29E;
  --accent-error: #FF4B4B;
  --accent-success: #00E676;

  /* Premium Gradients */
  --gradient-primary: linear-gradient(135deg, #66FCF1 0%, #45A29E 100%);
  --gradient-glow: linear-gradient(135deg, rgba(102, 252, 241, 0.2) 0%, rgba(69, 162, 158, 0.2) 100%);
  --gradient-card: linear-gradient(145deg, rgba(31, 40, 51, 0.6) 0%, rgba(11, 12, 16, 0.8) 100%);

  /* Typography */
  --font-main: 'Montserrat', sans-serif;
  --font-display: 'Montserrat', sans-serif;
  --font-data: 'Montserrat', sans-serif;

  /* Spacing */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;
  --spacing-3xl: 64px;
  --container-width: 1200px;

  /* Effects */
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --glow-primary: 0 0 20px rgba(102, 252, 241, 0.4);
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 16px;
  --border-radius-pill: 999px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}


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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-body);
  color: var(--text-secondary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
}

h1 {
  font-size: 3.5rem;
  letter-spacing: -0.02em;
  font-weight: 800;
}

h2 {
  font-size: 2.5rem;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: var(--spacing-md);
  color: var(--text-secondary);
}

/* Typography Utilities */
.text-xl {
  font-size: 1.5rem !important;
}

.text-lg {
  font-size: 1.25rem !important;
}

.text-md {
  font-size: 1rem !important;
}

.text-sm {
  font-size: 0.875rem !important;
}

.text-xs {
  font-size: 0.75rem !important;
}

.section-title {
  font-size: 3rem;
  margin-bottom: var(--spacing-md);
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto var(--spacing-xl);
}

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

a:hover {
  text-decoration: none;
  color: var(--accent-secondary);
}

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

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: all 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(11, 12, 16, 0.9);
  backdrop-filter: blur(10px);
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo Styles - Restored & Brightened */
.brand-logo {
  display: flex;
  align-items: center;
}

.brand-logo img {
  height: 60px;
  /* Kept large size */
  width: auto;
  object-fit: contain;
  /* High Brightness Boost for "Clear Second Line" */
  filter: grayscale(100%) invert(1) brightness(3.0) contrast(2.0);
  mix-blend-mode: screen;
  opacity: 1;
  transition: all 0.3s ease;
  display: block;
  /* Ensure visibility */
}

.brand-logo:hover img {
  transform: scale(1.05);
  filter: grayscale(0%) invert(1) brightness(3.5) contrast(2.2);
}

/* Marquee Logo Sizing */
.marquee-logo {
  height: 30px;
  /* Consistent height */
  width: auto;
  filter: grayscale(100%) contrast(0.5) brightness(1.5);
  opacity: 0.6;
  transition: all 0.3s ease;
  mix-blend-mode: screen;
  /* Blend with dark background */
}

.marquee-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
}

.main-nav ul {
  display: flex;
  gap: 40px;
  list-style: none !important;
  /* Force remove bullets */
  padding: 0;
  margin: 0;
  align-items: center;
}

.main-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
}

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

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent-primary);
  transition: width 0.3s ease;
}

.main-nav a:hover::after {
  width: 100%;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.icon-md {
  width: 32px;
  height: 32px;
}

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

.text-accent-primary {
  color: var(--accent-primary);
}

.text-success {
  color: var(--accent-success);
}

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

.mb-10 {
  margin-bottom: 10px;
}

.mb-20 {
  margin-bottom: 20px;
}

.mt-15 {
  margin-top: 15px;
}

.pt-15 {
  padding-top: 15px;
}

.mt-25 {
  margin-top: 25px;
}

.border-top-white-10 {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.flex-col-gap-20 {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.impact-card-inner {
  padding: 40px;
  border: 1px solid rgba(102, 252, 241, 0.2);
  border-radius: 20px;
  background: rgba(31, 40, 51, 0.5);
}

.progress-bar-bg {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.progress-bar-fill {
  height: 100%;
  background: var(--accent-success);
  border-radius: 3px;
}

.container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.text-gradient {
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 5px;
}

/* ... existing code ... */

/* 7. Scroll Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

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

/* Staggered delays for children */
.reveal-group .reveal:nth-child(1) {
  transition-delay: 0.1s;
}

.reveal-group .reveal:nth-child(2) {
  transition-delay: 0.2s;
}

.reveal-group .reveal:nth-child(3) {
  transition-delay: 0.3s;
}

.reveal-group .reveal:nth-child(4) {
  transition-delay: 0.4s;
}

/* Special animation for tech stack (infinite scroll already handled) */
/* ... but let's make sure the section itself fades in ... */


.team-card {
  background: transparent;
  position: relative;
  /* Removed invalid property */
}

.text-accent {
  color: var(--accent-primary);
}

.data-font {
  font-family: var(--font-data);
}

/* Glow Pulse Animation */
.block-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.flex-center {
  display: flex;
  justify-content: center;
}

.relative {
  position: relative;
}

.section-lg {
  padding: 100px 0;
}

.max-w-500 {
  max-width: 500px;
}

.btn-sm {
  padding: 10px 24px;
  font-size: 0.9rem;
}

.footer-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 25px;
  line-height: 1.6;
}

.mb-15 {
  margin-bottom: 15px;
}

.icon-sm {
  width: 20px;
  height: 20px;
}

.text-inherit {
  color: inherit;
}

.btn-lg {
  font-size: 1.2rem;
  padding: 15px 40px;
}

.bg-body {
  background: var(--bg-body);
}

.blog-img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0b0c10, #45A29E);
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes glow-pulse {
  0% {
    box-shadow: 0 0 5px rgba(102, 252, 241, 0.4);
  }

  50% {
    box-shadow: 0 0 20px rgba(102, 252, 241, 0.6), 0 0 10px rgba(102, 252, 241, 0.4);
  }

  100% {
    box-shadow: 0 0 5px rgba(102, 252, 241, 0.4);
  }
}

.glow-effect {
  animation: glow-pulse 3s infinite;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  border-radius: var(--border-radius-pill);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #0B0C10 !important;
  /* Force dark text on bright button */
  box-shadow: 0 0 15px rgba(102, 252, 241, 0.3);
  position: relative;
  border-radius: var(--border-radius-pill);
  z-index: 1;
  overflow: hidden;
  border: none;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(102, 252, 241, 0.6);
}

.btn-primary:hover::before {
  opacity: 0.2;
}

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

.btn-secondary:hover {
  border-color: var(--text-primary);
  background-color: rgba(255, 255, 255, 0.05);
}

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

/* Dropdown Menu (Global) */
.dropdown {
  position: relative;
}

/* Mega Menu System - Redesigned */
.has-mega-menu {
  position: static !important;
  /* Key change: Allows mega menu to align with container/header */
}

.mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  width: 100%;
  max-width: var(--container-width);
  /* Align with page content */
  background: rgba(11, 12, 16, 0.95);
  /* Deep Obsidian with high opacity */
  backdrop-filter: blur(20px);
  /* Enhanced glassmorphism */
  padding: 40px;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 30px 60px -10px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(102, 252, 241, 0.15);
  /* Subtle border ring */
  opacity: 0;
  visibility: hidden;
  /* Add delay to visibility to keep menu open slightly longer when mouse leaves */
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 0.2s;
  z-index: 1000;
  display: block;
  margin-top: 15px;
  /* Slight offset from header */
}

/* Hover Bridge: Fills the gap between link and menu to prevent closing */
.mega-menu::before {
  content: '';
  position: absolute;
  top: -20px;
  /* Covers the 15px margin + buffer */
  left: 0;
  width: 100%;
  height: 20px;
  background: transparent;
  display: block;
}

/* Remove individual widths since we are standardizing to container width */
.mega-menu.services-mega,
.mega-menu.industries-mega,
.mega-menu.about-mega {
  width: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
}

/* Hover state */
.has-mega-menu:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  /* Instant open, no delay */
  transition-delay: 0s;
}

.mega-content {
  display: flex;
  gap: 40px;
  /* Increased gap for cleaner layout */
}

.mega-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  /* Increased vertical gap slightly */
}

.mega-content.grid-2-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  /* Consistent gap */
}

/* Zig-Zag Section Utility (New) */
.zigzag-section {
  display: flex;
  flex-direction: column;
  gap: 100px;
}

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

.zigzag-row.reverse {
  direction: rtl;
  /* Visual trick or just swap columns in grid */
}

/* Better approach for grid zig-zag without rtl issues */
.zigzag-row:nth-child(even) .zigzag-text {
  order: 2;
}

.zigzag-row:nth-child(even) .zigzag-visual {
  order: 1;
}

.zigzag-text {
  order: 1;
}

.zigzag-visual {
  order: 2;
  position: relative;
}

.zigzag-visual img {
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(102, 252, 241, 0.1);
}

.zigzag-visual::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--accent-primary);
  opacity: 0.2;
  border-radius: var(--border-radius-lg);
  z-index: -1;
  transition: all 0.5s ease;
}

.zigzag-row:hover .zigzag-visual::before {
  top: -10px;
  right: -10px;
  opacity: 0.4;
}

@media (max-width: 991px) {
  .zigzag-row {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .zigzag-row:nth-child(even) .zigzag-text {
    order: 1;
  }

  .zigzag-row:nth-child(even) .zigzag-visual {
    order: 2;
  }
}

.mega-content.grid-2-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.mega-content.grid-4-col {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.mega-content.grid-5-col {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

/* Industries Mega Specifics */
.industries-mega {
  min-width: 900px !important;
  left: 50% !important;
  transform: translateX(-50%) translateY(10px) !important;
}

@media (max-width: 991px) {

  .mega-content.grid-2-col,
  .mega-content.grid-4-col,
  .mega-content.grid-5-col {
    grid-template-columns: 1fr;
  }

  .industries-mega {
    min-width: 100% !important;
    transform: none !important;
    left: 0 !important;
  }
}

/* Industries Menu Specific Overrides */
.industries-mega {
  background: rgba(11, 12, 16, 0.85) !important;
  backdrop-filter: blur(24px) !important;
  border: 1px solid rgba(102, 252, 241, 0.2) !important;
  padding: 40px !important;
}

.industries-mega .mega-item {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  padding: 25px 15px;
  border: 1px solid transparent;
}

.industries-mega .mega-item:hover {
  background: rgba(102, 252, 241, 0.05);
  border-color: rgba(102, 252, 241, 0.1);
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.industries-mega .icon {
  width: 60px;
  height: 60px;
  background: rgba(102, 252, 241, 0.08);
  border: 1px solid rgba(102, 252, 241, 0.2);
  border-radius: 16px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  filter: none !important;
  color: var(--accent-primary);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.industries-mega .mega-item:hover .icon {
  background: var(--accent-primary);
  color: var(--bg-body);
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 0 20px rgba(102, 252, 241, 0.4);
}

.industries-mega .icon svg {
  width: 30px;
  height: 30px;
}

.industries-mega .title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.industries-mega .desc {
  font-size: 0.85rem;
  opacity: 0.8;
}

.mega-heading {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 5px;
}

.mega-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: 10px;
  transition: all 0.2s ease;
  text-decoration: none;
}

.mega-item:hover {
  background: rgba(102, 252, 241, 0.08);
  transform: translateX(5px);
}

.mega-item .icon {
  font-size: 1.2rem;
  line-height: 1;
  padding-top: 3px;
  filter: grayscale(100%);
  transition: all 0.2s ease;
}

.mega-item:hover .icon {
  filter: grayscale(0%);
  transform: scale(1.1);
}

.mega-item .text {
  display: flex;
  flex-direction: column;
}

.mega-item .title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #E2E8F0;
  margin-bottom: 2px;
}

.mega-item:hover .title {
  color: var(--accent-primary);
}

.mega-item .desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.3;
}

/* Featured Item Style (Performance SEO) */
.mega-item.featured {
  background: linear-gradient(145deg, rgba(102, 252, 241, 0.1), rgba(31, 40, 51, 0.5));
  border: 1px solid rgba(102, 252, 241, 0.2);
}

.mega-item.featured:hover {
  background: linear-gradient(145deg, rgba(102, 252, 241, 0.15), rgba(31, 40, 51, 0.6));
  box-shadow: 0 4px 15px rgba(102, 252, 241, 0.1);
}

.mega-item.featured .title {
  color: var(--accent-primary);
  font-size: 1.05rem;
}


/* Dropdown Fallback (Industries) */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(15px);
  background: rgba(31, 40, 51, 0.95);
  backdrop-filter: blur(12px);
  min-width: 240px;
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(102, 252, 241, 0.1);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
}

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

.dropdown-menu li {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 10px 15px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #C5C6C7;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.dropdown-menu a:hover {
  background: rgba(102, 252, 241, 0.08);
  color: var(--accent-primary);
  transform: translateX(5px);
}

.mobile-cta-only {
  display: none;
}

@media (max-width: 900px) {
  .mobile-cta-only {
    display: block;
  }
}

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

.section-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* ==========================================================================
   Section: Trust & Metrics
   ========================================================================== */
.trust-strip {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 80px 0;
  background: linear-gradient(to bottom, rgba(11, 12, 16, 0.3), rgba(11, 12, 16, 0.5));
  position: relative;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  text-align: center;
}

.metric-item {
  padding: 30px;
  background: rgba(31, 40, 51, 0.3);
  border: 1px solid rgba(102, 252, 241, 0.1);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.metric-item:hover {
  transform: translateY(-10px);
  background: rgba(31, 40, 51, 0.5);
  border-color: var(--accent-primary);
  box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.5), 0 0 20px rgba(102, 252, 241, 0.1);
}

.metric-item strong {
  display: block;
  font-size: 3.5rem;
  color: var(--accent-primary);
  font-family: var(--font-data);
  line-height: 1;
  margin-bottom: 15px;
  font-weight: 800;
  text-shadow: 0 0 15px rgba(102, 252, 241, 0.2);
}

.metric-item span {
  color: var(--text-secondary);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
}

/* ==========================================================================
   Section: Services (Interactive Cards)
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--gradient-card);
  padding: 40px;
  border-radius: var(--border-radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.service-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: var(--accent-primary);
  box-shadow: 0 20px 40px -20px rgba(102, 252, 241, 0.15);
  background: linear-gradient(145deg, rgba(31, 40, 51, 0.8) 0%, rgba(11, 12, 16, 0.9) 100%);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--accent-secondary);
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

/* ==========================================================================
   Standardized Case Study Cards
   ========================================================================== */
.case-study-card {
  text-decoration: none !important;
  color: inherit !important;
  display: flex !important;
  flex-direction: column;
  background: var(--gradient-card) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  border-radius: var(--border-radius-lg) !important;
  padding: 16px !important;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  height: 100%;
  min-width: 0;
  /* Ensure it can shrink */
}

.case-study-card:hover {
  transform: translateY(-8px) scale(1.02) !important;
  border-color: var(--accent-primary) !important;
  box-shadow: 0 15px 30px -15px rgba(102, 252, 241, 0.3) !important;
  background: linear-gradient(145deg, rgba(31, 40, 51, 0.9) 0%, rgba(11, 12, 16, 0.95) 100%) !important;
}

.card-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.5px;
  color: var(--accent-primary);
}

.card-industry {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--text-muted);
}

.card-industry svg {
  width: 12px;
  height: 12px;
}

.case-study-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: var(--text-primary);
  line-height: 1.3;
  overflow-wrap: break-word;
  /* Prevent overflow on compact cards */
}

.case-study-card p {
  margin-bottom: 15px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.4;
}

.card-stats {
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.stat-item .stat-value {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-success);
  line-height: 1.1;
}

.stat-item .stat-label {
  display: block;
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 2px;
  text-transform: uppercase;
}

/* ==========================================================================
   Sticky Conversion Elements
   ========================================================================== */
.sticky-cta {
  position: fixed;
  bottom: 30px;
  right: 140px;
  z-index: 999;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  align-items: center;
  gap: 15px;
}

.sticky-cta.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.sticky-cta-btn {
  background: var(--accent-primary);
  color: var(--text-inverse);
  padding: 15px 30px;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(102, 252, 241, 0.4);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.3s;
}

.sticky-cta-btn:hover {
  transform: scale(1.05);
  color: var(--text-inverse);
}

.sticky-cta-text {
  background: var(--bg-surface);
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-lg);
  position: relative;
  display: none;
  /* Hidden by default, maybe show on larger screens */
}

@media (min-width: 768px) {
  .sticky-cta-text {
    display: block;
  }
}

.sticky-cta-text::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 6px 0 6px 6px;
  border-style: solid;
  border-color: transparent transparent transparent var(--bg-surface);
}

.service-list {
  list-style: none;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.service-list li {
  margin-bottom: 8px;
  color: var(--text-secondary); /* Changed from muted to secondary for better contrast */
  font-size: 0.9rem;
  font-weight: 500;
}

.service-list li::before {
  content: '→';
  color: var(--accent-primary);
  margin-right: 8px;
}

/* ==========================================================================
   Section: Growth Frameworks
   ========================================================================== */
.framework-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* A simple CSS Funnel visualization */
.funnel-step {
  padding: 20px;
  margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.03);
  border-left: 4px solid var(--accent-secondary);
  position: relative;
}

.funnel-step:nth-child(1) {
  width: 100%;
  border-color: #66FCF1;
}

/* TOFU */
.funnel-step:nth-child(2) {
  width: 85%;
  margin-left: 7.5%;
  border-color: #45A29E;
}

/* MOFU */
.funnel-step:nth-child(3) {
  width: 70%;
  margin-left: 15%;
  border-color: #00E676;
}

/* BOFU */

.funnel-step h4 {
  margin-bottom: 5px;
  color: var(--text-primary);
}

.funnel-step p {
  font-size: 0.9rem;
  margin-bottom: 0;
  color: var(--text-muted);
}

/* ==========================================================================
   Section: Case Studies (Data Snapshots)
   ========================================================================== */
.case-study-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  background: var(--bg-surface);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 40px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.case-content {
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.case-image {
  background: #111;
  min-height: 300px;
  position: relative;
}

/* Placeholder for case image usually acts as a cover */
.case-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
}

.case-stats {
  display: flex;
  gap: 30px;
  margin: 30px 0;
}

.stat-box strong {
  display: block;
  font-size: 2rem;
  color: var(--accent-success);
  font-family: var(--font-data);
}

.stat-box span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Animations (Scroll Reveal)
   ========================================================================== */
/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
  z-index: 1100;
  padding: 10px;
}

.mobile-toggle .bar {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--text-primary);
  transition: all 0.3s ease;
}

/* Mobile Responsive */
@media (max-width: 991px) {
  .mobile-toggle {
    display: flex;
  }

  .nav-container {
    justify-content: space-between;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 320px;
    height: 100vh;
    background: rgba(11, 12, 16, 0.98);
    backdrop-filter: blur(20px);
    padding: 100px 30px 40px;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
  }

  .main-nav.is-open {
    right: 0;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .main-nav li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  }

  .main-nav a {
    padding: 20px 0;
    font-size: 1.1rem;
  }

  /* Mobile Mega Menu Handling */
  .has-mega-menu>a::after,
  .dropdown>a::after {
    content: ' +';
    float: right;
    font-weight: 300;
  }

  .mega-menu,
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0 0 20px 15px;
    display: none;
    /* Hidden by default */
    min-width: 100%;
    backdrop-filter: none;
  }

  /* Show on Hover/Focus (Tap on Mobile) */
  .has-mega-menu:hover .mega-menu,
  .dropdown:hover .dropdown-menu,
  .has-mega-menu:focus-within .mega-menu,
  .dropdown:focus-within .dropdown-menu {
    display: block;
    animation: slideDown 0.3s ease;
  }

  .mega-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0;
  }

  .mega-column {
    min-width: 100%;
    border-right: none;
    padding-right: 0;
    margin-bottom: 10px;
  }

  .highlight-column {
    background: transparent;
    padding: 0;
  }

  .mega-item {
    padding: 10px;
  }

  .mobile-cta-only {
    margin-top: 20px;
    border: none;
  }

  .mobile-cta-only a {
    background: var(--accent-primary);
    color: var(--bg-body);
    text-align: center;
    border-radius: var(--border-radius-sm);
    padding: 12px;
    font-weight: 600;
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delays */
.delay-100 {
  transition-delay: 0.1s;
}

.delay-200 {
  transition-delay: 0.2s;
}

.delay-300 {
  transition-delay: 0.3s;
}

/* CTA Section */
.cta-section {
  text-align: center;
  background: radial-gradient(circle at center, rgba(102, 252, 241, 0.1) 0%, transparent 70%);
  padding: 100px 0;
}

/* ==========================================================================
   Service Page Specifics
   ========================================================================== */

/* Service Hero */
.service-hero {
  padding: 160px 0 80px;
  background: linear-gradient(rgba(11, 12, 16, 0.9), rgba(11, 12, 16, 0.8)), url('../images/service_hero_bg.png');
  background-size: cover;
  background-position: center;
  text-align: center;
}

.service-hero h1 {
  margin-bottom: 20px;
  font-size: 3.5rem;
}

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

/* Problem/Solution Grid */
.challenge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.challenge-card {
  background: rgba(102, 252, 241, 0.05);
  border: 1px solid rgba(102, 252, 241, 0.1);
  padding: 30px;
  border-radius: 8px;
}

.challenge-card.compact {
  padding: 20px;
}

.challenge-card h3 {
  color: var(--accent-primary);
  font-size: 1.2rem;
  margin-bottom: 10px;
}


/* ==========================================================================
   UI Components (Glass Panels & Cards)
   ========================================================================== */
.glass-panel {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 30px;
  transition: transform 0.3s ease, border-color 0.3s ease;
  height: 100%;
}

.glass-panel:hover {
  border-color: var(--accent-primary);
  transform: translateY(-5px);
}

.glass-panel h3,
.glass-panel h4 {
  margin-bottom: 15px;
  color: var(--text-primary);
}

/* FAQ Item */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 25px;
  transition: all 0.3s ease;
}

.faq-item:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--accent-secondary);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Process Grid */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

/* Vertical Process Line for Standard List */
.process-steps {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.process-step {
  display: flex;
  gap: 30px;
  margin-bottom: 40px;
  position: relative;
}

.step-number {
  min-width: 50px;
  height: 50px;
  background: var(--accent-primary);
  color: var(--bg-body);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  z-index: 2;
}

.process-step::after {
  content: '';
  position: absolute;
  top: 50px;
  left: 25px;
  width: 2px;
  height: calc(100% - 10px);
  background: rgba(255, 255, 255, 0.1);
  z-index: 1;
}

.process-step:last-child::after {
  display: none;
}

.step-content h3 {
  color: var(--text-primary);
  margin-bottom: 10px;
}

.step-content p {
  color: var(--text-secondary);
}

/* Tools Grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  text-align: center;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto;
}

/* EEAT Protocol Grid */
.eeat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  justify-content: center;
  max-width: 1000px;
  margin: 0 auto;
}

.eeat-card {
  padding: 30px 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 15px;
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.eeat-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-primary);
}

.eeat-card h3 {
  color: var(--accent-primary);
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.eeat-card p {
  font-size: 0.9rem;
  font-weight: bold;
}


.tool-item {
  background: var(--bg-surface);
  padding: 30px 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  position: relative;
  overflow: hidden;
}

.tool-item:hover {
  border-color: var(--accent-primary);
  color: var(--text-primary);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.tool-item:hover::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(102, 252, 241, 0.05), transparent 70%);
  pointer-events: none;
}

.tool-item .tool-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  transition: all 0.3s ease;
}

.tool-item .tool-icon svg {
  width: 40px;
  height: 40px;
  stroke: var(--text-muted);
  transition: all 0.3s ease;
}

.tool-item:hover .tool-icon svg {
  stroke: var(--accent-primary);
  transform: scale(1.1);
  filter: drop-shadow(0 0 8px rgba(102, 252, 241, 0.5));
}

/* FAQ Accordion */
.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-item details {
  padding: 20px 0;
  cursor: pointer;
}

.faq-item summary {
  font-weight: 600;
  color: var(--text-primary);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::after {
  content: '+';
  color: var(--accent-primary);
  font-size: 1.5rem;
}

.faq-item details[open] summary::after {
  content: '-';
}

.faq-item p {
  margin-top: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}


/* ==========================================================================
   Case Study Specifics
   ========================================================================== */

/* Case Hero */
.case-hero {
  padding: 160px 0 100px;
  background-color: var(--bg-body);
  position: relative;
  overflow: hidden;
}

.case-hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: radial-gradient(circle at 100% 0%, rgba(102, 252, 241, 0.05), transparent 50%);
  pointer-events: none;
}

.case-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  font-family: var(--font-data);
  color: var(--text-muted);
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.case-meta span {
  padding: 5px 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
}

/* Data Viz: Simple Bar Charts */
.chart-container {
  display: flex;
  align-items: flex-end;
  height: 300px;
  gap: 30px;
  padding: 20px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 40px;
  position: relative;
}

.chart-bar {
  flex: 1;
  background: var(--bg-surface);
  border-radius: 4px 4px 0 0;
  position: relative;
  transition: height 1s cubic-bezier(0.22, 1, 0.36, 1);
  height: 0;
  /* Start at 0 for animation */
  min-height: 2px;
}

.chart-bar.is-visible {
  background: var(--accent-primary);
  box-shadow: 0 0 20px rgba(102, 252, 241, 0.3);
}

.chart-bar.prev-period {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.chart-label {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.chart-value {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-data);
  color: var(--text-primary);
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.5s 0.5s;
}

.chart-bar.is-visible .chart-value {
  opacity: 1;
}

/* Result Grid Highlighters */
.result-card {
  background: var(--bg-surface);
  padding: 40px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
}

.result-card h3 {
  color: var(--accent-success);
  font-size: 3rem;
  margin-bottom: 10px;
  font-family: var(--font-data);
}

.result-card p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Quote/Testimonial */
.client-quote {
  font-size: 1.5rem;
  color: var(--text-primary);
  font-style: italic;
  border-left: 4px solid var(--accent-primary);
  padding-left: 30px;
  margin: 60px 0;
  opacity: 0.9;
}

/* ==========================================================================
   Frameworks & Methodology Visuals
   ========================================================================== */

/* 1. Funnel Visualization (CSS shapes) */
.funnel-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding: 40px 0;
}

.funnel-layer {
  position: relative;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-inverse);
  font-weight: 700;
  transition: all 0.3s ease;
  clip-path: polygon(0 0, 100% 0, 85% 100%, 15% 100%);
  margin-bottom: 5px;
  width: 600px;
  /* Base width for top layer */
}

/* Layer Specifics */
.funnel-layer.tofu {
  background: linear-gradient(135deg, #66FCF1 0%, #45A29E 100%);
  width: 600px;
  /* Reduced from 800px for better aesthetic */
  z-index: 3;
  cursor: pointer;
}

.funnel-layer.mofu {
  background: linear-gradient(135deg, #45A29E 0%, #2b6d6a 100%);
  /* slightly darker teal */
  width: 450px;
  /* Reduced from 600px */
  z-index: 2;
  cursor: pointer;
}

.funnel-layer:hover {
  transform: scale(1.02);
  filter: brightness(1.1);
  z-index: 10 !important;
  /* Bring to front on hover */
}

.funnel-layer.bofu {
  background: linear-gradient(135deg, #2b6d6a 0%, #1f2833 100%);
  color: var(--text-primary);
  width: 300px;
  /* Reduced from 400px */
  z-index: 1;
  border: 1px solid var(--accent-secondary);
  cursor: pointer;
}

.funnel-label {
  text-align: center;
}

.funnel-label small {
  display: block;
  font-weight: 400;
  font-size: 0.9rem;
  opacity: 0.9;
}

/* AIDA Side Markers */
.aida-markers {
  position: absolute;
  right: 15%;
  /* Move further in now that funnel is narrower */
  top: 60px;
  display: flex;
  flex-direction: column;
  gap: 125px;
  text-align: left;
  pointer-events: none;
  /* Prevent blocking clicks */
}

@media (max-width: 1200px) {
  .funnel-layer.tofu {
    width: 600px !important;
  }

  .funnel-layer.mofu {
    width: 450px !important;
  }

  .funnel-layer.bofu {
    width: 300px !important;
  }

  .aida-markers {
    display: none;
  }

  /* Hide labels on smaller screens to prevent mess */
}

.aida-item {
  font-family: var(--font-data);
  color: var(--accent-primary);
  font-size: 1.5rem;
  position: relative;
  pointer-events: auto;
  /* Re-enable clicks */
  cursor: pointer;
  transition: all 0.2s ease;
}

.aida-item:hover {
  color: #66FCF1;
  transform: translateX(5px);
  text-shadow: 0 0 10px rgba(102, 252, 241, 0.5);
}

.aida-item::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 50%;
  width: 15px;
  height: 2px;
  background: var(--text-muted);
}

/* 2. Logic Flow (Horizontal) */
.logic-flow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 50px;
  position: relative;
}

.flow-node {
  background: var(--bg-surface);
  border: 1px solid var(--accent-primary);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  flex: 1;
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease;
}

.flow-node:hover {
  transform: translateY(-5px);
  box-shadow: var(--glow-primary);
}

.flow-connector {
  flex: 0 0 50px;
  height: 2px;
  background: var(--accent-secondary);
  position: relative;
}

.flow-connector::after {
  content: '►';
  position: absolute;
  right: -5px;
  top: -7px;
  color: var(--accent-secondary);
  font-size: 14px;
}

/* 3. ROI Graph (CSS Grid/Flex hybrid) */
.roi-graph {
  height: 400px;
  border-left: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  position: relative;
  margin: 40px 0;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.01) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.01) 1px, transparent 1px);
  background-size: 50px 50px;
}

.roi-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  /* Animate this */
  height: 0;
  /* Animate this via clip-path or SVG preferably, but using huge border hack or SVG is better. Let's use SVG in HTML, standard styling here */
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: drawLine 2s forwards ease-in-out;
}

@keyframes drawLine {
  to {
    stroke-dashoffset: 0;
  }
}

/* ==========================================================================
   Services Mega Menu (Nested Layout)
   ========================================================================== */
.services-mega {
  width: 950px !important;
  /* Override default width */
  padding: 0 !important;
  /* Reset padding for layout */
  display: flex !important;
  /* Enable Flexbox layout */
  overflow: hidden;
  /* rounded corners fix */
  min-height: 450px;
}

.services-tabs {
  width: 240px;
  background: rgba(0, 0, 0, 0.2);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  padding: 15px 0;
}

.tab-item {
  width: 100%;
  position: static;
  /* Important for context */
}

.tab-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 25px;
  color: var(--text-muted);
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
  font-size: 0.95rem;
  text-decoration: none;
}

.tab-link .arrow {
  font-size: 1.1rem;
  opacity: 0.5;
  transition: transform 0.2s ease;
}

.tab-item:hover .tab-link {
  background: rgba(102, 252, 241, 0.05);
  color: var(--accent-primary);
}

.tab-item:hover .tab-link .arrow {
  transform: translateX(3px);
  color: var(--accent-primary);
  opacity: 1;
}

/* Tab Content Panel */
.tab-content {
  position: absolute;
  top: 0;
  left: 240px;
  /* Width of sidebar */
  width: calc(100% - 240px);
  height: 100%;
  padding: 30px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  overflow-y: auto;
  /* Handle overflow if needed */
  background: transparent;
  z-index: 10;
}

.tab-item:hover .tab-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Adjust grid for the panel width */
.services-mega .mega-content.grid-2-col {
  gap: 20px;
}

.services-mega .mega-column {
  min-width: unset;
  /* Let flex handle width inside panel */
}

/* Mobile Adjustments for Services Menu */
@media (max-width: 991px) {
  .services-mega {
    width: 100% !important;
    position: static !important;
    display: none !important;
    /* Hidden by default */
    flex-direction: column;
    height: auto;
    min-height: auto;
    overflow: visible;
  }

  .has-mega-menu:hover .services-mega,
  .has-mega-menu:focus-within .services-mega {
    display: block !important;
  }

  .services-tabs {
    width: 100%;
    border-right: none;
    background: transparent;
    padding: 0;
  }

  .tab-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    position: relative;
    /* Local context for dropdown */
  }

  .tab-link {
    padding: 15px 10px;
    background: rgba(255, 255, 255, 0.02);
  }

  .tab-content {
    position: static;
    width: 100%;
    height: auto;
    opacity: 1;
    visibility: visible;
    transform: none;
    padding: 10px 10px 10px 20px;
    display: none;
  }

  /* On mobile, expand on hover/focus */
  .tab-item:hover .tab-content,
  .tab-item:focus-within .tab-content {
    display: block;
  }
}

/* =========================================
   Global Footer (Premium Update)
   ========================================= */
.site-footer {
  background: linear-gradient(135deg, #0B0C10 0%, #1F2833 100%);
  border-top: 2px solid;
  border-image: linear-gradient(to right, #66FCF1, #45A29E) 1;
  padding: 80px 0 40px;
  color: #C5C6C7;
  font-family: 'Inter', sans-serif;
  position: relative;
  overflow: hidden;
  margin-top: auto;
}

/* Glassmorphism overlay for depth */
.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 12, 16, 0.85);
  backdrop-filter: blur(10px);
  z-index: 0;
}

.site-footer .container {
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 50px;
  margin-bottom: 60px;
}

.footer-col h4 {
  color: #FFFFFF;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  display: inline-block;
}

/* Underline accent for headers */
.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 30px;
  height: 2px;
  background: #66FCF1;
  transition: width 0.3s ease;
}

.footer-col:hover h4::after {
  width: 100%;
}

.footer-links,
.contact-info {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li,
.contact-info li {
  margin-bottom: 15px;
}

.footer-links a {
  color: #C5C6C7;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
}

.footer-links a:hover {
  color: #66FCF1;
  transform: translateX(8px);
  text-shadow: 0 0 8px rgba(102, 252, 241, 0.4);
}

/* WhatsApp Floating Widget */
.whatsapp-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  background: #25D366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  text-decoration: none;
}

.whatsapp-widget:hover {
  transform: scale(1.1) rotate(10deg);
  box-shadow: 0 8px 16px rgba(37, 211, 102, 0.6);
}

.whatsapp-icon img {
  width: 35px;
  height: 35px;
  filter: brightness(0) invert(1);
}

.whatsapp-tooltip {
  position: absolute;
  right: 70px;
  background: white;
  color: #0B0C10;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.3s ease;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border-left: 6px solid white;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

.whatsapp-widget:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}

.hiring-badge {
  background: #66FCF1;
  color: #0B0C10;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  margin-left: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 0 10px rgba(102, 252, 241, 0.3);
}

.contact-info li {
  display: flex;
  align-items: flex-start;
  font-size: 0.95rem;
  line-height: 1.6;
}

.contact-info .flag-icon {
  font-size: 1.4rem;
  margin-right: 15px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.copyright {
  font-size: 0.9rem;
  opacity: 0.7;
}

.copyright a {
  color: #66FCF1;
  text-decoration: none;
  margin-left: 10px;
}

.footer-social {
  display: flex;
  gap: 15px;
}

.social-link {
  color: #C5C6C7;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: rgba(102, 252, 241, 0.1);
  color: #66FCF1;
  border-color: #66FCF1;
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ==========================================================================
   Premium Case Study Template Styles
   ========================================================================== */
.case-study-hero {
  position: relative;
  padding: 180px 0 100px;
  background: radial-gradient(circle at top right, rgba(31, 40, 51, 0.8), var(--bg-body) 60%);
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.case-study-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 200%;
  background: radial-gradient(circle, rgba(102, 252, 241, 0.05), transparent 70%);
  z-index: 0;
}

.case-badge-group {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

.case-badge {
  padding: 6px 16px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.85rem;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
  backdrop-filter: blur(10px);
}

.case-badge.highlight {
  border-color: rgba(102, 252, 241, 0.3);
  color: var(--accent-primary);
  background: rgba(102, 252, 241, 0.05);
}

/* Mockup Display */
.case-mockup-wrapper {
  position: relative;
  margin-top: 60px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.case-mockup-wrapper img {
  width: 100%;
  display: block;
  transition: transform 0.7s ease;
}

.case-mockup-wrapper:hover img {
  transform: scale(1.02);
}

/* Challenge Cards */
.challenge-grid-new {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin: 60px 0;
}

.challenge-card-premium {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.005));
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 40px;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.challenge-card-premium:hover {
  border-color: rgba(255, 75, 75, 0.3);
  transform: translateY(-5px);
}

.challenge-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(255, 75, 75, 0.1);
  color: var(--accent-error);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

/* Strategy Timeline */
.timeline-vertical {
  position: relative;
  padding: 40px 0;
  margin: 60px 0;
}

.timeline-vertical::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 20px;
  /* Aligned with circle center */
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-primary), transparent);
}

.timeline-item {
  position: relative;
  padding-left: 60px;
  margin-bottom: 60px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-body);
  border: 2px solid var(--accent-primary);
  box-shadow: 0 0 15px rgba(102, 252, 241, 0.4);
  z-index: 2;
}

.timeline-content {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 16px;
  position: relative;
}

.timeline-content h3 {
  color: var(--text-primary);
  font-size: 1.4rem;
  margin-bottom: 15px;
}

/* Results Section Premium */
.results-premium {
  background: #050608;
  /* Darker contrast */
  padding: 100px 0;
  position: relative;
}

.kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 80px;
}

.kpi-card-lg {
  text-align: center;
  padding: 30px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 16px;
  border: 1px solid rgba(102, 252, 241, 0.1);
}

.kpi-val {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--accent-primary);
  font-family: var(--font-data);
  margin-bottom: 10px;
  background: linear-gradient(to bottom, #fff, var(--accent-primary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.kpi-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.visual-comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.chart-visual-box {
  background: rgba(20, 20, 25, 0.5);
  padding: 20px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.chart-visual-box img {
  border-radius: 12px;
  display: block;
  width: 100%;
}

/* New Utility Classes for Case Studies */
.grid-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* Visual Card Item */
.visual-card-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.visual-card-item {
  padding: 30px;
  background: var(--bg-surface);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.3s ease;
}

.visual-card-item:hover {
  transform: translateY(-5px);
  border-color: rgba(102, 252, 241, 0.2);
}

.visual-card-label {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  margin-bottom: 5px;
  display: block;
  letter-spacing: 0.5px;
}

.visual-card-value {
  font-size: 1.2rem;
  color: var(--text-primary);
  margin: 0;
  font-weight: 600;
}

/* Hero Content Helpers */
.hero-content-center {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.hero-subtitle-center {
  max-width: 700px;
  margin: 0 auto;
}

/* Chart Visual Box Helpers */
.chart-visual-box-centered {
  background: var(--bg-surface);
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  height: 100%;
  min-height: 350px;
}

.chart-title {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  z-index: 2;
  font-size: 1.1rem;
  color: var(--text-secondary);
}

/* Client Quote */
.client-quote-container {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.client-cite {
  display: block;
  margin-top: 15px;
  font-size: 1rem;
  color: var(--text-muted);
  font-style: normal;
}

/* Global Utilities */
.text-center {
  text-align: center;
}

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

.align-center {
  align-items: center;
}

.d-flex {
  display: flex;
}

.w-100 {
  width: 100%;
}

.mt-20 {
  margin-top: 20px;
}

.mb-20 {
  margin-bottom: 20px;
}

.mb-30 {
  margin-bottom: 30px;
}

.mb-15 {
  margin-bottom: 15px;
}

/* Header & Footer Utilities */
.btn-header-sm {
  padding: 10px 24px;
  font-size: 0.9rem;
}

.footer-logo-wrapper {
  display: block;
  margin-bottom: 15px;
}

.footer-logo-img {
  height: 50px;
  filter: invert(1) grayscale(100%);
  mix-blend-mode: screen;
  opacity: 1;
}

.footer-desc {
  color: #8892b0;
  font-size: 0.9rem;
  margin-bottom: 25px;
  line-height: 1.6;
}

.footer-heading {
  margin-bottom: 15px;
}

.contact-item-icon {
  margin-right: 10px;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--accent-primary);
}

.contact-link {
  color: inherit;
}

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

  .visual-comparison-grid {
    grid-template-columns: 1fr;
  }

  .grid-visual {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* ==========================================================================
   NEW LANDING PAGE SECTIONS (Restructure)
   ========================================================================== */

/* 1. Hero Marquee Wrapper */
.hero-marquee-wrapper {
  position: absolute;
  bottom: -1px;
  /* Overlap slightly */
  left: 0;
  width: 100%;
  background: linear-gradient(to right, #0B0C10 0%, transparent 20%, transparent 80%, #0B0C10 100%), rgba(31, 40, 51, 0.5);
  backdrop-filter: blur(5px);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
  padding: 15px 0;
  z-index: 10;
}

.marquee-track {
  display: flex;
  gap: 4rem;
  white-space: nowrap;
  animation: scroll 30s linear infinite;
  width: max-content;
  /* Ensure enough width */
}

.marquee-track.reverse {
  animation-direction: reverse;
}

.marquee-item,
.tech-item {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.7;
  transition: all 0.3s ease;
}

.marquee-item:hover,
.tech-item:hover {
  color: var(--accent-primary);
  opacity: 1;
  text-shadow: 0 0 10px rgba(102, 252, 241, 0.3);
}

/* Assumes duplication of items for seamless loop */
@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* Client Logo Visibility Fix */
.client-logo-card img {
  filter: brightness(1.2) contrast(1.1) !important;
  opacity: 1 !important;
  mix-blend-mode: normal !important;
}

.client-logo-card {
  background: #000000 !important;
  /* Force black background */
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  /* Optional: adds nice rounded corners */
}

.trusted-by-section {
  background: #000000 !important;
  /* Ensure section is also black if needed */
}

/* 2. Case Focus Carousel Section */
.case-studies-section {
  padding: 100px 0;
  background: var(--bg-body);
  position: relative;
}

.case-carousel-container {
  display: flex;
  gap: 40px;
  overflow-x: auto;
  padding: 20px 0 40px 0;
  /* Extra bottom padding for hover lift */
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
}

.case-carousel-container::-webkit-scrollbar {
  display: none;
}

/* Conflict block removed to fix site-wide overlapping tiles */

/* 3. Why Us / Value Stack */
.value-stack-section {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(31, 40, 51, 0.2);
}

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

.value-item {
  position: relative;
  padding-left: 30px;
  border-left: 2px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.value-item:hover {
  border-left-color: var(--accent-primary);
  background: linear-gradient(90deg, rgba(102, 252, 241, 0.05) 0%, transparent 100%);
}

.value-number {
  font-family: var(--font-data);
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.03);
  position: absolute;
  top: -30px;
  right: 20px;
  font-weight: 800;
  transition: all 0.3s ease;
}

.value-item:hover .value-number {
  color: rgba(102, 252, 241, 0.1);
  transform: scale(1.1);
}

/* 4. Tech Stack Wrapper */
.tech-stack-section {
  padding: 80px 0;
  overflow: hidden;
  background: #0B0C10;
}

.tech-marquee-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  /* Soft edges for marquee */
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

/* 5. Testimonials */
.testimonials-section {
  padding-bottom: 120px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
}

.testimonial-card {
  background: rgba(31, 40, 51, 0.4);
  padding: 40px;
  border-radius: 20px;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  transition: all 0.4s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  border-color: rgba(102, 252, 241, 0.3);
  box-shadow: 0 15px 40px -10px rgba(0, 0, 0, 0.5);
  background: rgba(31, 40, 51, 0.6);
}

.quote-icon {
  font-size: 4rem;
  color: var(--accent-primary);
  opacity: 0.1;
  line-height: 1;
  position: absolute;
  top: 20px;
  right: 30px;
  font-family: serif;
}

.quote-text {
  font-size: 1.15rem;
  font-style: italic;
  margin-bottom: 30px;
  color: var(--text-secondary);
  line-height: 1.8;
  position: relative;
  z-index: 1;
}

.author-info {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: var(--text-inverse);
  font-size: 1.2rem;
}

.author-info div {
  display: flex;
  flex-direction: column;
}

.author-info strong {
  display: block;
  color: var(--text-primary);
  font-size: 1.1rem;
}

.author-info span {
  font-size: 0.9rem;
  color: var(--accent-primary);
}

@media (max-width: 768px) {
  .case-carousel-container {
    gap: 15px;
    padding-right: 20px;
    /* Peek next card */
  }

  .case-study-card {
    min-width: 85vw;
    height: 400px;
  }

  .hero-title {
    font-size: 3rem;
  }
}

/* 6. Team Section */
.team-section {
  padding: 100px 0;
  background: var(--bg-body);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}

.team-card {
  background: transparent;
  position: relative;
}

.team-image {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  height: 380px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.team-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  /* Fix for cropped heads */
  transition: transform 0.5s ease;
  filter: grayscale(100%);
}

.team-card:hover .team-image img {
  transform: scale(1.1);
  filter: grayscale(0%);
}

.team-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 12, 16, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  opacity: 0;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.team-card:hover .team-overlay {
  opacity: 1;
}

.team-bio p {
  color: var(--text-primary);
  font-size: 0.95rem;
  line-height: 1.6;
  text-align: center;
  transform: translateY(20px);
  transition: transform 0.4s ease 0.1s;
}

.team-card:hover .team-bio p {
  transform: translateY(0);
}

.team-bio strong {
  color: var(--accent-primary);
  display: block;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.team-info h3 {
  font-size: 1.25rem;
  margin-bottom: 5px;
  color: var(--text-primary);
  transition: color 0.3s ease;
}

.team-card:hover .team-info h3 {
  color: var(--accent-primary);
}

.team-info span {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

@media (max-width: 480px) {

  /* Small Phone adjustments */
  .hero-title {
    font-size: 2.2rem;
  }

  .kpi-row {
    grid-template-columns: 1fr;
    /* Stack KPIs */
  }

  .visual-comparison-grid {
    grid-template-columns: 1fr;
  }

  .hero-marquee-wrapper {
    padding: 10px 0;
  }

  .marquee-logo {
    height: 24px;
    /* Smaller logos */
  }
}

/* ==========================================================================
   Internal Pages
   ========================================================================== */
.page-header {
  padding: 180px 0 80px;
  /* Space for fixed header */
  text-align: center;
  background: radial-gradient(circle at center top, rgba(102, 252, 241, 0.1) 0%, transparent 70%);
}

.page-title {
  font-size: 3.5rem;
  margin-bottom: 20px;
  background: linear-gradient(to right, #fff 20%, #C5C6C7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.page-subtitle {
  color: var(--text-secondary);
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ==========================================================================
   Responsive Refinements & Mobile Optimization
   ========================================================================== */

@media (max-width: 1024px) {

  /* Tablet Adjustments */
  .container {
    width: 94%;
  }

  .hero-title {
    font-size: 3.5rem;
  }

  .metrics-grid {
    gap: 20px;
  }

  .metric-item strong {
    font-size: 2.2rem;
  }
}

@media (max-width: 900px) {
  /* Main Mobile Breakpoint (Matches JS Mobile Toggle) */

  /* 1. Reset Mega Menus for Accordion Behavior */
  .has-mega-menu .mega-menu,
  .has-mega-menu.seo-menu .mega-menu,
  .industries-mega {
    position: static !important;
    width: 100% !important;
    min-width: 100% !important;
    transform: none !important;
    left: 0 !important;
    opacity: 1 !important;
    /* Managed by display */
    visibility: visible !important;
    display: none;
    /* Hidden by default */
    box-shadow: none;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 10px;
    padding: 15px;
  }

  .has-mega-menu.active .mega-menu {
    display: block;
    /* Show when active */
    animation: fadeIn 0.3s ease;
  }

  /* Disable hover-to-show on mobile to prevent double triggers */
  .has-mega-menu:hover .mega-menu {
    display: none;
  }

  .has-mega-menu.active:hover .mega-menu {
    display: block;
  }

  /* 2. Grid Adjustments */
  .testimonials-grid,
  .team-grid,
  .services-grid {
    grid-template-columns: 1fr;
    /* Single column on mobile */
    gap: 30px;
  }

  /* Fix min-width issue on small screens */
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  /* 3. Hero Section */
  .hero-title {
    font-size: 2.5rem;
    /* Smaller for mobile */
    word-wrap: break-word;
    /* Prevent overflow */
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
    /* Full width buttons */
  }

  /* 4. Team & Cards */
  .team-image {
    height: 320px;
    /* Adjust height */
  }

  .team-overlay {
    opacity: 1;
    /* Always show overlay text on mobile? Or keep hover? Let's keep hover/tap behavior but ensure tap works */
    background: linear-gradient(to top, rgba(11, 12, 16, 1), transparent);
    align-items: flex-end;
    padding-bottom: 20px;
  }

  .team-bio p {
    transform: translateY(0);
    /* No slide animation on mobile */
    font-size: 0.9rem;
  }

  /* 5. Metrics */
  .trust-strip .metrics-grid {
    grid-template-columns: 1fr 1fr;
    /* 2x2 grid */
    gap: 30px;
  }

  /* 6. Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 480px) {

  /* Small Phone adjustments */
  .hero-title {
    font-size: 2.2rem;
  }

  .kpi-row {
    grid-template-columns: 1fr;
    /* Stack KPIs */
  }

  .visual-comparison-grid {
    grid-template-columns: 1fr;
  }

  .hero-marquee-wrapper {
    padding: 10px 0;
  }

  .marquee-logo {
    height: 24px;
    /* Smaller logos */
  }
}

/* ==========================================================================
   Form Styles
   ========================================================================== */
.contact-form-container {
  background: var(--bg-surface);
  padding: 40px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.form-group {
  margin-bottom: 25px;
  position: relative;
}

.form-label {
  display: block;
  margin-bottom: 10px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 15px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 15px rgba(102, 252, 241, 0.1);
  background: rgba(255, 255, 255, 0.05);
}

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

.form-submit {
  width: 100%;
  padding: 18px;
  font-size: 1.1rem;
  cursor: pointer;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: #0b0c10;
  font-weight: 700;
  border: none;
  border-radius: 50px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.form-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(102, 252, 241, 0.3);
}

/* Checkbox/Radio (Simple Customization) */
.form-checkbox-group {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.checkbox-input {
  accent-color: var(--accent-primary);
  width: 18px;
  height: 18px;
}

/* ==========================================================================
   Hero Section (Moved from Inline)
   ========================================================================== */
/* Hero Section (Standardized) */
.hero,
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 800px;
  /* Increased min-height for better spacing */
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(rgba(11, 12, 16, 0.9), rgba(11, 12, 16, 0.8)), url('../images/hero_bg.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding-top: 100px;
  /* Offset for header */
}

/* Fix for Missing Grid Support */
.hero-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 5;
}

@media (max-width: 991px) {
  .hero-grid {
    gap: 2rem;
  }
}

#hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.6;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.hero-label {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(102, 252, 241, 0.1);
  border: 1px solid rgba(102, 252, 241, 0.2);
  color: var(--accent-primary);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hero-title {
  font-size: 4.5rem;
  line-height: 1.1;
  margin-bottom: 24px;
  background: linear-gradient(to right, #fff 20%, #C5C6C7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-title span {
  color: var(--accent-primary);
  -webkit-text-fill-color: var(--accent-primary);
  position: relative;
  text-shadow: 0 0 20px rgba(102, 252, 241, 0.3);
}

/* Glitch effect on hover for keywords */
.hero-title span:hover {
  text-shadow: 2px 2px 0px rgba(69, 162, 158, 0.5);
}

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

.hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
}

@media (max-width: 576px) {
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }
}

/* Trust Indicators (Hero) */
.hero-trust {
  margin-top: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

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

.trust-item {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.5;
  transition: var(--transition-fast);
  cursor: default;
}

.trust-item:hover {
  color: var(--text-primary);
  opacity: 1;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}


/* ==========================================================================
   Standardized Content Sections & Components (from Enterprise SEO)
   ========================================================================== */
.content-section {
  padding: 80px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: var(--text-primary);
}

.section-title span {
  color: var(--accent-primary);
}

.text-block {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 25px;
  max-width: 800px;
}

.grid-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin: 60px 0;
}

.visual-card {
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-lg);
}

.visual-card img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius-md);
}

.feature-list {
  list-style: none;
  margin-top: 30px;
}

.feature-list li {
  margin-bottom: 15px;
  /* padding-left: 30px; removed for inline SVG */
  /* position: relative; removed for inline SVG */
  font-size: 1.1rem;
}

/* .feature-list li::before removed as icons are now inline SVGs */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin: 60px 0;
}

.stat-card {
  text-align: center;
  padding: 30px;
  background: linear-gradient(145deg, rgba(31, 40, 51, 0.6), rgba(11, 12, 16, 0.8));
  border: 1px solid rgba(102, 252, 241, 0.1);
  border-radius: var(--border-radius-lg);
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent-primary);
  margin-bottom: 10px;
  font-family: var(--font-data);
}

.stat-label {
  font-size: 1rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Methodology Steps (Card Variant) */
.process-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 60px;
}

.process-card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
  padding: 40px 30px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  backdrop-filter: blur(10px);
}

.process-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(102, 252, 241, 0.1), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.process-card:hover {
  transform: translateY(-10px);
  border-color: rgba(102, 252, 241, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

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

.process-card-number {
  font-size: 3rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.05);
  line-height: 1;
  margin-bottom: 20px;
  transition: color 0.3s ease;
}

.process-card:hover .process-card-number {
  color: var(--accent-primary);
  opacity: 0.2;
}

.process-card h4 {
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 15px;
  position: relative;
  z-index: 1;
}

.process-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

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

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


/* ==========================================================================
   Audit Layout & Forms
   ========================================================================== */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

/* Left: Value Prop */
.audit-info {
  padding: 80px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(135deg, rgba(11, 12, 16, 1) 0%, rgba(31, 40, 51, 1) 100%);
  position: relative;
}

.audit-info::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGNpcmNsZSBjeD0iMSIgY3k9IjEiIHI9IjEiIGZpbGw9InJnYmEoMjU1LDI1NSwyNTUsMC4wNSkiLz48L3N2Zz4=');
  opacity: 0.5;
  pointer-events: none;
}

.audit-features {
  margin-top: 40px;
}

.feature-item {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
  align-items: flex-start;
}

.check-icon {
  color: var(--accent-success);
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 4px;
}

.check-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Right: Form */
.audit-form-container {
  padding: 80px 60px;
  background: var(--bg-surface);
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid rgba(255, 255, 255, 0.05);
}

.form-select {
  width: 100%;
  padding: 15px;
  background: rgba(11, 12, 16, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 1rem;
  transition: all 0.3s;
}

.form-select:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 10px rgba(102, 252, 241, 0.1);
}

.form-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 5px;
}

/* Responsive */
@media (max-width: 900px) {
  .split-layout {
    grid-template-columns: 1fr;
  }

  .audit-info,
  .audit-form-container {
    padding: 40px 20px;
  }
}


/* ==========================================================================
   Knowledge Hub / Deep Dive Section (SEO Expansion)
   ========================================================================== */
.knowledge-hub-section {
  padding: 100px 0;
  background: var(--bg-surface);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
}

.knowledge-hub-title {
  font-size: 2.5rem;
  margin-bottom: 50px;
  text-align: center;
  background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.7) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.knowledge-content {
  max-width: 900px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.knowledge-content h3 {
  font-size: 1.8rem;
  color: var(--text-primary);
  margin-top: 50px;
  margin-bottom: 25px;
  font-weight: 600;
}

.knowledge-content h4 {
  font-size: 1.4rem;
  color: var(--accent-primary);
  margin-top: 35px;
  margin-bottom: 15px;
}

.knowledge-content p {
  margin-bottom: 20px;
}

.knowledge-content ul {
  margin-bottom: 30px;
  padding-left: 20px;
}

.knowledge-content li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 10px;
}

.knowledge-content li::marker {
  color: var(--accent-primary);
}

.knowledge-faq-grid {
  display: grid;
  gap: 20px;
  margin-top: 40px;
}

.faq-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 25px;
  transition: all 0.3s ease;
}

.faq-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(102, 252, 241, 0.1);
}

.faq-item h4 {
  color: var(--text-primary);
  font-size: 1.2rem;
  margin-bottom: 15px;
  padding-right: 20px;
}

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

/* ==========================================================================
   Blog & Insights Card Styles
   ========================================================================== */
/* Blog Post Specific Hero */
.blog-post-hero {
  min-height: 80vh !important;
  /* Slightly shorter than home hero */
  padding-top: 140px;
  /* Account for fixed header */
  background: radial-gradient(circle at top right, rgba(31, 40, 51, 0.4) 0%, var(--bg-body) 70%);
}

.blog-post-hero .hero-title {
  font-size: 3.5rem;
  margin-bottom: 20px;
}

@media (max-width: 991px) {
  .blog-post-hero {
    min-height: auto !important;
    padding: 140px 0 60px;
    height: auto;
  }

  .blog-post-hero .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .blog-post-hero .post-meta-header {
    justify-content: center;
    display: flex;
  }
}

/* Blog Index Hero */
.blog-hero {
  padding: 160px 0 80px;
  text-align: center;
  background: radial-gradient(circle at center, rgba(31, 40, 51, 0.8) 0%, var(--bg-body) 100%);
  background-position: center;
  background-size: cover;
  position: relative;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    margin: 40px 0;
  }
}

.blog-card {
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent-primary);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.blog-image {
  height: 220px;
  background: #222;
  position: relative;
  overflow: hidden;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.blog-content {
  padding: 30px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.blog-category {
  color: var(--accent-primary);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  font-weight: 600;
}

.blog-title {
  font-size: 1.4rem;
  margin-bottom: 15px;
  line-height: 1.4;
}

.blog-title a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.3s;
}

.blog-title a:hover {
  color: var(--accent-primary);
}

.blog-excerpt {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 25px;
  flex-grow: 1;
}

.blog-meta {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.read-more {
  color: var(--accent-secondary);
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.featured-post {
  background: linear-gradient(to right, rgba(102, 252, 241, 0.05), transparent);
  border: 1px solid var(--accent-primary);
}

/* ==========================================================================
   Footer Polish (Enhanced UI & Branding)
   ========================================================================== */
.site-footer {
  padding: 100px 0 60px;
  background: radial-gradient(circle at 50% -20%, #1a1c24 0%, var(--bg-body) 70%);
  border-top: 1px solid rgba(102, 252, 241, 0.1);
  font-size: 0.95rem;
  position: relative;
  z-index: 10;
  text-align: left !important;
  /* Strict override */
}

/* Subtle Grid Pattern Overlay */
.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.3;
  pointer-events: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  /* Wider first column for logo */
  gap: 60px;
  margin-bottom: 60px;
  position: relative;
  z-index: 2;
}

.footer-col {
  text-align: left;
}

.footer-col h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 25px;
  position: relative;
  display: inline-block;
  letter-spacing: 1px;
  font-weight: 700;
  text-transform: uppercase;
  /* Match reference */
}

.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 40px;
  height: 2px;
  background: var(--accent-primary);
  /* Teal underline */
  border-radius: 2px;
}

/* Link Styling with Icons */
.footer-links li {
  margin-bottom: 15px;
  /* More spacing */
}

.footer-links a {
  color: #B0B8C8;
  /* Lighter text */
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 400;
  font-size: 0.95rem;
}

.footer-links a::before {
  content: '›';
  color: var(--accent-primary);
  /* Teal Chevron */
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1;
}

.footer-links a:hover {
  color: #fff;
  transform: translateX(5px);
}

/* Hiring Badge */
.hiring-badge {
  background: var(--accent-primary);
  color: #000;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Contact Info Styling */
.contact-info li {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
  color: #B0B8C8;
  line-height: 1.5;
  align-items: flex-start;
}

.contact-info li>svg,
.contact-info li>span {
  /* Create the outlined box look for icons if using spans, or style standard svgs */
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(102, 252, 241, 0.2);
  border-radius: 8px;
  background: rgba(11, 12, 16, 0.5);
  color: var(--accent-primary);
}

/* Footer Bottom Polish */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  position: relative;
  z-index: 2;
}

.footer-social {
  display: flex;
  gap: 15px;
}

.social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--accent-primary);
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.3s ease;
  font-size: 0;
  /* Hide text, show icon if we had font-awesome, but here use initials */
}

/* Revert font-size 0 to show text if no icons */
.social-link {
  font-size: 0.8rem;
  width: auto;
  height: auto;
  padding: 8px 16px;
  border-radius: 50px;
}

.social-link:hover {
  background: var(--accent-primary);
  color: #000;
  box-shadow: 0 0 15px rgba(102, 252, 241, 0.3);
  border-color: var(--accent-primary);
}

/* Footer Responsive Overrides */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
  }
}

@media (max-width: 600px) {
  .site-footer {
    padding: 60px 0 30px;
    text-align: left !important;
    /* Keep left align on mobile */
  }

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

  .footer-bottom {
    flex-direction: column-reverse;
    /* Copyright last */
    align-items: flex-start;
    gap: 25px;
  }

  .footer-social {
    width: 100%;
    justify-content: flex-start;
  }
}

/* ==========================================================================
   Logo Blending Fix (Global Enforce)
   ========================================================================== */
.brand-logo img,
.footer-logo img {
  filter: grayscale(100%) invert(1) brightness(3.0) contrast(2.0) !important;
  mix-blend-mode: screen !important;
  background: transparent !important;
  opacity: 1 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* Day Mode Reset for Logos */
body.day-mode .brand-logo img,
body.day-mode .footer-logo img {
  filter: none !important;
  mix-blend-mode: multiply !important;
  /* Multiply works better for white backgrounds */
}

/* ==========================================================================
   Sticky CTA (Injected by JS)
   ========================================================================== */
.sticky-cta {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: rgba(11, 12, 16, 0.9);
  border: 1px solid var(--accent-primary);
  padding: 15px 25px;
  border-radius: 50px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 15px;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transform: translateY(100px);
  /* Hidden by default */
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sticky-cta.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.sticky-cta-text {
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  padding-right: 15px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.sticky-cta-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
}

.sticky-cta-btn:hover {
  color: #fff;
}

@media (max-width: 768px) {
  .sticky-cta {
    bottom: 20px;
    right: 20px;
    left: 20px;
    justify-content: space-between;
  }

  .sticky-cta-text {
    font-size: 0.9rem;
  }
}

/* ==========================================================================
   Enterprise SEO Page Specific Layouts
   ========================================================================== */

/* 1. Visual Grid (Side-by-Side Text & Image) */
.grid-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 60px;
}

.grid-visual.reverse-layout {
  direction: rtl;
  /* Trick to flip columns */
}

.grid-visual.reverse-layout>* {
  direction: ltr;
  /* Reset text direction */
}

@media (max-width: 991px) {

  .grid-visual,
  .grid-visual.reverse-layout {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 40px;
  }
}

/* 2. Process Cards Grid (Methodology) */
.process-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.process-card {
  background: rgba(31, 40, 51, 0.3);
  border: 1px solid rgba(102, 252, 241, 0.1);
  padding: 30px;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.process-card:hover {
  background: rgba(31, 40, 51, 0.6);
  border-color: var(--accent-primary);
  transform: translateY(-5px);
}

.process-card h4 {
  color: #fff;
  margin-bottom: 15px;
  font-size: 1.2rem;
}

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

/* 3. Stats Grid */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 50px;
  text-align: center;
}

.stat-card {
  background: rgba(255, 255, 255, 0.02);
  padding: 40px 20px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--accent-primary);
  margin-bottom: 10px;
  line-height: 1;
}

.stat-label {
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
}

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

/* 4. Tools Grid (Stack) */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
  justify-content: center;
}

.tool-item {
  background: rgba(11, 12, 16, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 25px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.tool-item:hover {
  background: rgba(31, 40, 51, 0.8);
  border-color: var(--accent-primary);
  color: #fff;
  transform: translateY(-5px);
}

.tool-icon {
  color: var(--accent-primary);
}

/* ==========================================================================
   Knowledge Hub / SEO Section (Redesign)
   ========================================================================== */
.knowledge-hub-section {
  background: linear-gradient(180deg, var(--bg-body) 0%, #171c24 100%);
  position: relative;
  padding-top: 100px;
  padding-bottom: 100px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.knowledge-hub-title {
  text-align: center;
  font-size: 3.5rem;
  margin-bottom: 60px;
  background: linear-gradient(135deg, #fff 0%, #a2aab8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -1px;
}

.knowledge-content {
  max-width: 1000px;
  margin: 0 auto;
}

.knowledge-content h3 {
  font-size: 2rem;
  color: var(--accent-primary);
  margin-top: 50px;
  margin-bottom: 25px;
  border-left: 3px solid var(--accent-secondary);
  padding-left: 15px;
}

.knowledge-content h4 {
  font-size: 1.3rem;
  color: #fff;
  margin-top: 35px;
  margin-bottom: 15px;
}

.knowledge-content p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 25px;
}

.knowledge-content ul {
  list-style: none;
  margin-bottom: 30px;
  background: rgba(255, 255, 255, 0.02);
  padding: 30px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.knowledge-content li {
  margin-bottom: 15px;
  position: relative;
  padding-left: 25px;
}

.knowledge-content li::before {
  content: '➔';
  position: absolute;
  left: 0;
  color: var(--accent-secondary);
}

.knowledge-faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.faq-item {
  background: rgba(31, 40, 51, 0.4);
  padding: 30px;
  border-radius: 12px;
  border: 1px solid rgba(102, 252, 241, 0.1);
  transition: all 0.3s ease;
}

.faq-item:hover {
  background: rgba(31, 40, 51, 0.8);
  border-color: var(--accent-primary);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.faq-item h4 {
  margin-top: 0;
  font-size: 1.1rem;
  color: var(--accent-primary);
  margin-bottom: 15px;
}

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

/* ==========================================================================
   Premium Text Sections (Science & Philosophy)
   ========================================================================== */

/* General Section Enhancements */
.content-section {
  position: relative;
  z-index: 1;
  overflow: hidden;
}

/* Science of Scale Section */
.science-section {
  background: radial-gradient(circle at top right, #1a222e 0%, var(--bg-body) 60%);
  padding: 100px 0;
}

.science-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-top: 50px;
}

.science-card {
  background: rgba(31, 40, 51, 0.3);
  border: 1px solid rgba(102, 252, 241, 0.1);
  padding: 40px;
  border-radius: 16px;
  backdrop-filter: blur(10px);
  transition: all 0.4s ease;
  position: relative;
}

.science-card:hover {
  background: rgba(31, 40, 51, 0.6);
  border-color: var(--accent-primary);
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.science-card h3 {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.science-card h3::before {
  content: '';
  display: block;
  width: 8px;
  height: 30px;
  background: var(--gradient-primary);
  border-radius: 4px;
}

.science-card p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 15px;
}

/* Philosophy Section */
.philosophy-section {
  background: linear-gradient(135deg, #0f1219 0%, #1f2833 100%);
  padding: 100px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.philosophy-content {
  background: rgba(255, 255, 255, 0.02);
  padding: 50px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.tech-stack-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.tech-stack-item {
  background: rgba(0, 0, 0, 0.3);
  padding: 15px 20px;
  border-radius: 8px;
  border-left: 2px solid var(--accent-secondary);
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.tech-stack-item:hover {
  background: rgba(102, 252, 241, 0.05);
  padding-left: 25px;
  color: #fff;
}

.tech-stack-item strong {
  color: var(--accent-primary);
  display: block;
  margin-bottom: 5px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Responsive */
@media (max-width: 768px) {
  .science-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Premium Components: Frameworks & Testimonials
   ========================================================================== */

/* 1. Funnel Visualization (Frameworks) */
.funnel-visualization {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 800px;
  margin: 40px auto 0;
  position: relative;
  z-index: 1;
}

/* Connecting Line */
.funnel-visualization::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--accent-primary), transparent);
  transform: translateX(-50%);
  z-index: -1;
  opacity: 0.3;
}

.funnel-step {
  background: rgba(31, 40, 51, 0.4);
  border: 1px solid rgba(102, 252, 241, 0.1);
  border-radius: 16px;
  padding: 30px;
  backdrop-filter: blur(12px);
  text-align: center;
  position: relative;
  transition: all 0.4s ease;
  overflow: hidden;
}

.funnel-step:hover {
  background: rgba(31, 40, 51, 0.7);
  border-color: var(--accent-primary);
  transform: scale(1.02);
  box-shadow: 0 0 30px rgba(102, 252, 241, 0.15);
}

/* Funnel Sizes */
.funnel-step:nth-child(1) {
  width: 100%;
}

.funnel-step:nth-child(2) {
  width: 85%;
  margin: 0 auto;
}

.funnel-step:nth-child(3) {
  width: 70%;
  margin: 0 auto;
}

.funnel-step h4 {
  color: var(--accent-primary);
  font-size: 1.2rem;
  margin-bottom: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

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

/* 2. Testimonials Section */
.testimonials-section {
  background: linear-gradient(135deg, #0b0c10 0%, #11151c 100%);
  position: relative;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  margin-top: 50px;
}

.testimonial-card {
  background: linear-gradient(145deg, rgba(31, 40, 51, 0.4), rgba(11, 12, 16, 0.8));
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 40px;
  border-radius: 20px;
  position: relative;
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  border-color: var(--accent-secondary);
  transform: translateY(-5px);
}

/* Quote Icon Watermark */
.testimonial-card .quote-icon {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 6rem;
  color: var(--accent-primary);
  opacity: 0.1;
  font-family: serif;
  line-height: 1;
}

.quote-text {
  font-size: 1.2rem;
  font-style: italic;
  color: #e2e8f0;
  line-height: 1.6;
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
}

.author-info {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
}

.author-info strong {
  color: var(--accent-primary);
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.author-info span {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ==========================================================================
   Premium Services Grid
   ========================================================================== */

/* Redundant grid definition removed */

.service-card {
  background: rgba(31, 40, 51, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 35px;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  backdrop-filter: blur(10px);
  text-decoration: none;
  display: block;
}

.service-card:hover {
  background: rgba(31, 40, 51, 0.6);
  transform: translateY(-8px);
  border-color: var(--accent-primary);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2),
    0 0 20px rgba(102, 252, 241, 0.1);
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 25px;
  display: inline-block;
  filter: grayscale(100%);
  transition: all 0.4s ease;
}

.service-card:hover .service-icon {
  filter: none;
  transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 15px;
  font-weight: 700;
}

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

/* Subtle corner accent */
.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 3px;
  background: var(--gradient-primary);
  transition: width 0.4s ease;
}

.service-card:hover::after {
  width: 100%;
}

/* Premium Hero Animation (Instant Trigger) */
.hero-reveal {
  opacity: 0;
  animation: heroFadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.2s;
}


@keyframes heroFadeInUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Cleanup empty rulesets */
.blog-hero {
  position: relative;
  z-index: 1;
}




/* ==========================================================================
   Premium Service Icons (SVG Upgrade)
   ========================================================================== */
.service-icon {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(102, 252, 241, 0.2);
  border-radius: 12px;
  margin-bottom: 25px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  filter: none !important;
  /* Override old grayscale */
}

.service-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(102, 252, 241, 0.15), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.service-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--accent-primary);
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  z-index: 1;
  transition: transform 0.4s ease;
}

.service-card:hover .service-icon {
  background: rgba(102, 252, 241, 0.08);
  border-color: var(--accent-primary);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2), 0 0 15px rgba(102, 252, 241, 0.2);
}

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

.service-card:hover .service-icon svg {
  transform: scale(1.1);
  stroke: #fff;
}


/* ==========================================================================
   Mega Menu Premium Icons (SVG Upgrade)
   ========================================================================== */
.mega-item .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(102, 252, 241, 0.1);
  border-radius: 10px;
  margin-right: 15px;
  font-size: 0;
  /* Hide any emoji associations */
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.mega-item:hover .icon {
  background: rgba(102, 252, 241, 0.15);
  border-color: var(--accent-primary);
  transform: scale(1.05);
  /* Subtle zoom */
  box-shadow: 0 0 15px rgba(102, 252, 241, 0.25);
}

/* Internal Glow */
.mega-item .icon::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.2), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mega-item:hover .icon::before {
  opacity: 1;
}

.mega-item .icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--accent-secondary);
  /* Mint/Cyan accent */
  stroke-width: 1.5;
  fill: none;
  transition: all 0.3s ease;
  z-index: 1;
}

.mega-item:hover .icon svg {
  stroke: #fff;
  transform: rotate(5deg);
}

/* Specific Fix for Service Grid in Body (Reuse same class but larger if needed, 
   but currently .service-icon handles the main body cards. 
   This addresses the dropdown items specifically.) */

/* ==========================================================================
   Sticky CTA (Injected by JS) - Premium Redesign
   ========================================================================== */
.sticky-cta {
  position: fixed;
  bottom: 30px;
  right: 100px;
  /* Glass capsule background */
  background: rgba(11, 12, 16, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);

  padding: 6px 6px 6px 24px;
  /* Tight padding on right/top/bottom, space on left for text */
  border-radius: 100px;
  z-index: 998;
  display: flex;
  align-items: center;
  gap: 20px;

  transform: translateY(100px);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  /* Bouncy pop-up */
}

.sticky-cta.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.sticky-cta-text {
  color: #fff;
  font-weight: 500;
  font-size: 0.95rem;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.sticky-cta-btn {
  display: flex;
  align-items: center;
  gap: 10px;

  /* Solid High-Contrast Button */
  background: var(--accent-primary);
  /* Cyan Background */
  color: #0b0c10;
  /* Dark Text for readability */

  padding: 10px 24px;
  border-radius: 100px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(102, 252, 241, 0.2);
}

.sticky-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(102, 252, 241, 0.5);
  /* Glowing effect */
  background: #fff;
  /* White on hover */
}

.sticky-cta-btn svg {
  transition: transform 0.3s ease;
}

.sticky-cta-btn:hover svg {
  transform: translateX(4px);
}

@media (max-width: 768px) {
  .sticky-cta {
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    /* Center horizontal, hidden vertical */
    right: auto;
    bottom: 20px;
    width: 90%;
    justify-content: space-between;
    padding: 8px 8px 8px 20px;
  }

  .sticky-cta.is-visible {
    transform: translateX(-50%) translateY(0);
  }

  .sticky-cta-text {
    font-size: 0.85rem;
  }

  .sticky-cta-btn {
    padding: 8px 16px;
    font-size: 0.8rem;
  }
}

/* ==========================================================================
   WhatsApp Widget (Injected by JS)
   ========================================================================== */
.whatsapp-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  text-decoration: none;
}

.whatsapp-widget:hover {
  transform: scale(1.1) rotate(10deg);
  box-shadow: 0 15px 40px rgba(37, 211, 102, 0.6);
}

.whatsapp-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.whatsapp-tooltip {
  position: absolute;
  right: 70px;
  background: white;
  color: #0b0c10;
  padding: 8px 15px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(20px);
  transition: all 0.3s ease;
  pointer-events: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent transparent white;
}

.whatsapp-widget:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* ==========================================================================
   Scale Revenue Funnel Section
   ========================================================================== */
.framework-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
  padding: 4rem 0;
  position: relative;
}

.framework-content {
  position: relative;
  z-index: 2;
}

.funnel-visualization {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  margin-top: 30px;
  padding-left: 30px;
  /* Space for the line */
}

/* Connecting Line */
.funnel-visualization::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 30px;
  bottom: 30px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-primary), var(--accent-secondary), rgba(255, 255, 255, 0.1));
}

.funnel-step {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1.5rem 2rem;
  border-radius: 16px;
  position: relative;
  backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  isolation: isolate;
  overflow: hidden;
}

/* Glass Shine Effect */
.funnel-step::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  transition: left 0.5s;
}

.funnel-step:hover::after {
  left: 100%;
}

.funnel-step:hover {
  background: rgba(255, 255, 255, 0.04);
  transform: translateX(10px);
  border-color: rgba(102, 252, 241, 0.3);
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
}

/* Dot on the line */
.funnel-step::before {
  content: '';
  position: absolute;
  left: -29px;
  /* - (padding-left 30) + (dot radius) adjustment */
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg-dark);
  border: 2px solid var(--accent-primary);
  box-shadow: 0 0 0 4px rgba(11, 12, 16, 1);
  /* Spacing from line */
  z-index: 2;
  transition: all 0.3s ease;
}

.funnel-step:hover::before {
  background: var(--accent-primary);
  box-shadow: 0 0 15px var(--accent-primary), 0 0 0 4px rgba(11, 12, 16, 1);
}

.funnel-step h4 {
  margin: 0 0 5px 0;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.funnel-step h4 span {
  font-size: 0.8rem;
  color: var(--accent-primary);
  background: rgba(102, 252, 241, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(102, 252, 241, 0.2);
}

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

/* AIDA Visualization */
.aida-visual {
  position: relative;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.aida-circle {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 1px solid rgba(102, 252, 241, 0.1);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(102, 252, 241, 0.03) 0%, transparent 70%);
  animation: pulse-glow 4s infinite alternate;
}

@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 30px rgba(102, 252, 241, 0.05);
  }

  100% {
    box-shadow: 0 0 60px rgba(102, 252, 241, 0.15);
  }
}

.aida-text {
  font-size: 5rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, #fff 0%, var(--accent-primary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  z-index: 2;
  letter-spacing: -2px;
}

.aida-label {
  margin-top: 10px;
  font-size: 1.2rem;
  color: var(--text-primary);
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.aida-steps {
  display: flex;
  gap: 15px;
  margin-top: 30px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.aida-orbit {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  animation: spin 20s linear infinite;
}

.aida-orbit::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 50%;
  width: 10px;
  height: 10px;
  background: var(--accent-secondary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-secondary);
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Mobile Responsive */
@media (max-width: 991px) {
  .framework-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .aida-visual {
    order: -1;
    padding: 0;
  }
}

/* Logo Marquee */
.logo-marquee-section {
  width: 100%;
  padding: 20px 0;
  background: rgba(11, 12, 16, 0.8);
  backdrop-filter: blur(5px);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.logo-marquee-container {
  display: flex;
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.logo-marquee-track {
  display: flex;
  gap: 40px;
  animation: marquee-scroll 40s linear infinite;
  min-width: 100%;
  padding: 20px 0;
  align-items: center;
  width: max-content;
  /* Ensure track spans full width of children */
}

/* Ensure cards have fixed width in marquee */
.logo-marquee-track .client-logo-card {
  min-width: 280px;
  width: 280px;
  height: 140px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 25px;
  transition: all 0.3s ease;
}

.logo-marquee-track img {
  height: 85px;
  width: auto;
  max-width: 90%;
  object-fit: contain;
  filter: brightness(1.5) contrast(1.1);
  opacity: 1;
  transition: all 0.3s ease;
}

.logo-marquee-track img:hover {
  filter: grayscale(0%) brightness(1.2) contrast(1.1);
  opacity: 1;
  transform: scale(1.1);
}

@keyframes marquee-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* Pause on hover */
.logo-marquee-container:hover .logo-marquee-track,
.logo-marquee-container.is-paused .logo-marquee-track {
  animation-play-state: paused;
}

/* Marquee Navigation Arrows */
.marquee-nav {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 10;
  pointer-events: none;
}

.nav-arrow {
  width: 50px;
  height: 50px;
  background: rgba(31, 40, 51, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid var(--accent-primary);
  border-radius: 50%;
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(102, 252, 241, 0.2);
}

.nav-arrow:hover {
  background: var(--accent-primary);
  color: var(--bg-body);
  transform: scale(1.1);
  box-shadow: 0 0 30px rgba(102, 252, 241, 0.4);
}

.nav-arrow svg {
  width: 24px;
  height: 24px;
}

/* ==========================================================================
   Missing Utility Classes (Injected by JS)
   ========================================================================== */

/* 1. Reveal on Scroll (Observer-based) */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-100 {
  transition-delay: 0.1s;
}

.delay-200 {
  transition-delay: 0.2s;
}

.delay-300 {
  transition-delay: 0.3s;
}

/* 2. Sticky CTA (Free Growth Forecast) */
.sticky-cta {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 990;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 10px 15px;
  background: rgba(31, 40, 51, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(102, 252, 241, 0.2);
  border-radius: 50px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transform: translateY(150%);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sticky-cta.is-visible {
  transform: translateY(0);
}

.sticky-cta-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  padding-left: 5px;
}

.sticky-cta-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-primary);
  color: #000;
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.sticky-cta-btn:hover {
  transform: scale(1.05);
  background: #fff;
}

/* 3. WhatsApp Widget */
.whatsapp-widget {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 999;
  background: #25D366;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
}

.whatsapp-widget:hover {
  transform: scale(1.1) rotate(10deg);
  box-shadow: 0 15px 35px rgba(37, 211, 102, 0.6);
}

.whatsapp-icon svg {
  width: 35px;
  height: 35px;
  fill: white;
}

.whatsapp-tooltip {
  position: absolute;
  left: 70px;
  background: white;
  color: #0b0c10;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-10px);
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.whatsapp-tooltip::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: transparent white transparent transparent;
}

.whatsapp-widget:hover .whatsapp-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
  .sticky-cta {
    bottom: 20px;
    right: 20px;
    padding: 8px 12px;
  }

  .sticky-cta-text {
    display: none;
    /* Icon only on mobile to save space */
  }

  .whatsapp-widget {
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
  }

  .whatsapp-icon svg {
    width: 28px;
    height: 28px;
  }
}

/* ==========================================================================
   Fixes for Image Alignment & Distortion
   ========================================================================== */

/* 1. Global Image Fix */
img {
  height: auto;
  /* Essential to prevent distortion when width varies */
}

/* 2. Hero Image Alignment */
.floating-hero {
  max-width: 100%;
  height: auto !important;
  /* Override HTML attribute */
  object-fit: contain;
  /* Animation (optional, if intended) */
  animation: float-hero 6s ease-in-out infinite;
}

@keyframes float-hero {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-20px);
  }
}

/* 3. Marquee Logo Fixes */
.marquee-logo {
  width: auto !important;
  /* Let aspect ratio decide width */
  height: 40px !important;
  /* Fixed height for uniformity */
  object-fit: contain;
  margin: 0 20px;
  /* Add spacing if track gap is insufficient */
}


/* ==========================================================================
   Client Logo Cards (Homepage Visibility Fix)
   ========================================================================== */
.client-logo-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  padding: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
  width: 100%;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.client-logo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 0 20px rgba(102, 252, 241, 0.2);
  background: #000000;
  /* Fixed: Black background on hover */
  border-color: var(--accent-primary);
}

.client-logo-card img {
  max-height: 85px;
  width: auto;
  max-width: 100%;
  filter: none;
  opacity: 1;
  transition: all 0.3s ease;
}

.client-logo-card:hover img {
  transform: scale(1.05);
}

/* -----------------------------------------------------------------------------
   Case Study Horizontal Marquee (Recent Wins)
   ----------------------------------------------------------------------------- */
.case-marquee-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 20px 0;
  /* Fade mask for smooth edges */
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.case-marquee-track {
  display: flex;
  gap: 30px;
  width: max-content;
  animation: case-scroll 60s linear infinite;
  /* Renamed animation */
}

.case-marquee-track:hover,
.case-marquee-container.is-paused .case-marquee-track {
  animation-play-state: paused;
}

/* Marquee Card Styling overrides */
.case-marquee-track .case-study-card {
  width: 320px;
  /* Fixed width for horizontal layout */
  min-width: 320px;
  flex-shrink: 0;
  margin: 0;
  white-space: normal;
  /* Ensure text wraps */
  padding: 16px;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Adjust typography for smaller cards */
.case-marquee-track .case-study-card h3 {
  font-size: 1.05rem !important;
}

.case-marquee-track .case-study-card p {
  font-size: 0.85rem;
  margin-bottom: 15px;
}

@keyframes case-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(-320px * 5 - 30px * 5));
    /* Move by (card width + gap) * number of unique cards */
  }
}

/* Fix massive footer icons */
.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-links a {
  color: var(--text-secondary);
  transition: color 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}

.social-links a:hover {
  background: var(--accent-primary);
  color: var(--bg-body);
}

.social-links svg {
  width: 20px;
  height: 20px;
  stroke-width: 2px;
}

/* Framework Cards Redesign */
.framework-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.framework-card {
  background: var(--bg-surface);
  border: 1px solid rgba(102, 252, 241, 0.1);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.framework-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-primary), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.framework-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  border-color: var(--accent-primary);
}

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

.framework-title {
  font-size: 1.8rem;
  color: var(--text-primary);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.framework-icon {
  color: var(--accent-primary);
  height: 32px;
}

/* ==========================================================================
   Client Logo Carousel (Merged Theme)
   ========================================================================== */
.logo-marquee-wrapper {
  position: relative;
  padding: 0 10px;
}

.logo-marquee-container {
  overflow: hidden;
  padding: 20px 0;
  /* Space for hover lift */
}

.logo-marquee-track {
  display: flex;
  gap: 30px;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  width: max-content;
  /* Allow horizontal scrolling */
}

/* Card Style */
.client-logo-card {
  background: rgba(31, 40, 51, 0.4);
  /* Dark Glass */
  border: 1px solid rgba(102, 252, 241, 0.1);
  border-radius: 16px;
  padding: 30px;
  width: 240px;
  height: 140px;
  display: flex;
  /* Centering */
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  flex-shrink: 0;
}

.client-logo-card:hover {
  border-color: var(--accent-primary);
  background: rgba(31, 40, 51, 0.7);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Inner Logo Style (White Box as per reference) */
.client-logo-card img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  background: #fff;
  /* White tile effect for logo visibility */
  padding: 15px;
  /* Breathing room */
  border-radius: 8px;
  /* Rounded inner corners */
  transition: transform 0.3s ease;
}

.client-logo-card:hover img {
  transform: scale(1.05);
}

/* Navigation Arrows */
.marquee-nav {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  transform: translateY(-50%);
  pointer-events: none;
  /* Let clicks pass through */
  display: flex;
  justify-content: space-between;
  z-index: 10;
  padding: 0 10px;
}

.nav-arrow {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(11, 12, 16, 0.9);
  border: 1px solid var(--accent-primary);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  /* Re-enable for buttons */
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.nav-arrow:hover {
  background: var(--accent-primary);
  color: #000;
  box-shadow: 0 0 15px rgba(102, 252, 241, 0.4);
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .client-logo-card {
    width: 180px;
    height: 110px;
    padding: 20px;
  }

  .nav-arrow {
    width: 35px;
    height: 35px;
  }
}

/* Fix for Royal Oak Logo (White asset on White background) */
.client-logo-card img[src*="royaloak.png"],
.client-logo-card img[alt="Royal Oak"] {
  filter: invert(1) hue-rotate(180deg);
}

/* ==========================================================================
   Audit Page Layout Fixes
   ========================================================================== */
.split-layout {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 100px var(--spacing-md) 60px;
  gap: 60px;
  max-width: var(--container-width);
  margin: 0 auto;
}

.audit-info {
  flex: 1;
  max-width: 600px;
}

.audit-form-container {
  flex: 1;
  max-width: 500px;
  background: rgba(31, 40, 51, 0.6);
  backdrop-filter: blur(10px);
  padding: 40px;
  border-radius: var(--border-radius-lg);
  border: 1px solid rgba(102, 252, 241, 0.1);
  box-shadow: var(--shadow-lg);
}

.audit-features {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.check-icon {
  width: 24px;
  height: 24px;
  min-width: 24px;
  background: rgba(102, 252, 241, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  flex-shrink: 0;
}

.check-icon svg {
  width: 14px;
  height: 14px;
}

/* Response for Mobile */
@media (max-width: 991px) {
  .split-layout {
    flex-direction: column;
    padding-top: 120px;
    text-align: center;
    gap: 40px;
  }

  .audit-info,
  .audit-form-container {
    width: 100%;
    max-width: 100%;
  }

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

/* ==========================================================================
   Insights Infinite Scroll Marquee
   ========================================================================== */
.insights-marquee-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 20px 0;
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.insights-marquee-track {
  display: flex;
  gap: 30px;
  width: max-content;
  animation: insightsScroll 20s linear infinite;
}

.insights-marquee-track:hover {
  animation-play-state: paused;
}

@keyframes insightsScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(-50% - 15px));
    /* Move half width + half gap */
  }
}

/* Ensure cards in marquee behave */
.insights-marquee-track .blog-card {
  flex-shrink: 0;
  width: 350px;
  /* Fixed width for smooth scroll */
}

/* Kotak Case Study Specifics */
.stats-grid-mini {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.stat-card-mini {
  background: rgba(255, 255, 255, 0.03);
  padding: 25px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.tech-stack-mini {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.case-overview-text {
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.stat-card-value {
  font-size: 2.5rem;
  color: var(--accent-primary);
  margin-bottom: 5px;
}

.stat-card-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

/* Highlight Box */
.highlight-box {
  border-left: 2px solid var(--accent-primary);
  padding-left: 30px;
  margin-bottom: 30px;
  position: relative;
}

.highlight-box-dot {
  position: absolute;
  left: -9px;
  top: 0;
  width: 16px;
  height: 16px;
  background: var(--accent-primary);
  border-radius: 50%;
}

/* Bar Chart Visual */
.chart-bar-visual {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
  padding: 30px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
}

.chart-bar-list {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  height: 200px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.chart-bar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 15%;
}

.chart-bar {
  width: 100%;
  border-radius: 4px 4px 0 0;
  transition: height 1s ease;
}

.chart-bar-label {
  font-size: 0.8rem;
  margin-top: 10px;
  color: var(--text-muted);
}

/* ==========================================================================
   FAQ Section Styles
   ========================================================================== */
.faq-section {
  position: relative;
  padding: var(--spacing-3xl) 0;
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-md);
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-surface-glass);
  border: 1px solid rgba(102, 252, 241, 0.1);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  transition: var(--transition-normal);
}

.faq-item:hover {
  border-color: rgba(102, 252, 241, 0.3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.faq-item details {
  width: 100%;
}

.faq-item summary {
  list-style: none;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  transition: color 0.3s ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  color: var(--accent-primary);
}

.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--accent-primary);
  transition: transform 0.3s ease;
  line-height: 1;
}

.faq-item details[open] summary::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 25px 25px 25px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: -5px;
  /* Visual tweak to pull answer closer to line if needed, else 0 */
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   Case Study Components
   ========================================================================== */
.case-mockup-wrapper {
  margin-top: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5);
  background: var(--bg-surface);
  padding: 50px;
  text-align: center;
}

/* ==========================================================================
   AEO Page Specifics (Challenge Cards)
   ========================================================================== */
.challenge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.challenge-card {
  background: #0B0E14;
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 40px 30px;
  border-radius: 16px;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  min-height: 200px;
}

.challenge-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-primary);
  box-shadow: 0 15px 40px rgba(102, 252, 241, 0.1);
}

.challenge-card h3 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 15px;
  color: var(--accent-success);
  text-shadow: 0 0 25px rgba(0, 230, 118, 0.5);
  line-height: 1.1;
}

.challenge-card:nth-child(2) h3,
.challenge-card:nth-child(3) h3 {
  color: var(--accent-primary);
  text-shadow: 0 0 25px rgba(102, 252, 241, 0.5);
}

/* Specific fix for "Knowledge Panel" length */
.challenge-card:nth-child(3) h3 {
  font-size: 1.5rem;
  /* Reduced to 1.5rem */
  word-break: break-word;
  /* Ensure it doesn't overflow */
}

.challenge-card p {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #8892b0;
  margin-bottom: 0;
  max-width: 90%;
}

/* ==========================================================================
   Mega Menu Scrollbar Fix
   ========================================================================== */
.mega-menu,
.mega-content,
.mega-column,
.services-mega,
.services-tabs,
.tab-content {
  max-height: none !important;
  overflow: visible !important;
  overflow-y: visible !important;
}

/* ==========================================================================
   WhatsApp Widget Styles
   ========================================================================== */
.whatsapp-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  transition: all 0.3s ease;
  cursor: pointer;
}

.whatsapp-widget:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
}

.whatsapp-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Tooltip for "Chat with AI Agent" */
.whatsapp-tooltip {
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%) translateX(10px);
  background-color: #333;
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -6px;
  transform: translateY(-50%);
  border-width: 6px 0 6px 6px;
  border-style: solid;
  border-color: transparent transparent transparent #333;
}

.whatsapp-widget:hover .whatsapp-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

/* --- TWC Premium Blog Styles --- */
#reading-progress { position: fixed; top: 0; left: 0; width: 100%; height: 4px; background: rgba(255, 255, 255, 0.05); z-index: 9999; }
#progress-bar { height: 100%; width: 0%; background: linear-gradient(135deg, #66FCF1 0%, #45A29E 100%); box-shadow: 0 0 10px #66FCF1; }
.toc-widget { padding: 25px; background: rgba(31, 40, 51, 0.7); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 8px; position: sticky; top: 120px; }
.toc-list a:hover, .toc-list a.active { color: #66FCF1; padding-left: 5px; }
.featured-card { display: grid; grid-template-columns: 1.2fr 1fr; background: linear-gradient(145deg, rgba(31, 40, 51, 0.6) 0%, rgba(11, 12, 16, 0.8) 100%); border-radius: 16px; overflow: hidden; border: 1px solid rgba(102, 252, 241, 0.1); transition: 0.3s; }

/* --- Blog Mega Menu Fix --- */
.blog-mega-wrapper { position: relative; }
.blog-mega {
    min-width: 600px !important;
    left: 50% !important;
    transform: translateX(-50%) translateY(20px) !important;
}
.blog-mega-wrapper:hover .blog-mega {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(-50%) translateY(0) !important;
}
