/* 
  =========================================
  Kal Encepha - Premium Custom Enterprise CSS
  Design System & Component Styling
  =========================================
*/

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

/* --- Custom Property Tokens --- */
:root {
  --bg-primary: #030814;
  --bg-secondary: #071026;
  --bg-tertiary: #0c1836;
  
  --brand-primary: #2563eb;
  --brand-primary-rgb: 37, 99, 235;
  --brand-glow: rgba(37, 99, 235, 0.15);
  
  --accent-cyan: #38bdf8;
  --accent-cyan-rgb: 56, 189, 248;
  --accent-purple: #a855f7;
  
  --text-main: #f8fafc;
  --text-sub: #94a3b8;
  --text-muted: #64748b;
  
  --glass-bg: rgba(7, 16, 38, 0.6);
  --glass-border: rgba(255, 255, 255, 0.05);
  --glass-border-hover: rgba(56, 189, 248, 0.25);
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-head: 'Outfit', var(--font-sans);
  --font-mono: 'JetBrains Mono', monospace;
  
  /* Motion tokens */
  --ease-premium: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --t-fast: 180ms;
  --t-medium: 300ms;
  --t-slow: 600ms;
  --t-hero: 900ms;
  --t-scroll: 1200ms;
  
  --cursor-size: 20px;
  --header-height: 80px;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  line-height: 1.6;
  position: relative;
}

/* Custom Selection color */
::selection {
  background: rgba(37, 99, 235, 0.3);
  color: #ffffff;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-secondary);
  border: 2px solid var(--bg-primary);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--brand-primary);
}

/* --- Global Layout Utilities --- */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.25rem;
  }
}

/* Typography elements */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

p {
  color: var(--text-sub);
}

/* --- Background Noise System --- */
.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.015'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}

/* Aurora background mesh */
.aurora-mesh {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.18;
  mix-blend-mode: screen;
  animation: floatAurora 25s infinite alternate var(--ease-premium);
}

.blob-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--brand-primary) 0%, transparent 80%);
  top: -10%;
  left: -10%;
}

.blob-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent-cyan) 0%, transparent 80%);
  bottom: 10%;
  right: -5%;
  animation-duration: 35s;
}

.blob-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--accent-purple) 0%, transparent 80%);
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-duration: 30s;
}

@keyframes floatAurora {
  0% { transform: translate(0, 0) scale(1) rotate(0deg); }
  50% { transform: translate(80px, 40px) scale(1.15) rotate(180deg); }
  100% { transform: translate(-40px, 80px) scale(0.9) rotate(360deg); }
}

/* HTML5 Canvas element */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: auto;
}

/* --- Custom Cursor System --- */
.custom-cursor-dot {
  width: 8px;
  height: 8px;
  background: #ffffff;
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: width 0.15s, height 0.15s, background-color 0.15s;
}

.custom-cursor-ring {
  width: 40px;
  height: 40px;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease-premium), height 0.3s var(--ease-premium), border-color 0.3s, background-color 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-cursor-ring span {
  font-family: var(--font-head);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #030814;
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.2s, transform 0.2s;
}

/* Hover state classes added via JS */
body.cursor-hovering .custom-cursor-dot {
  width: 4px;
  height: 4px;
  background-color: var(--accent-cyan);
}
body.cursor-hovering .custom-cursor-ring {
  width: 60px;
  height: 60px;
  border-color: var(--accent-cyan);
  background-color: rgba(56, 189, 248, 0.05);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.15);
}

body.cursor-drag .custom-cursor-ring {
  width: 70px;
  height: 70px;
  border-color: var(--accent-purple);
  background-color: var(--accent-purple);
}
body.cursor-drag .custom-cursor-ring span {
  color: #ffffff;
  opacity: 1;
  transform: scale(1);
}

body.cursor-view .custom-cursor-ring {
  width: 80px;
  height: 80px;
  border-color: var(--accent-cyan);
  background-color: var(--accent-cyan);
}
body.cursor-view .custom-cursor-ring span {
  color: #030814;
  opacity: 1;
  transform: scale(1);
}

/* Magnetic attraction animation details */
.magnetic-btn {
  display: inline-block;
  position: relative;
  transition: transform 0.2s var(--ease-premium);
}

