/* ==========================================================================
   AUTONEX SOLUTIONS - PREMIUM STYLESHEET
   Intelligent Automation Design System
   ========================================================================== */

/* Design Tokens & Theme Variables */
:root {
  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Color Palette */
  --bg-deep: #05060b;
  --bg-dark: #0a0b12;
  --bg-card: rgba(13, 17, 30, 0.5);
  --bg-card-hover: rgba(18, 24, 43, 0.7);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  /* Autonex Brand Colors */
  --electric-blue: #3b82f6;
  --electric-blue-glow: rgba(59, 130, 246, 0.35);
  --vivid-purple: #8b5cf6;
  --vivid-purple-glow: rgba(139, 92, 246, 0.35);
  --coral-orange: #f97316;
  --coral-orange-glow: rgba(249, 115, 22, 0.3);
  
  --gradient-1: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  --gradient-2: linear-gradient(135deg, #f97316 0%, #f59e0b 100%);
  --gradient-3: linear-gradient(135deg, #14b8a6 0%, #06b6d4 100%);
  
  --green: #10b981;
  --green-glow: rgba(16, 185, 129, 0.2);
  --red: #ef4444;
  --red-glow: rgba(239, 68, 68, 0.2);
  
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  --border-glow: rgba(59, 130, 246, 0.25);
  
  /* Layout Controls */
  --shadow-sm: 0 2px 8px -2px rgba(0,0,0,0.5);
  --shadow-md: 0 4px 20px -4px rgba(0,0,0,0.6);
  --shadow-lg: 0 8px 32px -4px rgba(0,0,0,0.7);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light/Medium Glow Eco mode switch overrides */
body.subtle-glow {
  --electric-blue-glow: rgba(59, 130, 246, 0.1);
  --vivid-purple-glow: rgba(139, 92, 246, 0.1);
  --border-glow: rgba(59, 130, 246, 0.08);
}

/* CSS Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Background Canvas Overlay */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: auto;
  opacity: 0.8;
}

/* Cybernetic Grid Overlay */
.cyber-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
  background-size: 60px 60px;
  background-position: center top;
  pointer-events: none;
  opacity: 0.65;
}

/* ambient ambient video bg */
.hero-video-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.hero-video-bg video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  filter: brightness(0.22) contrast(1.05);
}

.hero-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(10, 11, 20, 0.93) 0%, rgba(5, 6, 12, 0.88) 100%);
  z-index: -1;
  pointer-events: none;
}

/* Typography styles */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.25;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

/* Responsive SPA views toggle logic */
.section {
  display: none;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 120px 0 80px;
  position: relative;
  z-index: 2;
}

.section.active {
  display: block !important;
  opacity: 1;
  transform: translateY(0);
}

/* Reusable Glassmorphism Panel */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.glass-panel:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: 50px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  outline: none;
}

.btn-primary {
  background: var(--gradient-1);
  color: #fff;
  border: none;
  box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 0 rgba(59, 130, 246, 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
}

.btn-outline:hover {
  background: #fff;
  color: var(--electric-blue);
  border-color: #fff;
  transform: translateY(-2px);
}

.btn-primary-glow {
  background: var(--gradient-1);
  border: none;
  padding: 10px 22px;
  border-radius: 50px;
  font-family: var(--font-display);
  font-weight: 600;
  color: white;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(59,130,246,0.3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  outline: none;
}

.btn-primary-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59,130,246,0.55);
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1.05rem;
}

.btn-full {
  width: 100%;
}

.w-full {
  width: 100%;
}

/* Badge Utilities */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  background: linear-gradient(135deg, rgba(59,130,246,0.15), rgba(139,92,246,0.15));
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  backdrop-filter: blur(8px);
  margin-bottom: 1.5rem;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

.text-center { text-align: center; }
.mt-6 { margin-top: 1.5rem; }
.text-green { color: var(--green); }
.text-yellow { color: var(--coral-orange); }
.text-neon-cyan { color: var(--electric-blue); }
.text-neon-purple { color: var(--vivid-purple); }

/* Global Glow Backdrops */
.section-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 1;
  opacity: 0.3;
}

/* ==========================================================================
   Header and Navigation
   ========================================================================== */
.main-header {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 1320px;
  z-index: 1000;
  border-radius: var(--radius-md);
  background: rgba(10, 11, 20, 0.85);
  border: 1px solid var(--border);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  gap: 12px;
}

/* Logo Wrapper */
.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 10px;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.logo-tagline {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--coral-orange);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Search Bar */
.search-wrapper {
  position: relative;
  flex: 1;
  max-width: 260px;
  margin: 0 1rem;
}

