/* Main styles for Netizio Web Agency */

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --secondary: #10b981;
  --secondary-dark: #059669;
  --dark: #0f172a;
  --light: #f8fafc;
  --gray: #64748b;
  --gray-light: #cbd5e1;
}

/* Global styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', 'Poppins', sans-serif;
  color: var(--dark);
  overflow-x: hidden;
  font-optical-sizing: auto;
  font-feature-settings: 'liga' 1, 'kern' 1;
  font-variant-ligatures: common-ligatures;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.text-gradient {
  background: linear-gradient(to right, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Modern Typography Styles */
.font-display {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.font-heading {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.font-mono {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.font-body {
  font-family: 'Inter', 'Poppins', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -0.01em;
}

/* Hero Typography */
.hero-title {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 50%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--gray);
}

/* Section Headings */
.section-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--dark);
}

.section-subtitle {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--gray);
}

/* Card Typography */
.card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.3;
  letter-spacing: -0.025em;
  color: var(--dark);
}

.card-description {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 0.95rem;
  line-height: 1.6;
  letter-spacing: -0.01em;
  color: var(--gray);
}

/* Button Typography */
.button-text {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  text-transform: none;
}

/* Quote Typography */
.quote-text {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  font-size: 1.125rem;
  line-height: 1.7;
  letter-spacing: -0.01em;
  font-style: italic;
}

/* Accent Text */
.accent-text {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Code/Tech Text */
.tech-text {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: -0.02em;
  color: var(--primary);
  background: rgba(99, 102, 241, 0.1);
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

/* Modern Number Styling */
.number-display {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-feature-settings: 'tnum' 1;
  font-variant-numeric: tabular-nums;
}

/* Enhanced Link Styling */
.modern-link {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  color: var(--primary);
  text-decoration: none;
  position: relative;
  transition: all 0.3s ease;
}

.modern-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: width 0.3s ease;
}

.modern-link:hover::after {
  width: 100%;
}

.modern-link:hover {
  color: var(--primary-dark);
}

/* Animation classes */
.fade-in {
  animation: fadeIn 0.6s ease-in;
}

.slide-up {
  animation: slideUp 0.8s ease-out;
}

.slide-down {
  animation: slideDown 0.8s ease-out;
}

.slide-left {
  animation: slideLeft 0.8s ease-out;
}

.slide-right {
  animation: slideRight 0.8s ease-out;
}

.zoom-in {
  animation: zoomIn 0.5s ease-out;
}

.bounce {
  animation: bounce 1s ease infinite;
}

.rotate {
  animation: rotate 10s linear infinite;
}

.pulse {
  animation: pulse 2s ease infinite;
}

/* Utility classes for scroll-based animations */
.scroll-parallax {
  will-change: transform;
  transition: transform 0.1s linear;
}

.reveal-on-scroll {
  opacity: 0;
  transition: all 0.8s ease;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered animations for lists */
.stagger-item {
  opacity: 0;
  animation: fadeIn 0.5s ease forwards;
}

/* Animation Keyframes */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

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

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

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

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

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

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

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

@keyframes ripple {
  0% { transform: scale(0); opacity: 1; }
  100% { transform: scale(1); opacity: 0; }
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

@keyframes blink {
  50% { border-color: transparent }
}

/* Animated bubbles styles */
@keyframes bubbleFloat {
  0% {
    transform: translateY(0) rotate(0deg) scale(1);
    opacity: 0;
  }
  10% {
    opacity: 0.8;
  }
  90% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(-120vh) rotate(360deg) scale(0.5);
    opacity: 0;
  }
}

.animated-bubble {
  animation: bubbleFloat linear infinite;
  position: absolute;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.2);
  backdrop-filter: blur(2px);
  pointer-events: none;
  will-change: transform, opacity;
  border: 1px solid rgba(99, 102, 241, 0.2);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.1);
}

/* Button animations */
.btn-hover-effect:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(99, 102, 241, 0.15);
}

.btn-hover-effect {
  transition: all 0.3s ease;
}