/* --- Premium Buttons --- */
.btn {
  font-family: var(--font-head);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  border-radius: 9999px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all var(--t-fast) var(--ease-premium);
  font-size: 0.95rem;
  gap: 0.5rem;
}

.btn-primary {
  background: var(--brand-primary);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.3);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: 0.6s;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37, 99, 235, 0.5);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.btn-cyan {
  background: var(--accent-cyan);
  color: #030814;
  border: none;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.3);
}

.btn-cyan:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(56, 189, 248, 0.5);
}

/* --- Sticky Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  border-bottom: 1px solid transparent;
  transition: all var(--t-medium) var(--ease-premium);
  display: flex;
  align-items: center;
}

.navbar.scrolled {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  height: 70px;
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.03em;
}

.logo-icon {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: var(--accent-cyan);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.5));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  list-style: none;
}

.nav-item {
  position: relative;
}

.nav-link {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-sub);
  text-decoration: none;
  transition: color var(--t-fast) var(--ease-premium);
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link:hover, .nav-link.active {
  color: #ffffff;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background: linear-gradient(90deg, var(--brand-primary), var(--accent-cyan));
  transition: width 0.3s var(--ease-premium);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

/* Progress Indicator Bar */
.scroll-progress-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.05);
}

.scroll-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--brand-primary), var(--accent-cyan), var(--accent-purple));
  transition: width 0.1s linear;
}

/* Mega Menu Styles */
.has-mega-menu {
  position: static;
}

.mega-menu {
  position: absolute;
  top: 100%;
  left: 5%;
  right: 5%;
  background: rgba(4, 9, 23, 0.95);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(30px);
  border-radius: 16px;
  padding: 2.5rem;
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  gap: 2rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all var(--t-medium) var(--ease-premium);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 0 30px rgba(255, 255, 255, 0.02);
}

.has-mega-menu:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-col-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  font-weight: 700;
}

.mega-featured-card {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.15) 0%, rgba(56, 189, 248, 0.05) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.mega-featured-card h4 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

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

.mega-service-item {
  text-decoration: none;
  display: flex;
  gap: 1rem;
  padding: 0.5rem;
  border-radius: 8px;
  transition: background-color 0.2s;
}

.mega-service-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

.mega-service-icon {
  width: 24px;
  height: 24px;
  stroke: var(--accent-cyan);
  stroke-width: 2;
  flex-shrink: 0;
}

.mega-service-info h5 {
  font-size: 0.95rem;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.mega-service-info p {
  font-size: 0.8rem;
  color: var(--text-sub);
  line-height: 1.4;
}

.mega-links-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mega-links-list a {
  color: var(--text-sub);
  text-decoration: none;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s;
}

.mega-links-list a:hover {
  color: var(--accent-cyan);
}

/* Mobile Fullscreen Menu Controls */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 30px;
  position: relative;
  z-index: 2000;
}

.mobile-nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #ffffff;
  position: absolute;
  left: 0;
  transition: transform 0.3s, top 0.3s;
}

.mobile-nav-toggle span:nth-child(1) { top: 8px; }
.mobile-nav-toggle span:nth-child(2) { top: 15px; }
.mobile-nav-toggle span:nth-child(3) { top: 22px; }

.mobile-nav-toggle.open span:nth-child(1) { transform: rotate(45deg); top: 15px; }
.mobile-nav-toggle.open span:nth-child(2) { opacity: 0; }
.mobile-nav-toggle.open span:nth-child(3) { transform: rotate(-45deg); top: 15px; }

.mobile-fullscreen-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(3, 8, 20, 0.98);
  backdrop-filter: blur(30px);
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s var(--ease-premium);
}

.mobile-fullscreen-menu.open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.mobile-menu-links a {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-sub);
  text-decoration: none;
  transition: color 0.3s;
}

.mobile-menu-links a:hover {
  color: var(--accent-cyan);
}

@media (max-width: 1024px) {
  .nav-links, .nav-cta {
    display: none;
  }
  .mobile-nav-toggle {
    display: block;
  }
}

