/* CSS Variables for AI Nexus Theme */
:root {
  --bg-primary: #000000;
  --bg-secondary: #050505;
  --bg-tertiary: #080808;
  --accent-primary: #0066ff;
  --accent-secondary: #0052cc;
  --accent-blue: #4d94ff;
  --text-primary: #ffffff;
  --text-secondary: #cccccc;
  --text-muted: #888888;
  --border-color: rgba(0, 102, 255, 0.2);
  --border-radius: 8px;
  --border-radius-sm: 4px;
  --shadow-glow: 0 0 20px rgba(0, 102, 255, 0.3);
  --shadow-dark: 0 10px 30px rgba(0, 0, 0, 0.5);
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-fast: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-spring: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  
  /* Dynamic viewport units */
  --vh: 1vh;
  --vw: 1vw;
  --screen-ratio: 1;
  --orientation: portrait;
  
  /* Enhanced responsive breakpoints */
  --mobile-small: 360px;
  --mobile-medium: 480px;
  --mobile-large: 768px;
  --tablet: 1024px;
  --desktop-small: 1200px;
  --desktop-large: 1440px;
  
  /* Responsive spacing */
  --spacing-xs: clamp(0.25rem, 1vw, 0.5rem);
  --spacing-sm: clamp(0.5rem, 2vw, 1rem);
  --spacing-md: clamp(1rem, 3vw, 2rem);
  --spacing-lg: clamp(1.5rem, 4vw, 3rem);
  --spacing-xl: clamp(2rem, 5vw, 4rem);
  
  /* Responsive typography */
  --font-size-xs: clamp(0.75rem, 2vw, 0.875rem);
  --font-size-sm: clamp(0.875rem, 2.5vw, 1rem);
  --font-size-base: clamp(1rem, 3vw, 1.125rem);
  --font-size-lg: clamp(1.125rem, 3.5vw, 1.25rem);
  --font-size-xl: clamp(1.25rem, 4vw, 1.5rem);
  --font-size-2xl: clamp(1.5rem, 5vw, 2rem);
  --font-size-3xl: clamp(2rem, 6vw, 3rem);
  --font-size-4xl: clamp(2.5rem, 7vw, 4rem);
  
  /* Touch-friendly sizes */
  --touch-target: 44px;
  --touch-target-large: 48px;
  
  /* Safe areas for mobile */
  --safe-area-top: env(safe-area-inset-top, 0px);
  --safe-area-bottom: env(safe-area-inset-bottom, 0px);
  --safe-area-left: env(safe-area-inset-left, 0px);
  --safe-area-right: env(safe-area-inset-right, 0px);
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Performance optimizations */
*,
*::before,
*::after {
  /* Force hardware acceleration */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  /* Prevent zoom on mobile input focus */
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-primary);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  min-height: calc(var(--vh, 1vh) * 100); /* Dynamic viewport height */
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  
  /* Enhanced mobile optimizations */
  -webkit-tap-highlight-color: rgba(0, 102, 255, 0.1);
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  
  /* Smooth scrolling for iOS */
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
  
  /* Hardware acceleration */
  will-change: scroll-position;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

/* Enhanced responsive container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  width: 100%;
}

/* Main Header Styles */
.main-header {
  padding: clamp(6rem, 15vh, 10rem) 0 clamp(4rem, 10vh, 6rem);
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  position: relative;
  z-index: 5;
  border-bottom: 1px solid var(--border-color);
}

.header-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 8vw, 6rem);
  align-items: center;
  min-height: clamp(400px, 50vh, 600px);
}

.header-title {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: clamp(1rem, 3vw, 2rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.header-subtitle {
  font-size: clamp(1.1rem, 4vw, 1.5rem);
  color: var(--text-secondary);
  margin-bottom: clamp(2rem, 5vw, 3rem);
  line-height: 1.5;
  max-width: 80%;
}

.header-badges {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.badge {
  background: rgba(0, 102, 255, 0.1);
  color: var(--accent-primary);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid rgba(0, 102, 255, 0.3);
  backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
}

.badge:hover {
  background: rgba(0, 102, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3);
}

.tech-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.tech-item {
  background: rgba(0, 102, 255, 0.05);
  border: 1px solid rgba(0, 102, 255, 0.2);
  border-radius: var(--border-radius);
  padding: 2rem;
  text-align: center;
  transition: var(--transition-smooth);
  backdrop-filter: blur(10px);
}

.tech-item:hover {
  background: rgba(0, 102, 255, 0.1);
  border-color: var(--accent-primary);
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 102, 255, 0.3);
}

.tech-item i {
  font-size: 2.5rem;
  color: var(--accent-primary);
  margin-bottom: 1rem;
  display: block;
}

.tech-item span {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Responsive container variations */
.container-sm {
  max-width: 640px;
}

.container-md {
  max-width: 768px;
}

.container-lg {
  max-width: 1024px;
}

.container-xl {
  max-width: 1280px;
}

/* Enhanced Loader with Better Mobile Support */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  height: 100dvh; /* Dynamic viewport height */
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow: hidden;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  
  /* Safe area support */
  padding-top: var(--safe-area-top);
  padding-bottom: var(--safe-area-bottom);
  padding-left: var(--safe-area-left);
  padding-right: var(--safe-area-right);
}

.loader canvas {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 8;
  pointer-events: auto;
  touch-action: none;
}

/* Enhanced responsive loader content */
.loader-content {
  text-align: center;
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-lg);
  transform-style: preserve-3d;
  will-change: transform;
  padding: var(--spacing-md);
  max-width: 90vw;
  max-width: 90dvw;
}

/* Enhanced spark text with better responsive sizing */
.spark-text {
  position: absolute;
  top: 35%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: rgba(255, 255, 255, 0.8);
  font-family: 'Courier New', monospace;
  font-size: clamp(1.2rem, 5vw, 1.8rem);
  font-weight: 300;
  letter-spacing: clamp(0.1em, 1vw, 0.2em);
  text-align: center;
  z-index: 5;
  opacity: 0;
  animation: sparkTextFadeIn 2s ease-in-out 1s forwards;
  pointer-events: none;
  transition: opacity 0.3s ease;
  max-width: 90vw;
  max-width: 90dvw;
  line-height: 1.3;
}

/* Enhanced continue text */
.continue-text {
  position: absolute;
  top: 65%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: rgba(255, 255, 255, 0.6);
  font-family: 'Courier New', monospace;
  font-size: clamp(0.9rem, 3.5vw, 1.2rem);
  font-weight: 300;
  letter-spacing: clamp(0.05em, 0.5vw, 0.1em);
  text-align: center;
  z-index: 5;
  opacity: 0;
  animation: continueTextFadeIn 2s ease-in-out 3s forwards;
  pointer-events: none;
  transition: opacity 0.3s ease;
  cursor: pointer;
  max-width: 90vw;
  max-width: 90dvw;
}

/* Enhanced AI loader with responsive scaling */
.ai-loader {
  position: relative;
  width: clamp(120px, 25vw, 180px);
  height: clamp(120px, 25vw, 180px);
  margin: 0 auto var(--spacing-lg);
  animation: loaderRotate 6s linear infinite;
  filter: drop-shadow(0 0 20px rgba(0, 102, 255, 0.3));
}

/* Enhanced AI nodes with responsive positioning */
.ai-node {
  position: absolute;
  width: clamp(8px, 2vw, 12px);
  height: clamp(8px, 2vw, 12px);
  background: var(--accent-primary);
  border-radius: 50%;
  animation: powerPulse 2s infinite;
  box-shadow: 0 0 25px var(--accent-primary);
  filter: drop-shadow(0 0 10px rgba(0, 102, 255, 0.5));
}

/* Enhanced loading bar with responsive width */
.loading-bar {
  width: clamp(200px, 60vw, 350px);
  height: clamp(4px, 1vw, 6px);
  background: rgba(0, 102, 255, 0.15);
  border-radius: 3px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 102, 255, 0.2);
  border: 1px solid rgba(0, 102, 255, 0.3);
}

/* Enhanced loader text */
.loader-text {
  color: var(--accent-primary);
  font-size: clamp(1.1rem, 4vw, 1.5rem);
  font-weight: 600;
  letter-spacing: clamp(0.1em, 1vw, 0.2em);
  text-transform: uppercase;
  margin-bottom: var(--spacing-md);
  animation: textGlow 1.5s ease-in-out infinite alternate;
  position: relative;
}

/* Enhanced Navigation with Better Mobile Support */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(30px) saturate(120%);
  -webkit-backdrop-filter: blur(30px) saturate(120%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: auto;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  
  /* Safe area support */
  padding-top: var(--safe-area-top);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: clamp(60px, 10vh, 80px);
  min-height: var(--touch-target);
}