/* Card hover effects */
.service-card {
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Navbar styles */
.navbar-scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Hero section styles */
.hero-gradient {
  background: linear-gradient(135deg, #6366f1 0%, #10b981 100%);
}

/* Animated counter styles */
.counter-wrapper {
  position: relative;
  overflow: hidden;
}

.counter-value {
  display: inline-block;
  transition: transform 0.3s;
}

.counter-animate {
  animation: countUp 2s ease-out forwards;
}

@keyframes countUp {
  0% { opacity: 0.3; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}



/* Rocket Animation styles */
.rocket-animation-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.rocket {
  transform-style: preserve-3d;
  transition: transform 0.2s ease;
}

@keyframes thruster-animation {
  0% { opacity: 0.7; height: 100%; }
  50% { opacity: 1; height: 130%; }
  100% { opacity: 0.7; height: 100%; }
}

.rocket-thruster {
  animation: thruster-animation 0.5s infinite alternate;
}

@keyframes target-pulse {
  0% { transform: scale(0.95); opacity: 0.7; }
  50% { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.7; }
}

.target-pulse {
  animation: target-pulse 2s infinite ease-in-out;
}

/* Animated background canvas */
.animated-background {
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
}

/* Testimonial styles */
.testimonial-card {
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: scale(1.03);
}

/* Process step animation */
.process-step {
  transition: all 0.4s ease;
}

.process-step:hover .step-number {
  transform: scale(1.1);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

/* Contact form styles */
.input-focus {
  transition: all 0.3s ease;
}

.input-focus:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

/* Mobile menu animation */
.mobile-menu-enter {
  opacity: 0;
  transform: translateX(-100%);
}

.mobile-menu-enter-active {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 300ms, transform 300ms;
}

.mobile-menu-exit {
  opacity: 1;
  transform: translateX(0);
}

.mobile-menu-exit-active {
  opacity: 0;
  transform: translateX(-100%);
  transition: opacity 300ms, transform 300ms;
}

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

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

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

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

/* Geometric decorative shapes */
.shape-circle {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(16, 185, 129, 0.1));
  z-index: -1;
  animation: float 6s ease-in-out infinite;
}

.shape-triangle {
  position: absolute;
  width: 0;
  height: 0;
  z-index: -1;
  animation: rotate 20s linear infinite;
}

.shape-square {
  position: absolute;
  background: linear-gradient(45deg, rgba(99, 102, 241, 0.05), rgba(16, 185, 129, 0.05));
  z-index: -1;
  animation: pulse 4s ease-in-out infinite;
  border-radius: 8px;
}

/* Glowing effects */
.glow-effect {
  position: relative;
  color: var(--dark) !important;
}

.glow-effect::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--primary), var(--secondary), var(--primary));
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
  animation: rotate 3s linear infinite;
}

.glow-effect:hover::before {
  opacity: 0.7;
}

.glow-effect:hover {
  color: var(--dark) !important;
  text-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

/* Gradient borders */
.gradient-border {
  position: relative;
  background: linear-gradient(white, white) padding-box,
              linear-gradient(45deg, var(--primary), var(--secondary)) border-box;
  border: 2px solid transparent;
  border-radius: 12px;
}

/* Floating particles */
.particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.3);
  pointer-events: none;
  z-index: -1;
  animation: particleFloat 8s linear infinite;
}

@keyframes particleFloat {
  0% {
    transform: translateY(100vh) translateX(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-20vh) translateX(100px) rotate(360deg);
    opacity: 0;
  }
}

/* Advanced card effects */
.card-3d {
  transform-style: preserve-3d;
  transition: transform 0.3s ease;
}

.card-3d:hover {
  transform: perspective(1000px) rotateX(5deg) rotateY(5deg);
}

/* Morphing effects */
.morph-shape {
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  animation: morphing 8s ease-in-out infinite;
}

@keyframes morphing {
  0% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  }
  25% {
    border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
  }
  50% {
    border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
  }
  75% {
    border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
  }
  100% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  }
}

