/* =========================================================
   QUANTIX INNOVATIONS — Design System
   Premium AI Technology Company Website
   ========================================================= */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Syne:wght@400;500;600;700;800&display=swap');

/* --- CSS Custom Properties (Brand Colors from Logo) --- */
:root {
  /* Brand Palette */
  --brand-darkest: #060a14;
  --brand-darker: #0a0e1a;
  --brand-dark: #0d1526;
  --brand-deep: #101c30;
  --brand-primary: #0066ff;
  --brand-secondary: #00aaff;
  --brand-cyan: #00d4ff;
  --brand-light: #4dc9f6;
  --brand-glow: #00bbff;
  --brand-white: #e8f4ff;
  --brand-accent: #0088ff;
  
  /* Neutral Palette */
  --neutral-50: #f0f6ff;
  --neutral-100: #d0e3ff;
  --neutral-200: #a8c8f0;
  --neutral-300: #7aa3d4;
  --neutral-400: #5580b0;
  --neutral-500: #3a5f8a;
  --neutral-600: #2a4466;
  --neutral-700: #1c2d44;
  --neutral-800: #111c2e;
  --neutral-900: #0a1220;

  /* Typography */
  --font-heading: 'Syne', sans-serif;
  --font-body: 'Space Grotesk', sans-serif;
  --font-mono: 'Space Grotesk', monospace;

  /* Spacing */
  --section-padding: 80px;
  --container-max: 1280px;
  --container-wide: 1440px;

  /* Effects */
  --glass-bg: rgba(6, 10, 20, 0.4);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  --glow-primary: 0 0 20px rgba(0, 102, 255, 0.2), 0 0 60px rgba(0, 102, 255, 0.05);
  --glow-cyan: 0 0 20px rgba(0, 212, 255, 0.4), 0 0 60px rgba(0, 212, 255, 0.1);
  --glow-intense: 0 0 30px rgba(0, 136, 255, 0.6), 0 0 80px rgba(0, 136, 255, 0.2), 0 0 120px rgba(0, 136, 255, 0.1);

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.8s cubic-bezier(0.4, 0, 0.2, 1);

  /* Z-Index Scale */
  --z-behind: -1;
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-overlay: 300;
  --z-modal: 400;
  --z-cursor: 500;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--brand-darkest);
  color: var(--brand-white);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--brand-darker);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--brand-primary), var(--brand-cyan));
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--brand-secondary);
}

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

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h5 { font-size: 1.125rem; }

p {
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  color: var(--neutral-200);
  line-height: 1.7;
}

a {
  color: var(--brand-secondary);
  text-decoration: none;
  transition: var(--transition-fast);
}
a:hover {
  color: var(--brand-cyan);
}

/* --- Gradient Text --- */
.gradient-text {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-cyan), var(--brand-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-white {
  background: linear-gradient(135deg, #ffffff, var(--brand-white), var(--neutral-200));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Container --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.container-wide {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* --- Section Base --- */
.section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: var(--section-padding) 0;
  overflow-x: hidden;
}

.section-content {
  position: relative;
  z-index: var(--z-base);
  width: 100%;
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  padding: 16px 0;
  transition: var(--transition-smooth);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
}

.navbar.scrolled {
  padding: 10px 0;
  background: rgba(6, 10, 20, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

.navbar-inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.navbar-logo img {
  height: 42px;
  width: auto;
  object-fit: contain;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.navbar-links a {
  color: var(--neutral-200);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  position: relative;
  padding: 4px 0;
  transition: var(--transition-base);
}

.navbar-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-cyan));
  border-radius: 1px;
  transition: var(--transition-base);
}

.navbar-links a:hover {
  color: #ffffff;
}

.navbar-links a:hover::after,
.navbar-links a.active::after {
  width: 100%;
}

.navbar-links a.active {
  color: var(--brand-cyan);
}

/* CTA Button in Nav */
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  border: none;
  border-radius: 50px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: var(--transition-base);
  text-decoration: none;
}

.btn-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--brand-secondary), var(--brand-cyan));
  opacity: 0;
  transition: var(--transition-base);
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-primary);
  color: #ffffff;
}

.btn-cta:hover::before {
  opacity: 1;
}