.search-wrapper input {
  width: 100%;
  padding: 8px 16px 8px 36px;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.85rem;
  transition: var(--transition);
  outline: none;
}

.search-wrapper input:focus {
  border-color: var(--electric-blue);
  background: rgba(255,255,255,0.06);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.15);
}

.search-wrapper i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Nav Menu links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 6px;
  color: var(--text-secondary);
  cursor: pointer;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.nav-link.active {
  border-bottom: 2px solid var(--electric-blue);
  border-radius: 6px 6px 0 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Mobile Toggle hamburger button */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 22px;
  height: 16px;
  background: transparent;
  border: none;
  cursor: pointer;
  outline: none;
  z-index: 1100;
}

.mobile-toggle .bar {
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Mobile Nav Drawer panel */
.mobile-nav {
  position: fixed;
  top: 80px;
  right: 16px;
  width: 260px;
  display: none;
  flex-direction: column;
  padding: 24px;
  z-index: 999;
  transform: translateY(-20px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  background: rgba(10, 11, 20, 0.95);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.mobile-nav.active {
  display: flex;
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-link {
  padding: 10px 16px;
  border-radius: 6px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 6px;
  cursor: pointer;
}

.mobile-link:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--electric-blue);
}

.mobile-actions {
  margin-top: 14px;
  border-top: 1px solid var(--border);
  padding-top: 18px;
}

/* Sticky Dashboard Sub-Navigation Bar */
.dashboard-subnav {
  background: rgba(13, 17, 30, 0.85);
  backdrop-filter: blur(12px);
  border-radius: 50px;
  border: 1px solid var(--border);
  padding: 8px 24px;
  display: flex;
  justify-content: center;
  gap: 2rem;
  position: fixed;
  top: 82px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 900;
  box-shadow: var(--shadow-lg);
  max-width: 500px;
  width: calc(100% - 32px);
  animation: slideDownSubnav 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDownSubnav {
  from { transform: translate(-50%, -40px); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}

.dashboard-tab {
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 6px 12px;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}

.dashboard-tab:hover, .dashboard-tab.active {
  color: var(--electric-blue);
  border-bottom-color: var(--electric-blue);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-glow-1 {
  width: 450px;
  height: 450px;
  background: var(--electric-blue-glow);
  top: 10%;
  right: 10%;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 40px;
  min-height: calc(100vh - 120px);
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-title {
  font-size: clamp(2.5rem, 5.5vw, 4.4rem);
  font-weight: 800;
  margin-top: 8px;
  margin-bottom: 20px;
  line-height: 1.15;
}

.gradient-text {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 30px rgba(59, 130, 246, 0.15);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 32px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
  width: 100%;
  flex-wrap: wrap;
}

/* Live Telemetry / Stats Cards */
.hero-stats {
  display: flex;
  gap: 16px;
  width: 100%;
}

.stat-card {
  flex: 1;
  padding: 16px 20px;
  text-align: left;
}

.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-primary);
  background: linear-gradient(135deg, #fff, var(--text-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

/* Hero Visual Orb */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  height: 400px;
}

.orb-container {
  position: relative;
  width: 240px;
  height: 240px;
}

.neural-orb {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orb-core {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--electric-blue) 0%, rgba(139,92,246,0.6) 70%, transparent 100%);
  filter: blur(10px);
  box-shadow: 
    0 0 30px var(--electric-blue),
    0 0 60px var(--vivid-purple);
  animation: orb-pulse 4s ease-in-out infinite alternate;
}

.orb-ring {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.ring-1 {
  width: 130px;
  height: 130px;
  border-color: rgba(59, 130, 246, 0.25);
  border-top-color: var(--electric-blue);
  animation: spin 6s linear infinite;
}

.ring-2 {
  width: 180px;
  height: 180px;
  border-color: rgba(139, 92, 246, 0.2);
  border-bottom-color: var(--vivid-purple);
  animation: spin 10s linear infinite reverse;
}

.ring-3 {
  width: 240px;
  height: 240px;
  border-color: rgba(255, 255, 255, 0.04);
  border-left-color: rgba(255, 255, 255, 0.15);
  animation: spin 14s linear infinite;
}

/* Floating Telemetry overlays */
.floating-telemetry {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(10, 11, 18, 0.75);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255,255,255,0.08);
}

.ft-1 {
  top: -10px;
  right: -30px;
  animation: float-y 5s ease-in-out infinite alternate;
}

.ft-2 {
  bottom: -20px;
  left: -40px;
  animation: float-y 6s ease-in-out infinite alternate-reverse;
}

.floating-telemetry i {
  font-size: 1.1rem;
}

.floating-telemetry h6 {
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.telemetry-status {
  font-size: 0.7rem;
  display: block;
}

/* ==========================================================================
   Section Headers
   ========================================================================== */
.section-header {
  margin-bottom: 50px;
  position: relative;
  z-index: 2;
}

.section-header.text-center {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-tagline {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--electric-blue);
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
}

/* ==========================================================================
   Services Grid
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.service-card {
  padding: 40px 32px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-glow {
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: var(--vivid-purple-glow);
  filter: blur(40px);
  pointer-events: none;
  opacity: 0.5;
  transition: var(--transition);
}

.service-card:hover .card-glow {
  transform: scale(1.5);
  background: var(--electric-blue-glow);
  opacity: 0.8;
}

.card-icon-wrapper {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--electric-blue);
  font-size: 1.4rem;
  transition: var(--transition);
}

.service-card:hover .card-icon-wrapper {
  background: var(--gradient-1);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.card-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.card-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 24px;
  flex-grow: 1;
}

.card-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 20px;
}

.card-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.check-icon {
  width: 14px;
  height: 14px;
  color: var(--vivid-purple);
  font-size: 0.8rem;
}

/* 3D hover effects card details */
.card-hover-3d {
  transform-style: preserve-3d;
  transform: perspective(1000px);
}

/* ==========================================================================
   Video / Solution Demo Showcase
   ========================================================================== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.video-card {
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: var(--transition);
}

.video-card:hover {
  transform: translateY(-8px) scale(1.01);
  border-color: var(--electric-blue);
  box-shadow: var(--shadow-lg);
}

.iframe-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  background: rgba(0,0,0,0.2);
}

.video-card iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-card h4 {
  padding: 1.5rem 1.5rem 0.5rem;
  font-size: 1.2rem;
  font-weight: 700;
}

.video-card p {
  padding: 0 1.5rem 1.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ==========================================================================
   Clients & Testimonials Grid
   ========================================================================== */
.client-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.client-card {
  padding: 24px 20px;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid rgba(59,130,246,0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.client-card:hover {
  transform: translateY(-6px);
  border-color: var(--electric-blue);
  background: var(--bg-card-hover);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.15);
}

.client-icon {
  font-size: 2.4rem;
  margin-bottom: 16px;
  transition: var(--transition);
}

.client-card:hover .client-icon {
  transform: scale(1.1);
}

.client-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.client-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Testimonial Cards */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  padding: 32px;
  position: relative;
  overflow: hidden;
}

.client-avatar {
  width: 50px;
  height: 50px;
  background: var(--gradient-1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
  margin-bottom: 18px;
  box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
}

.stars {
  color: #f59e0b;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.testimonial-text {
  font-style: italic;
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 20px;
  line-height: 1.5;
}

.testimonial-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.testimonial-card small {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ==========================================================================
   Dashboard Pane & Analytics layout
   ========================================================================== */
.dashboard-views-container {
  min-height: 480px;
  margin-top: 30px;
}

.dashboard-view-pane {
  animation: fadeInPane 0.4s ease-in-out forwards;
}

@keyframes fadeInPane {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.chart-container {
  max-width: 600px;
  margin: 2rem auto;
  padding: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.chart-container canvas {
  width: 100% !important;
  height: auto !important;
}

/* ==========================================================================
   Pricing & Cost Estimator Framework
   ========================================================================== */
.estimator-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
}

.estimator-sliders {
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.slider-group {
  display: flex;
  flex-direction: column;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

.slider-header label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.slider-value {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--electric-blue);
}

.input-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.05);
  outline: none;
  cursor: pointer;
}

.input-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--electric-blue), var(--vivid-purple));
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
  cursor: pointer;
  transition: transform 0.1s;
}

.input-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Estimator results card overlay */
.estimator-summary {
  padding: 44px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.summary-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}

.price-container {
  display: flex;
  align-items: baseline;
  margin-bottom: 24px;
}

.price-amount {
  font-family: var(--font-display);
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1;
  color: var(--text-primary);
  background: linear-gradient(to right, #fff, var(--text-secondary));
  -webkit-background-clip: text;
  background-clip: text;
}

.summary-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.04);
  margin-bottom: 24px;
}

.summary-specs {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.spec-row strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* ==========================================================================
   Office Grid presence
   ========================================================================== */
.office-card {
  padding: 32px 28px;
  border-left: 6px solid var(--coral-orange);
  transition: var(--transition);
}

.office-card:hover {
  transform: translateX(8px);
  border-left-color: var(--electric-blue);
  background: var(--bg-card-hover);
}

.office-card i {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.office-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.office-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 12px;
}

.office-phone {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  display: block;
}

.office-phone i {
  font-size: 0.8rem;
  margin-right: 4px;
  margin-bottom: 0;
}

/* ==========================================================================
   Contact Forms
   ========================================================================== */
.contact-glow {
  width: 450px;
  height: 450px;
  background: var(--electric-blue-glow);
  bottom: 0;
  right: 5%;
}

.contact-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}

.contact-info {
  padding: 50px 40px;
  background: rgba(10, 11, 20, 0.6);
  border-right: 1px solid var(--border);
}

.contact-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.contact-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 36px;
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.info-item i {
  font-size: 1.1rem;
  margin-top: 4px;
}

.info-item h6 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.info-item span {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Form layout controls */
.contact-form {
  padding: 50px 40px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-form {
  padding: 50px 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-form input, 
.contact-form select, 
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition);
}

.contact-form input::placeholder, 
.contact-form textarea::placeholder {
  color: var(--text-muted);
}

.contact-form input:focus, 
.contact-form select:focus, 
.contact-form textarea:focus {
  border-color: var(--electric-blue);
  background: rgba(255,255,255,0.05);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

.contact-form textarea {
  border-radius: 20px;
  resize: vertical;
}

/* Alert Boxes style */
.alert-message {
  padding: 12px 20px;
  border-radius: 50px;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
}

.alert-success {
  background: rgba(16, 185, 129, 0.15);
  color: #fff;
  border: 1px solid rgba(16, 185, 129, 0.4);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.15);
}

.alert-error {
  background: rgba(239, 68, 68, 0.15);
  color: #fff;
  border: 1px solid rgba(239, 68, 68, 0.4);
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.15);
}

/* Form success overlay */
.success-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 11, 20, 0.95);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  z-index: 5;
  text-align: center;
  transition: var(--transition);
}

.success-content {
  max-width: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.rocket-container {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  margin-bottom: 24px;
  position: relative;
}

.success-rocket {
  width: 28px;
  height: 28px;
  font-size: 1.5rem;
}

.success-content h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.success-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
  line-height: 1.5;
}

/* ==========================================================================
   Footer Section
   ========================================================================== */
.main-footer {
  background: rgba(4, 5, 8, 0.85);
  border-top: 1px solid var(--border);
  padding-top: 80px;
  position: relative;
  z-index: 2;
}

.footer-container {
  display: grid;
  grid-template-columns: 1.25fr 1.75fr;
  gap: 60px;
  padding-bottom: 60px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.footer-tagline {
  color: var(--text-secondary);
  font-size: 0.9rem;
  max-width: 320px;
}

.system-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--green);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse-glow 1.5s infinite;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-column h5 {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.footer-column a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.footer-column a:hover {
  color: var(--electric-blue);
  padding-left: 2px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding: 30px 0;
}

.footer-bottom-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer-socials {
  display: flex;
  gap: 16px;
}

.footer-socials a {
  color: var(--text-muted);
  transition: var(--transition);
  font-size: 0.9rem;
}

.footer-socials a:hover {
  color: var(--text-primary);
  transform: translateY(-2px);
}

/* ==========================================================================
   Animations Keyframes
   ========================================================================== */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes heartbeat {
  from { transform: scale(0.95); opacity: 0.8; }
  to { transform: scale(1.05); opacity: 1; }
}

@keyframes pulse-glow {
  0% { transform: scale(0.9); box-shadow: 0 0 4px currentColor; opacity: 0.8; }
  50% { transform: scale(1.1); box-shadow: 0 0 12px currentColor; opacity: 1; }
  100% { transform: scale(0.9); box-shadow: 0 0 4px currentColor; opacity: 0.8; }
}

@keyframes orb-pulse {
  0% { transform: scale(0.9) translate(-2px, -2px); filter: blur(10px) brightness(0.9); }
  100% { transform: scale(1.1) translate(2px, 2px); filter: blur(14px) brightness(1.2); }
}

@keyframes float-y {
  from { transform: translateY(0); }
  to { transform: translateY(-10px); }
}

@keyframes launch-up {
  0% { transform: translateY(0) scale(1); opacity: 1; }
  30% { transform: translateY(5px) scale(0.9); opacity: 1; }
  100% { transform: translateY(-150px) scale(0.3); opacity: 0; }
}

.rocket-launch {
  animation: launch-up 0.8s ease-in forwards;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 50px;
    padding-top: 60px;
  }
  
  .hero-content {
    align-items: center;
  }
  
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-buttons {
    justify-content: center;
  }

  .estimator-grid {
    grid-template-columns: 1fr;
  }

  .contact-card {
    grid-template-columns: 1fr;
  }
  
  .contact-info {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .main-header {
    top: 0;
    width: 100%;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-top: none;
  }
  
  .nav-menu, .header-actions .btn-primary-glow {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .hero-stats {
    flex-direction: column;
    width: 100%;
  }

  .footer-bottom-container {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .footer-links-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .dashboard-subnav {
    top: 66px;
    overflow-x: auto;
    justify-content: flex-start;
    gap: 10px;
    padding: 6px 16px;
    border-radius: 0 0 16px 16px;
  }
}

/* ==========================================================================
   AI Chatbot Widget Styles
   ========================================================================== */
.chatbot-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
  font-family: var(--font-body);
}

.chatbot-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gradient-1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.4);
  position: relative;
  transition: var(--transition);
}

.chatbot-toggle:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 12px 40px rgba(139, 92, 246, 0.6);
}

