/* ============================================
   CREASHIFT - CORPORATE PROFESSIONAL
   Purple Logo Theme (Purple/Black/White)
   ============================================ */

/* === COLOR SCHEME FROM LOGO === */
:root {
  /* Base Colors */
  --black: #000000;
  --white: #FFFFFF;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;

  /* Logo Specific Colors (Extracted) */
  --logo-purple-light: #7E22CE;
  /* Vibrant Purple */
  --logo-purple-mid: #3730A3;
  /* Indigo/Mid Purple */
  --logo-purple-dark: #1E1B4B;
  /* Navy/Deep Indigo */

  /* Black Metallic Palette - Machined Precision Stops */
  --charcoal: #121212;
  --graphite: #1E1E1E;
  /* High-clarity text base */
  --steel-black: #2A2A2A;
  --metallic-black: linear-gradient(135deg, #0F0F0F 0%, #2A2A2A 35%, #333333 50%, #222222 65%, #050505 100%);
  --metallic-accent: linear-gradient(135deg, #2D2D2D 0%, #3D3D3D 50%, #1A1A1A 100%);

  /* Theme Colors - Light Mode (Default) */
  --bg-primary: #E5E9F0;
  /* Noticeably dimmed graphite-white */
  --bg-secondary: #D1D9E6;
  /* Deep sectional wells */
  --bg-accent: #BCCADB;
  --text-primary: #1E1E1E;
  /* Balanced graphite for crisp rendering */
  --text-secondary: #4B5563;
  --text-muted: #6B7280;
  --border-color: #E5E7EB;
  --card-bg: #FFFFFF;
  --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);

  /* Accent Colors - Black Metallic Luxury */
  --accent-primary: #2D2D2D;
  /* Graphite */
  --accent-secondary: #1A1A1A;
  /* Charcoal */
  --accent-glow: rgba(0, 0, 0, 0.1);

  /* Gradients - Premium Metallic System */
  --gradient-primary: var(--metallic-black);
  --gradient-soft: linear-gradient(135deg, rgba(26, 26, 26, 0.05) 0%, rgba(45, 45, 45, 0.05) 100%);

  /* Typography */
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.5rem;
  --font-size-2xl: 2rem;
  --font-size-3xl: 2.5rem;
  --font-size-4xl: 3.5rem;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
  --spacing-3xl: 6rem;

  /* Layout */
  --sidenav-width: 280px;
  --sidenav-collapsed: 80px;
  --content-max-width: 1400px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Effects - Premium Apple-Level Shadows */
  --blur-glass: 8px;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.03);
  --shadow-glow: 0 4px 12px rgba(0, 0, 0, 0.05);
  --text-shadow-subtle: 0 1px 2px rgba(0, 0, 0, 0.15);
}

/* === DARK MODE === */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-primary: #121212;
    /* Charcoal */
    --bg-secondary: #1A1A1A;
    /* Graphite */
    --bg-accent: #252525;
    --text-primary: #F5F5F5;
    /* Solid soft off-white */
    --text-secondary: #D1D5DB;
    /* Solid readable gray */
    --text-muted: #9CA3AF;
    --border-color: #2D2D2D;
    --card-bg: #1A1A1A;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    --accent-glow: rgba(255, 255, 255, 0.05);
  }
}

body[data-theme="dark"] {
  --bg-primary: #121212;
  --bg-secondary: #1A1A1A;
  --bg-accent: #252525;
  --text-primary: #F3F4F6;
  /* Upgraded to Metallic Silver */
  --text-secondary: #E5E7EB;
  /* Brightened for consistency */
  --text-muted: #9CA3AF;
  --border-color: #2D2D2D;
  --card-bg: #1A1A1A;
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  --accent-glow: rgba(255, 255, 255, 0.05);
}

body[data-theme="light"] {
  --bg-primary: #BDC9D8;
  /* Darkened for better contrast with white cards */
  --bg-secondary: #A8B7C9;
  --bg-accent: #92A6BC;
  --text-primary: #121212;
  --text-secondary: #374151;
  --text-muted: #4B5563;
  --border-color: rgba(0, 0, 0, 0.1);
  --card-bg: rgba(255, 255, 255, 0.85);
  /* Glass base */
  --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  --accent-glow: rgba(0, 0, 0, 0.05);
}

/* === RESET === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: var(--line-height-base);
  margin: 0;
  overflow-x: hidden;
  transition: background 0.3s ease, color 0.3s ease;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* === SIDE NAVIGATION === */
.sidenav {
  position: fixed;
  left: 0;
  top: 0;
  width: var(--sidenav-width);
  height: 100vh;
  background: var(--card-bg);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  padding: var(--spacing-lg);
  z-index: 1000;
  transition: all var(--transition-normal);
}

.sidenav-logo {
  margin-bottom: var(--spacing-2xl);
  padding-bottom: var(--spacing-lg);
  border-bottom: 1px solid var(--border-color);
}

.sidenav-logo img {
  width: 120px;
  height: auto;
  filter: drop-shadow(0 2px 8px rgba(245, 158, 11, 0.3));
}

.sidenav-menu {
  list-style: none;
  flex: 1;
}

.sidenav-menu li {
  margin-bottom: var(--spacing-sm);
}

.sidenav-link {
  display: flex;

  gap: var(--spacing-md);
  padding: var(--spacing-md);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-family: var(--font-heading);
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.sidenav-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: var(--accent-primary);
  transform: scaleY(0);
  transition: transform var(--transition-fast);
}

.sidenav-link:hover,
.sidenav-link.active {
  background: var(--bg-accent);
  color: var(--accent-primary);
}

.sidenav-link.active::before {
  transform: scaleY(1);
}

.nav-icon {
  font-size: 1.5rem;
  transition: transform var(--transition-fast);
}

.sidenav-link:hover .nav-icon {
  transform: scale(1.1);
}

.nav-text {
  font-size: var(--font-size-base);
}

/* Scroll Progress */
.scroll-progress {
  width: 100%;
  height: 4px;
  background: var(--bg-accent);
  border-radius: 2px;
  overflow: hidden;
  margin-top: var(--spacing-lg);
}

.progress-bar {
  height: 100%;
  background: var(--gradient-primary);
  width: 0%;
  transition: width 0.1s ease;
}

/* Theme Toggle in Sidenav */
.theme-toggle-side {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: var(--bg-accent);
  cursor: pointer;
  display: flex;

  justify-content: center;
  margin-top: var(--spacing-md);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.theme-toggle-side:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-glow);
  transform: rotate(15deg);
}

.theme-icon {
  position: absolute;
  font-size: 1.5rem;
  transition: all var(--transition-normal);
}

.sun-icon {
  opacity: 0;
  transform: rotate(-180deg) scale(0);
}

.moon-icon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

@media (prefers-color-scheme: dark) {
  .sun-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
  }

  .moon-icon {
    opacity: 0;
    transform: rotate(180deg) scale(0);
  }
}

body[data-theme="dark"] .sun-icon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

body[data-theme="dark"] .moon-icon {
  opacity: 0;
  transform: rotate(180deg) scale(0);
}

body[data-theme="light"] .sun-icon {
  opacity: 0;
  transform: rotate(-180deg) scale(0);
}

body[data-theme="light"] .moon-icon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

/* === MAIN CONTENT === */
.main-content {
  margin-left: 0;
  /* Min height allows scroll transition + normal content flow */
  min-height: 100vh;
  position: relative;
  transition: all var(--transition-normal);
}

/* === HERO SECTION === */
/* Hero scrolls naturally - NOT pinned */
.hero-corporate {
  height: 100vh;
  width: 100%;
  display: flex;
  position: relative;
  /* Normal document flow - scrolls naturally */
  overflow: hidden;
  padding: 140px var(--spacing-xl) var(--spacing-xl);
  background: var(--bg-primary);
  z-index: 1;
}

.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  filter: grayscale(100%) brightness(0.4);
}

body[data-theme="light"] .hero-slide {
  filter: grayscale(80%) brightness(0.9);
}