/* Enhanced nav logo with responsive sizing */
.nav-logo {
  display: flex;
  align-items: center;
  gap: clamp(0.3rem, 1vw, 0.5rem);
  line-height: 1;
  text-decoration: none;
  min-height: var(--touch-target);
  padding: var(--spacing-xs);
}

.logo-image {
  width: clamp(28px, 6vw, 40px);
  height: clamp(28px, 6vw, 40px);
  filter: drop-shadow(0 0 10px rgba(0, 102, 255, 0.3));
  transition: var(--transition-fast);
}

.logo-text {
  font-size: clamp(1rem, 3vw, 1.2rem);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: clamp(0.1em, 1vw, 0.2em);
}

.logo-accent {
  font-size: clamp(0.7rem, 2vw, 0.8rem);
  font-weight: 300;
  color: var(--accent-primary);
  letter-spacing: clamp(0.2em, 2vw, 0.3em);
}

/* Enhanced nav menu with better mobile support */
.nav-menu {
  display: flex;
  list-style: none;
  gap: clamp(1.5rem, 4vw, 3rem);
  justify-content: space-between;
  align-items: center;
}

.nav-link {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 400;
  font-size: clamp(0.8rem, 2.5vw, 0.9rem);
  letter-spacing: clamp(0.05em, 0.5vw, 0.1em);
  transition: var(--transition-fast);
  position: relative;
  padding: var(--spacing-xs) var(--spacing-sm);
  min-height: var(--touch-target);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Enhanced dropdown with better mobile support */
.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(30px) saturate(120%);
  -webkit-backdrop-filter: blur(30px) saturate(120%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: var(--spacing-sm) 0;
  min-width: clamp(180px, 40vw, 220px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.dropdown-link {
  display: block;
  padding: clamp(0.4rem, 2vw, 0.5rem) clamp(1rem, 3vw, 1.5rem);
  color: var(--text-primary);
  text-decoration: none;
  font-size: clamp(0.8rem, 2.5vw, 0.9rem);
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
  min-height: var(--touch-target);
  display: flex;
  align-items: center;
}

/* Enhanced nav toggle for mobile */
.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  background: #333;
  padding: var(--spacing-sm);
  border-radius: 4px;
  transition: all 0.3s ease;
  z-index: 1001;
  position: relative;
  pointer-events: auto;
  min-height: var(--touch-target);
  min-width: var(--touch-target);
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  width: clamp(20px, 5vw, 25px);
  height: clamp(2px, 0.5vw, 3px);
  background: #fff;
  margin: clamp(2px, 0.5vw, 3px) 0;
  transition: 0.3s;
}

/* Enhanced Hero Section with Better Responsive Design */
.hero {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  height: calc(var(--vh, 1vh) * 100);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 10;
  
  /* Performance optimizations */
  will-change: transform;
  contain: layout style paint;
}

/* Hero Spacer */
.hero-spacer {
  height: 100vh;
  height: calc(var(--vh, 1vh) * 100);
  width: 100%;
}

/* Main Content */
.main-content {
  position: relative;
  z-index: 5;
  background: var(--bg-primary);
  padding: var(--spacing-xl) 0;
}

/* Content Sections */
.content-section {
  margin-bottom: var(--spacing-xl);
  padding: var(--spacing-lg) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.section-title {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
  text-align: center;
}

.section-subtitle {
  font-size: clamp(1rem, 3vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  line-height: 1.6;
}

.section-content {
  max-width: 1200px;
  margin: 0 auto;
}

.section-content p {
  font-size: clamp(1rem, 3vw, 1.125rem);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--spacing-lg);
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

.feature-item {
  background: rgba(0, 102, 255, 0.05);
  border: 1px solid rgba(0, 102, 255, 0.2);
  border-radius: var(--border-radius);
  padding: var(--spacing-lg);
  text-align: center;
  transition: var(--transition-smooth);
  backdrop-filter: blur(10px);
}

.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow);
  border-color: rgba(0, 102, 255, 0.4);
}

.feature-icon {
  font-size: clamp(2rem, 6vw, 3rem);
  margin-bottom: var(--spacing-md);
}

.feature-item h3 {
  font-size: clamp(1.25rem, 4vw, 1.5rem);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
}

.feature-item p {
  font-size: clamp(0.9rem, 3vw, 1rem);
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

.service-card {
  background: rgba(0, 102, 255, 0.05);
  border: 1px solid rgba(0, 102, 255, 0.2);
  border-radius: var(--border-radius);
  padding: var(--spacing-xl);
  text-align: center;
  transition: var(--transition-smooth);
  backdrop-filter: blur(10px);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow);
  border-color: rgba(0, 102, 255, 0.4);
}

.service-card h3 {
  font-size: clamp(1.5rem, 4vw, 1.75rem);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
}

.service-card p {
  font-size: clamp(1rem, 3vw, 1.125rem);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--spacing-lg);
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: clamp(0.8rem, 3vw, 1rem) clamp(1.5rem, 4vw, 2rem);
  background: rgba(0, 102, 255, 0.1);
  border: 1px solid rgba(0, 102, 255, 0.3);
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: 600;
  border-radius: var(--border-radius);
  transition: var(--transition-smooth);
  backdrop-filter: blur(10px);
  min-height: var(--touch-target);
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn:hover {
  background: rgba(0, 102, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3);
  border-color: rgba(0, 102, 255, 0.5);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: clamp(600px, 80vw, 900px);
  padding: 0 var(--spacing-md);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  min-height: 100vh;
  min-height: 100dvh;
  gap: clamp(1rem, 3vw, 3rem);
  transition: all 0.3s ease;
  padding-top: clamp(100px, 15vh, 120px);
}

/* Enhanced hero title with better responsive typography */
.hero-title {
  font-size: clamp(3rem, 10vw, 5rem);
  font-weight: 800;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: var(--spacing-lg);
  line-height: 1.1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  overflow: visible;
  min-height: clamp(250px, 50vh, 350px);
}

.title-line {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  text-align: center;
  white-space: nowrap;
  width: 100%;
}

.hero-title span {
  display: inline-block;
  color: var(--text-primary);
  transition: var(--transition-fast);
  opacity: 1;
  transform: none;
  flex-shrink: 0;
  margin: 0 0.02em;
  text-shadow: none;
}

/* Enhanced Hero tagline with typewriter effect */
.hero-tagline {
  font-size: clamp(0.9rem, 3vw, 1.1rem);
  color: var(--text-secondary);
  margin-bottom: var(--spacing-md);
  text-align: center;
  font-weight: 300;
  letter-spacing: clamp(0.05em, 1vw, 0.1em);
  text-transform: uppercase;
  opacity: 0;
  animation: fadeIn 0.8s ease 0.5s forwards;
  position: relative;
  overflow: hidden;
}

.hero-tagline.typewriter {
  display: inline-block;
  border-right: 2px solid var(--accent-primary);
  white-space: nowrap;
  overflow: hidden;
  animation: 
    typewriter 3s steps(40, end) 1s forwards,
    blink 0.75s step-end infinite;
}

.hero-tagline span {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: charGlow 0.5s ease forwards;
  animation-delay: calc(0.1s * var(--char-index, 0) + 1s);
}

.hero-tagline span.typed {
  opacity: 1;
  animation: textGlow 2s ease-in-out infinite alternate;
  animation-delay: calc(0.1s * var(--char-index, 0) + 3s);
}

/* Enhanced hero subtitle */
.hero-subtitle {
  font-size: clamp(1rem, 4vw, 1.3rem);
  color: var(--text-primary);
  margin-bottom: var(--spacing-xl);
  max-width: clamp(400px, 70vw, 600px);
  margin-left: auto;
  margin-right: auto;
  animation: fadeIn 1s ease 1.2s forwards;
  opacity: 0;
  text-align: center;
  line-height: 1.6;
  font-weight: 400;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/* Enhanced CTA button with better touch support */
.cta-button {
  display: inline-block;
  padding: clamp(0.8rem, 3vw, 1.2rem) clamp(2rem, 5vw, 3rem);
  background: rgba(0, 102, 255, 0.1);
  border: 1px solid rgba(0, 102, 255, 0.3);
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: clamp(0.05em, 1vw, 0.1em);
  text-transform: uppercase;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  animation: fadeIn 1s ease 1.5s forwards;
  opacity: 0;
  pointer-events: auto;
  border-radius: 12px;
  backdrop-filter: blur(20px) saturate(120%);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
  box-shadow: 
    0 8px 32px rgba(0, 102, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  
  /* Touch-friendly sizing */
  min-height: var(--touch-target);
  min-width: var(--touch-target);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Enhanced scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: clamp(2rem, 8vh, 4rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-sm);
  pointer-events: auto;
}

.scroll-text {
  font-size: clamp(0.7rem, 2.5vw, 0.9rem);
  color: var(--text-secondary);
  font-weight: 300;
  letter-spacing: clamp(0.05em, 0.5vw, 0.1em);
}

.scroll-arrow {
  width: clamp(16px, 4vw, 20px);
  height: clamp(16px, 4vw, 20px);
  border-right: clamp(1px, 0.3vw, 2px) solid var(--accent-primary);
  border-bottom: clamp(1px, 0.3vw, 2px) solid var(--accent-primary);
  transform: rotate(45deg);
  animation: bounce 2s infinite;
}

/* Enhanced responsive breakpoints */
@media (max-width: 1024px) {
  .container {
    padding: 0 var(--spacing-sm);
  }
  
  .nav-menu {
    display: none;
  }
  
  .feature-grid,
  .services-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
  
  .feature-item,
  .service-card {
    padding: var(--spacing-md);
  }
  
  .hero-content {
    padding: 0 var(--spacing-sm);
  }
}
  
  .hero-content {
    padding: 0 var(--spacing-sm);
  }
}

@media (max-width: 768px) {
  /* Enhanced mobile navigation */
  .nav-container {
    padding: 0 var(--spacing-sm);
    height: clamp(60px, 12vh, 70px);
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100vw;
    width: 100dvw;
    height: 100vh;
    height: calc(var(--vh, 1vh) * 100);
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(30px) saturate(120%);
    -webkit-backdrop-filter: blur(30px) saturate(120%);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 9999;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    will-change: transform, opacity;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
  }
  
  .nav-menu.active {
    right: 0;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }

  .nav-toggle {
    display: flex;
  }
  
  /* Enhanced mobile menu items */
  .nav-menu .nav-link {
    color: #ffffff;
    font-size: clamp(1.5rem, 6vw, 2rem);
    font-weight: 500;
    transition: var(--transition-smooth);
    padding: clamp(1rem, 4vw, 1.5rem) clamp(2rem, 8vw, 4rem);
    margin: clamp(0.5rem, 2vw, 1rem) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: var(--touch-target);
    width: 90%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.05);
  }
  
  .nav-menu .nav-link:hover {
    color: var(--accent-primary);
    background: rgba(0, 102, 255, 0.1);
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(0, 102, 255, 0.3);
  }
  
  /* Enhanced mobile dropdown */
  .dropdown-menu {
    position: static;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    background: rgba(0, 150, 255, 0.3);
    border: 1px solid rgba(0, 150, 255, 0.4);
    border-radius: 8px;
    margin: 0;
    min-width: auto;
    max-height: 0;
    overflow: hidden;
    transition: all 0.15s ease;
    backdrop-filter: blur(10px);
    width: 100%;
    display: none;
    margin-top: 0;
    margin-bottom: 0;
  }

  .nav-dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    max-height: 600px;
    padding: var(--spacing-sm);
    position: static;
    z-index: 1;
    display: block;
    margin-top: 0;
  }

  .dropdown-link {
    padding: clamp(0.5rem, 2vw, 0.7rem) var(--spacing-sm);
    font-size: clamp(0.9rem, 3vw, 1rem);
    color: #fff;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    display: block;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
    min-height: var(--touch-target);
  }

  /* Enhanced mobile hero content */
  .hero-content {
    padding: 0 var(--spacing-sm);
    gap: clamp(1rem, 4vh, 2rem);
  }

  .hero-title {
    font-size: clamp(2.5rem, 10vw, 4rem);
    gap: 0.1rem;
    max-width: 100%;
    min-height: clamp(200px, 40vh, 280px);
    margin-bottom: var(--spacing-md);
  }
  
  .hero-subtitle {
    font-size: clamp(0.95rem, 4vw, 1.2rem);
    max-width: 90%;
    margin: 0 auto var(--spacing-lg);
    line-height: 1.5;
  }
  
  .cta-button {
    padding: clamp(0.8rem, 3vw, 1rem) clamp(1.8rem, 5vw, 2.5rem);
    font-size: clamp(0.9rem, 3.5vw, 1.1rem);
    margin-bottom: var(--spacing-lg);
  }
  
  .scroll-indicator {
    bottom: clamp(1.5rem, 6vh, 3rem);
  }
}

@media (max-width: 480px) {
  /* Enhanced small mobile optimizations */
  .container {
    padding: 0 var(--spacing-xs);
  }
  
  .nav-container {
    padding: 0 var(--spacing-xs);
    height: clamp(55px, 10vh, 65px);
  }
  
  .nav-menu {
    top: clamp(55px, 10vh, 65px);
    width: clamp(260px, 85vw, 320px);
    height: calc(100vh - clamp(55px, 10vh, 65px));
    height: calc(100dvh - clamp(55px, 10vh, 65px));
    padding: var(--spacing-md) var(--spacing-sm);
  }
  
  .nav-menu.active {
    right: 0 !important;
    transform: translateX(0) !important;
  }

  .hero-content {
    padding: 0 var(--spacing-xs);
    gap: clamp(0.8rem, 3vh, 1.5rem);
  }

  .hero-title {
    font-size: clamp(2.2rem, 8vw, 3rem);
    gap: 0.1rem;
    max-width: 100%;
    min-height: clamp(180px, 35vh, 220px);
    margin-bottom: var(--spacing-sm);
  }
  
  .hero-title .title-line {
    flex-wrap: nowrap;
    justify-content: center;
    text-align: center;
    margin-bottom: 0.1rem;
    white-space: nowrap;
  }
  
  .hero-title span {
    margin: 0 0.02em;
    display: inline-block;
  }
  
  .hero-subtitle {
    font-size: clamp(0.9rem, 4vw, 1.1rem);
    max-width: 95%;
    margin: 0 auto var(--spacing-md);
    line-height: 1.4;
  }
  
  .cta-button {
    padding: clamp(0.7rem, 3vw, 0.9rem) clamp(1.5rem, 5vw, 2rem);
    font-size: clamp(0.85rem, 4vw, 1rem);
    margin-bottom: var(--spacing-md);
  }
  
  .scroll-indicator {
    bottom: clamp(1rem, 5vh, 2rem);
  }
  
  .scroll-text {
    font-size: clamp(0.75rem, 3vw, 0.85rem);
  }
  
  .scroll-arrow {
    width: clamp(14px, 4vw, 18px);
    height: clamp(14px, 4vw, 18px);
  }
}

@media (max-width: 360px) {
  /* Enhanced extra small mobile optimizations */
  .nav-container {
    height: clamp(50px, 9vh, 60px);
  }
  
  .nav-menu {
    top: clamp(50px, 9vh, 60px);
    width: clamp(240px, 90vw, 280px);
    height: calc(100vh - clamp(50px, 9vh, 60px));
    height: calc(100dvh - clamp(50px, 9vh, 60px));
    padding: var(--spacing-sm);
  }

  .hero-content {
    gap: clamp(0.6rem, 2.5vh, 1.2rem);
  }

  .hero-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
    gap: 0.1rem;
    max-width: 100%;
    min-height: clamp(150px, 30vh, 200px);
    margin-bottom: var(--spacing-xs);
  }
  
  .hero-title .title-line {
    margin-bottom: 0.1rem;
    flex-wrap: nowrap;
    white-space: nowrap;
  }
  
  .hero-title span {
    margin: 0 0.02em;
  }
  
  .hero-subtitle {
    font-size: clamp(0.8rem, 4vw, 1rem);
    max-width: 98%;
    margin: 0 auto var(--spacing-sm);
    line-height: 1.3;
  }
  
  .cta-button {
    padding: clamp(0.6rem, 3vw, 0.8rem) clamp(1.2rem, 5vw, 1.8rem);
    font-size: clamp(0.8rem, 4vw, 0.95rem);
    margin-bottom: var(--spacing-sm);
  }
  
  .scroll-indicator {
    bottom: clamp(0.8rem, 4vh, 1.5rem);
  }
  
  .scroll-text {
    font-size: clamp(0.7rem, 3.5vw, 0.8rem);
  }
  
  .scroll-arrow {
    width: clamp(12px, 4vw, 16px);
    height: clamp(12px, 4vw, 16px);
  }
}