/* --- Hero Section & Dashboard Mockup --- */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-height) + 2rem);
  padding-bottom: 4rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
}

.hero-tag {
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(37, 99, 235, 0.25);
  color: var(--accent-cyan);
  padding: 0.35rem 1rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.hero-headline {
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-headline span.gradient-text {
  background: linear-gradient(135deg, #ffffff 40%, var(--accent-cyan) 70%, var(--brand-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subheading {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: var(--text-sub);
  margin-bottom: 2.5rem;
  max-width: 580px;
}

@media (max-width: 1024px) {
  .hero-subheading {
    margin: 0 auto 2.5rem auto;
  }
}

.hero-actions {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 3.5rem;
}

@media (max-width: 1024px) {
  .hero-actions {
    justify-content: center;
  }
}

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

/* Statistics Ticker */
.hero-ticker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
}

.ticker-item h3 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: #ffffff;
  margin-bottom: 0.25rem;
  font-weight: 800;
}

.ticker-item p {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

/* Dashboard Mockup Component */
.hero-visual-container {
  position: relative;
  width: 100%;
  perspective: 1000px;
}

.dashboard-wrapper {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1.25rem;
  backdrop-filter: blur(20px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(255, 255, 255, 0.02);
  transform: rotateY(-10deg) rotateX(5deg);
  transition: transform 0.5s var(--ease-premium);
  position: relative;
}

.hero-visual-container:hover .dashboard-wrapper {
  transform: rotateY(-3deg) rotateX(2deg) translateY(-5px);
}

/* Glass Floating Cards */
.floating-ui-card {
  position: absolute;
  background: rgba(3, 8, 20, 0.85);
  border: 1px solid var(--glass-border-hover);
  border-radius: 12px;
  padding: 1rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
  animation: floatCard 6s infinite ease-in-out alternate;
  z-index: 10;
}

.float-card-1 {
  top: -15%;
  right: -5%;
  animation-delay: 0s;
}

.float-card-2 {
  bottom: -10%;
  left: -5%;
  animation-delay: 3s;
}

@keyframes floatCard {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-15px) rotate(2deg); }
}

/* Custom dashboard styles */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
}

.db-dots {
  display: flex;
  gap: 5px;
}

.db-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.db-dot:nth-child(1) { background: #ef4444; }
.db-dot:nth-child(2) { background: #eab308; }
.db-dot:nth-child(3) { background: #22c55e; }

.db-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

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

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

.db-chart-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  padding: 1rem;
}

.db-metric-title {
  font-size: 0.75rem;
  color: var(--text-sub);
  margin-bottom: 0.25rem;
}

.db-metric-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
}

.db-svg-chart {
  width: 100%;
  height: 120px;
  overflow: visible;
}

.db-line-path {
  fill: none;
  stroke: url(#chart-gradient);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: drawLine 3s forwards ease-in-out infinite alternate;
}

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

.db-info-panel {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.db-widget {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  padding: 0.75rem;
}

.db-widget-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--text-muted);
}

.db-widget-value {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: bold;
  color: var(--accent-cyan);
}

.db-widget-sub {
  font-size: 0.65rem;
  color: #22c55e;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Scroll indicator */
.scroll-indicator-wrap {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.scroll-mouse {
  width: 20px;
  height: 32px;
  border: 2px solid var(--text-muted);
  border-radius: 9999px;
  position: relative;
}

.scroll-wheel {
  width: 4px;
  height: 8px;
  background: var(--accent-cyan);
  border-radius: 9999px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 1.5s infinite ease-in-out;
}

@keyframes scrollWheel {
  0% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, 8px); }
}

/* --- Section Formatting --- */
.section {
  padding: 8rem 0;
  position: relative;
}

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

.section-tag {
  color: var(--accent-cyan);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
  display: block;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-sub);
}

/* --- Trusted By Section --- */
.trusted-section {
  padding: 3rem 0;
  background: linear-gradient(180deg, rgba(3, 8, 20, 0) 0%, rgba(7, 16, 38, 0.4) 50%, rgba(3, 8, 20, 0) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.marquee-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 4rem;
  animation: marqueeLoop 30s linear infinite;
}

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

.marquee-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  opacity: 0.4;
  transition: opacity 0.3s, transform 0.3s;
  cursor: pointer;
}

