/* Modern Futuristic Design System 2025 */
:root {
  /* Enhanced Color Palette - Gen Z/Millennial Appeal */
  --primary: #6366f1;
  --primary-light: #8b5cf6;
  --primary-dark: #4f46e5;
  --secondary: #06b6d4;
  --accent: #f59e0b;
  --neon-cyan: #22d3ee;
  --neon-purple: #a855f7;
  --neon-green: #10b981;
  
  /* Sophisticated Neutrals */
  --text-dark: #0f172a;
  --text-medium: #475569;
  --text-light: #94a3b8;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-800: #1e293b;
  --border: #e2e8f0;
  
  /* Modern Gradients */
  --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
  --gradient-secondary: linear-gradient(135deg, #06b6d4 0%, #3b82f6 50%, #8b5cf6 100%);
  --gradient-accent: linear-gradient(135deg, #f59e0b 0%, #ef4444 50%, #ec4899 100%);
  --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  
  /* Glassmorphism Variables */
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.18);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  
  /* Typography */
  --font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Typography Scale */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  
  /* Spacing */
  --container-max: 1200px;
  --section-spacing: 8rem;
  --content-spacing: 3rem;
  
  /* Enhanced Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
  
  /* Modern Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.05), 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.08), 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1), 0 10px 10px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.3);
}

/* Reset & Base with Cross-Browser Compatibility */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  height: 100%;
  width: 100%;
}

body {
  font-family: var(--font-family);
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-dark);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
  position: relative;
}

/* Modern Body Overlay for Depth - DISABLED FOR LIGHT THEME */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: none;
  pointer-events: none;
  z-index: -1;
}

/* Container */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 2rem;
}



/* Modern Header with Enhanced Glassmorphism */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all var(--transition-smooth);
}

.header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient-primary);
  opacity: 0.6;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  width: 100%;
}

.nav-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  text-decoration: none;
  letter-spacing: -0.02em;
  transition: all var(--transition-smooth);
  position: relative;
}

.nav-brand:hover {
  transform: translateY(-1px);
  color: var(--primary);
  filter: drop-shadow(0 4px 8px rgba(99, 102, 241, 0.2));
}

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

.nav-link {
  color: var(--text-medium);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-smooth);
  padding: 0.75rem 1rem;
  border-radius: 8px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.5rem;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  margin: 3px 0;
  transition: var(--transition);
}

/* Modern Enhanced Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-smooth);
  cursor: pointer;
  font-size: 1rem;
  transform: translateZ(0);
  position: relative;
  z-index: 50;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

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

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

.btn-primary {
  background: var(--gradient-primary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--white);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
  filter: brightness(1.1);
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
}

.btn-secondary {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-dark);
  backdrop-filter: blur(10px) saturate(180%);
  box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-lg);
  color: var(--primary);
}

/* Modern Glassmorphism Cards & Components */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: var(--glass-shadow);
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.glass-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--glass-shadow), var(--shadow-xl);
  border-color: rgba(99, 102, 241, 0.2);
}

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

/* Modern Service Cards Enhancement */
.service-card,
.portfolio-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.service-card::before,
.portfolio-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-smooth);
  z-index: -1;
}

.service-card:hover,
.portfolio-card:hover {
  transform: translateY(-6px) rotateY(5deg);
  box-shadow: var(--shadow-xl), 0 0 30px rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.3);
}

.service-card:hover::before,
.portfolio-card:hover::before {
  opacity: 0.03;
}

/* Modern Pricing Cards */
div[style*="border-left: 4px solid"] {
  background: var(--glass-bg) !important;
  backdrop-filter: blur(15px) saturate(150%) !important;
  border: 1px solid var(--glass-border) !important;
  border-left: 4px solid var(--primary) !important;
  transition: all var(--transition-smooth) !important;
  position: relative !important;
  overflow: hidden !important;
}

div[style*="border-left: 4px solid"]:hover {
  transform: translateY(-3px) scale(1.02) !important;
  box-shadow: var(--shadow-xl), var(--shadow-glow) !important;
}