.hero-slide.active {
  opacity: 1;
}

.hero-grid-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.15;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(var(--border-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-color) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% {
    transform: translate(0, 0);
  }

  100% {
    transform: translate(50px, 50px);
  }
}

.hero-logo-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
  pointer-events: none;
}

.hero-content-centered {
  max-width: var(--content-max-width);
  margin: 0 auto;
  display: grid;
  display: block;
  text-align: center;


  position: relative;
  z-index: 1;
}

.hero-left {
  animation: fadeInUp 0.8s ease-out;
}

.hero-title-corporate {
  font-family: var(--font-heading);
  font-size: var(--font-size-4xl);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--spacing-md);
  /* Reduced from lg */
  background: linear-gradient(to bottom, #1E1E1E 0%, #4B5563 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(var(--text-shadow-subtle));
}

.title-line {
  display: block;
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  position: relative;
}

.container {
  width: 100%;
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-xl);
}

.hero-subtitle {
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  margin-bottom: var(--spacing-xl);
  max-width: 850px;
  /* Expanded for better space utilization */
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
  text-shadow: none;
}

.hero-cta-group {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: var(--spacing-2xl);
}

/* === HERO SOCIAL LINKS === */
.hero-social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: -20px;
  /* Slightly closer to the CTA group */
  margin-bottom: 40px;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-social-icon {
  font-size: 1.2rem;
  color: var(--text-secondary);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-decoration: none;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  backdrop-filter: blur(10px);
}

.hero-social-icon:hover {
  color: var(--accent-primary);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-primary);
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 0 20px rgba(126, 34, 206, 0.3);
}

/* === HERO HIGHLIGHTS === */
.hero-highlights {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-xl);
  max-width: 1100px;
  /* Expanded for balance */
  margin: 0 auto;
  padding-top: var(--spacing-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  animation: fadeInUp 1s ease-out 0.4s both;
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
  text-align: left;
  flex: 1;
}

.highlight-icon {
  font-size: 1.2rem;
  color: var(--logo-purple-light);
  line-height: 1;
  margin-top: 2px;
}

.highlight-text {
  display: flex;
  flex-direction: column;
}

.highlight-text strong {
  font-family: var(--font-heading);
  font-size: var(--font-size-sm);
  color: var(--text-primary);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.highlight-text span {
  font-size: var(--font-size-xs);
  color: var(--text-secondary);
  line-height: 1.4;
}

@media (max-width: 1024px) {
  .hero-title-corporate {
    font-size: calc(var(--font-size-4xl) * 0.7);
    line-height: 1.2;
  }

  .section-title-corporate {
    font-size: calc(var(--font-size-3xl) * 0.75);
  }
}

@media (max-width: 768px) {
  .hero-corporate {
    padding: 100px 10px var(--spacing-xl);
    /* Reduced from var(--spacing-md) */
    height: auto;
    min-height: 80vh;
  }

  .hero-title-corporate {
    font-size: calc(var(--font-size-4xl) * 0.55);
    /* ~45% reduction */
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
  }

  .hero-subtitle {
    font-size: var(--font-size-base);
    margin-bottom: var(--spacing-lg);
    line-height: 1.6;
    padding: 0 10px;
  }

  .hero-highlights {
    flex-direction: column;
    gap: var(--spacing-md);
    padding-top: var(--spacing-lg);
    margin-top: var(--spacing-lg);
  }

  .highlight-item {
    width: 100%;
    justify-content: flex-start;
    text-align: left;
    padding: 0 10px;
    /* Consistent with other mobile margins */
  }

  .container {
    padding: 0 10px !important;
    width: 100% !important;
    max-width: 100vw !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

/* === STRICT MOBILE FULL-WIDTH OVERRIDES === */
@media (max-width: 768px) {

  html,
  body {
    overflow-x: hidden !important;
    width: 100% !important;
    position: relative;
  }

  .main-content,
  section,
  .hero-corporate,
  .services-corporate,
  .stats-corporate,
  .process-corporate,
  .contact-corporate,
  .footer-corporate {
    width: 100% !important;
    max-width: 100vw !important;
    padding-left: 10px !important;
    /* Uniform narrow margin */
    padding-right: 10px !important;
    /* Uniform narrow margin */
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
  }

  .hero-content-centered,
  .contact-container-corporate,
  .services-grid,
  .stats-grid,
  .process-vertical,
  .timeline {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    /* Nested containers should not double-pad */
    padding-right: 0 !important;
  }
}

/* === CORPORATE BUTTONS === */
.btn-corporate {
  padding: var(--spacing-md) var(--spacing-xl);
  border-radius: 12px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--font-size-base);
  cursor: pointer;
  transition: all var(--transition-normal);
  display: inline-flex;

  gap: var(--spacing-sm);
  border: none;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #FFFFFF;
  box-shadow:
    0 4px 15px rgba(0, 0, 0, 0.3),
    inset 0 1px 1px rgba(255, 255, 255, 0.1);
  /* Inner highlight */
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
  filter: brightness(1.2);
}

.btn-primary .btn-arrow {
  transition: transform var(--transition-fast);
}

.btn-primary:hover .btn-arrow {
  transform: translateX(4px);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--graphite);
  text-decoration: none;
}

.btn-secondary:hover {
  border-color: var(--steel-black);
  background: rgba(0, 0, 0, 0.05);
  transform: translateY(-1px);
}

body[data-theme="dark"] .hero-title-corporate,
body[data-theme="dark"] .section-title-corporate,
body[data-theme="dark"] .card-title,
body[data-theme="dark"] .service-card-new h3,
body[data-theme="dark"] .checkpoint-content h3,
body[data-theme="dark"] .stat-number,
body[data-theme="dark"] .card-badge,
body[data-theme="dark"] .checkpoint-number,
body[data-theme="dark"] .form-group-corporate label,
body[data-theme="dark"] .gradient-text {
  background: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  -webkit-text-fill-color: #F3F4F6 !important;
  color: #F3F4F6 !important;
  text-shadow: none !important;
  filter: none !important;
}

body[data-theme="dark"] .hero-subtitle {
  color: #F9FAFB !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
}

body[data-theme="dark"] .btn-primary {
  background: linear-gradient(135deg, #F9FAFB 0%, #D1D5DB 50%, #9CA3AF 100%);
  color: #121212;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  text-shadow: none;
  font-weight: 700;
}

body[data-theme="dark"] .btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

body[data-theme="dark"] .btn-secondary {
  border-color: rgba(255, 255, 255, 0.3);
  color: #F5F5F5;
}

body[data-theme="dark"] .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #FFFFFF;
}

/* Hero Right - Data Visualization */
.hero-right {
  position: relative;
  height: 500px;
}

.data-visualization {
  width: 100%;
  height: 100%;
  position: relative;
  border-radius: 20px;
  background: var(--bg-accent);
  border: 1px solid var(--border-color);
  overflow: hidden;
}

#particle-canvas {
  width: 100%;
  height: 100%;
}

/* === SERVICES SECTION === */
.services-corporate {
  padding: var(--spacing-2xl) var(--spacing-xl);
  /* Reduced from 3xl */
  background: var(--bg-secondary);
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-2xl);
  /* Reduced from 3xl */
}

.section-title-corporate {
  font-family: var(--font-heading);
  font-size: var(--font-size-3xl);
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  background: linear-gradient(to bottom, #1E1E1E 0%, #4B5563 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(var(--text-shadow-subtle));
}

.section-subtitle {
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .services-corporate {
    padding: var(--spacing-xl) 10px;
    /* Reduced from var(--spacing-md) */
  }

  .section-header {
    margin-bottom: var(--spacing-xl);
  }

  .section-title-corporate {
    font-size: calc(var(--font-size-3xl) * 0.6);
    /* ~40% reduction */
    line-height: 1.3;
  }

  .section-subtitle {
    font-size: var(--font-size-base);
  }
}

.services-grid {
  max-width: var(--content-max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--spacing-xl);
}

/* === NEW SERVICE CARDS - SLIDE UP REVEAL === */
.service-card-new {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
  border-radius: 16px;
  padding: var(--spacing-xl);
  /* Balanced padding */
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal);
  cursor: pointer;
  min-height: 350px;
  display: flex;
  flex-direction: column;

  text-align: center;
}