.marquee-item:hover {
  opacity: 1;
  transform: scale(1.05);
}

.marquee-logo {
  width: auto;
  height: 24px;
}

.marquee-item span {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  color: #ffffff;
}

@keyframes marqueeLoop {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

/* --- Bento Grid System (Common Elements) --- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}

.bento-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  padding: 2.25rem;
  transition: border-color var(--t-medium) var(--ease-premium), transform var(--t-medium) var(--ease-premium);
  display: flex;
  flex-direction: column;
}

.bento-card:hover {
  border-color: var(--glass-border-hover);
  transform: translateY(-4px);
}

/* Card Mouse Spotlight Tracker Styling */
.bento-card::after {
  content: '';
  position: absolute;
  top: var(--spotlight-y, 0);
  left: var(--spotlight-x, 0);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.08) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s;
}

.bento-card:hover::after {
  opacity: 1;
}

/* Layout definitions */
.col-12 { grid-column: span 12; }
.col-8 { grid-column: span 8; }
.col-6 { grid-column: span 6; }
.col-4 { grid-column: span 4; }

@media (max-width: 991px) {
  .col-8, .col-6, .col-4 { grid-column: span 12; }
}

/* --- Services Bento Grid & Custom Tilt --- */
.service-icon-box {
  width: 54px;
  height: 54px;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: background-color 0.3s, border-color 0.3s;
}

.service-icon-box svg {
  width: 26px;
  height: 26px;
  stroke: var(--accent-cyan);
  stroke-width: 2;
  transition: transform 0.3s;
}

.bento-card:hover .service-icon-box {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.3);
}

.bento-card:hover .service-icon-box svg {
  transform: scale(1.1) rotate(5deg);
}

.service-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #ffffff;
}

.service-desc {
  font-size: 0.9rem;
  color: var(--text-sub);
  margin-bottom: 2rem;
  flex-grow: 1;
}

.service-link {
  color: var(--accent-cyan);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
  transition: gap 0.2s;
}

.service-link svg {
  width: 16px;
  height: 16px;
  stroke: var(--accent-cyan);
  stroke-width: 2;
  transition: transform 0.2s;
}

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

/* Feature Service Bento Card Special Accent */
.bento-featured {
  background: linear-gradient(135deg, rgba(7, 16, 38, 0.85) 0%, rgba(37, 99, 235, 0.15) 100%);
  border-color: rgba(37, 99, 235, 0.2);
}