/* Enhanced Hero Section */
.hero {
  position: relative;
  background: linear-gradient(135deg, 
    rgba(248, 250, 252, 0.9) 0%, 
    rgba(241, 245, 249, 0.9) 50%, 
    rgba(226, 232, 240, 0.9) 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 25% 25%, rgba(99, 102, 241, 0.1) 0%, transparent 60%),
    radial-gradient(circle at 75% 75%, rgba(139, 92, 246, 0.08) 0%, transparent 60%),
    radial-gradient(circle at 50% 50%, rgba(6, 182, 212, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

/* Enhanced Modern Typography */
.section-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-dark);
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
}

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

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

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

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

@keyframes glow {
  0%, 100% { box-shadow: 0 0 5px rgba(99, 102, 241, 0.2); }
  50% { box-shadow: 0 0 20px rgba(99, 102, 241, 0.4), 0 0 30px rgba(139, 92, 246, 0.2); }
}

/* Enhanced Hover Interactions */
.service-card h3,
.portfolio-card h3,
h3[style*="font-size"] {
  transition: all var(--transition-smooth);
  position: relative;
}

.service-card:hover h3,
.portfolio-card:hover h3,
div:hover h3[style*="font-size"] {
  color: var(--primary) !important;
  transform: translateX(5px);
}

/* Modern Input Enhancements */
input, textarea, select {
  background: var(--glass-bg) !important;
  backdrop-filter: blur(10px) saturate(150%) !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: 12px !important;
  transition: all var(--transition-smooth) !important;
  padding: 1rem 1.25rem !important;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1) !important;
  outline: none !important;
  transform: translateY(-1px) !important;
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--text-medium);
  line-height: 1.6;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.section-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--gray-100);
  color: var(--text-medium);
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 2.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  transform: translateZ(0);
}

.section-badge:hover {
  transform: translateY(-1px) scale(1.05);
  background: var(--gray-200);
}

/* Sections */
.section {
  padding: 3rem 0;
  background: #fff;
}

.section-center {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--white);
  position: relative;
  overflow: hidden;
  padding: 2rem 0;
  margin: 0;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

/* Floating Background Elements */
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 40%, rgba(37, 99, 235, 0.03) 50%, transparent 60%);
  z-index: -2;
  pointer-events: none;
}


/* Floating Orbs */
.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.floating-orb {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(79, 70, 229, 0.05));
  animation: float 6s ease-in-out infinite;
}

.orb-1 {
  width: 80px;
  height: 80px;
  top: 20%;
  left: 10%;
  animation-delay: 0s;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(79, 70, 229, 0.05));
}

.orb-2 {
  width: 120px;
  height: 120px;
  top: 60%;
  right: 15%;
  animation-delay: 2s;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(79, 70, 229, 0.05));
}

.orb-3 {
  width: 60px;
  height: 60px;
  top: 80%;
  left: 70%;
  animation-delay: 4s;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(22, 163, 74, 0.05));
}

@keyframes float {
  0%, 100% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-20px) scale(1.1); }
}

/* Additional Floating Elements for Other Sections */
.floating-elements-secondary,
.floating-elements-tertiary,
.floating-elements-quaternary,
.floating-elements-quinary,
.floating-elements-footer,
.floating-elements-contact {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
}

/* Page-specific floating elements that stay within sections */
.floating-elements-section {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
}

.orb-4 {
  width: 60px;
  height: 60px;
  top: 30%;
  right: 20%;
  animation-delay: 1s;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(79, 70, 229, 0.05));
}

.orb-5 {
  width: 90px;
  height: 90px;
  top: 70%;
  left: 15%;
  animation-delay: 3s;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(22, 163, 74, 0.05));
}

.orb-6 {
  width: 70px;
  height: 70px;
  top: 20%;
  left: 80%;
  animation-delay: 0.5s;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(79, 70, 229, 0.05));
}

.orb-7 {
  width: 50px;
  height: 50px;
  top: 80%;
  right: 30%;
  animation-delay: 2.5s;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(79, 70, 229, 0.05));
}

.orb-8 {
  width: 100px;
  height: 100px;
  top: 50%;
  left: 5%;
  animation-delay: 4s;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(22, 163, 74, 0.05));
}

.orb-9 {
  width: 75px;
  height: 75px;
  top: 25%;
  right: 10%;
  animation-delay: 1.5s;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(79, 70, 229, 0.05));
}

.orb-10 {
  width: 85px;
  height: 85px;
  top: 75%;
  left: 20%;
  animation-delay: 3.5s;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(217, 119, 6, 0.05));
}

.orb-11 {
  width: 65px;
  height: 65px;
  top: 35%;
  left: 75%;
  animation-delay: 2s;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(79, 70, 229, 0.05));
}

.orb-12 {
  width: 95px;
  height: 95px;
  top: 65%;
  right: 25%;
  animation-delay: 4.5s;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(79, 70, 229, 0.05));
}