.btn-cta span {
  position: relative;
  z-index: 1;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
  background: none;
  border: none;
  z-index: calc(var(--z-overlay) + 1);
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--brand-white);
  border-radius: 2px;
  transition: var(--transition-base);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Buttons --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  border: none;
  border-radius: 60px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: var(--transition-base);
  text-decoration: none;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--brand-secondary), var(--brand-cyan));
  opacity: 0;
  transition: var(--transition-base);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--glow-primary);
  color: #ffffff;
}

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

.btn-primary span {
  position: relative;
  z-index: 1;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--brand-white);
  background: transparent;
  border: 1.5px solid var(--glass-border);
  border-radius: 60px;
  cursor: pointer;
  transition: var(--transition-base);
  text-decoration: none;
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  border-color: var(--brand-secondary);
  background: rgba(0, 170, 255, 0.08);
  transform: translateY(-3px);
  box-shadow: var(--glow-cyan);
  color: #ffffff;
}

/* --- Glassmorphism Card --- */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 32px;
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  box-shadow: var(--glass-shadow);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand-secondary), transparent);
  opacity: 0.5;
}

.glass-card:hover {
  border-color: rgba(0, 170, 255, 0.3);
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 102, 255, 0.15), 0 0 30px rgba(0, 170, 255, 0.1);
}

/* --- Service Card --- */
.service-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 40px 32px;
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  text-align: center;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 24px;
  padding: 1px;
  background: linear-gradient(135deg, transparent 40%, var(--brand-primary), var(--brand-cyan));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: var(--transition-smooth);
}

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

.service-card:hover {
  transform: translateY(-12px) scale(1.02);
  background: rgba(13, 21, 38, 0.8);
  box-shadow: 0 25px 60px rgba(0, 102, 255, 0.2), 0 0 40px rgba(0, 170, 255, 0.1);
}

.service-card-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.15), rgba(0, 212, 255, 0.1));
  border: 1px solid rgba(0, 170, 255, 0.2);
  font-size: 1.8rem;
  transition: var(--transition-smooth);
}

.service-card:hover .service-card-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: var(--glow-primary);
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.3), rgba(0, 212, 255, 0.2));
}

.service-card h4 {
  margin-bottom: 12px;
  color: #ffffff;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--neutral-300);
}

.service-card .read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  color: var(--brand-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition-base);
}

.service-card:hover .read-more {
  color: var(--brand-cyan);
  gap: 10px;
}

/* --- Stats --- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-item {
  text-align: center;
  padding: 24px;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--neutral-300);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 8px;
}

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

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--brand-primary), var(--brand-cyan), var(--brand-primary), transparent);
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  align-items: center;
  margin-bottom: 60px;
  position: relative;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-content {
  width: 45%;
  padding: 0 40px;
}

.timeline-dot {
  width: 20px;
  height: 20px;
  background: var(--brand-primary);
  border: 3px solid var(--brand-cyan);
  border-radius: 50%;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  box-shadow: var(--glow-primary);
}

.timeline-item:nth-child(even) .timeline-content {
  text-align: right;
}

/* --- Testimonial Card --- */
.testimonial-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 32px;
  backdrop-filter: blur(20px);
  transition: var(--transition-smooth);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 24px;
  font-size: 5rem;
  font-family: var(--font-heading);
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.3;
  line-height: 1;
}

.testimonial-card:hover {
  border-color: rgba(0, 170, 255, 0.3);
  transform: translateY(-6px);
}

/* --- Section Backgrounds --- */
.bg-gradient-radial {
  background: radial-gradient(ellipse at center, rgba(0, 102, 255, 0.08) 0%, transparent 70%);
}

.bg-gradient-mesh {
  background: 
    radial-gradient(at 20% 30%, rgba(0, 102, 255, 0.06) 0%, transparent 50%),
    radial-gradient(at 80% 70%, rgba(0, 212, 255, 0.04) 0%, transparent 50%),
    radial-gradient(at 50% 50%, rgba(0, 136, 255, 0.03) 0%, transparent 50%);
}