.chatbot-toggle:active {
  transform: scale(0.95);
}

.pulse-ring {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border-radius: 50%;
  border: 2px solid var(--vivid-purple);
  opacity: 0;
  animation: pulse-ring-anim 2s cubic-bezier(0.215, 0.610, 0.355, 1) infinite;
  pointer-events: none;
}

@keyframes pulse-ring-anim {
  0% { transform: scale(0.9); opacity: 0.6; }
  100% { transform: scale(1.2); opacity: 0; }
}

.chat-window {
  width: 380px;
  height: 520px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 11, 20, 0.85) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.chatbot-container.active .chat-window {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Chat Header */
.chat-header {
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-avatar-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--vivid-purple);
  font-size: 1.1rem;
}

.chat-header-info h5 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.chat-status {
  font-size: 0.75rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.chat-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--green);
  box-shadow: 0 0 6px var(--green);
}

.chat-header-actions {
  display: flex;
  gap: 10px;
}

.chat-header-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: var(--transition);
}

.chat-header-btn:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

.chat-header-btn[href*="wa.me"]:hover {
  color: var(--green);
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.08);
}

/* Chat Messages */
.chat-messages-container {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Custom Scrollbar for Chat Messages */
.chat-messages-container::-webkit-scrollbar {
  width: 5px;
}

.chat-messages-container::-webkit-scrollbar-track {
  background: transparent;
}

.chat-messages-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
}