/* Contact Form Orbs - positioned on the left side */
.orb-contact-1 {
  width: 80px;
  height: 80px;
  top: 20%;
  left: 5%;
  animation-delay: 1s;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(79, 70, 229, 0.05));
}

.orb-contact-2 {
  width: 120px;
  height: 120px;
  top: 70%;
  left: 10%;
  animation-delay: 3s;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(22, 163, 74, 0.05));
}

/* Footer Orbs - Lighter colors for dark background */
.floating-elements-footer .floating-orb {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
}

.orb-footer-1 {
  width: 70px;
  height: 70px;
  top: 20%;
  left: 15%;
  animation-delay: 1s;
}

.orb-footer-2 {
  width: 90px;
  height: 90px;
  top: 60%;
  right: 20%;
  animation-delay: 3s;
}

.orb-footer-3 {
  width: 55px;
  height: 55px;
  top: 80%;
  left: 60%;
  animation-delay: 5s;
}

/* Animated Background Sections */
.animated-bg::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 40%, rgba(37, 99, 235, 0.02) 50%, transparent 60%);
  z-index: 0;
}

/* Hero Animations */
.animate-badge {
  animation: slideInDown 1s ease 0.2s both;
  position: relative;
  z-index: 10;
}

.animate-title {
  animation: slideInUp 1s ease 0.4s both;
  position: relative;
  z-index: 10;
}

.animate-subtitle {
  animation: fadeIn 1s ease 0.6s both;
  position: relative;
  z-index: 10;
}

.animate-btn-1 {
  animation: slideInLeft 1s ease 0.8s both;
  position: relative;
  z-index: 50;
}

.animate-btn-2 {
  animation: slideInRight 1s ease 1s both;
  position: relative;
  z-index: 50;
}

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

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

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

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

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

.hero-actions {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 3rem;
  flex-wrap: wrap;
}

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

.service-card {
  padding: 2.5rem 2.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  opacity: 1;
  transform: translateY(0);
}

.service-card:hover {
  transform: translateY(-8px) rotateX(5deg);
  box-shadow: 0 25px 50px rgba(37, 99, 235, 0.2);
  border-color: var(--primary);
}

/* Remove problematic service card animations */

.service-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary), #4F46E5);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--white);
  flex-shrink: 0;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-icon::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
  transform: rotate(45deg);
  transition: all 0.6s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotateY(10deg);
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
}

.service-card:hover .service-icon::before {
  animation: shimmer 1.5s ease-in-out;
}

@keyframes shimmer {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* Removed 3D perspective effects from contact forms */

/* Subtle Section Animations */
.section {
  transform: translateZ(0);
}

/* Content Card Animations */
.content-card {
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform: translateZ(0);
}

.content-card:hover {
  transform: translateY(-3px) rotateX(1deg);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

/* Navigation Link Animations */
.nav-link {
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform: translateZ(0);
}

.nav-link:hover {
  transform: translateY(-1px);
}

/* Footer Link Animations */
.footer-links a {
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform: translateZ(0);
}

.footer-links a:hover {
  transform: translateY(-2px) scale(1.05);
}

/* Form Input Animations */
.form-group input,
.form-group textarea,
.form-group select {
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform: translateZ(0);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  transform: translateY(-1px) scale(1.01);
}

/* Stats Animation */
.stat {
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform: translateZ(0);
}

.stat:hover {
  transform: translateY(-3px) rotateY(2deg);
}

/* Expertise Category Animations */
.expertise-category {
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform: translateZ(0);
}

.expertise-category:hover {
  transform: translateY(-2px) rotateX(1deg);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.service-icon svg {
  width: 32px;
  height: 32px;
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
  text-align: center;
  flex-shrink: 0;
}

.service-card p {
  color: var(--text-medium);
  line-height: 1.6;
  text-align: left;
  margin: 0;
  flex-grow: 1;
}

/* About Section */
.about {
  background: var(--gray-50);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-top: 2rem;
}

.about-content h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 2rem;
  line-height: 1.2;
}

.about-content p {
  color: var(--text-medium);
  line-height: 1.7;
  margin-bottom: 2rem;
  font-size: 1.125rem;
}

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

.stat {
  text-align: center;
  padding: 2rem;
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.stat-label {
  color: var(--text-medium);
  font-weight: 500;
  margin-top: 0.5rem;
}

/* About Page Styling */
.about-content-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.about-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  transition: var(--transition);
}

.about-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: var(--primary);
}

.about-card-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.about-card-content h2 {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.about-card-content p {
  color: var(--text-medium);
  line-height: 1.6;
  font-size: 1rem;
}

/* Mobile adjustments for about cards */
@media (max-width: 768px) {
  .about-content-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .about-card {
    padding: 1.5rem;
  }
  
  .about-card-content h2 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
  }
  
  .about-card-content p {
    font-size: 0.95rem;
  }
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--gray-50);
  color: var(--text-dark);
  padding: 1rem 0;
  z-index: 9999;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  animation: slideUp 0.3s ease-out;
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  gap: 2rem;
}