.bg-grid {
  background-image: 
    linear-gradient(rgba(0, 170, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 170, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* --- Scroll Indicator --- */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: float 2s ease-in-out infinite;
}

.scroll-indicator-mouse {
  width: 24px;
  height: 38px;
  border: 2px solid rgba(0, 170, 255, 0.4);
  border-radius: 12px;
  position: relative;
}

.scroll-indicator-mouse::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 8px;
  background: var(--brand-cyan);
  border-radius: 2px;
  animation: scrollDown 2s ease-in-out infinite;
}

.scroll-indicator span {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--neutral-400);
}

/* --- Canvas Container --- */
.canvas-container {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.canvas-container canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* --- Process Step --- */
.process-step {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 32px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  backdrop-filter: blur(20px);
  transition: var(--transition-smooth);
  position: relative;
}

.process-step:hover {
  border-color: rgba(0, 170, 255, 0.3);
  transform: translateX(10px);
  box-shadow: var(--glass-shadow);
}

.process-step-number {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  color: #ffffff;
}

/* --- Industry Card --- */
.industry-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  overflow: hidden;
  transition: var(--transition-smooth);
  position: relative;
}

.industry-card:hover {
  border-color: rgba(0, 170, 255, 0.3);
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(0, 102, 255, 0.2);
}

.industry-card-visual {
  height: 200px;
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.15), rgba(0, 212, 255, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  position: relative;
  overflow: hidden;
}

.industry-card-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, var(--glass-bg) 100%);
}

.industry-card-body {
  padding: 28px;
}

/* --- Footer --- */
.footer {
  background: var(--brand-darker);
  border-top: 1px solid var(--glass-border);
  padding: 80px 0 30px;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand-primary), var(--brand-cyan), var(--brand-primary), transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand p {
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--neutral-400);
}

.footer-col h5 {
  color: #ffffff;
  font-family: var(--font-heading);
  margin-bottom: 20px;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: var(--neutral-400);
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.footer-col ul li a:hover {
  color: var(--brand-cyan);
  padding-left: 4px;
}

/* Newsletter */
.newsletter-form {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.newsletter-form input {
  flex: 1;
  padding: 10px 16px;
  background: rgba(13, 21, 38, 0.8);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  color: var(--brand-white);
  font-family: var(--font-body);
  font-size: 0.85rem;
  outline: none;
  transition: var(--transition-base);
}

.newsletter-form input:focus {
  border-color: var(--brand-secondary);
  box-shadow: 0 0 10px rgba(0, 170, 255, 0.2);
}

.newsletter-form button {
  padding: 10px 18px;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  border: none;
  border-radius: 10px;
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-base);
  white-space: nowrap;
}

.newsletter-form button:hover {
  box-shadow: var(--glow-primary);
}

/* Social Icons */
.social-icons {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.social-icons a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(0, 102, 255, 0.1);
  border: 1px solid var(--glass-border);
  color: var(--neutral-300);
  font-size: 1.1rem;
  transition: var(--transition-base);
}

.social-icons a:hover {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: var(--glow-primary);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 30px;
  border-top: 1px solid rgba(0, 170, 255, 0.08);
  font-size: 0.85rem;
  color: var(--neutral-500);
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  color: var(--neutral-500);
}

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

/* --- Contact Form --- */
.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-form .form-group.full-width {
  grid-column: 1 / -1;
}

.contact-form label {
  font-size: 0.85rem;
  color: var(--neutral-300);
  font-weight: 500;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  padding: 14px 18px;
  background: rgba(10, 14, 26, 0.8);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--brand-white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-base);
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--brand-secondary);
  box-shadow: 0 0 15px rgba(0, 170, 255, 0.15);
}

.contact-form textarea {
  min-height: 140px;
}

/* --- Animations --- */
@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-10px); }
}

@keyframes scrollDown {
  0% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(12px); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(0, 102, 255, 0.3); }
  50% { box-shadow: 0 0 40px rgba(0, 170, 255, 0.5), 0 0 80px rgba(0, 102, 255, 0.2); }
}

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

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

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

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Scroll-triggered animation classes */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-scale.active {
  opacity: 1;
  transform: scale(1);
}