/* AI Chatbot Preview Box */
.ai-chatbot-mockup {
  background: #020612;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  height: 240px;
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chatbot-header {
  background: rgba(255, 255, 255, 0.02);
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.chatbot-avatar {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 10px #22c55e;
}

.chatbot-name {
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.chatbot-messages {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex-grow: 1;
  overflow-y: auto;
}

.chat-bubble {
  padding: 0.6rem 0.9rem;
  border-radius: 12px;
  font-size: 0.8rem;
  max-width: 85%;
}

.bubble-user {
  background: rgba(255, 255, 255, 0.05);
  align-self: flex-end;
  color: #ffffff;
  border-bottom-right-radius: 2px;
}

.bubble-ai {
  background: var(--brand-primary);
  align-self: flex-start;
  color: #ffffff;
  border-bottom-left-radius: 2px;
}

.chatbot-input-wrap {
  padding: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  gap: 0.5rem;
}

.chatbot-input {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  flex-grow: 1;
  padding: 0.4rem 0.75rem;
  color: #ffffff;
  font-size: 0.75rem;
}

.chatbot-send-btn {
  background: var(--accent-cyan);
  border: none;
  border-radius: 6px;
  padding: 0.4rem 0.75rem;
  color: #030814;
  font-weight: bold;
  cursor: pointer;
  font-size: 0.75rem;
}

/* Service Detail Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(2, 6, 18, 0.85);
  backdrop-filter: blur(20px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s var(--ease-premium);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border-hover);
  border-radius: 20px;
  padding: 3rem;
  max-width: 650px;
  width: 90%;
  position: relative;
  transform: translateY(30px) scale(0.95);
  transition: transform 0.4s var(--ease-premium);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

.modal-overlay.active .modal-container {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-sub);
}

.modal-close svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2;
}

.modal-body h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.modal-body p {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* --- About & KPI metrics grids --- */
.about-grid-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.about-visual-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
}

.about-visual-card h4 {
  font-size: 2.25rem;
  color: var(--accent-cyan);
  font-weight: 800;
  margin-bottom: 0.5rem;
}

/* --- Devices Showcase Layout --- */
.devices-container {
  position: relative;
  width: 100%;
  height: 480px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  margin-top: 4rem;
}

.device-macbook {
  width: 480px;
  height: 280px;
  background: #111;
  border-radius: 12px 12px 0 0;
  border: 4px solid #333;
  border-bottom: none;
  position: relative;
  z-index: 5;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.macbook-screen {
  width: 100%;
  height: 100%;
  background: var(--bg-tertiary);
  overflow: hidden;
  padding: 1rem;
  display: flex;
  flex-direction: column;
}

.macbook-base {
  width: 580px;
  height: 12px;
  background: #222;
  border-radius: 0 0 10px 10px;
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
}

.device-iphone {
  width: 140px;
  height: 280px;
  background: #000;
  border: 3px solid #333;
  border-radius: 20px;
  position: absolute;
  bottom: 0;
  right: 15%;
  z-index: 7;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.iphone-screen {
  width: 100%;
  height: 100%;
  background: var(--bg-secondary);
  padding: 0.5rem;
}

@media (max-width: 768px) {
  .devices-container {
    height: 350px;
  }
  .device-macbook {
    width: 320px;
    height: 190px;
  }
  .macbook-base {
    width: 380px;
  }
  .device-iphone {
    width: 90px;
    height: 180px;
    right: 5%;
  }
}

/* Before/After speed comparison slider */
.speed-slider-wrap {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.speed-slider-before, .speed-slider-after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.speed-slider-before {
  background: var(--bg-tertiary);
  z-index: 1;
}

.speed-slider-after {
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--bg-primary) 100%);
  z-index: 2;
  width: 50%; /* driven by JS slider input */
  border-right: 2px solid var(--accent-cyan);
}

.speed-slider-control {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100%;
  opacity: 0;
  z-index: 3;
  cursor: ew-resize;
}

/* --- ROI Calculator Components --- */
.roi-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 3rem;
}

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

.roi-inputs {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.roi-slider-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.roi-slider-header {
  display: flex;
  justify-content: space-between;
}

.roi-slider-label {
  font-weight: 600;
  font-size: 0.95rem;
}

.roi-slider-value {
  color: var(--accent-cyan);
  font-weight: bold;
}

/* Custom Styled Range Sliders */
.roi-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  outline: none;
  transition: background 0.3s;
}

.roi-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  background: var(--accent-cyan);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
  transition: transform 0.1s;
}

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

.roi-outputs {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border-hover);
  border-radius: 16px;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.roi-output-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.roi-output-number {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1.5rem;
}

/* --- Technology Stack Badges --- */
.tech-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.tech-tab-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  color: var(--text-sub);
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 500;
  transition: all 0.3s;
}

.tech-tab-btn:hover, .tech-tab-btn.active {
  background: var(--brand-primary);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.1);
}

.tech-badge-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
}

.tech-badge {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: transform 0.3s, border-color 0.3s;
  cursor: default;
}

.tech-badge:hover {
  transform: translateY(-3px) scale(1.03);
  border-color: var(--glass-border-hover);
}

.tech-badge svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.tech-badge span {
  font-size: 0.9rem;
  font-weight: 600;
}

/* --- Timeline Process Flow --- */
.timeline-wrap {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.timeline-line {
  position: absolute;
  left: 31px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255, 255, 255, 0.05);
}

.timeline-progress-line {
  position: absolute;
  left: 31px;
  top: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--brand-primary), var(--accent-cyan));
  height: 0%; /* updated by IntersectionObserver scroll dynamic scale */
  transition: height 0.1s linear;
}

.timeline-step {
  display: flex;
  gap: 2rem;
  margin-bottom: 4rem;
  position: relative;
}