.cookie-text {
  flex: 1;
}

.cookie-text p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
}

.cookie-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 80px;
}

.cookie-btn.accept {
  background: var(--primary);
  color: var(--white);
}

.cookie-btn.accept:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.cookie-btn.decline {
  background: transparent;
  color: var(--text-medium);
  border: 1px solid var(--border);
}

.cookie-btn.decline:hover {
  background: var(--gray-100);
  border-color: var(--primary);
  color: var(--text-dark);
}

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

@keyframes slideDown {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(100%);
    opacity: 0;
  }
}

/* Mobile cookie banner adjustments */
@media (max-width: 768px) {
  .cookie-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .cookie-actions {
    width: 100%;
    justify-content: center;
  }
  
  .cookie-btn {
    flex: 1;
    max-width: 120px;
  }
}

/* iOS Safari specific fixes for iPhone 14 Plus and similar */
@media screen and (max-width: 768px) {
  html {
    height: 100% !important;
    overflow-x: hidden !important;
  }
  
  body {
    margin: 0 !important;
    padding: 0 !important;
    height: 100% !important;
    overflow-x: hidden !important;
    -webkit-text-size-adjust: 100% !important;
  }
  
  .hero {
    -webkit-transform: translateZ(0) !important;
    transform: translateZ(0) !important;
  }
}

/* Large mobile devices like iPhone 14 Plus */
@media screen and (min-width: 414px) and (max-width: 768px) {
  .hero {
    height: 100vh !important;
    min-height: 100vh !important;
  }
  
  .hero .container {
    padding: 1rem !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  
  .hero .section-center {
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 0 1rem !important;
  }
  
  .hero .section-center h1 {
    font-size: 2.25rem !important;
    margin: 0 0 1rem 0 !important;
  }
  
  .hero .section-center p {
    font-size: 1.125rem !important;
    margin: 0 0 2rem 0 !important;
  }
  
  /* Contact page specific fixes for iPhone 14 Plus */
  .contact {
    background: var(--white) !important;
    color: var(--text-dark) !important;
  }
  
  .contact-grid {
    display: block !important;
  }
  
  .form-group input,
  .form-group textarea {
    background: var(--white) !important;
    color: var(--text-dark) !important;
    border: 1px solid var(--border) !important;
  }
}

/* Expertise Page Styling */
.expertise {
  background: var(--white);
}

.expertise-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.expertise-category {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: var(--transition);
}

.expertise-category:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border-color: var(--primary);
}

.category-header {
  background: var(--gray-50);
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.category-header h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0;
  text-align: center;
}

.expertise-list {
  padding: 1.5rem;
}

.expertise-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--gray-100);
  transition: var(--transition);
}

.expertise-item:last-child {
  border-bottom: none;
}

.expertise-item:hover {
  background: var(--gray-50);
  margin: 0 -1rem;
  padding-left: 1rem;
  padding-right: 1rem;
  border-radius: 8px;
}

.expertise-bullet {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  flex-shrink: 0;
}

.expertise-item strong {
  color: var(--text-dark);
  font-weight: 600;
  font-size: 1.0625rem;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
  }
  
  .service-card {
    padding: 2rem;
    min-height: 200px;
  }
  
  .service-content h3 {
    font-size: 1.375rem;
  }
  
  .service-content p {
    font-size: 1rem;
  }
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: var(--primary);
}

.service-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.service-content h3 {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.service-content p {
  color: var(--text-medium);
  line-height: 1.6;
  font-size: 1rem;
}

/* Contact Section */
.contact {
  background: var(--white) !important;
  padding: 1.5rem 0;
  min-height: 100vh;
  width: 100%;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 1rem;
  align-items: center;
}

.contact-info h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
}

.contact-info p {
  color: var(--text-medium);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--gray-50);
  border-radius: 8px;
  border-left: 3px solid var(--primary);
}