/* Enhanced landscape orientation optimization */
@media (max-width: 768px) and (orientation: landscape) {
  .loader {
    padding: var(--spacing-xs);
  }
  
  .loader-content {
    gap: var(--spacing-sm);
    flex-direction: row;
    align-items: center;
    justify-content: center;
  }
  
  .spark-text {
    top: 40%;
    font-size: clamp(0.9rem, 3vw, 1.2rem);
    max-width: 45vw;
  }
  
  .continue-text {
    top: 60%;
    font-size: clamp(0.8rem, 2.5vw, 1rem);
    max-width: 45vw;
  }
  
  .ai-loader {
    transform: scale(0.6);
    margin: 0 var(--spacing-sm);
  }
  
  .loading-bar {
    width: clamp(120px, 35vw, 180px);
  }
  
  .hero-content {
    padding-top: clamp(80px, 12vh, 100px);
    gap: clamp(0.8rem, 2vh, 1.5rem);
  }
  
  .hero-title {
    font-size: clamp(2rem, 7vw, 2.8rem);
    min-height: clamp(120px, 30vh, 180px);
    margin-bottom: var(--spacing-sm);
  }
  
  .hero-subtitle {
    font-size: clamp(0.9rem, 3vw, 1.1rem);
    margin-bottom: var(--spacing-md);
  }
  
  .cta-button {
    padding: clamp(0.7rem, 2.5vw, 0.9rem) clamp(1.5rem, 4vw, 2rem);
    font-size: clamp(0.85rem, 3vw, 1rem);
    margin-bottom: var(--spacing-md);
  }
  
  .scroll-indicator {
    bottom: clamp(1rem, 4vh, 2rem);
  }
}