.timeline-step:last-child {
  margin-bottom: 0;
}

.step-node {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 2px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  color: var(--accent-cyan);
  font-weight: bold;
  flex-shrink: 0;
  font-size: 1.25rem;
  transition: border-color 0.3s, background-color 0.3s, box-shadow 0.3s;
}

.timeline-step.active .step-node {
  border-color: var(--accent-cyan);
  background-color: var(--bg-tertiary);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.3);
}

.step-content {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 1.75rem 2.25rem;
  border-radius: 16px;
  flex-grow: 1;
  transition: border-color 0.3s;
}

.timeline-step.active .step-content {
  border-color: rgba(255, 255, 255, 0.1);
}

.step-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

/* --- Industries We Serve Grid --- */
.ind-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}

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

.ind-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.3s;
  cursor: pointer;
}

.ind-card:hover {
  transform: translateY(-5px);
  border-color: var(--glass-border-hover);
  background: rgba(56, 189, 248, 0.03);
}

.ind-card svg {
  width: 32px;
  height: 32px;
  stroke: var(--accent-cyan);
  stroke-width: 1.5;
  margin-bottom: 1.25rem;
}

.ind-card h4 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffffff;
}

/* --- Drag Carousel Testimonials --- */
.testimonials-slider-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  cursor: grab;
}

.testimonials-slider-container:active {
  cursor: grabbing;
}

.testimonials-track {
  display: flex;
  gap: 2rem;
  transition: transform 0.5s var(--ease-premium);
  will-change: transform;
}

.testimonial-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2.5rem;
  width: 450px;
  flex-shrink: 0;
}

@media (max-width: 580px) {
  .testimonial-card {
    width: 290px;
    padding: 1.5rem;
  }
}

.test-stars {
  display: flex;
  gap: 4px;
  color: #fbbf24;
  margin-bottom: 1rem;
}

.test-stars svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.test-text {
  font-size: 0.95rem;
  color: var(--text-sub);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.test-author-box {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.test-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  overflow: hidden;
}

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

.test-name {
  font-size: 0.95rem;
  font-weight: bold;
  color: #ffffff;
}

.test-title {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* --- FAQ Accordions --- */
.faq-wrap {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.3s;
}

.faq-item:hover {
  border-color: rgba(255, 255, 255, 0.1);
}

.faq-trigger {
  width: 100%;
  background: none;
  border: none;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  text-align: left;
  color: #ffffff;
}

.faq-trigger h4 {
  font-size: 1.1rem;
  font-weight: 600;
}

.faq-arrow {
  width: 20px;
  height: 20px;
  stroke: var(--text-sub);
  stroke-width: 2.5;
  transition: transform 0.3s var(--ease-premium);
}

.faq-item.active .faq-arrow {
  transform: rotate(180deg);
  stroke: var(--accent-cyan);
}

.faq-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s var(--ease-premium);
}

.faq-content {
  padding: 0 2rem 1.5rem 2rem;
  font-size: 0.95rem;
  color: var(--text-sub);
  line-height: 1.6;
}

/* --- Multi-Step Conversational Contact Form --- */
.contact-split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
}