.contact-icon {
  width: 36px;
  height: 36px;
  background: var(--white);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.contact-icon svg {
  width: 20px;
  height: 20px;
}

.contact-details span {
  display: block;
  color: var(--text-medium);
  font-size: 0.875rem;
  font-weight: 500;
}

.contact-details strong {
  color: var(--text-dark);
  font-size: 1rem;
}

/* Form */
.form {
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 20;
}

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

.form-group label {
  display: block;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  transition: var(--transition);
  background: var(--white);
  pointer-events: auto;
  position: relative;
  z-index: 10;
}

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

/* Footer */
.footer {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(79, 70, 229, 0.06) 50%, rgba(6, 182, 212, 0.08) 100%);
  color: var(--text-dark);
  padding: 4rem 0 2rem;
  text-align: center;
}

.footer-content {
  max-width: 600px;
  margin: 0 auto;
}

.footer h4 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer p {
  color: var(--text-medium);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.footer a:hover {
  color: var(--text-dark);
}

/* Professional Footer Grid Layout */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin: 3rem 0;
  text-align: left;
}

.footer-column {
  display: flex;
  flex-direction: column;
}

.footer-column h5 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-column a {
  color: var(--text-medium);
  text-decoration: none;
  margin-bottom: 0.75rem;
  transition: var(--transition);
  font-weight: 500;
}

.footer-column a:hover {
  color: var(--primary);
  transform: translateX(2px);
}

/* Social Media Links */
.social-links {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: var(--white);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  margin-bottom: 0;
}

.social-links a:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.contact-info p {
  color: var(--text-medium);
  margin-bottom: 1rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

.contact-info strong {
  color: var(--text-dark);
  font-weight: 600;
}

.contact-info a {
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 0;
}

/* Legacy footer links - keep for backwards compatibility */
.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-light);
  text-decoration: none;
  transition: var(--transition);
}

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

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  color: var(--text-medium);
  font-size: 0.875rem;
  text-align: center;
  margin-top: 2rem;
}