.service-card-new::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, transparent, var(--accent-glow));
  opacity: 0;
  transition: opacity var(--transition-normal);
  pointer-events: none;
}

.service-card-new:hover::before {
  opacity: 1;
}

.service-card-new:hover {
  transform: translateY(-12px);
  border-color: var(--graphite);
  box-shadow: var(--shadow-lg);
}

.service-icon-large {
  font-size: 4rem;
  margin-bottom: var(--spacing-md);
  filter: drop-shadow(0 4px 12px var(--accent-glow));
  transition: all var(--transition-normal);
}

.service-card-new:hover .service-icon-large {
  transform: scale(1.1) rotateY(180deg);
}

.service-card-new h3 {
  font-family: var(--font-heading);
  font-size: var(--font-size-xl);
  font-weight: 600;
  margin-bottom: var(--spacing-md);
  transition: all var(--transition-fast);
  background: linear-gradient(to bottom, #1E1E1E 0%, #4B5563 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.service-card-new:hover h3 {
  color: var(--accent-primary);
}

.service-divider {
  width: 60px;
  height: 3px;
  background: var(--gradient-primary);
  margin: var(--spacing-md) 0;
  border-radius: 2px;
  transition: width var(--transition-normal);
}

.service-card-new:hover .service-divider {
  width: 100%;
}

.service-card-new p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--spacing-lg);
  flex: 1;
  opacity: 0.8;
  transition: opacity var(--transition-fast);
}

.service-card-new:hover p {
  opacity: 1;
}

.btn-learn-more {
  padding: var(--spacing-sm) var(--spacing-xl);
  background: linear-gradient(135deg, #121212 0%, #2A2A2A 50%, #080808 100%);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  font-weight: 600;
  font-family: var(--font-heading);
  cursor: pointer;
  transition: all var(--transition-normal);
  box-shadow:
    0 4px 10px rgba(0, 0, 0, 0.3),
    inset 0 1px 1px rgba(255, 255, 255, 0.1);
  opacity: 0;
  transform: translateY(10px);
}

.btn-learn-more:hover {
  filter: brightness(1.2);
  transform: translateY(0) scale(1.05);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.btn-le.card-btn:hover {
  filter: brightness(1.2);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

body[data-theme="dark"] .card-btn {
  background: linear-gradient(135deg, #F9FAFB 0%, #D1D5DB 50%, #9CA3AF 100%);
  color: #121212;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

body[data-theme="dark"] .btn-learn-more {
  background: linear-gradient(135deg, #F9FAFB 0%, #D1D5DB 50%, #9CA3AF 100%);
  color: #121212;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.card-glow {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-normal);
}

.service-card-new:hover .card-glow {
  transform: scaleX(1);
}

/* Scroll reveal animation */
.service-card-new {
  opacity: 0;
  transform: translateY(30px);
  animation: none;
}

.service-card-new.revealed {
  animation: slideUpReveal 0.6s ease-out forwards;
}

@keyframes slideUpReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === STATS SECTION === */
.stats-corporate {
  padding: var(--spacing-3xl) var(--spacing-xl);
  background: var(--bg-primary);
}

.stats-grid {
  max-width: var(--content-max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-xl);
}

.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: var(--spacing-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal);
}

.stat-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 1s ease;
}

.stat-card.animated::before {
  transform: scaleX(1);
}

.stat-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-primary);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: var(--font-size-4xl);
  font-weight: 800;
  color: var(--accent-primary);
  margin-bottom: var(--spacing-sm);
  display: inline-block;
}

.stat-suffix {
  font-size: var(--font-size-2xl);
  color: var(--accent-primary);
  display: inline-block;
  margin-left: 4px;
}

.stat-label {
  font-size: var(--font-size-base);
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: var(--spacing-md);
}

.stat-progress {
  width: 100%;
  height: 6px;
  background: var(--bg-accent);
  border-radius: 3px;
  overflow: hidden;
}

.stat-progress-bar {
  height: 100%;
  background: var(--gradient-primary);
  width: 0%;
  transition: width 1.5s ease;
  box-shadow: 0 0 10px var(--accent-glow);
}

.stat-card.animated .stat-progress-bar {
  width: 100%;
}

/* === PROCESS TIMELINE === */
.process-corporate {
  padding: var(--spacing-3xl) var(--spacing-xl);
  background: var(--bg-secondary);
}

.timeline {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 30px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-color);
}

.timeline-item {
  position: relative;
  padding-left: 80px;
  margin-bottom: var(--spacing-3xl);
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.6s ease;
}

.timeline-item.revealed {
  opacity: 1;
  transform: translateX(0);
}

.timeline-dot {
  position: absolute;
  left: 20px;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-primary);
  border: 4px solid var(--bg-secondary);
  box-shadow: 0 0 0 4px var(--accent-glow);
  transition: all var(--transition-normal);
}

.timeline-item:hover .timeline-dot {
  transform: scale(1.3);
  box-shadow: 0 0 0 8px var(--accent-glow);
}

.timeline-content {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: var(--spacing-xl);
  position: relative;
  transition: all var(--transition-normal);
}

.timeline-content:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--graphite);
}

.timeline-number {
  font-family: var(--font-heading);
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--accent-primary);
  margin-bottom: var(--spacing-sm);
  letter-spacing: 2px;
}

.timeline-content h3 {
  font-family: var(--font-heading);
  font-size: var(--font-size-xl);
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  color: var(--text-primary);
}

.timeline-content p {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* === CONTACT SECTION === */
.services-corporate {
  padding: var(--spacing-3xl) 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.contact-container-corporate {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.contact-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.3;
  pointer-events: none;
}

.contact-form-corporate {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: var(--spacing-2xl);
  box-shadow: var(--shadow-lg);
  margin-top: var(--spacing-2xl);
}

.form-row {
  display: grid;
  display: block;
  text-align: center;
  gap: var(--spacing-lg);
}

.form-group-corporate {
  position: relative;
  margin-bottom: var(--spacing-xl);
}

.form-group-corporate input,
.form-group-corporate textarea {
  width: 100%;
  padding: var(--spacing-md);
  background: var(--bg-accent);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  color: var(--text-primary);
  transition: all var(--transition-normal);
}

.form-group-corporate input:focus,
.form-group-corporate textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group-corporate label {
  position: absolute;
  left: var(--spacing-md);
  top: var(--spacing-md);
  color: var(--text-muted);
  font-size: var(--font-size-sm);
  pointer-events: none;
  transition: all var(--transition-fast);
}

body[data-theme="dark"] .form-group-corporate label {
  color: #D1D5DB;
  /* Forced light gray in dark mode */
}

.form-group-corporate input:focus+label,
.form-group-corporate textarea:focus+label,
.form-group-corporate input:not(:placeholder-shown)+label,
.form-group-corporate textarea:not(:placeholder-shown)+label {
  top: -10px;
  left: var(--spacing-sm);
  font-size: var(--font-size-xs);
  background: var(--card-bg);
  padding: 0 var(--spacing-xs);
  color: var(--accent-primary);
}

.form-border {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent-primary);
  transition: width var(--transition-normal);
}

.form-group-corporate input:focus~.form-border,
.form-group-corporate textarea:focus~.form-border {
  width: 100%;
}

.btn-submit {
  width: 100%;
  margin-top: var(--spacing-md);
  justify-content: center;
  font-size: var(--font-size-lg);
  padding: var(--spacing-lg);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Enhanced Contact Form Animations */
.btn-submit.sending {
  background: linear-gradient(135deg, var(--accent-secondary) 0%, var(--accent-primary) 100%);
  pointer-events: none;
}

.btn-submit.success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  transform: scale(1.02);
}

.btn-submit.error {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  animation: shake 0.5s ease-in-out;
}

/* Spinner Animation */
.btn-submit .spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
  margin-right: 10px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  10%,
  30%,
  50%,
  70%,
  90% {
    transform: translateX(-5px);
  }

  20%,
  40%,
  60%,
  80% {
    transform: translateX(5px);
  }
}