.chat-messages-container::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.15);
}

.message {
  display: flex;
  flex-direction: column;
  max-width: 85%;
}

.message-bot {
  align-self: flex-start;
}

.message-user {
  align-self: flex-end;
}

.message-bubble {
  padding: 12px 16px;
  font-size: 0.85rem;
  line-height: 1.45;
  border-radius: 18px;
}

.message-bot .message-bubble {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-top-left-radius: 4px;
}

.message-user .message-bubble {
  background: var(--gradient-1);
  color: white;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
  border-top-right-radius: 4px;
}

/* Suggestion Chips */
.chat-suggestions {
  padding: 0 20px 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.suggestion-chip {
  padding: 6px 12px;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.75rem;
  cursor: pointer;
  transition: var(--transition);
}

.suggestion-chip:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--electric-blue);
  color: white;
}

/* Input Form */
.chat-input-form {
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
  background: rgba(255, 255, 255, 0.01);
}

.chat-input-form input {
  flex: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 10px 18px;
  color: white;
  font-family: var(--font-body);
  font-size: 0.85rem;
  outline: none;
  transition: var(--transition);
}

.chat-input-form input:focus {
  border-color: var(--vivid-purple);
  box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2);
}

.chat-send-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gradient-1);
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
  transition: var(--transition);
}

.chat-send-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.35);
}

.chat-send-btn:active {
  transform: scale(0.95);
}

/* Typing Indicator Animation */
.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 4px 8px;
}

.typing-dot {
  width: 6px;
  height: 6px;
  background-color: var(--text-secondary);
  border-radius: 50%;
  animation: typing-bounce 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing-bounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1.0); }
}

/* Bubble entry animation */
.animate-bubble {
  animation: bubble-pop 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes bubble-pop {
  0% { transform: scale(0.85); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

@media (max-width: 480px) {
  .chatbot-container {
    bottom: 20px;
    right: 20px;
  }
  .chat-window {
    width: calc(100vw - 40px);
    height: 460px;
  }
}