/* Mobile Footer Optimization */
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    text-align: center;
  }
  
  .footer-column h5 {
    font-size: 1rem;
    margin-bottom: 1rem;
  }
  
  .social-links {
    justify-content: center;
  }
  
  .contact-info {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
  
  .footer-column h5 {
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
  }
  
  .footer-column a {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
  }
  
  /* Center contact section email and response time on mobile */
  .contact-item {
    text-align: center;
    flex-direction: column;
    align-items: center;
  }
  
  .contact-details {
    text-align: center;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
  
  body {
    overflow-x: hidden;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: left 0.3s ease;
    z-index: 1000;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-menu li {
    margin: 0;
  }
  
  .nav-menu .nav-link,
  .nav-menu .btn {
    font-size: 1.25rem;
    padding: 1rem 2rem;
  }
  
  .nav-toggle {
    display: flex;
    z-index: 1001;
  }
  
  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }
  
  .section {
    padding: 4rem 0;
  }
  
  .hero-actions,
  div[style*="display: flex"][style*="justify-content: center"] {
    flex-direction: column !important;
    align-items: center !important;
    gap: 1rem !important;
  }
  
  div[style*="display: flex"][style*="justify-content: center"] .btn {
    width: 100% !important;
    max-width: 280px !important;
    text-align: center !important;
  }
  
  .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  /* Hero mobile adjustments - iPhone Compatible */
  .hero {
    height: 100vh !important;
    min-height: 100vh !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }
  
  .hero .container {
    width: 100% !important;
    height: 100% !important;
    padding: 1rem !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }
  
  .hero .section-center {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 1rem !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    height: 100% !important;
    transform: translateY(-8vh) !important;
  }
  
  .hero .section-center h1 {
    font-size: 1.875rem !important;
    line-height: 1.1 !important;
    margin: 0 0 1rem 0 !important;
  }
  
  .hero .section-center p {
    font-size: 1rem !important;
    margin: 0 0 2rem 0 !important;
    line-height: 1.5 !important;
  }
  
  .hero .section-center div[style*="display: flex"] {
    flex-direction: column !important;
    gap: 1rem !important;
    margin: 0 !important;
  }
  
  .hero .section-badge {
    margin: 0 0 1rem 0 !important;
  }
  
  /* Services grid mobile adjustments */
  .services-grid {
    gap: 1rem !important;
    margin-top: 1rem !important;
    margin-bottom: 0 !important;
  }
  
  .service-card {
    padding: 1.5rem !important;
    min-height: auto !important;
  }
  
  .service-content h3 {
    font-size: 1.25rem !important;
    margin-bottom: 0.75rem !important;
  }
  
  .service-content p {
    font-size: 0.95rem !important;
  }
  
  /* Tighten homepage section spacing on mobile */
  section.section.animated-bg {
    padding-top: 1.5rem !important;
    padding-bottom: 0.5rem !important;
  }
  
  section.about.section {
    padding-top: 0.5rem !important;
  }
  
  /* Disable service card animations */
  .service-card {
    transition: none !important;
    transform: none !important;
  }
  
  .service-card:hover {
    transform: none !important;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .service-card {
    padding: 2rem 1.5rem;
    min-height: 220px;
  }
  
  .about-grid,
  .contact-grid,
  .about-content-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  /* Contact page mobile fixes */
  .contact {
    padding: 2rem 0 !important;
    background: var(--white) !important;
    min-height: auto !important;
  }
  
  .contact-grid {
    display: block !important;
    gap: 1.5rem !important;
  }
  
  .contact-info {
    margin-bottom: 2rem !important;
  }
  
  .form {
    padding: 1.5rem !important;
    margin: 0 !important;
    background: var(--white) !important;
  }
  
  .about-stats {
    grid-template-columns: 1fr;
  }
  
  .content-card {
    padding: 1.5rem;
  }
  
  .expertise-category {
    border-radius: 12px;
  }
  
  .category-header {
    padding: 1.5rem;
  }
  
  .expertise-list {
    padding: 1.5rem;
  }
  
  .about-content-grid {
    gap: 1.5rem;
  }
  
  .content-section {
    gap: 1rem;
  }
  
  /* Make values grid single column on mobile */
  .about .section-center div[style*="grid-template-columns: repeat(3, 1fr)"] {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  
  .form {
    padding: 2rem;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }
  
  /* Reduce 3D effects on mobile for performance */
  .content-card:hover,
  .stat:hover,
  .expertise-category:hover {
    transform: translateY(-2px);
  }
  
  .nav-link:hover,
  .footer-links a:hover {
    transform: translateY(-1px);
  }
  
  .btn-primary:hover,
  .btn-secondary:hover {
    transform: translateY(-1px) scale(1.01);
  }
  
  /* Hide floating orbs on mobile for performance */
  .floating-elements,
  .floating-elements-secondary,
  .floating-elements-tertiary,
  .floating-elements-quaternary,
  .floating-elements-quinary,
  .floating-elements-footer,
  .floating-elements-section {
    display: none;
  }
  
  .animated-bg::before {
    display: none;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 2rem;
  }
  
  .service-card {
    padding: 2rem 1.5rem;
  }
  
  .about-content h2 {
    font-size: 2rem;
  }
}

/* Mobile Centering Fix */
@media screen and (max-width: 768px) {
  .header {
    background: white !important;
    backdrop-filter: none !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
  }
  
  .section-badge {
    display: none !important;
  }
  
  .hero .section-center > div[style*="display: flex"] {
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    flex-direction: column !important;
    gap: 1rem !important;
  }
  
  .btn {
    display: block !important;
    text-align: center !important;
    margin: 0.5rem auto !important;
    width: fit-content !important;
  }
  
  .section-center {
    text-align: center !important;
  }
  
  h1, h2, h3 {
    text-align: center !important;
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mb-large {
  margin-bottom: 4rem;
}

.mt-large {
  margin-top: 4rem;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

/* Skip Link for Accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary);
  color: var(--white);
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
}

.skip-link:focus {
  top: 6px;
  opacity: 1;
  pointer-events: auto;
}

/* Hero Title Animation */
@keyframes titleFloat {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-3px);
  }
}

.animate-title {
  color: var(--text-dark);
}

/* ===== COMPREHENSIVE DEVICE-RESPONSIVE DESIGN SYSTEM ===== */

/* iPhone SE and extra small devices (375px and smaller) */
@media screen and (max-width: 375px) {
  .hero {
    height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  
  .hero .container {
    height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 1rem !important;
    max-width: 100% !important;
    margin: 0 !important;
  }
  
  .hero .section-center {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  
  .hero .section-center h1 {
    font-size: 1.75rem !important;
    line-height: 1.1 !important;
    margin: 0 0 1rem 0 !important;
    font-weight: 800 !important;
  }
  
  .hero .section-center p {
    font-size: 1rem !important;
    line-height: 1.4 !important;
    margin: 0 0 2rem 0 !important;
    max-width: 90% !important;
  }
  
  .hero .section-badge {
    font-size: 0.75rem !important;
    margin: 0 0 1rem 0 !important;
    padding: 0.5rem 1rem !important;
  }
}

/* Standard iPhones (376px to 414px - iPhone 12/13/14) */
@media screen and (min-width: 376px) and (max-width: 414px) {
  .hero {
    height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  
  .hero .container {
    height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 1rem !important;
    max-width: 100% !important;
    margin: 0 !important;
  }
  
  .hero .section-center {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  
  .hero .section-center h1 {
    font-size: 2rem !important;
    line-height: 1.1 !important;
    margin: 0 0 1rem 0 !important;
    font-weight: 800 !important;
  }
  
  .hero .section-center p {
    font-size: 1rem !important;
    line-height: 1.4 !important;
    margin: 0 0 2rem 0 !important;
    max-width: 90% !important;
  }
  
  .hero .section-badge {
    font-size: 0.8rem !important;
    margin: 0 0 1rem 0 !important;
    padding: 0.5rem 1rem !important;
  }
}

/* iPhone 14 Plus and large phones (415px to 480px) */
@media screen and (min-width: 415px) and (max-width: 480px) {
  .hero {
    height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  
  .hero .container {
    height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 1.25rem !important;
    max-width: 100% !important;
    margin: 0 !important;
  }
  
  .hero .section-center {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  
  .hero .section-center h1 {
    font-size: 2.25rem !important;
    line-height: 1.1 !important;
    margin: 0 0 1rem 0 !important;
    font-weight: 800 !important;
  }
  
  .hero .section-center p {
    font-size: 1.05rem !important;
    line-height: 1.4 !important;
    margin: 0 0 2rem 0 !important;
    max-width: 90% !important;
  }
  
  .hero .section-badge {
    font-size: 0.85rem !important;
    margin: 0 0 1rem 0 !important;
    padding: 0.5rem 1.25rem !important;
  }
}

/* Small tablets and large phones landscape (481px to 767px) */
@media screen and (min-width: 481px) and (max-width: 767px) {
  .hero .section-center h1 {
    font-size: 2.5rem !important;
  }
  
  .hero .section-center p {
    font-size: 1.125rem !important;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.5rem !important;
  }
}

/* Tablets (768px to 1024px) */
@media screen and (min-width: 768px) and (max-width: 1024px) {
  .hero .section-center h1 {
    font-size: 2.75rem !important;
  }
  
  .hero .section-center p {
    font-size: 1.25rem !important;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 2rem !important;
  }
  
  .about-grid, .contact-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 3rem !important;
  }
}

/* Laptops and small desktops (1025px to 1440px) */
@media screen and (min-width: 1025px) and (max-width: 1440px) {
  .hero .section-center h1 {
    font-size: 3.25rem !important;
  }
  
  .hero .section-center p {
    font-size: 1.25rem !important;
  }
  
  .services-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 2rem !important;
  }
}

/* Large desktops (1441px and up) */
@media screen and (min-width: 1441px) {
  .hero .section-center h1 {
    font-size: 3.5rem !important;
  }
  
  .hero .section-center p {
    font-size: 1.375rem !important;
  }
  
  .services-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 2.5rem !important;
  }
}

/* Universal mobile optimizations (all devices under 768px) */
@media screen and (max-width: 767px) {
  .section {
    padding: 2rem 0 !important;
  }
  
  .services-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  
  .service-card {
    padding: 1.5rem !important;
    min-height: auto !important;
  }
  
  .about-grid, .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  
  .contact-info {
    margin-bottom: 2rem !important;
  }
  
  .form {
    padding: 1.5rem !important;
  }
  
  .hero-actions,
  div[style*="display: flex"][style*="justify-content: center"] {
    flex-direction: column !important;
    align-items: center !important;
    gap: 1rem !important;
  }
}

/* ===== CROSS-BROWSER COMPATIBILITY FIXES ===== */

/* Safari-specific fixes */
@supports (-webkit-appearance: none) {
  .hero {
    -webkit-transform: translateZ(0) !important;
    transform: translateZ(0) !important;
  }
  
  .hero .container {
    -webkit-transform: translateZ(0) !important;
    transform: translateZ(0) !important;
  }
  
  .hero .section-center {
    -webkit-transform: translateZ(0) !important;
    transform: translateZ(0) !important;
  }
}

/* Firefox-specific fixes */
@-moz-document url-prefix() {
  .hero {
    min-height: -moz-available !important;
    min-height: -webkit-fill-available !important;
    min-height: fill-available !important;
  }
}

/* Edge/IE compatibility */
@supports (-ms-ime-align: auto) {
  .hero {
    display: -ms-flexbox !important;
    display: flex !important;
    -ms-flex-align: center !important;
    align-items: center !important;
    -ms-flex-pack: center !important;
    justify-content: center !important;
  }
  
  .hero .container {
    display: -ms-flexbox !important;
    display: flex !important;
    -ms-flex-align: center !important;
    align-items: center !important;
    -ms-flex-pack: center !important;
    justify-content: center !important;
  }
  
  .hero .section-center {
    display: -ms-flexbox !important;
    display: flex !important;
    -ms-flex-direction: column !important;
    flex-direction: column !important;
    -ms-flex-align: center !important;
    align-items: center !important;
    -ms-flex-pack: center !important;
    justify-content: center !important;
  }
}

/* Webkit/Blink browser fixes */
@supports (-webkit-appearance: none) and (not (-moz-appearance: none)) {
  .hero {
    height: 100vh !important;
    height: -webkit-fill-available !important;
  }
  
  .hero .container {
    height: 100vh !important;
    height: -webkit-fill-available !important;
  }
}

/* Universal flex fallbacks for older browsers */
.hero,
.hero .container,
.hero .section-center {
  display: -webkit-box !important;
  display: -moz-box !important;
  display: -ms-flexbox !important;
  display: -webkit-flex !important;
  display: flex !important;
}

.hero .section-center {
  -webkit-box-orient: vertical !important;
  -webkit-box-direction: normal !important;
  -moz-box-orient: vertical !important;
  -moz-box-direction: normal !important;
  -webkit-flex-direction: column !important;
  -ms-flex-direction: column !important;
  flex-direction: column !important;
}

.hero,
.hero .container {
  -webkit-box-align: center !important;
  -moz-box-align: center !important;
  -ms-flex-align: center !important;
  -webkit-align-items: center !important;
  align-items: center !important;
  
  -webkit-box-pack: center !important;
  -moz-box-pack: center !important;
  -ms-flex-pack: center !important;
  -webkit-justify-content: center !important;
  justify-content: center !important;
}

.hero .section-center {
  -webkit-box-align: center !important;
  -moz-box-align: center !important;
  -ms-flex-align: center !important;
  -webkit-align-items: center !important;
  align-items: center !important;
  
  -webkit-box-pack: center !important;
  -moz-box-pack: center !important;
  -ms-flex-pack: center !important;
  -webkit-justify-content: center !important;
  justify-content: center !important;
}

/* Enhanced Modern Design Polish */

/* Premium Card Shadows & Depth */
.service-card,
[style*="background: white"][style*="border-radius"] {
  box-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.04),
    0 1px 3px rgba(0, 0, 0, 0.06) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.service-card:hover,
[style*="background: white"][style*="border-radius"]:hover {
  box-shadow: 
    0 12px 28px rgba(99, 102, 241, 0.12),
    0 4px 12px rgba(99, 102, 241, 0.08) !important;
  transform: translateY(-4px) !important;
}

/* Enhanced Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }

/* Accent Border Enhancement */
[style*="border-left: 4px solid"] {
  position: relative;
  overflow: hidden;
}

[style*="border-left: 4px solid"]::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, 
    var(--primary) 0%, 
    var(--primary-light) 50%, 
    var(--secondary) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

[style*="border-left: 4px solid"]:hover::after {
  opacity: 1;
}

/* Glassmorphism Enhancements */
[style*="backdrop-filter: blur"] {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Button Polish */
.btn {
  position: relative;
  overflow: hidden;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

/* Section Spacing Improvements */
.section {
  padding: 5rem 0 !important;
}

.section + .section {
  border-top: 1px solid rgba(226, 232, 240, 0.6);
}

/* List Item Polish */
li[style*="display: flex"] {
  transition: all 0.2s ease;
  padding-left: 0.5rem !important;
  margin-left: -0.5rem !important;
  border-radius: 6px;
}

li[style*="display: flex"]:hover {
  background: rgba(99, 102, 241, 0.04);
  padding-left: 1rem !important;
}

/* Trust Stats Enhancement */
[style*="font-size: 3rem"]:not([style*="color: var(--primary)"]) {
  background: linear-gradient(135deg, #ffffff 0%, rgba(255,255,255,0.9) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 8px rgba(255, 255, 255, 0.3));
}