/* Enhanced Form Group Animations */
.form-group-corporate {
  position: relative;
  margin-bottom: var(--spacing-xl);
  transition: transform 0.3s ease;
}

.form-group-corporate:hover {
  transform: translateY(-2px);
}

.form-group-corporate.focused input,
.form-group-corporate.focused textarea {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 4px var(--accent-glow), 0 10px 40px rgba(126, 34, 206, 0.15);
  background: var(--bg-primary);
}

.form-group-corporate.focused label {
  color: var(--accent-primary);
  font-weight: 600;
}

.form-group-corporate.focused .form-border {
  width: 100%;
  box-shadow: 0 0 10px var(--accent-primary);
}

/* Input Glow Animation */
.form-group-corporate input,
.form-group-corporate textarea {
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.form-group-corporate input:hover,
.form-group-corporate textarea:hover {
  border-color: rgba(126, 34, 206, 0.5);
  box-shadow: 0 5px 20px rgba(126, 34, 206, 0.1);
}

/* Contact Form Container Animation */
.contact-form-corporate {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: var(--spacing-2xl);
  box-shadow: var(--shadow-lg);
  margin-top: var(--spacing-2xl);
  animation: fadeInUp 0.8s ease-out;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-form-corporate:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 80px rgba(126, 34, 206, 0.2);
}

/* Floating Label Enhancement */
.form-group-corporate label {
  position: absolute;
  left: var(--spacing-md);
  top: var(--spacing-md);
  color: var(--text-muted);
  font-size: var(--font-size-sm);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  background: transparent;
  padding: 0 var(--spacing-xs);
}

.form-group-corporate.focused label,
.form-group-corporate input:focus+label,
.form-group-corporate textarea:focus+label,
.form-group-corporate input:not(:placeholder-shown)+label,
.form-group-corporate textarea:not(:placeholder-shown)+label {
  top: -12px;
  left: var(--spacing-sm);
  font-size: var(--font-size-xs);
  background: var(--card-bg);
  padding: 2px var(--spacing-xs);
  color: var(--accent-primary);
  font-weight: 600;
}

/* Border Animation Enhancement */
.form-border {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border-radius: 3px;
  transform: translateX(-50%);
}

.form-group-corporate.focused .form-border,
.form-group-corporate input:focus~.form-border,
.form-group-corporate textarea:focus~.form-border {
  width: 100%;
  box-shadow: 0 0 15px var(--accent-primary);
}

/* === STATS SECTION === */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-xl);
  max-width: var(--content-max-width);
  margin: 0 auto;
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    padding: 0 var(--spacing-sm);
  }

  .stat-card {
    padding: var(--spacing-lg) var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    height: auto;
    border-radius: 16px;
  }

  .stat-number {
    font-size: 2.2rem;
    margin-bottom: 0;
  }

  .stat-suffix {
    font-size: 1.1rem;
  }

  .stat-label {
    font-size: 0.9rem;
    margin: 0;
    max-width: 120px;
  }

  .stat-progress {
    display: none;
    /* Hide on mobile for compact layout */
  }
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  font-family: var(--font-heading);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.stat-suffix {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-primary);
  display: inline-block;
  transition: color 0.3s ease;
}

body[data-theme="dark"] .stat-suffix {
  color: #F5F5F5;
  /* Forced light in dark mode */
}

.stat-label {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: var(--spacing-sm);
}

.stat-progress {
  width: 100%;
  height: 4px;
  background: var(--gray-200);
  border-radius: 2px;
  margin-top: var(--spacing-md);
  overflow: hidden;
}

.stat-progress-bar {
  height: 100%;
  background: var(--gradient-primary);
  width: 0;
  transition: width 1.5s cubic-bezier(0.1, 0, 0.2, 1);
}

.stat-card.animated .stat-progress-bar {
  width: 100%;
}

/* === PROCESS SECTION (VERTICAL TIMELINE) === */
.process-vertical {
  position: relative;
  max-width: 1400px;
  margin: 6rem auto;
  padding: 2rem 0;
}

/* Central Timeline Line */
.process-vertical::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--graphite), transparent);
  transform: translateX(-50%);
  opacity: 0.2;
}

.process-checkpoint {
  position: relative;
  width: 100%;
  margin-bottom: 4rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.process-checkpoint:nth-child(even) {
  flex-direction: row-reverse;
}

.checkpoint-dot {
  position: absolute;
  left: 50%;
  top: 40px;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  background: var(--bg-primary);
  border: 3px solid var(--steel-black);
  border-radius: 50%;
  z-index: 10;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  transition: all 0.4s ease;
}

.checkpoint-content {
  width: 45%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 2.5rem;
  position: relative;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  opacity: 0;
  transform: translateX(-30px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06);
}

.process-checkpoint:nth-child(even) .checkpoint-content {
  transform: translateX(30px);
}

.process-checkpoint.visible .checkpoint-content {
  opacity: 1;
  transform: translateX(0);
}

.process-checkpoint:hover .checkpoint-content {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
}

.checkpoint-number {
  font-size: 1rem;
  font-weight: 800;
  color: var(--accent-primary);
  margin-bottom: 0.75rem;
  display: block;
  text-transform: uppercase;
  letter-spacing: 3px;
}

.checkpoint-content h3 {
  font-size: 2.2rem;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}

.checkpoint-content p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .process-vertical {
    margin: 3rem auto;
    padding: 0 var(--spacing-md);
  }

  .process-vertical::before {
    left: 20px;
    transform: none;
    opacity: 0.1;
  }

  .process-checkpoint {
    margin-bottom: 2.5rem;
    flex-direction: row !important;
    justify-content: flex-start;
  }

  .checkpoint-dot {
    left: 20px;
    top: 25px;
    transform: translateX(-50%);
    width: 14px;
    height: 14px;
    background: var(--accent-primary);
    border: 3px solid var(--bg-primary);
    box-shadow: 0 0 10px var(--accent-glow);
  }

  .checkpoint-content {
    width: calc(100% - 40px);
    margin-left: 40px !important;
    padding: 1.5rem;
    border-radius: 16px;
    opacity: 1 !important;
    transform: none !important;
    background: rgba(255, 255, 255, 0.03);
    /* Always dark-ish back for premium feel */
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  }

  body[data-theme="light"] .checkpoint-content {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  }

  .checkpoint-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
  }

  .checkpoint-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
    color: var(--text-secondary);
  }

  .checkpoint-number {
    font-size: 0.75rem;
    margin-bottom: 0.4rem;
    color: var(--logo-purple-light);
    letter-spacing: 2px;
    display: inline-block;
  }
}

.checkpoint-btn-wrapper {
  margin-top: auto;
}

.checkpoint-btn {
  padding: 0.8rem 1.8rem !important;
  font-size: 0.9rem !important;
  border-radius: 100px !important;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.checkpoint-btn i {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.checkpoint-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2), var(--shadow-glow);
  border-color: var(--accent-primary) !important;
}

.checkpoint-btn:hover i {
  transform: translateX(5px);
}

/* Mobile Responsive Timeline */
/* Consumed by consolidated @media block above */