/* Text shimmer effect */
.text-shimmer {
  background: linear-gradient(
    90deg,
    var(--dark) 0%,
    var(--primary) 50%,
    var(--dark) 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: var(--dark); /* Fallback pour les navigateurs non-webkit */
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Ripple effect */
.ripple-effect {
  position: relative;
  overflow: hidden;
}

.ripple-effect::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.ripple-effect:active::after {
  width: 300px;
  height: 300px;
}

/* Gradient animations */
.gradient-animation {
  background: linear-gradient(-45deg, #6366f1, #10b981, #8b5cf6, #06b6d4);
  background-size: 400% 400%;
  animation: gradientShift 8s ease infinite;
}

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

/* Floating icons */
.floating-icon {
  animation: floatIcon 3s ease-in-out infinite;
}

@keyframes floatIcon {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(5deg);
  }
}

/* Neon glow text */
.neon-text {
  color: var(--primary) !important;
  text-shadow: 0 0 5px var(--primary),
               0 0 10px var(--primary),
               0 0 15px var(--primary),
               0 0 20px var(--primary);
  animation: neonFlicker 1.5s infinite alternate;
  font-weight: bold;
}

@keyframes neonFlicker {
  0%, 100% {
    text-shadow: 0 0 5px var(--primary),
                 0 0 10px var(--primary),
                 0 0 15px var(--primary),
                 0 0 20px var(--primary);
    color: var(--primary);
  }
  50% {
    text-shadow: 0 0 2px var(--primary),
                 0 0 5px var(--primary),
                 0 0 8px var(--primary),
                 0 0 12px var(--primary);
    color: var(--primary-dark);
  }
}

/* Loading spinner */
.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(99, 102, 241, 0.1);
  border-top: 4px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Glass morphism effect */
.glass-morphism {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

/* Elastic hover effect */
.elastic-hover {
  transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.elastic-hover:hover {
  transform: scale(1.05);
}

/* Gradient underline */
.gradient-underline {
  position: relative;
  text-decoration: none;
}

.gradient-underline::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: width 0.3s ease;
}

.gradient-underline:hover::after {
  width: 100%;
}

/* Page transition animations */
.animated-route {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
              transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-enter {
  opacity: 0;
  transform: translateY(20px) scale(0.95);
}

.page-enter-active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.page-exit {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.page-exit-active {
  opacity: 0;
  transform: translateY(-20px) scale(1.05);
}

/* Smooth page transitions with different effects */
.page-transition {
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-transition.fadeIn {
  opacity: 1;
  transform: translateX(0);
}

.page-transition.fadeOut {
  opacity: 0;
  transform: translateX(-30px);
}

/* Slide transition variants */
.slide-transition-enter {
  opacity: 0;
  transform: translateX(100%);
}

.slide-transition-enter-active {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 500ms, transform 500ms;
}

.slide-transition-exit {
  opacity: 1;
  transform: translateX(0);
}

.slide-transition-exit-active {
  opacity: 0;
  transform: translateX(-100%);
  transition: opacity 500ms, transform 500ms;
}

/* Fade and scale transition */
.fade-scale-transition {
  transition: all 0.4s ease-in-out;
}

.fade-scale-enter {
  opacity: 0;
  transform: scale(0.9) translateY(30px);
}

.fade-scale-enter-active {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.fade-scale-exit {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.fade-scale-exit-active {
  opacity: 0;
  transform: scale(1.1) translateY(-30px);
}

/* Blur transition effect */
.blur-transition {
  transition: all 0.6s ease;
}

.blur-enter {
  opacity: 0;
  filter: blur(10px);
  transform: translateY(20px);
}

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

.blur-exit {
  opacity: 1;
  filter: blur(0px);
  transform: translateY(0);
}

.blur-exit-active {
  opacity: 0;
  filter: blur(10px);
  transform: translateY(-20px);
}

/* Smooth scrolling for page changes */
html {
  scroll-behavior: smooth;
}

/* Enhanced loading states */
.page-loading {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.page-loaded {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered element animations for page content */
.stagger-container > * {
  opacity: 0;
  transform: translateY(30px);
  animation: staggerFadeIn 0.6s ease forwards;
}

.stagger-container > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-container > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-container > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-container > *:nth-child(4) { animation-delay: 0.4s; }
.stagger-container > *:nth-child(5) { animation-delay: 0.5s; }
.stagger-container > *:nth-child(6) { animation-delay: 0.6s; }

@keyframes staggerFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Navigation transition indicators */
.nav-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  z-index: 9999;
  transition: width 0.3s ease;
}

.nav-progress.loading {
  animation: progressLoad 1s ease-in-out;
}

@keyframes progressLoad {
  0% { width: 0%; }
  50% { width: 70%; }
  100% { width: 100%; }
}

/* Page transition overlay */
.transition-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.transition-overlay.active {
  opacity: 0.1;
  pointer-events: auto;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
  /* Reduced animation complexity for mobile */
  .animated-route {
    transition: opacity 0.3s ease;
    transform: none !important;
  }
  
  .page-enter-active,
  .page-exit-active {
    transition-duration: 0.3s;
  }
  
  /* Disable complex animations on mobile */
  .animated-bubble,
  .particle,
  .floating-icon,
  .morph-shape {
    animation: none !important;
    transform: none !important;
  }
  
  /* Simplify hover effects */
  .service-card:hover,
  .testimonial-card:hover,
  .card-3d:hover {
    transform: none;
  }
  
  /* Optimize button animations */
  .btn-hover-effect:hover {
    transform: none;
    box-shadow: none;
  }
  
  /* Reduce glow effects and ensure text readability */
  .glow-effect::before,
  .neon-text {
    animation: none !important;
    text-shadow: none !important;
    color: white !important;
  }
  
  /* Mobile Hero text improvements */
  .hero-title {
    color: white !important;
    background: none !important;
    -webkit-text-fill-color: white !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  }
  
  .hero-subtitle {
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  }
  
  /* Glass morphism readability improvements */
  .glass-morphism {
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
  }
  
  .glass-morphism .text-white {
    color: white !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  }
  
  .glass-morphism .text-white\/90 {
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  }
  
  /* Optimize scrolling performance */
  .scroll-parallax {
    transform: none !important;
  }
  
  /* Reduce motion for users who prefer it */
  @media (prefers-reduced-motion: reduce) {
    * {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }
    
    .animated-route,
    .page-transition,
    .slide-transition-enter-active,
    .slide-transition-exit-active {
      transition: none;
    }
    
    .page-enter,
    .page-enter-active {
      opacity: 1;
      transform: none;
    }
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .btn-hover-effect:hover,
  .service-card:hover,
  .testimonial-card:hover,
  .elastic-hover:hover {
    transform: none;
    box-shadow: inherit;
  }
  
  /* Disable hover-based animations on touch devices */
  .glow-effect:hover::before {
    opacity: 0;
  }
}

/* Performance optimizations for low-end devices */
@media (max-width: 480px) {
  /* Further reduce animations on very small screens */
  .fade-in,
  .slide-up,
  .slide-down,
  .slide-left,
  .slide-right,
  .zoom-in,
  .bounce,
  .rotate,
  .pulse {
    animation: none !important;
  }
  
  /* Simplify complex effects */
  .gradient-animation,
  .text-shimmer,
  .ripple-effect::after {
    animation: none !important;
    background: var(--primary);
  }
  
  /* Reduce backdrop filters for performance */
  .glass-morphism {
    backdrop-filter: none;
    background: rgba(255, 255, 255, 0.95);
  }
  
  .navbar-scrolled {
    backdrop-filter: none;
    background-color: rgba(255, 255, 255, 0.98);
  }
}

/* GPU acceleration hints for better performance */
.animated-background,
.hero-gradient,
.rocket-animation-container,
.animated-bubble {
  will-change: transform, opacity;
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}

/* Optimize image loading */
img {
  image-rendering: optimizeQuality;
  loading: lazy;
}

/* Optimize fonts for mobile */
@media (max-width: 768px) {
  body {
    font-size: 16px;
    line-height: 1.5;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  h3 {
    font-size: 1.5rem;
  }
  
  /* Force high contrast text in hero section */
  .bg-gradient-to-br .text-white {
    color: white !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  }
  
  .bg-gradient-to-br .number-display {
    color: white !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    font-weight: 900;
  }
}

/* Enhanced route change animations */
.route-changing {
  pointer-events: none;
}

.route-changed {
  pointer-events: auto;
}

/* Chatbot customization */
.ezsite-chatbot-widget {
  --chat-primary-color: var(--primary);
  --chat-secondary-color: var(--secondary);
}

.ezsite-chatbot-bubble {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.3), 0 2px 4px -1px rgba(99, 102, 241, 0.2);
  transition: all 0.3s ease;
  animation: pulse 2s ease-in-out infinite;
}

.ezsite-chatbot-bubble:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.3), 0 4px 6px -2px rgba(99, 102, 241, 0.2);
  animation: none;
}

.ezsite-chatbot-header {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.ezsite-chatbot-message-user {
  background-color: var(--primary);
  border-radius: 18px 18px 0 18px;
  animation: slideLeft 0.3s ease;
}

.ezsite-chatbot-message-bot {
  background-color: var(--gray-light);
  border-radius: 18px 18px 18px 0;
  animation: slideRight 0.3s ease;
}

.ezsite-chatbot-input-container {
  border-color: var(--primary);
}

.ezsite-chatbot-send-button {
  background-color: var(--primary);
  transition: all 0.3s ease;
}

.ezsite-chatbot-send-button:hover {
  background-color: var(--primary-dark);
  transform: scale(1.05);
}

/* Hide the specific SVG element with red outline */
svg[style*="outline: red solid 2px"] {
  display: none !important;
}

/* Alternative selector in case the style changes */
svg[width="56"][height="56"][style*="outline"] {
  display: none !important;
}

/* Hide any EzSite chatbot external element that might have red outline */
.ezsite-chatbot svg[style*="outline"] {
  display: none !important;
}