/* Enhanced portrait orientation optimization */
@media (max-width: 768px) and (orientation: portrait) {
  .loader-content {
    flex-direction: column;
    gap: var(--spacing-lg);
  }

  .spark-text {
    top: 35%;
  }

  .continue-text {
    top: 60%;
  }

  .hero-content {
    padding-top: clamp(100px, 15vh, 120px);
    gap: clamp(1rem, 4vh, 2rem);
  }

  .hero-title {
    font-size: clamp(2rem, 7vw, 2.8rem);
    min-height: clamp(120px, 30vh, 180px);
    margin-bottom: var(--spacing-sm);
  }
}

/* Enhanced touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  /* Optimize for touch devices */
  .nav-link, .dropdown-link, .cta-button, .btn {
    min-height: var(--touch-target-large);
    min-width: var(--touch-target-large);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(0.8rem, 3vw, 1rem) clamp(1rem, 4vw, 1.5rem);
  }
  
  /* Larger touch targets for small buttons */
  .nav-toggle {
    padding: clamp(0.8rem, 3vw, 1rem);
    min-height: var(--touch-target-large);
    min-width: var(--touch-target-large);
  }
  
  /* Enhanced touch feedback */
  .nav-link:active,
  .dropdown-link:active,
  .btn:active,
  .nav-toggle:active {
    transform: scale(0.95);
    transition: transform 0.1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background-color: rgba(0, 102, 255, 0.15);
    box-shadow: 0 2px 10px rgba(0, 102, 255, 0.3);
  }
  
  /* Improve scroll behavior */
  body {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    scroll-behavior: smooth;
  }
  
  /* Better mobile navigation */
  .nav-menu {
    gap: var(--spacing-sm);
    padding: var(--spacing-lg);
  }
  
  /* Enhanced touch gestures */
  .hero {
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
  }
  
  /* Viewport height fix for mobile */
  .hero {
    height: calc(var(--vh, 1vh) * 100);
  }
  
  /* Prevent zoom on double-tap */
  * {
    touch-action: manipulation;
  }
}

/* Enhanced high DPI display optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .nav-menu {
    border-left-width: 1px;
  }
  
  .nav-menu .nav-link {
    font-size: clamp(0.95rem, 3.5vw, 1.1rem);
    padding: clamp(0.65rem, 2.2vw, 0.75rem) 0;
  }
  
  .logo-image {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Enhanced accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Enhanced focus styles for better accessibility */
.nav-link:focus,
.dropdown-link:focus,
.cta-button:focus,
.btn:focus {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

/* Enhanced dark mode support */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-tertiary: #111111;
  }
}

/* Enhanced light mode support */
@media (prefers-color-scheme: light) {
  :root {
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f5;
    --bg-tertiary: #e5e5e5;
    --text-primary: #000000;
    --text-secondary: #333333;
    --text-muted: #666666;
  }
}

/* Enhanced neuro background with responsive reset functionality */
#aiCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  width: 100dvw;
  height: 100vh;
  height: calc(var(--vh, 1vh) * 100);
  z-index: 1;
  pointer-events: none;
  opacity: 0.4;
  filter: blur(1px);
  
  /* Responsive reset properties */
  transform-origin: center center;
  will-change: transform, opacity, filter;
  transition: var(--transition-smooth);
  
  /* Performance optimizations */
  contain: layout style paint;
  backface-visibility: hidden;
  perspective: 1000px;
  transform: scale(1) rotate(0deg) translateZ(0);
  -webkit-transform: scale(1) rotate(0deg) translateZ(0);
  
  /* Auto-adjust based on screen ratio */
  object-fit: cover;
  object-position: center;
}

/* Home page specific canvas - clearer and more prominent */
.hero #aiCanvas {
  position: fixed;
  z-index: 1;
  opacity: 0.8;
  filter: blur(0.5px);
  height: 100vh;
  height: calc(var(--vh, 1vh) * 100);
  bottom: 0;
  
  /* Enhanced responsive properties for home page */
  transform-origin: center center;
  will-change: transform, opacity, filter;
  transition: var(--transition-smooth);
  pointer-events: auto;
}

/* Re-enable mouse interactions only on home page */
body.home-page #aiCanvas {
  pointer-events: auto;
}

/* Responsive neuro background reset for different screen ratios */
@media (max-width: 768px) {
  #aiCanvas {
    /* Mobile neuro background reset */
    transform: scale(1) rotate(0deg);
    opacity: 0.3;
    filter: blur(1.5px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .hero #aiCanvas {
    /* Mobile home page neuro background */
    transform: scale(1) rotate(0deg);
    opacity: 0.7;
    filter: blur(1px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }
}

/* Screen ratio based adjustments */
@media (max-aspect-ratio: 1/1) {
  /* Portrait orientation */
  .hero {
    height: calc(var(--vh, 1vh) * 100);
  }
  
  .hero-spacer {
    height: calc(var(--vh, 1vh) * 100);
  }
  
  #aiCanvas {
    object-fit: cover;
    object-position: center;
  }
}

@media (min-aspect-ratio: 1/1) {
  /* Landscape orientation */
  .hero {
    height: calc(var(--vh, 1vh) * 100);
  }
  
  .hero-spacer {
    height: calc(var(--vh, 1vh) * 100);
  }
  
  #aiCanvas {
    object-fit: cover;
    object-position: center;
  }
}