/* === FOOTER === */
.footer-corporate {
  background: var(--bg-secondary);
  padding: var(--spacing-lg);
  text-align: center;
  color: var(--text-muted);
  font-size: var(--font-size-sm);
  border-top: 1px solid var(--border-color);
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  :root {
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
  }

  .sidenav {
    width: var(--sidenav-collapsed);
    padding: var(--spacing-md);
  }

  .nav-text {
    display: none;
  }

  .main-content {
    margin-left: var(--sidenav-collapsed);
  }

  .hero-content-centered {
    padding: 0 var(--spacing-md);
  }

  .hero-title-corporate {
    font-size: clamp(2.5rem, 8vw, 3.5rem);
  }

  .hero-subtitle {
    font-size: 1.125rem;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .sidenav {
    display: none;
    /* Hide sidenav on mobile/tablet */
  }

  .main-content {
    margin-left: 0;
  }

  .hero-corporate {
    padding: 100px var(--spacing-sm) var(--spacing-lg);
    height: auto;
    min-height: 100vh;
  }

  .hero-title-corporate {
    font-size: clamp(2rem, 10vw, 3rem);
    margin-bottom: var(--spacing-sm);
  }

  .hero-subtitle {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: var(--spacing-lg);
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

  .btn-corporate {
    width: 100%;
    justify-content: center;
    padding: var(--spacing-md);
  }

  .hero-social-links {
    margin-top: 0;
    margin-bottom: var(--spacing-xl);
  }

  .hero-highlights {
    flex-direction: column;
    gap: var(--spacing-sm);
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(126, 34, 206, 0.2);
  }

  .highlight-item {
    width: 100%;
    justify-content: flex-start;
    text-align: left;
    padding: var(--spacing-sm);
    background: rgba(126, 34, 206, 0.05);
    border-radius: 12px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  /* Disable heavy animations on mobile */
  .hero-grid-bg,
  .hero-logo-particles {
    opacity: 0.1;
  }
}

/* === VIDEO BACKGROUNDS === */
.section-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  overflow: hidden;
}

.video-bg-element {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.2);
  /* Deep monochrome feel */
  opacity: 0.15;
  transition: opacity 1s ease;
}

body[data-theme="dark"] .video-bg-element {
  opacity: 0.1;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-soft);
  z-index: -1;
  opacity: 0.8;
}

/* === FLOATING SERVICE ICONS (ENHANCED) === */
.floating-icons-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.floating-icon {
  position: absolute;
  pointer-events: auto;
  cursor: pointer;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  display: flex;
  flex-direction: column;

  z-index: 1;
}

.icon-sphere {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;

  justify-content: center;
  font-size: 1.8rem;
  color: white;
  box-shadow: 0 0 20px var(--accent-glow);
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: all 0.5s ease;
  position: relative;
}

.floating-icon:hover {
  transform: scale(1.1);
  z-index: 100;
}

.floating-icon:hover .icon-sphere {
  box-shadow: 0 0 40px var(--accent-glow);
  transform: rotate(360deg);
}

.service-popup {
  position: absolute;
  bottom: 120%;
  width: 280px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(15px);
  padding: 20px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.9);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
  text-align: left;
}

body[data-theme="dark"] .service-popup {
  background: rgba(15, 23, 42, 0.9);
  border-color: var(--logo-purple-mid);
}

.floating-icon:hover .service-popup {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.service-popup h4 {
  margin: 0 0 10px 0;
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-size: 1.1rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.service-popup p {
  margin: 0 0 15px 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.popup-cta {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  display: inline-block;
  transition: transform 0.3s ease;
}

.popup-cta:hover {
  transform: translateX(5px);
}

/* Drifting Animation in JS for more control */

/* Optimization for transparent sections */
section {
  position: relative;
  background: transparent !important;
}

.services-corporate,
.stats-corporate,
.process-corporate,
.contact-corporate {
  background: transparent !important;
}

.hero-grid-bg {
  z-index: -1;
  opacity: 0.05;
}

/* === BLOG INDEX STYLES === */
.blog-index {
  padding-top: var(--spacing-3xl);
  min-height: 100vh;
  position: relative;
}

.blog-container {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: var(--spacing-2xl) var(--spacing-xl);
  position: relative;
  z-index: 1;
}

.blog-header {
  text-align: center;
  margin-bottom: var(--spacing-3xl);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-3xl);
}

@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
}

/* Blog Detail View */
.blog-detail-view {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 0 100px;
}

.blog-detail-view .back-btn {
  margin-bottom: 3rem;
}

.post-detail-header {
  margin-bottom: 4rem;
}

.post-detail-header .post-meta {
  margin-bottom: 1.5rem;
  justify-content: flex-start;
  gap: 15px;
}

.post-category-badge {
  background: var(--accent-primary);
  color: var(--white);
  padding: 4px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.post-detail-header h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 2.5rem;
}

.post-detail-media {
  width: 100%;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
  margin-bottom: 3rem;
}

.post-detail-media img {
  width: 100%;
  display: block;
}

.post-detail-content {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--text-primary);
}

.post-detail-content p {
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .blog-detail-view {
    padding: 20px 0 60px;
  }

  .post-detail-header h1 {
    font-size: 2.2rem;
    /* Reduced for mobile */
    margin-bottom: 1.5rem;
  }

  .post-detail-content {
    font-size: 1.1rem;
  }

  .post-detail-media {
    border-radius: 20px;
    margin-bottom: 2rem;
  }
}

/* Futuristic Blog Card */
.blog-card-futuristic {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(var(--blur-glass));
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  overflow: hidden;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
}

.card-glass-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, var(--accent-glow), transparent 60%);
  opacity: 0.3;
  pointer-events: none;
}

.blog-card-futuristic:hover {
  transform: translateY(-10px);
  border-color: var(--accent-primary);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2), var(--shadow-glow);
}

.post-thumbnail {
  height: 220px;
  overflow: hidden;
  position: relative;
}

.post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.blog-card-futuristic:hover .post-thumbnail img {
  transform: scale(1.1);
}

.card-content {
  padding: var(--spacing-xl);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-meta {
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-primary);
  margin-bottom: var(--spacing-sm);
  display: flex;
  justify-content: space-between;
}

.post-title {
  font-size: var(--font-size-xl);
  margin-bottom: var(--spacing-md);
  line-height: 1.3;
}

.post-title a {
  text-decoration: none;
  color: var(--text-primary);
  transition: color var(--transition-fast);
}

.blog-card-futuristic:hover .post-title a {
  color: var(--accent-primary);
}

.post-excerpt {
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  line-height: 1.6;
  margin-bottom: var(--spacing-lg);
  flex: 1;
}

.read-more-btn {
  font-weight: 600;
  color: var(--accent-primary);
  text-decoration: none;
  display: inline-flex;

  gap: 8px;
  transition: gap var(--transition-fast);
}

.read-more-btn:hover {
  gap: 12px;
}

/* Loading Scanner Animation */
.loading-scanner {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--spacing-3xl);
  position: relative;
}

.scanner-line {
  width: 100px;
  height: 2px;
  background: var(--gradient-primary);
  margin: 0 auto 20px;
  position: relative;
  overflow: hidden;
}

.scanner-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--white);
  animation: scan 1.5s infinite linear;
}

@keyframes scan {
  to {
    left: 100%;
  }
}

.loading-scanner p {
  font-family: var(--font-heading);
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: var(--font-size-xs);
}

/* Hero Right Box - Modern Visualization */
.hero-right {
  flex: 1;
  display: flex;

  justify-content: center;
  position: relative;
  z-index: 2;
}

.data-visualization {
  width: 500px !important;
  height: 500px !important;
  aspect-ratio: 1 / 1;
  background: rgba(20, 20, 40, 0.9);
  border: 1px solid rgba(138, 43, 226, 0.3);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  display: flex;

  justify-content: center;
}

.data-visualization::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(126, 34, 206, 0.1), rgba(79, 70, 229, 0.1));
  pointer-events: none;
}

#particle-canvas {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 1;
}

/* Hero Animation GIF */
.hero-animation-gif {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  animation: fadeInScale 1s ease-out;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Override for 1:1 aspect ratio animation box */
.hero-right {
  display: flex;

  justify-content: center;
}

.data-visualization {
  width: 500px !important;
  height: 500px !important;
  aspect-ratio: 1 / 1;
}

.hero-animation-gif {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 20px;
}

/* Hero Animation Video */
.hero-animation-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 20px;
}