@media (max-width: 991px) {
  .contact-split {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.contact-item {
  display: flex;
  gap: 1.25rem;
}

.contact-icon-box {
  width: 48px;
  height: 48px;
  background: rgba(37, 99, 235, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.contact-item h4 {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

/* Maps placeholder layout */
.map-embed-placeholder {
  background: var(--bg-tertiary);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  height: 220px;
  margin-top: 2rem;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-embed-placeholder::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle, transparent 20%, var(--bg-primary) 100%), 
              repeating-linear-gradient(rgba(255,255,255,0.01) 0px, rgba(255,255,255,0.01) 1px, transparent 1px, transparent 20px),
              repeating-linear-gradient(90deg, rgba(255,255,255,0.01) 0px, rgba(255,255,255,0.01) 1px, transparent 1px, transparent 20px);
}

.map-pin {
  color: var(--accent-cyan);
  z-index: 2;
  text-align: center;
}

.map-pin svg {
  width: 32px;
  height: 32px;
  animation: floatCard 3s infinite alternate ease-in-out;
}

/* Multi-Step Lead Form container */
.lead-form-container {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border-hover);
  border-radius: 20px;
  padding: 3rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

@media (max-width: 580px) {
  .lead-form-container {
    padding: 1.5rem;
  }
}

.form-step-indicator {
  height: 3px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 9999px;
  margin-bottom: 2.5rem;
  position: relative;
}

.form-step-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 33.33%;
  background: linear-gradient(90deg, var(--brand-primary), var(--accent-cyan));
  border-radius: 9999px;
  transition: width 0.4s var(--ease-premium);
}

.form-step-fieldset {
  border: none;
  display: none;
}

.form-step-fieldset.active {
  display: block;
  animation: fadeSlideStep 0.4s var(--ease-premium) forwards;
}

@keyframes fadeSlideStep {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

.form-group {
  position: relative;
  margin-bottom: 1.75rem;
}

/* Floating labels effect */
.form-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  color: #ffffff;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.3s;
}

.form-input:focus {
  border-color: var(--accent-cyan);
}

.form-label {
  position: absolute;
  top: 1rem;
  left: 1.25rem;
  color: var(--text-muted);
  pointer-events: none;
  transition: all 0.3s var(--ease-premium);
  transform-origin: left top;
}

.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label {
  transform: translateY(-1.5rem) scale(0.8);
  color: var(--accent-cyan);
}

/* Form Action layout */
.form-actions-wrap {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
}

/* Success Validation state */
.form-success-message {
  display: none;
  text-align: center;
  padding: 2rem;
}

.form-success-message.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.success-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.1);
  border: 2px solid #22c55e;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #22c55e;
  margin-bottom: 1.5rem;
}

/* --- Floating Sticky controls --- */
.floating-actions-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 999;
}

.floating-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s var(--ease-premium);
}

.floating-btn:hover {
  transform: translateY(-3px);
  border-color: var(--glass-border-hover);
}

.floating-whatsapp {
  background: #25d366;
  border-color: #25d366;
}

.floating-whatsapp:hover {
  background: #128c7e;
  border-color: #128c7e;
  box-shadow: 0 10px 25px rgba(18, 140, 126, 0.4);
}

.back-to-top {
  opacity: 0;
  visibility: hidden;
}

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

/* --- Enterprise Footer --- */
.footer {
  background: #020612;
  border-top: 1px solid var(--glass-border);
  padding: 5rem 0 2rem 0;
}

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

@media (max-width: 991px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 480px) {
  .footer-top {
    grid-template-columns: 1fr;
  }
}

.footer-col h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #ffffff;
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-links a {
  color: var(--text-sub);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--accent-cyan);
}

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

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-legal-links {
  display: flex;
  gap: 1.5rem;
}

.footer-legal-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* --- Scroll triggered reveal system animations --- */
.reveal-item {
  opacity: 0;
  transform: translateY(30px);
  filter: blur(5px);
  transition: opacity 0.8s var(--ease-premium), transform 0.8s var(--ease-premium), filter 0.8s var(--ease-premium);
}

.reveal-item.active {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* Stagger item delays */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }

/* Futuristic Cybernetic & AI Aesthetics */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: -3;
  pointer-events: none;
}

@keyframes pulseGlow {
  0% { 
    transform: scale(0.9); 
    box-shadow: 0 0 6px currentColor;
    opacity: 0.7; 
  }
  100% { 
    transform: scale(1.15); 
    box-shadow: 0 0 16px currentColor;
    opacity: 1; 
  }
}

.chatbot-avatar {
  animation: pulseGlow 1.8s infinite alternate ease-in-out;
  color: #22c55e;
}

.bento-card {
  position: relative;
  background: linear-gradient(135deg, rgba(3, 8, 20, 0.75) 0%, rgba(7, 16, 38, 0.6) 100%);
}

.bento-card:hover {
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 0 35px rgba(56, 189, 248, 0.1), inset 0 0 15px rgba(56, 189, 248, 0.03);
}

.gradient-text {
  text-shadow: 0 0 45px rgba(56, 189, 248, 0.2);
}

.hero-tag {
  border-color: rgba(56, 189, 248, 0.4) !important;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.08);
}