@media (max-width: 480px) {
  #aiCanvas {
    /* Small mobile neuro background reset */
    transform: scale(1) rotate(0deg);
    opacity: 0.25;
    filter: blur(2px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .hero #aiCanvas {
    /* Small mobile home page neuro background */
    transform: scale(1) rotate(0deg);
    opacity: 0.6;
    filter: blur(1.5px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
}

@media (max-width: 360px) {
  #aiCanvas {
    /* Extra small mobile neuro background reset */
    transform: scale(1) rotate(0deg);
    opacity: 0.2;
    filter: blur(2.5px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .hero #aiCanvas {
    /* Extra small mobile home page neuro background */
    transform: scale(1) rotate(0deg);
    opacity: 0.5;
    filter: blur(2px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
}

/* Landscape orientation neuro background reset */
@media (max-width: 768px) and (orientation: landscape) {
  #aiCanvas {
    /* Landscape mobile neuro background reset */
    transform: scale(1.1) rotate(0deg);
    opacity: 0.35;
    filter: blur(1.2px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .hero #aiCanvas {
    /* Landscape mobile home page neuro background */
    transform: scale(1.1) rotate(0deg);
    opacity: 0.75;
    filter: blur(0.8px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  }
}

/* Portrait orientation neuro background reset */
@media (max-width: 768px) and (orientation: portrait) {
  #aiCanvas {
    /* Portrait mobile neuro background reset */
    transform: scale(1) rotate(0deg);
    opacity: 0.3;
    filter: blur(1.5px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .hero #aiCanvas {
    /* Portrait mobile home page neuro background */
    transform: scale(1) rotate(0deg);
    opacity: 0.7;
    filter: blur(1px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }
}

/* Tablet neuro background reset */
@media (min-width: 769px) and (max-width: 1024px) {
  #aiCanvas {
    /* Tablet neuro background reset */
    transform: scale(1.05) rotate(0deg);
    opacity: 0.45;
    filter: blur(0.8px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .hero #aiCanvas {
    /* Tablet home page neuro background */
    transform: scale(1.05) rotate(0deg);
    opacity: 0.85;
    filter: blur(0.5px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }
}

/* Desktop neuro background reset */
@media (min-width: 1025px) {
  #aiCanvas {
    /* Desktop neuro background reset */
    transform: scale(1) rotate(0deg);
    opacity: 0.4;
    filter: blur(1px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .hero #aiCanvas {
    /* Desktop home page neuro background */
    transform: scale(1) rotate(0deg);
    opacity: 0.8;
    filter: blur(0.5px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
}

/* Large desktop neuro background reset */
@media (min-width: 1440px) {
  #aiCanvas {
    /* Large desktop neuro background reset */
    transform: scale(1.1) rotate(0deg);
    opacity: 0.5;
    filter: blur(0.8px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .hero #aiCanvas {
    /* Large desktop home page neuro background */
    transform: scale(1.1) rotate(0deg);
    opacity: 0.9;
    filter: blur(0.3px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
}

/* Ultra-wide screen neuro background reset */
@media (min-width: 1920px) {
  #aiCanvas {
    /* Ultra-wide neuro background reset */
    transform: scale(1.2) rotate(0deg);
    opacity: 0.6;
    filter: blur(0.6px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .hero #aiCanvas {
    /* Ultra-wide home page neuro background */
    transform: scale(1.2) rotate(0deg);
    opacity: 0.95;
    filter: blur(0.2px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
}

/* High DPI display neuro background reset */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  #aiCanvas {
    /* High DPI neuro background reset */
    transform: scale(1) rotate(0deg);
    opacity: 0.35;
    filter: blur(0.8px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .hero #aiCanvas {
    /* High DPI home page neuro background */
    transform: scale(1) rotate(0deg);
    opacity: 0.75;
    filter: blur(0.4px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
}

/* Touch device neuro background reset */
@media (hover: none) and (pointer: coarse) {
  #aiCanvas {
    /* Touch device neuro background reset */
    transform: scale(1) rotate(0deg);
    opacity: 0.3;
    filter: blur(1.5px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
  }
  
  .hero #aiCanvas {
    /* Touch device home page neuro background */
    transform: scale(1) rotate(0deg);
    opacity: 0.6;
    filter: blur(1px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
  }
}

/* Reduced motion neuro background reset */
@media (prefers-reduced-motion: reduce) {
  #aiCanvas {
    /* Reduced motion neuro background reset */
    transform: scale(1) rotate(0deg);
    transition: none;
    animation: none;
  }
  
  .hero #aiCanvas {
    /* Reduced motion home page neuro background */
    transform: scale(1) rotate(0deg);
    transition: none;
    animation: none;
  }
}

/* Dark mode neuro background reset */
@media (prefers-color-scheme: dark) {
  #aiCanvas {
    /* Dark mode neuro background reset */
    transform: scale(1) rotate(0deg);
    opacity: 0.4;
    filter: blur(1px) brightness(0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .hero #aiCanvas {
    /* Dark mode home page neuro background */
    transform: scale(1) rotate(0deg);
    opacity: 0.8;
    filter: blur(0.5px) brightness(0.9);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
}

/* Light mode neuro background reset */
@media (prefers-color-scheme: light) {
  #aiCanvas {
    /* Light mode neuro background reset */
    transform: scale(1) rotate(0deg);
    opacity: 0.2;
    filter: blur(1.5px) brightness(1.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .hero #aiCanvas {
    /* Light mode home page neuro background */
    transform: scale(1) rotate(0deg);
    opacity: 0.4;
    filter: blur(1px) brightness(1.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
}

/* Specific page neuro background resets */
body.about-page #aiCanvas {
  transform: scale(1) rotate(0deg);
  opacity: 0.3;
  filter: blur(1.5px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.contact-page #aiCanvas {
  transform: scale(1) rotate(0deg);
  opacity: 0.6;
  filter: blur(1px) brightness(0);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.portfolio-page #aiCanvas {
  transform: scale(1) rotate(0deg);
  opacity: 0.7;
  filter: blur(1px) hue-rotate(45deg);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.news-page #aiCanvas {
  transform: scale(1) rotate(0deg);
  opacity: 0.4;
  filter: blur(1px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.software-page #aiCanvas {
  transform: scale(1) rotate(0deg);
  opacity: 0.3;
  filter: blur(1.5px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.thank-you-page #aiCanvas {
  transform: scale(1) rotate(0deg);
  opacity: 0.4;
  filter: blur(1px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Neuro background reset animation classes */
.neuro-reset {
  animation: neuroReset 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.neuro-reset-slow {
  animation: neuroReset 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.neuro-reset-fast {
  animation: neuroReset 0.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes neuroReset {
  0% {
    transform: scale(1.1) rotate(5deg);
    opacity: 0.8;
    filter: blur(0.5px);
  }
  50% {
    transform: scale(0.95) rotate(-2deg);
    opacity: 0.3;
    filter: blur(2px);
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: var(--neuro-opacity, 0.4);
    filter: blur(var(--neuro-blur, 1px));
  }
}

/* Neuro background orientation change reset */
.neuro-orientation-reset {
  animation: neuroOrientationReset 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes neuroOrientationReset {
  0% {
    transform: scale(1.2) rotate(10deg);
    opacity: 0.9;
    filter: blur(0.3px);
  }
  25% {
    transform: scale(0.8) rotate(-5deg);
    opacity: 0.2;
    filter: blur(3px);
  }
  50% {
    transform: scale(1.1) rotate(3deg);
    opacity: 0.6;
    filter: blur(1px);
  }
  75% {
    transform: scale(0.95) rotate(-1deg);
    opacity: 0.3;
    filter: blur(2px);
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: var(--neuro-opacity, 0.4);
    filter: blur(var(--neuro-blur, 1px));
  }
}

/* Neuro background resize reset */
.neuro-resize-reset {
  animation: neuroResizeReset 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes neuroResizeReset {
  0% {
    transform: scale(1.15) rotate(3deg);
    opacity: 0.7;
    filter: blur(0.8px);
  }
  50% {
    transform: scale(0.9) rotate(-2deg);
    opacity: 0.2;
    filter: blur(2.5px);
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: var(--neuro-opacity, 0.4);
    filter: blur(var(--neuro-blur, 1px));
  }
}

/* Neuro background performance optimizations */
.neuro-optimized {
  will-change: transform, opacity, filter;
  backface-visibility: hidden;
  perspective: 1000px;
  transform-style: preserve-3d;
}

/* Neuro background loading state */
.neuro-loading {
  opacity: 0;
  transform: scale(0.8) rotate(-5deg);
  filter: blur(3px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.neuro-loaded {
  opacity: var(--neuro-opacity, 0.4);
  transform: scale(1) rotate(0deg);
  filter: blur(var(--neuro-blur, 1px));
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Neuro background error state */
.neuro-error {
  opacity: 0.1;
  transform: scale(0.9) rotate(0deg);
  filter: blur(4px) grayscale(0.8);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Neuro background disabled state */
.neuro-disabled {
  opacity: 0;
  transform: scale(1) rotate(0deg);
  filter: blur(0px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

/* Neuro background focus state */
.neuro-focused {
  opacity: var(--neuro-opacity, 0.4);
  transform: scale(1.05) rotate(0deg);
  filter: blur(var(--neuro-blur, 1px)) brightness(1.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Neuro background hover state */
.neuro-hover {
  opacity: var(--neuro-opacity, 0.4);
  transform: scale(1.02) rotate(0deg);
  filter: blur(var(--neuro-blur, 1px)) brightness(1.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Neuro background active state */
.neuro-active {
  opacity: var(--neuro-opacity, 0.4);
  transform: scale(0.98) rotate(0deg);
  filter: blur(var(--neuro-blur, 1px)) brightness(0.95);
  transition: all 0.1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Neuro background custom properties for dynamic control */
:root {
  --neuro-opacity: 0.4;
  --neuro-blur: 1px;
  --neuro-scale: 1;
  --neuro-rotate: 0deg;
  --neuro-brightness: 1;
  --neuro-saturation: 1;
  --neuro-hue-rotate: 0deg;
  --neuro-transition-duration: 0.3s;
  --neuro-transition-timing: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dynamic neuro background with CSS custom properties */
#aiCanvas {
  opacity: var(--neuro-opacity, 0.4);
  filter: blur(var(--neuro-blur, 1px)) 
          brightness(var(--neuro-brightness, 1)) 
          saturate(var(--neuro-saturation, 1)) 
          hue-rotate(var(--neuro-hue-rotate, 0deg));
  transform: scale(var(--neuro-scale, 1)) rotate(var(--neuro-rotate, 0deg));
  transition: all var(--neuro-transition-duration, 0.3s) var(--neuro-transition-timing, cubic-bezier(0.4, 0, 0.2, 1));
}

/* Neuro background responsive custom properties */
@media (max-width: 768px) {
  :root {
    --neuro-opacity: 0.3;
    --neuro-blur: 1.5px;
    --neuro-scale: 1;
    --neuro-rotate: 0deg;
    --neuro-brightness: 0.9;
    --neuro-transition-duration: 0.4s;
  }
}

@media (max-width: 480px) {
  :root {
    --neuro-opacity: 0.25;
    --neuro-blur: 2px;
    --neuro-scale: 1;
    --neuro-rotate: 0deg;
    --neuro-brightness: 0.85;
    --neuro-transition-duration: 0.3s;
  }
}

@media (max-width: 360px) {
  :root {
    --neuro-opacity: 0.2;
    --neuro-blur: 2.5px;
    --neuro-scale: 1;
    --neuro-rotate: 0deg;
    --neuro-brightness: 0.8;
    --neuro-transition-duration: 0.3s;
  }
}

@media (min-width: 1025px) {
  :root {
    --neuro-opacity: 0.4;
    --neuro-blur: 1px;
    --neuro-scale: 1;
    --neuro-rotate: 0deg;
    --neuro-brightness: 1;
    --neuro-transition-duration: 0.3s;
  }
}

@media (min-width: 1440px) {
  :root {
    --neuro-opacity: 0.5;
    --neuro-blur: 0.8px;
    --neuro-scale: 1.1;
    --neuro-rotate: 0deg;
    --neuro-brightness: 1.05;
    --neuro-transition-duration: 0.3s;
  }
}

/* Neuro background orientation-specific custom properties */
@media (max-width: 768px) and (orientation: landscape) {
  :root {
    --neuro-opacity: 0.35;
    --neuro-blur: 1.2px;
    --neuro-scale: 1.1;
    --neuro-rotate: 0deg;
    --neuro-brightness: 0.95;
    --neuro-transition-duration: 0.5s;
  }
}

@media (max-width: 768px) and (orientation: portrait) {
  :root {
    --neuro-opacity: 0.3;
    --neuro-blur: 1.5px;
    --neuro-scale: 1;
    --neuro-rotate: 0deg;
    --neuro-brightness: 0.9;
    --neuro-transition-duration: 0.4s;
  }
}

/* Section Headers */
.services-header,
.news-header,
.testimonials-header {
  text-align: center;
  margin-bottom: 4rem;
}

.services-title,
.news-title,
.testimonials-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2rem;
  line-height: 1.2;
}

.services-subtitle h3,
.news-subtitle h3 {
  font-size: 1.3rem;
  color: var(--text-secondary);
  font-weight: 400;
  max-width: 600px;
  margin: 0 auto;
}

/* Services Section */
.services {
  padding: 8rem 0;
  background: var(--bg-primary);
}

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

.service-card {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 2.5rem;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.1) 0%, transparent 100%);
  opacity: 0;
  transition: var(--transition-smooth);
}

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

.service-card:hover {
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-glow);
  transform: translateY(-10px);
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  display: block;
}

.service-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent-primary);
  margin-bottom: 1rem;
}

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

.service-features {
  list-style: none;
}

.service-features li {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1.5rem;
}

.service-features li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent-primary);
  font-weight: bold;
}

/* News Section */
.news {
  padding: 8rem 0;
  background: var(--bg-secondary);
}

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

.news-item {
  background: var(--bg-tertiary);
  border-radius: 1rem;
  overflow: hidden;
  transition: var(--transition-smooth);
  border: 1px solid var(--border-color);
}

.news-item:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-glow);
  border-color: var(--accent-primary);
}

.news-image {
  height: 200px;
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-blue) 100%);
  position: relative;
  overflow: hidden;
}

.news-category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(0, 0, 0, 0.8);
  color: var(--accent-primary);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.news-content {
  padding: 1.5rem;
}

.news-content h4 {
  color: var(--text-primary);
  font-size: 1.2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.news-content p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.news-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Testimonials Section */
.testimonials {
  padding: 8rem 0;
  background: var(--bg-primary);
}

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

.testimonial-item {
  background: var(--bg-tertiary);
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}

.testimonial-item:hover {
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-glow);
  transform: translateY(-5px);
}

.testimonial-item blockquote {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 2rem;
  font-style: italic;
}

.testimonial-author h4 {
  color: var(--text-primary);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.testimonial-author p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.testimonial-categories {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.testimonial-categories span {
  background: rgba(0, 102, 255, 0.1);
  color: var(--accent-primary);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: lowercase;
}

/* Team Section */
.team {
  padding: 6rem 0;
  background: var(--bg-primary);
}

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

.team-member {
  text-align: center;
  transition: var(--transition-smooth);
}

.team-member:hover {
  transform: translateY(-10px);
}

.member-avatar {
  width: 120px;
  height: 120px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-purple) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.team-member:hover .member-avatar {
  box-shadow: var(--shadow-glow);
  transform: scale(1.1);
}

.avatar-placeholder {
  font-size: 2rem;
  font-weight: 700;
  color: var(--bg-primary);
}

.member-name {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.member-role {
  color: var(--accent-primary);
  font-weight: 500;
  margin-bottom: 1rem;
}

.member-bio {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Contact Section */
.contact {
  padding: 8rem 0;
  background: var(--bg-secondary);
}

.contact-header {
  text-align: center;
  margin-bottom: 4rem;
}

.contact-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2rem;
  line-height: 1.2;
}

.contact-cta {
  margin-top: 2rem;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h3 {
  font-size: 2rem;
  color: var(--accent-primary);
  margin-bottom: 1rem;
}

.contact-info p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

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

.contact-email {
  font-size: 1.2rem;
  color: var(--accent-primary);
  font-weight: 500;
}

.contact-form {
  background: var(--bg-tertiary);
  padding: 2.5rem;
  border-radius: 1rem;
  border: 1px solid var(--border-color);
}

.contact-form h3 {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 2rem;
  font-weight: 600;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  color: var(--text-primary);
  font-family: var(--font-primary);
  transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.75rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
}

.form-group select option {
  background: var(--bg-primary);
  color: var(--text-primary);
  padding: 0.5rem;
}

/* FormSubmit Demo Styles */
.form-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-row .col {
  flex: 1;
}

.form-control {
  width: 100%;
  padding: 1rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  color: var(--text-primary);
  font-family: var(--font-primary);
  font-size: 1rem;
  transition: var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.form-control::placeholder {
  color: var(--text-muted);
}

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  backdrop-filter: blur(20px) saturate(120%);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

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

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

.btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.15),
    0 0 20px rgba(0, 102, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-lg {
  padding: 1.25rem 2.5rem;
  font-size: 1.1rem;
}

.btn-dark {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-blue));
  color: white;
}

.btn-dark:hover {
  background: linear-gradient(135deg, var(--accent-secondary), var(--accent-primary));
  box-shadow: 0 10px 25px rgba(0, 102, 255, 0.3);
}

.btn-block {
  width: 100%;
  display: block;
}

/* Responsive form styles */
@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .form-row .col {
    margin-bottom: 0.5rem;
  }
  
  .form-control {
    padding: 0.875rem;
    font-size: 0.95rem;
  }
  
  .btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .form-control {
    padding: 0.75rem;
    font-size: 0.9rem;
  }
  
  .btn-lg {
    padding: 0.875rem 1.5rem;
    font-size: 0.95rem;
  }
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  margin-bottom: 0;
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.submit-btn {
  position: relative;
  width: 100%;
  padding: 1rem 2rem;
  background: rgba(0, 102, 255, 0.1);
  color: var(--text-primary);
  border: 1px solid rgba(0, 102, 255, 0.3);
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  backdrop-filter: blur(20px) saturate(120%);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
  box-shadow: 
    0 8px 32px rgba(0, 102, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.submit-btn:hover {
  background: rgba(0, 102, 255, 0.2);
  border-color: rgba(0, 102, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 
    0 12px 40px rgba(0, 102, 255, 0.2),
    0 0 20px rgba(0, 102, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.submit-btn .btn-text,
.submit-btn .btn-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.submit-btn .spinner {
  animation: spin 1s linear infinite;
}

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

/* Footer */
.footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  padding: 4rem 0 2rem;
  position: relative;
  z-index: 10;
  width: 100%;
  margin-top: auto;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  line-height: 1;
  margin-bottom: 1rem;
}

.footer-logo .logo-image {
  width: 30px;
  height: 30px;
  filter: drop-shadow(0 0 8px rgba(0, 102, 255, 0.3));
  transition: var(--transition-fast);
}

.footer-logo:hover .logo-image {
  filter: drop-shadow(0 0 12px rgba(0, 102, 255, 0.5));
  transform: scale(1.05);
}

.footer-section h4 {
  color: var(--accent-primary);
  margin-bottom: 1rem;
  font-size: 1.1rem;
  text-align: center;
}

.footer-section {
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 102, 255, 0.1);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.footer-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 102, 255, 0.1), transparent);
  transition: left 0.5s;
}

.footer-section:hover::before {
  left: 100%;
}

.footer-section:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 0 20px rgba(0, 102, 255, 0.2);
  transform: translateY(-2px);
}

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

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition-fast);
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: var(--border-radius-sm);
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

.footer-section ul li a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 102, 255, 0.1), transparent);
  transition: left 0.3s;
}

.footer-section ul li a:hover::before {
  left: 100%;
}

.footer-section ul li a:hover {
  color: var(--accent-primary);
  background: rgba(0, 0, 0, 0.4);
  border-color: var(--accent-primary);
  transform: translateX(3px);
  box-shadow: 0 0 10px rgba(0, 102, 255, 0.2);
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(0, 102, 255, 0.1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 0 rgba(0, 102, 255, 0);
}

.social-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 102, 255, 0.1), transparent);
  transition: left 0.3s;
  z-index: 1;
}

.social-link::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(0, 0, 0, 0.9);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
}

.social-link:hover::before {
  left: 100%;
}

.social-link:hover::after {
  width: 300px;
  height: 300px;
}

.social-link:hover {
  color: var(--accent-primary);
  background: rgba(0, 0, 0, 0.6);
  border-color: var(--accent-primary);
  transform: translateX(5px);
  box-shadow: 0 0 20px rgba(0, 102, 255, 0.6), 0 0 40px rgba(0, 102, 255, 0.3);
}

.social-link i {
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.social-link span {
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  z-index: 2;
}

/* Platform-specific hover colors */
.social-link[title*="LinkedIn"]:hover {
  color: #0077b5;
  border-color: #0077b5;
  box-shadow: 0 0 20px rgba(0, 119, 181, 0.6), 0 0 40px rgba(0, 119, 181, 0.3);
}

.social-link[title*="LinkedIn"]:hover i,
.social-link[title*="LinkedIn"]:hover span {
  color: #0077b5;
}

.social-link[title*="Twitter"]:hover,
.social-link[title*="X"]:hover {
  color: #1da1f2;
  border-color: #1da1f2;
  box-shadow: 0 0 20px rgba(29, 161, 242, 0.6), 0 0 40px rgba(29, 161, 242, 0.3);
}

.social-link[title*="Twitter"]:hover i,
.social-link[title*="Twitter"]:hover span,
.social-link[title*="X"]:hover i,
.social-link[title*="X"]:hover span {
  color: #1da1f2;
}

.social-link[title*="GitHub"]:hover {
  color: #333;
  border-color: #333;
  box-shadow: 0 0 20px rgba(51, 51, 51, 0.6), 0 0 40px rgba(51, 51, 51, 0.3);
}

.social-link[title*="GitHub"]:hover i,
.social-link[title*="GitHub"]:hover span {
  color: #333;
}

.social-link[title*="YouTube"]:hover {
  color: #ff0000;
  border-color: #ff0000;
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.6), 0 0 40px rgba(255, 0, 0, 0.3);
}

.social-link[title*="YouTube"]:hover i,
.social-link[title*="YouTube"]:hover span {
  color: #ff0000;
}

.social-link[title*="Discord"]:hover {
  color: #7289da;
  border-color: #7289da;
  box-shadow: 0 0 20px rgba(114, 137, 218, 0.6), 0 0 40px rgba(114, 137, 218, 0.3);
}

.social-link[title*="Discord"]:hover i,
.social-link[title*="Discord"]:hover span {
  color: #7289da;
}

.social-link[title*="Portfolio"]:hover {
  color: var(--accent-primary);
  border-color: var(--accent-primary);
  box-shadow: 0 0 20px rgba(0, 102, 255, 0.6), 0 0 40px rgba(0, 102, 255, 0.3);
}

.social-link[title*="Portfolio"]:hover i,
.social-link[title*="Portfolio"]:hover span {
  color: var(--accent-primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

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

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

.newsletter-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.newsletter-form input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background: rgba(0, 0, 0, 0.3);
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px rgba(0, 102, 255, 0.2);
}

.newsletter-form input::placeholder {
  color: var(--text-muted);
}

.newsletter-form button {
  padding: 0.75rem 1rem;
  background: rgba(0, 102, 255, 0.1);
  color: var(--text-primary);
  border: 1px solid rgba(0, 102, 255, 0.3);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(20px) saturate(120%);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
  box-shadow: 
    0 8px 32px rgba(0, 102, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.newsletter-form button:hover {
  background: rgba(0, 102, 255, 0.2);
  border-color: rgba(0, 102, 255, 0.5);
  transform: translateY(-1px);
  box-shadow: 
    0 12px 40px rgba(0, 102, 255, 0.2),
    0 0 20px rgba(0, 102, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.newsletter-form button i {
  font-size: 0.9rem;
}

/* Cloudflare Protection Badge */
.cloudflare-protection {
  margin-top: 2rem;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(244, 129, 32, 0.1), rgba(0, 102, 255, 0.1));
  border: 1px solid rgba(244, 129, 32, 0.3);
  border-radius: var(--border-radius);
  backdrop-filter: blur(20px);
  text-align: center;
}

.cloudflare-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--border-radius);
  border: 1px solid rgba(244, 129, 32, 0.2);
}

.cloudflare-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(244, 129, 32, 0.1);
  border-radius: 50%;
  border: 2px solid rgba(244, 129, 32, 0.3);
  animation: cloudflare-pulse 2s ease-in-out infinite;
}

.cloudflare-icon svg {
  filter: drop-shadow(0 0 8px rgba(244, 129, 32, 0.5));
}

@keyframes cloudflare-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(244, 129, 32, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(244, 129, 32, 0.1);
  }
}

.cloudflare-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
}

.cloudflare-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent-primary);
  text-shadow: 0 0 10px rgba(0, 102, 255, 0.3);
}

.cloudflare-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  opacity: 0.8;
}

.cloudflare-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--border-radius-sm);
  border: 1px solid rgba(244, 129, 32, 0.1);
  transition: all 0.3s ease;
}

.feature-item:hover {
  background: rgba(0, 0, 0, 0.4);
  border-color: rgba(244, 129, 32, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(244, 129, 32, 0.2);
}

.feature-icon {
  font-size: 1.5rem;
  filter: drop-shadow(0 0 5px rgba(244, 129, 32, 0.3));
}

.feature-text {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-align: center;
  font-weight: 500;
}

/* Responsive adjustments for Cloudflare badge */
@media (max-width: 768px) {
  .cloudflare-protection {
    padding: 1.5rem 1rem;
    margin-top: 1.5rem;
  }
  
  .cloudflare-badge {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
  
  .cloudflare-text {
    align-items: center;
  }
  
  .cloudflare-features {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  
  .feature-item {
    padding: 0.75rem;
  }
  
  .feature-icon {
    font-size: 1.25rem;
  }
  
  .feature-text {
    font-size: 0.75rem;
  }
}

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

/* Fade Section Animations */
.fade-section {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-primary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-secondary);
}

/* Responsive Footer Styles */
@media (max-width: 1024px) {
  .header-content {
    grid-template-columns: 1fr;
    gap: clamp(2rem, 6vw, 4rem);
    text-align: center;
    min-height: auto;
  }
  
  .header-subtitle {
    max-width: 100%;
  }
  
  .tech-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
  
  .tech-item {
    padding: 1.5rem;
  }
  
  .footer-content {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
  }
  
  .contact-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .services-grid,
  .news-grid,
  .testimonials-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

@media (max-width: 768px) {
  .main-header {
    padding: clamp(4rem, 12vh, 6rem) 0 clamp(3rem, 8vh, 4rem);
  }
  
  .header-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }
  
  .header-subtitle {
    margin-bottom: clamp(1.5rem, 4vw, 2rem);
  }
  
  .tech-item {
    padding: 1.5rem 1rem;
  }
  
  .tech-item i {
    font-size: 2rem;
  }
  
  .footer {
    padding: 3rem 0 1.5rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .footer-section {
    padding: 1.25rem;
  }
  
  .footer-section h4 {
    text-align: center;
    margin-bottom: 1.5rem;
  }
  
  .footer-section ul li a {
    text-align: center;
    padding: 0.75rem 1rem;
  }
  
  .social-links {
    align-items: center;
  }
  
  .social-link {
    justify-content: center;
    padding: 1rem 1.5rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
  
  .footer-links {
    justify-content: center;
    gap: 1.5rem;
  }
  
  .newsletter-form {
    flex-direction: column;
    gap: 1rem;
  }
  
  .newsletter-form input,
  .newsletter-form button {
    width: 100%;
  }
  
  /* Services, News, Testimonials responsive */
  .services,
  .news,
  .testimonials,
  .contact {
    padding: 4rem 0;
  }
  
  .services-grid,
  .news-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .service-card,
  .news-item,
  .testimonial-item {
    padding: 2rem;
  }
  
  .contact-form {
    padding: 2rem;
  }
  
  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .main-header {
    padding: clamp(3rem, 10vh, 5rem) 0 clamp(2rem, 6vh, 3rem);
  }
  
  .header-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }
  
  .tech-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .tech-item {
    padding: 1.25rem 1rem;
  }
  
  .tech-item i {
    font-size: 1.8rem;
  }
  
  .badge {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
  
  .footer {
    padding: 2rem 0 1rem;
  }
  
  .footer-content {
    gap: 1.5rem;
  }
  
  .footer-section {
    padding: 1rem;
  }
  
  .footer-section ul li a {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
  }
  
  .social-link {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }
  
  .social-link i {
    font-size: 1rem;
  }
  
  .social-link span {
    font-size: 0.85rem;
  }
  
  .footer-links {
    gap: 1rem;
    font-size: 0.85rem;
  }
  
  .newsletter-form input {
    padding: 0.625rem 0.875rem;
    font-size: 0.85rem;
  }
  
  .newsletter-form button {
    padding: 0.625rem 0.875rem;
    font-size: 0.85rem;
  }
  
  /* Services, News, Testimonials mobile */
  .services,
  .news,
  .testimonials,
  .contact {
    padding: 3rem 0;
  }
  
  .services-title,
  .news-title,
  .testimonials-title,
  .contact-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
    margin-bottom: 1.5rem;
  }
  
  .services-subtitle h3,
  .news-subtitle h3 {
    font-size: 1.1rem;
  }
  
  .service-card,
  .news-item,
  .testimonial-item {
    padding: 1.5rem;
  }
  
  .service-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }
  
  .service-card h3 {
    font-size: 1.3rem;
  }
  
  .news-content {
    padding: 1.25rem;
  }
  
  .news-content h4 {
    font-size: 1.1rem;
  }
  
  .contact-form {
    padding: 1.5rem;
  }
  
  .contact-form h3 {
    font-size: 1.3rem;
  }
  
  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 0.875rem;
    font-size: 0.95rem;
  }
  
  .btn {
    padding: 0.875rem 1.5rem;
    font-size: 0.95rem;
  }
  
  .btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
  }
  
  .submit-btn {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }
}

/* Enhanced responsive navigation with smooth animations */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
    position: relative;
    z-index: 10000;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.8);
    border-radius: var(--border-radius);
    padding: clamp(0.8rem, 3vw, 1rem);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 102, 255, 0.3);
    transition: var(--transition-smooth);
  }
  
  .nav-toggle:hover {
    background: rgba(0, 102, 255, 0.2);
    border-color: var(--accent-primary);
    transform: scale(1.05);
  }
  
  .nav-toggle span {
    display: block;
    width: clamp(20px, 5vw, 25px);
    height: clamp(2px, 0.5vw, 3px);
    background: var(--text-primary);
    margin: clamp(3px, 1vw, 5px) 0;
    transition: var(--transition-spring);
    border-radius: 2px;
  }
  
  .nav-toggle.active {
    background: rgba(0, 102, 255, 0.3);
    border-color: var(--accent-primary);
  }
  
  .nav-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
    background: var(--accent-primary);
  }
  
  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
  }
  
  .nav-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
    background: var(--accent-primary);
  }
}

/* Enhanced responsive hero section */
@media (max-width: 768px) {
  .hero {
    height: 100vh;
    height: calc(var(--vh, 1vh) * 100);
    padding: 2rem 1rem;
  }
  
  .hero-spacer {
    height: 100vh;
    height: calc(var(--vh, 1vh) * 100);
  }
  
  .hero-content {
    text-align: center;
    padding: 2rem 1rem;
  }
  
  .hero-title {
    font-size: clamp(2.5rem, 10vw, 3.5rem);
    margin-bottom: 1.5rem;
  }
  
  .hero-subtitle {
    font-size: clamp(1.1rem, 4vw, 1.3rem);
    margin-bottom: 2rem;
  }
  
  .hero-cta {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }
  
  .cta-button {
    width: 100%;
    max-width: 300px;
    padding: 1rem 2rem;
    font-size: 1rem;
  }
}

/* Enhanced responsive container */
@media (max-width: 1200px) {
  .container {
    padding: 0 2rem;
  }
}

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

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

/* Enhanced responsive grid systems */
@media (max-width: 1024px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

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

/* Enhanced responsive spacing */
@media (max-width: 768px) {
  .section-padding {
    padding: 4rem 0;
  }
  
  .section-padding-lg {
    padding: 6rem 0;
  }
  
  .section-padding-xl {
    padding: 8rem 0;
  }
}

@media (max-width: 480px) {
  .section-padding {
    padding: 3rem 0;
  }
  
  .section-padding-lg {
    padding: 4rem 0;
  }
  
  .section-padding-xl {
    padding: 6rem 0;
  }
}

/* Enhanced responsive typography */
@media (max-width: 768px) {
  h1 {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }
  
  h2 {
    font-size: clamp(1.75rem, 7vw, 2.25rem);
  }
  
  h3 {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }
  
  h4 {
    font-size: clamp(1.25rem, 5vw, 1.75rem);
  }
  
  h5 {
    font-size: clamp(1.1rem, 4vw, 1.5rem);
  }
  
  h6 {
    font-size: clamp(1rem, 3vw, 1.25rem);
  }
  
  p {
    font-size: clamp(0.95rem, 3.5vw, 1rem);
  }
}

/* Enhanced responsive utilities */
@media (max-width: 768px) {
  .text-center-mobile {
    text-align: center;
  }
  
  .text-left-mobile {
    text-align: left;
  }
  
  .text-right-mobile {
    text-align: right;
  }
  
  .hidden-mobile {
    display: none;
  }
  
  .visible-mobile {
    display: block;
  }
  
  .flex-column-mobile {
    flex-direction: column;
  }
  
  .flex-row-mobile {
    flex-direction: row;
  }
  
  .w-full-mobile {
    width: 100%;
  }
  
  .h-auto-mobile {
    height: auto;
  }
}

/* Enhanced responsive animations */
@media (prefers-reduced-motion: reduce) {
  .fade-section {
    transition: none;
  }
  
  .service-card:hover,
  .news-item:hover,
  .testimonial-item:hover {
    transform: none;
  }
  
  .social-link:hover {
    transform: none;
  }
  
  .footer-section:hover {
    transform: none;
  }
}

/* Enhanced responsive focus styles */
@media (max-width: 768px) {
  .nav-link:focus,
  .dropdown-link:focus,
  .cta-button:focus,
  .btn:focus {
    outline: 2px solid var(--accent-primary);
    outline-offset: 1px;
  }
}

/* Enhanced responsive touch targets */
@media (max-width: 768px) {
  .nav-link,
  .dropdown-link,
  .cta-button,
  .btn,
  .social-link,
  .footer-section ul li a {
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* Page Title Section - Replacement for Hero Sections */
.page-title-section {
  text-align: center;
  padding: 2rem 1rem;
  margin: clamp(80px, 12vh, 100px) 0 2rem 0; /* Account for fixed navbar */
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(10, 10, 10, 0.8));
  border-radius: 12px;
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

/* Tool page body padding adjustments */
body[class*="-page"] .page-title-section {
  margin-top: clamp(90px, 15vh, 110px); /* Extra space for tool pages */
}

body[class*="-page"] .main-content {
  padding-top: 0; /* Remove any conflicting padding */
}

.page-title-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 80%, rgba(0, 102, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(77, 148, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.page-title-section .page-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  z-index: 1;
}

.page-title-section .page-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

/* Responsive adjustments for page title */
@media (max-width: 768px) {
  .page-title-section {
    padding: 1.5rem 1rem;
    margin: clamp(70px, 15vh, 90px) 0 1.5rem 0; /* Adjusted for mobile navbar */
  }

  /* Tool page mobile adjustments */
  body[class*="-page"] .page-title-section {
    margin-top: clamp(80px, 18vh, 100px); /* Extra space for tool pages on mobile */
  }
  
  .page-title-section .page-title {
    font-size: clamp(1.5rem, 6vw, 2.5rem);
  }
  
  .page-title-section .page-subtitle {
    font-size: clamp(0.9rem, 3vw, 1.1rem);
  }
}

/* Hero Section Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 30px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0) rotate(45deg);
  }
  40% {
    transform: translateY(-10px) rotate(45deg);
  }
  60% {
    transform: translateY(-5px) rotate(45deg);
  }
}

/* Enhanced Typewriter Effect Animations */
@keyframes typewriter {
  0% {
    width: 0;
  }
  100% {
    width: 100%;
  }
}

@keyframes blink {
  0%, 50% {
    border-color: transparent;
  }
  51%, 100% {
    border-color: var(--accent-primary);
  }
}

@keyframes textGlow {
  0% {
    text-shadow: 
      0 0 5px var(--accent-primary),
      0 0 10px var(--accent-primary),
      0 0 15px var(--accent-primary),
      0 0 20px var(--accent-primary);
  }
  100% {
    text-shadow: 
      0 0 10px var(--accent-primary),
      0 0 20px var(--accent-primary),
      0 0 30px var(--accent-primary),
      0 0 40px var(--accent-primary),
      0 0 50px var(--accent-primary);
  }
}

@keyframes charGlow {
  0% {
    opacity: 0;
    transform: translateY(20px);
    text-shadow: none;
  }
  50% {
    opacity: 1;
    transform: translateY(0);
    text-shadow: 
      0 0 5px var(--accent-primary),
      0 0 10px var(--accent-primary);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    text-shadow: 
      0 0 10px var(--accent-primary),
      0 0 20px var(--accent-primary),
      0 0 30px var(--accent-primary);
  }
}