/* ============================================
   HYBRID NAVIGATION - TOP BAR + SLIM SIDEBAR
   ============================================ */

/* === TOP NAVIGATION BAR === */
.topnav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: rgba(var(--card-bg), 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  display: flex;

  justify-content: space-between;
  padding: 0 var(--spacing-xl);
  z-index: 1001;
  transition: all var(--transition-normal);
}

body[data-theme="dark"] .topnav {
  background: rgba(0, 0, 0, 0.8);
}

body[data-theme="light"] .topnav {
  background: rgba(255, 255, 255, 0.9);
}

.topnav-left {
  display: flex;

  gap: var(--spacing-md);
}

.sidebar-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
  border-radius: 8px;
  transition: all var(--transition-fast);
}

.sidebar-toggle:hover {
  background: var(--bg-accent);
}

.toggle-bar {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.sidebar-toggle:hover .toggle-bar {
  background: var(--accent-primary);
}

.topnav-brand {
  text-decoration: none;
}

.topnav-logo {
  height: 40px;
  width: auto;
  filter: drop-shadow(0 2px 8px var(--accent-glow));
  transition: transform var(--transition-fast);
}

.topnav-logo:hover {
  transform: scale(1.05);
}

.topnav-center {
  flex: 1;
  text-align: center;
}

.brand-tagline {
  font-family: var(--font-heading);
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 500;
}

.topnav-right {
  display: flex;

  gap: var(--spacing-md);
}

.theme-toggle {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: var(--bg-accent);
  cursor: pointer;
  display: flex;

  justify-content: center;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.theme-toggle:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-glow);
  transform: rotate(15deg);
}

.theme-icon {
  position: absolute;
  font-size: 1.5rem;
  transition: all var(--transition-normal);
}

.topnav-cta {
  padding: var(--spacing-sm) var(--spacing-lg);
  background: var(--gradient-primary);
  color: var(--white);
  text-decoration: none;
  border-radius: 10px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--font-size-sm);
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.topnav-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md), var(--shadow-glow);
  filter: brightness(1.1);
}

/* === SLIM SIDEBAR === */
.sidenav.slim {
  width: 80px;
  padding: var(--spacing-md);
  padding-top: 90px;
  background: rgba(var(--card-bg), 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid var(--border-color);
  transition: width var(--transition-normal);
  overflow: hidden;
}

body[data-theme="dark"] .sidenav.slim {
  background: rgba(15, 23, 42, 0.8);
}

body[data-theme="light"] .sidenav.slim {
  background: rgba(255, 255, 255, 0.9);
}

.sidenav.slim:hover,
.sidenav.expanded {
  width: 240px;
}

.sidenav.slim .sidenav-menu {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.sidenav.slim .sidenav-link {
  display: flex;

  gap: var(--spacing-md);
  padding: var(--spacing-md);
  border-radius: 14px;
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-family: var(--font-heading);
  transition: all var(--transition-fast);
  position: relative;
  white-space: nowrap;
}

.sidenav.slim .nav-icon {
  font-size: 1.4rem;
  min-width: 32px;
  text-align: center;
  transition: transform var(--transition-fast);
}

.sidenav.slim .nav-text {
  opacity: 0;
  transform: translateX(-10px);
  transition: all var(--transition-fast);
  font-size: var(--font-size-sm);
}

.sidenav.slim:hover .nav-text,
.sidenav.expanded .nav-text {
  opacity: 1;
  transform: translateX(0);
}

.sidenav.slim .nav-tooltip {
  position: absolute;
  left: 70px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: var(--font-size-xs);
  color: var(--text-primary);
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-fast);
  z-index: 100;
}

.sidenav.slim:not(:hover) .sidenav-link:hover .nav-tooltip {
  opacity: 1;
  left: 80px;
}

.sidenav.slim:hover .nav-tooltip,
.sidenav.expanded .nav-tooltip {
  display: none;
}

.sidenav.slim .sidenav-link:hover,
.sidenav.slim .sidenav-link.active {
  background: var(--bg-accent);
  color: var(--accent-primary);
}

.sidenav.slim .sidenav-link:hover .nav-icon {
  transform: scale(1.15);
}

.sidenav.slim .sidenav-link.active {
  background: linear-gradient(135deg, rgba(126, 34, 206, 0.15), rgba(79, 70, 229, 0.15));
  border-left: 3px solid var(--accent-primary);
}

/* Scroll Progress in Slim Sidebar */
.sidenav.slim .scroll-progress {
  position: absolute;
  bottom: var(--spacing-lg);
  left: var(--spacing-md);
  right: var(--spacing-md);
  height: 4px;
  background: var(--bg-accent);
  border-radius: 2px;
  overflow: hidden;
}

/* === MAIN CONTENT ADJUSTMENT === */
.main-content {
  margin-left: 0;
  padding-top: 0;
  min-height: 100vh;
  transition: margin-left var(--transition-normal);
}

.sidenav.slim:hover~.main-content,
.sidenav.expanded~.main-content {
  margin-left: 240px;
}

/* === MOBILE RESPONSIVE === */
@media (max-width: 768px) {
  .topnav {
    padding: 0 var(--spacing-md);
  }

  .topnav-center {
    display: none;
  }

  .topnav-cta {
    display: none;
  }

  .sidenav.slim {
    transform: translateX(-100%);
    width: 240px;
  }

  .sidenav.slim.mobile-open {
    transform: translateX(0);
  }

  .sidenav.slim .nav-text {
    opacity: 1;
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
    padding-top: 0;
  }
}

/* ============================================
   FLOATING PILL NAVIGATION - LIQUID GLASS
   ============================================ */

.pill-nav {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 25000;
  width: calc(100% - 40px);
  max-width: 900px;
  /* Prevent microscopic nav in mobile-desktop-simulation */
  min-width: 320px;
}

.pill-nav-inner {
  display: flex;

  justify-content: space-between;
  align-items: center;
  padding: 8px 24px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 100px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 20px 40px -20px rgba(126, 34, 206, 0.3);
  transition: all var(--transition-normal);
}

body[data-theme="dark"] .pill-nav-inner {
  background: rgba(15, 23, 42, 0.6);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 20px 40px -20px rgba(126, 34, 206, 0.4);
}

body[data-theme="light"] .pill-nav-inner {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(255, 255, 255, 0.5);
}

.pill-nav-inner:hover {
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset,
    0 25px 50px -20px rgba(126, 34, 206, 0.4);
}

/* Logo */
.pill-logo {
  display: flex;
  align-items: center;
}

.pill-logo img {
  height: 36px;
  width: auto;
  filter: drop-shadow(0 2px 8px var(--accent-glow));
  transition: transform var(--transition-fast);
}

.pill-logo:hover img {
  transform: scale(1.05);
}

/* Menu */
.pill-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pill-link {
  padding: 10px 18px;
  text-decoration: none;
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 14px;
  line-height: normal;
  border-radius: 50px;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.pill-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-primary);
  opacity: 0;
  border-radius: 50px;
  transition: opacity var(--transition-fast);
  z-index: -1;
}

.pill-link:hover {
  color: var(--text-primary);
}

.pill-link:hover::before {
  opacity: 0.1;
}

.pill-link.active {
  color: var(--white);
  background: var(--gradient-primary);
  box-shadow: 0 4px 15px rgba(126, 34, 206, 0.4);
}

.pill-link.active::before {
  opacity: 0;
}

/* Actions */
.pill-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pill-theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  display: flex;

  justify-content: center;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

body[data-theme="dark"] .pill-theme-toggle {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
}

.pill-theme-toggle:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  transform: rotate(15deg);
  box-shadow: 0 4px 15px var(--accent-glow);
}

.pill-theme-toggle .theme-icon {
  position: absolute;
  font-size: 1.2rem;
  transition: all var(--transition-normal);
}