/* Stagger children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.stagger-children.active > *:nth-child(1) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.stagger-children.active > *:nth-child(2) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.stagger-children.active > *:nth-child(3) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.stagger-children.active > *:nth-child(4) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }
.stagger-children.active > *:nth-child(5) { transition-delay: 0.5s; opacity: 1; transform: translateY(0); }
.stagger-children.active > *:nth-child(6) { transition-delay: 0.6s; opacity: 1; transform: translateY(0); }
.stagger-children.active > *:nth-child(7) { transition-delay: 0.7s; opacity: 1; transform: translateY(0); }
.stagger-children.active > *:nth-child(8) { transition-delay: 0.8s; opacity: 1; transform: translateY(0); }

/* --- Utility --- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 48px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 48px; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }
.gap-4 { gap: 32px; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }

.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.relative { position: relative; }
.absolute { position: absolute; }
.overflow-hidden { overflow: hidden; }

.max-w-2xl { max-width: 672px; }
.max-w-3xl { max-width: 768px; }
.max-w-4xl { max-width: 896px; }

/* --- Tech Sphere Badge --- */
.tech-sphere {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.tech-sphere-orb {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.15), rgba(0, 212, 255, 0.1));
  border: 1.5px solid rgba(0, 170, 255, 0.2);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-white);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: var(--transition-smooth);
  position: relative;
  font-family: var(--font-mono);
}

.tech-sphere-orb::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid transparent;
  transition: var(--transition-smooth);
}

.tech-sphere:hover .tech-sphere-orb {
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.35), rgba(0, 212, 255, 0.25));
  border-color: var(--brand-cyan);
  box-shadow: var(--glow-cyan);
  transform: scale(1.15) translateY(-5px);
}

.tech-sphere:hover .tech-sphere-orb::before {
  border-color: rgba(0, 212, 255, 0.3);
}

.tech-sphere-label {
  font-size: 0.8rem;
  color: var(--neutral-400);
  font-weight: 500;
  transition: var(--transition-base);
}

.tech-sphere:hover .tech-sphere-label {
  color: var(--brand-white);
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 50px;
  background: rgba(0, 102, 255, 0.1);
  border: 1px solid rgba(0, 170, 255, 0.2);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand-cyan);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-cyan);
  animation: pulse-glow 2s infinite;
}

.hero-title {
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--neutral-300);
  max-width: 700px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Page Header (for inner pages) --- */
.page-header {
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 140px 0 80px;
  background: 
    radial-gradient(ellipse at center top, rgba(0, 102, 255, 0.1) 0%, transparent 60%),
    var(--brand-darkest);
  overflow: hidden;
}

.header-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
  z-index: 0;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.page-header .container {
  position: relative;
  z-index: 1;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand-primary), transparent);
}

.page-header h1 {
  margin-bottom: 16px;
}

.page-header p {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 0.85rem;
}

.breadcrumb a {
  color: var(--neutral-400);
}

.breadcrumb span {
  color: var(--neutral-600);
}

.breadcrumb .current {
  color: var(--brand-cyan);
}

/* --- Mobile Menu Overlay --- */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(6, 10, 20, 0.95);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  z-index: var(--z-overlay);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.mobile-menu.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu a {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 600;
  color: var(--neutral-200);
  transition: var(--transition-base);
}

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

/* --- Section Divider --- */
.section-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-cyan));
  border-radius: 2px;
  margin: 16px auto;
}

.section-subtitle {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--brand-secondary);
  font-weight: 600;
  margin-bottom: 8px;
}

/* --- Responsive --- */
@media (max-width: 1200px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .timeline::before {
    left: 30px;
  }
  .timeline-item,
  .timeline-item:nth-child(even) {
    flex-direction: column;
    padding-left: 70px;
  }
  .timeline-dot {
    left: 30px;
  }
  .timeline-content {
    width: 100%;
    padding: 0;
  }
  .timeline-item:nth-child(even) .timeline-content {
    text-align: left;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 60px;
  }
  
  .navbar-links {
    display: none;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .navbar-inner .btn-cta {
    display: none;
  }
  
  .grid-2 {
    grid-template-columns: 1fr;
  }
  
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  
  .contact-form {
    grid-template-columns: 1fr;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  h1 { font-size: clamp(2rem, 7vw, 3rem); }
  h2 { font-size: clamp(1.5rem, 5vw, 2.4rem); }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  
  .glass-card {
    padding: 24px;
  }
  
  .service-card {
    padding: 28px 20px;
  }
  
  .navbar-inner {
    padding: 0 16px;
  }
}