.pill-cta {
  padding: 10px 24px;
  background: var(--gradient-primary);
  color: var(--white);
  text-decoration: none;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  line-height: normal;
  transition: all var(--transition-normal);
  box-shadow: 0 4px 15px rgba(126, 34, 206, 0.3);
}

.pill-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(126, 34, 206, 0.5);
  filter: brightness(1.1);
}

/* Mobile Toggle */
.pill-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.pill-mobile-toggle .bar {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.pill-mobile-toggle.active .bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.pill-mobile-toggle.active .bar:nth-child(2) {
  opacity: 0;
}

.pill-mobile-toggle.active .bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.pill-mobile-menu {
  display: none;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
}

body[data-theme="dark"] .pill-mobile-menu {
  background: rgba(15, 23, 42, 0.8);
}

.pill-mobile-menu.active {
  display: flex;
}

.mobile-link {
  padding: 14px 20px;
  text-decoration: none;
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-weight: 500;
  border-radius: 16px;
  transition: all var(--transition-fast);
}

.mobile-link:hover,
.mobile-link.active {
  background: var(--gradient-primary);
  color: var(--white);
}

/* Main Content Adjustment */
.main-content {
  margin-left: 0;
  padding-top: 100px;
}

/* Mobile Responsive */
@media (max-width: 992px) {
  .pill-menu {
    display: none;
  }

  .pill-mobile-toggle {
    display: flex;
  }

  .pill-cta {
    display: none;
  }
}

@media (max-width: 480px) {
  .pill-nav {
    top: 12px;
    width: calc(100% - 24px);
  }

  .pill-nav-inner {
    padding: 10px 16px;
  }

  .pill-logo img {
    height: 28px;
  }
}

/* ============================================
   HONEYCOMB SERVICES GRID - APPLE WATCH STYLE
   ============================================ */

.services-honeycomb {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  padding: var(--spacing-3xl) var(--spacing-xl);
  display: flex;
  flex-direction: column;

}

.honeycomb-container {
  width: 100%;
  max-width: 800px;
  height: 70vh;
  min-height: 500px;
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: grab;
  touch-action: none;
}

.honeycomb-container:active {
  cursor: grabbing;
}

.honeycomb-grid {
  position: absolute;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-content: center;
  gap: 15px;
  padding: 40px;
  width: 600px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease-out;
}

/* Circular App Icons */
.hex-icon {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 2px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.hex-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(45, 45, 45, 0.3), rgba(26, 26, 26, 0.3));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hex-icon:hover::before {
  opacity: 1;
}

.hex-icon:hover {
  transform: scale(1.2);
  border-color: var(--accent-primary);
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(0, 0, 0, 0.2) inset;
  z-index: 10;
}

.hex-icon:active {
  transform: scale(0.95);
}

.hex-inner {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;

  justify-content: center;
  gap: 4px;
  position: relative;
  z-index: 1;
}

.hex-emoji {
  font-size: 2rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  transition: transform 0.3s ease;
}

.hex-icon:hover .hex-emoji {
  transform: scale(1.15);
}

.hex-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.8;
  text-align: center;
  line-height: 1.1;
}

/* Center highlight icon */
.hex-icon.hex-center {
  width: 110px;
  height: 110px;
  background: linear-gradient(135deg, rgba(45, 45, 45, 0.6), rgba(26, 26, 26, 0.6));
  border-color: var(--accent-primary);
  animation: pulse-glow 2s ease-in-out infinite;
}

.hex-icon.hex-center .hex-emoji {
  font-size: 2.5rem;
}

.hex-icon.hex-center .hex-label {
  font-size: 11px;
  color: white;
}

@keyframes pulse-glow {

  0%,
  100% {
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  }

  50% {
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5), 0 0 60px rgba(0, 0, 0, 0.3);
  }
}

/* Service Detail Popup */
/* Service Detail Popup Redesign */
.service-detail-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-detail-popup.active {
  opacity: 1;
  visibility: visible;
}

.popup-content {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 32px;
  padding: var(--spacing-3xl);
  width: 90%;
  max-width: 800px;
  position: relative;
  transform: translateY(30px) scale(0.95);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  display: flex;
  gap: var(--spacing-2xl);
  align-items: center;
}

.service-detail-popup.active .popup-content {
  transform: translateY(0) scale(1);
}

.popup-icon {
  font-size: 5rem;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2) 0%, rgba(96, 165, 250, 0.2) 100%);
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.popup-info {
  flex-grow: 1;
}

.popup-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
  background: linear-gradient(to right, #fff, #a855f7);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.popup-desc {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: var(--spacing-xl);
}

.popup-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  background: var(--accent-primary);
  color: #fff;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  box-shadow: 0 10px 20px var(--accent-glow);
}

.popup-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px var(--accent-glow);
  filter: brightness(1.1);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .honeycomb-container {
    height: 60vh;
    border-radius: 20px;
  }

  .honeycomb-grid {
    width: 100%;
    gap: 10px;
    padding: 20px;
  }

  .hex-icon {
    width: 70px;
    height: 70px;
  }

  .hex-emoji {
    font-size: 1.5rem;
  }

  .hex-label {
    font-size: 8px;
  }

  .hex-icon.hex-center {
    width: 85px;
    height: 85px;
  }
}



/* ============================================
   FLOATING SERVICES - INTERACTIVE ARENA
   ============================================ */

/* ============================================
   CURVED SERVICES SLIDER - MORPHING BOX
   ============================================ */

.services-floating {
  /* High-Performance Viewport Expansion Base */
  width: 100%;
  height: 100vh;
  position: relative;
  margin: 0 auto;
  left: 0;

  /* Initial Box Shape using Clip-Path (Zero Layout Hit) */
  clip-path: inset(30% 35% 30% 35% round 32px);

  /* Premium Dynamic Glassmorphism UI (Default: Light Mode) */
  background: rgba(248, 249, 250, 0.82);
  backdrop-filter: blur(35px) saturate(140%);
  -webkit-backdrop-filter: blur(35px) saturate(140%);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.15),
    inset 0 0 0 1px rgba(255, 255, 255, 0.5);

  /* Content Alignment */
  overflow: hidden;
  padding: 80px var(--spacing-lg) 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;

  /* Typography Adaptation */
  color: #121212;
  transition: background 0.5s ease, color 0.5s ease, border-color 0.5s ease;

  /* Using scale 0.55 as the base to match the reduction request (Desktop only) */
  transform: scale(1);
  /* Default to 1 for mobile */
  transform-origin: center center;
  will-change: transform, clip-path;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  perspective: 1000px;
}

@media (min-width: 769px) {
  .services-floating {
    transform: scale(0.55);
    /* Re-enable base scale for GSAP scale-up animation */
  }
}

/* === HASH DARK THEME (Expansion Box) === */
body[data-theme="dark"] .services-floating {
  background: #0A0A0A;
  /* Premium Hash Dark */
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
  color: #F8F9FA;
}

/* === SCROLL SCENE WRAPPER === */
.services-scroll-scene {
  height: 100vh;
  position: relative;
  z-index: 100;
  /* Boosted for entire section layering */
}

.services-sticky-container {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: visible;
  /* Forced visible for button */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  /* Higher than background */
}

@media (max-width: 768px) {
  .services-scroll-scene {
    height: auto;
    padding: var(--spacing-lg) 0;
  }

  .services-sticky-container {
    position: relative;
    height: auto;
    display: block;
  }

  .services-floating {
    clip-path: none !important;
    height: auto;
    padding: var(--spacing-lg) var(--spacing-md);
    background: transparent;
    backdrop-filter: none;
    border: none;
    box-shadow: none;
    width: 100%;
    transform: none !important;
    overflow: visible;
    /* Ensure 3D cards aren't clipped */
  }
}

.curved-slider-container {
  width: 100%;
  height: 600px;
  position: relative;
  cursor: grab;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.curved-slider-container:active {
  cursor: grabbing;
}

.curved-slider-viewport {
  position: absolute;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  perspective: 2000px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .curved-slider-container {
    height: 500px;
    /* accommodate 3D viewport */
    cursor: default;
    display: flex;
    overflow: visible;
    align-items: center;
    justify-content: center;
  }

  .curved-slider-viewport {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
    perspective: 2000px;
    transform: none;
    /* Reset vertical stack transform */
  }
}

/* ============================================
   3D SLIDER CARDS
   ============================================ */
@keyframes card-icon-float {

  0%,
  100% {
    transform: translateY(0) translateZ(20px);
  }

  50% {
    transform: translateY(-8px) translateZ(35px);
  }
}

@keyframes card-shimmer {
  0% {
    transform: translateX(-150%) skewX(-25deg);
  }

  100% {
    transform: translateX(150%) skewX(-25deg);
  }
}

.service-card-curved {
  position: absolute;
  top: 38%;
  left: 50%;
  width: 280px;
  height: 380px;
  margin-top: -190px;
  margin-left: -140px;
  text-align: center;
  padding: var(--spacing-xl);
  background: rgba(255, 255, 255, 0.05);
  /* Glass base for dark */
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.1s ease-out, opacity 0.6s ease, border-color 0.4s ease, box-shadow 0.4s ease;
  box-shadow: var(--shadow-md);
  pointer-events: none;
  user-select: none;
  visibility: visible;
  opacity: 0.4;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  box-sizing: border-box;
  color: var(--text-primary);
  will-change: transform, opacity;
  overflow: hidden;
}

body[data-theme="light"] .service-card-curved {
  background: rgba(255, 255, 255, 0.75);
  /* Light mode glass */
  border-color: rgba(0, 0, 0, 0.05);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}

body[data-theme="dark"] .service-card-curved {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.1);
}

.service-card-curved.active {
  opacity: 1;
  pointer-events: auto !important;
  user-select: text !important;
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  transform: scale(1.05) translateZ(100px);
}

@media (max-width: 768px) {
  .service-card-curved {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 280px;
    height: 380px;
    margin-top: -190px;
    margin-left: -140px;
    padding: var(--spacing-xl);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.4;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: var(--shadow-md);
    border-radius: 24px;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    will-change: transform, opacity;
  }

  body[data-theme="dark"] .service-card-curved {
    background: rgba(255, 255, 255, 0.03);
  }
}

.service-card-number {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--logo-purple-light);
  letter-spacing: 2px;
  margin-bottom: var(--spacing-sm);
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
  transform: translateY(10px);
}

.card-icon-gradient {
  font-size: 3.5rem;
  margin-bottom: var(--spacing-md);
  display: inline-block;
  transform: translateZ(40px);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
  animation: card-icon-float 3s ease-in-out infinite;
}

.card-title-metrics {
  font-size: 1.5rem !important;
  font-weight: 800 !important;
  font-family: var(--font-heading) !important;
  margin-bottom: var(--spacing-xs) !important;
  color: inherit;
  transform: translateZ(30px);
  letter-spacing: -0.5px;
}

.card-desc-metrics {
  font-size: var(--font-size-sm) !important;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.4;
  margin: 0;
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
  transform: translateY(10px) translateZ(20px);
}

.service-card-curved.active .service-card-number,
.service-card-curved.active .card-desc-metrics {
  opacity: 1;
  transform: translateY(0) translateZ(20px);
}

@media (max-width: 768px) {

  .service-card-number,
  .card-desc-metrics {
    opacity: 0;
    transform: translateY(10px) translateZ(20px);
    margin-bottom: var(--spacing-sm);
  }

  .service-card-curved.active .service-card-number,
  .service-card-curved.active .card-desc-metrics {
    opacity: 1;
    transform: translateY(0) translateZ(20px);
  }

  .service-card-number {
    font-size: 0.8rem;
    position: static;
    margin-bottom: var(--spacing-sm);
  }

  .card-icon-gradient {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    animation: card-icon-float 3s ease-in-out infinite;
    transform: translateZ(40px);
  }

  .card-title-metrics {
    font-size: 1.3rem !important;
    margin-bottom: var(--spacing-xs) !important;
    transform: translateZ(30px);
  }

  .card-desc-metrics {
    font-size: 0.85rem !important;
    line-height: 1.4;
  }
}

.service-card-curved::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.05) 40%,
      rgba(255, 255, 255, 0.15) 50%,
      rgba(255, 255, 255, 0.05) 60%,
      transparent);
  transform: translateX(-150%) skewX(-25deg);
  pointer-events: none;
}

.service-card-curved.active:hover::after {
  animation: card-shimmer 2.5s infinite;
}


/* Base sections restored to relative positioning */
.stats-corporate,
.process-corporate,
.contact-corporate {
  position: relative;
  z-index: 1;
  background: transparent;
  margin-top: 0;
  overflow: hidden;
}

/* Services Footer & Global Button */
/* Truly Static & Premium pill-shaped Services Button */
.btn-services-static-wrap {
  position: absolute;
  bottom: 40px;
  /* Fixed in sticky frame */
  left: 0;
  right: 0;
  z-index: 2147483647;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.btn-services-static {
  pointer-events: auto;
  padding: 0.9rem 2.8rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 50px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .btn-services-static-wrap {
    position: relative;
    bottom: auto;
    margin-top: var(--spacing-xl);
  }

  .btn-services-static {
    width: 100%;
    justify-content: center;
    padding: 0.7rem 2rem;
    font-size: 0.9rem;
  }
}

/* Motionless Hover: Glass Intensity */
.btn-services-static:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
  cursor: pointer;
}

.btn-services-static .btn-arrow {
  font-size: 1.2rem;
  line-height: 1;
}

/* Dark Mode Adaptation */
body[data-theme="dark"] .btn-services-static {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #F3F4F6;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

body[data-theme="dark"] .btn-services-static:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
  .services-floating {
    width: 100%;
    height: auto;
    border-radius: 0;
    padding: var(--spacing-lg) 0;
    /* Remove horizontal padding for slider overflow */
  }

  .curved-slider-container {
    height: auto;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    display: block !important;
    padding: 20px 0 !important;
    position: relative;
  }

  /* Hide scrollbar but keep functionality */
  .curved-slider-container::-webkit-scrollbar {
    display: none;
  }

  .curved-slider-container {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .curved-slider-viewport {
    position: relative !important;
    width: max-content !important;
    height: auto !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    padding: 0 20px !important;
    /* Side padding for snapping */
    transform-style: flat !important;
    /* Disable 3D on mobile for performance */
    transform: none !important;
    left: 0 !important;
    margin: 0 !important;
  }

  .service-card-curved {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 280px !important;
    height: 380px !important;
    margin: 0 15px 0 0 !important;
    flex-shrink: 0 !important;
    scroll-snap-align: center;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
    visibility: visible !important;
    display: flex !important;
    flex-direction: column !important;
    text-align: center !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(10px) !important;
    border-radius: 16px !important;
  }
}

@media (max-width: 768px) {
  .services-bento-section {
    padding: var(--spacing-xl) 0;
  }

  .services-bento-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .bento-card {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
    padding: var(--spacing-lg);
  }

  .bento-icon {
    font-size: 2.5rem;
  }
}

/* === WHATSAPP STICKY BUTTON === */
.whatsapp-sticky {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  background-color: transparent;
  /* Changed to transparent since asset is 3D render */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  z-index: 99999;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
}

.whatsapp-sticky:hover {
  transform: scale(1.1) translateY(-5px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
  background-color: #20b355;
  color: white;
}

@media (max-width: 768px) {
  .whatsapp-sticky {
    width: 50px;
    height: 50px;
    font-size: 28px;
    bottom: 20px;
    right: 20px;
  }
}

/* === FOOTER SOCIAL LINKS === */
.footer-social-links {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-bottom: 20px;
}

.footer-social-icon {
  font-size: 1.5rem;
  color: var(--text-muted);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-decoration: none;
  opacity: 0.7;
}

.footer-social-icon:hover {
  color: var(--accent-primary);
  opacity: 1;
  transform: translateY(-3px) scale(1.1);
}