/* SyncGaze Connect - Comprehensive Design System */
/* Base reset styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

/* Base styles */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(to bottom right, #eef2ff, #ffffff, #f3e8ff);
  color: #1f2937;
  overflow-x: hidden;
}

/* SyncGaze Connect Advanced Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  background: linear-gradient(135deg, #1e3a8a, #7c3aed, #1e40af);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 1rem;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.75rem;
}

h4 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.text-gradient {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.text-gradient-blue {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.text-gradient-purple {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.text-shadow {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* SyncGaze Connect Advanced Button System */
.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 1rem;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  transform: translateY(0);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

.btn-secondary {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 1rem;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(240, 147, 251, 0.4);
  transform: translateY(0);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(240, 147, 251, 0.6);
}

.btn-purple {
  background: linear-gradient(135deg, #A020F0 0%, #8B5CF6 100%);
  color: white;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 1rem;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(160, 32, 240, 0.4);
  transform: translateY(0);
}

.btn-purple:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(160, 32, 240, 0.6);
}

.btn-green {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 1rem;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
  transform: translateY(0);
}

.btn-green:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.6);
}

.btn-outline {
  background: transparent;
  color: #667eea;
  border: 2px solid #667eea;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 1rem;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  transform: translateY(0);
}

.btn-outline:hover {
  background: #667eea;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* SyncGaze Connect Advanced Card System */
.modern-card {
  background: linear-gradient(135deg, #ffffff, #f3f4f6);
  border-radius: 1.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  transform: translateY(0);
}

.modern-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.card {
  background: linear-gradient(135deg, #ffffff, #f3f4f6);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  transform: translateY(0);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.card-hover:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 25px 50px rgba(102, 126, 234, 0.3);
}

.glass-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 1.5rem;
  padding: 2rem;
  transition: all 0.3s ease;
  transform: translateY(0);
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-5px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
}

.section-padding {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

@media (min-width: 1024px) {
  .section-padding {
    padding-top: 8rem;
    padding-bottom: 8rem;
  }
}

.container-custom {
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container-custom {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container-custom {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* SyncGaze Connect Navigation Enhancements */
.nav-link {
  transition: all 0.3s ease;
  position: relative;
  color: #4b5563;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 0;
}

.nav-link:hover {
  color: #667eea;
  transform: translateY(-1px);
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 50%;
  background: linear-gradient(90deg, #667eea, #764ba2);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 100%;
}

/* Navigation Bar Styles */
#navbar {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

#navbar.navbar-scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* Mobile Menu Styles */
#mobile-menu {
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

#mobile-menu-panel {
  background: #ffffff;
  box-shadow: -10px 0 25px rgba(0, 0, 0, 0.15);
}

/* Mobile Menu Button */
#mobile-menu-btn {
  z-index: 51;
  position: relative;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

#mobile-menu-btn:hover {
  background-color: rgba(59, 130, 246, 0.1);
}

#mobile-menu-btn:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
}

#mobile-menu-btn:active {
  background-color: rgba(59, 130, 246, 0.2);
  transform: scale(0.95);
}

/* Ensure the SVG inside doesn't interfere with touch events */
#mobile-menu-btn svg {
  pointer-events: none;
}

/* Mobile Menu Close Button */
#mobile-menu-close {
  z-index: 62;
}

#mobile-menu-close:hover {
  background-color: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

/* Mobile Navigation Links */
.mobile-nav-link {
  border-radius: 8px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  font-weight: 500;
}

.mobile-nav-link:hover {
  background-color: #eff6ff;
  color: #2563eb;
}

.mobile-nav-link svg {
  transition: color 0.2s ease;
}

.mobile-nav-link:hover svg {
  color: #2563eb;
}

/* Ensure proper z-index layering */
#mobile-menu {
  z-index: 60 !important;
}

#mobile-menu-panel {
  z-index: 61 !important;
}

/* Mobile responsive adjustments */
@media (max-width: 480px) {
  #mobile-menu-panel {
    width: 100vw;
    max-width: none;
  }
  
  /* Ensure mobile menu button is easily tappable on small screens */
  #mobile-menu-btn {
    min-width: 48px;
    min-height: 48px;
    padding: 12px;
  }
}

/* Smooth transitions */
#mobile-menu {
  transition: opacity 0.3s ease;
}

#mobile-menu-panel {
  transition: transform 0.3s ease-in-out;
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  #mobile-menu,
  #mobile-menu-panel {
    transition: none;
  }
}

/* iOS Safari specific fixes */
@supports (-webkit-touch-callout: none) {
  #mobile-menu-btn {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    -webkit-appearance: none;
    appearance: none;
  }
  
  #mobile-menu {
    position: fixed;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }
}

/* Android Chrome specific fixes */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
  #mobile-menu-btn {
    -webkit-tap-highlight-color: transparent;
  }
}

/* Device-specific optimizations */
.mobile-device #mobile-menu-btn {
  min-width: 48px !important;
  min-height: 48px !important;
  padding: 12px !important;
  touch-action: manipulation !important;
}

.ios-device #mobile-menu-btn {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0) !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

.android-device #mobile-menu-btn {
  -webkit-tap-highlight-color: transparent !important;
  outline: none !important;
}

/* Fallback for problematic mobile browsers */
.mobile-device #mobile-menu-btn:before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  z-index: -1;
}

/* Legacy sticky nav class for compatibility */
.nav-sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

/* Dropdown menus */
.dropdown-menu {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-radius: 1rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  color: #4b5563;
  text-decoration: none;
  display: block;
}

.dropdown-item:hover {
  background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
  color: #667eea;
  transform: translateX(5px);
}

/* SyncGaze Connect Comprehensive Background & Particle System */
.bg-animated {
  background: linear-gradient(-45deg, #667eea, #764ba2, #f093fb, #f5576c);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
}

/* Enhanced Background particles matching SyncGaze Connect */
.bg-particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}

.particle {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: multiply;
  filter: blur(60px);
  opacity: 0.15;
}

.particle-1 {
  top: 10%;
  left: 10%;
  width: 18rem;
  height: 18rem;
  background: #a855f7;
  animation: float 8s ease-in-out infinite;
}

.particle-2 {
  top: 30%;
  right: 10%;
  width: 18rem;
  height: 18rem;
  background: #fbbf24;
  animation: floatSlow 12s ease-in-out infinite;
  animation-delay: 2s;
}

.particle-3 {
  bottom: 30%;
  left: 20%;
  width: 18rem;
  height: 18rem;
  background: #ec4899;
  animation: floatReverse 10s ease-in-out infinite;
  animation-delay: 4s;
}

/* Tooltip System */
.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 120px;
  background-color: #1e40af;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px 0;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -60px;
  opacity: 0;
  transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

/* Chatbot Styles (from SyncGaze Connect) */
.chatbot-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  z-index: 99999;
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
}

.chatbot-float:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
}

.chatbot-container {
  position: fixed;
  bottom: 110px;
  right: 30px;
  width: 400px;
  height: 500px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  display: none;
  flex-direction: column;
  z-index: 99998;
  overflow: hidden;
  animation: slideUp 0.3s ease-out;
  border: 1px solid rgba(102, 126, 234, 0.3);
}

.chatbot-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 18px 20px;
  font-weight: bold;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chatbot-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.message {
  max-width: 85%;
  padding: 14px 18px;
  border-radius: 18px;
  word-wrap: break-word;
  margin-bottom: 14px;
  font-size: 15px;
  line-height: 1.5;
}

.bot-message {
  background: linear-gradient(135deg, #f5f7fa 0%, #e8eaf6 100%);
  color: #333;
  align-self: flex-start;
  border-top-left-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.user-message {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  align-self: flex-end;
  border-top-right-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.chatbot-input {
  padding: 20px;
  border-top: 1px solid #eee;
  display: flex;
  gap: 10px;
}

.chatbot-input input {
  flex: 1;
  padding: 12px;
  border: 2px solid #eee;
  border-radius: 25px;
  outline: none;
  transition: border-color 0.3s ease;
}

.chatbot-input input:focus {
  border-color: #667eea;
}

.send-btn {
  padding: 12px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.send-btn:hover {
  transform: scale(1.05);
}

/* SyncGaze Connect Utility Classes & Animation Delays */
.animation-delay-200 {
  animation-delay: 200ms;
}

.animation-delay-400 {
  animation-delay: 400ms;
}

.animation-delay-600 {
  animation-delay: 600ms;
}

.animation-delay-2000 {
  animation-delay: 2s;
}

.animation-delay-4000 {
  animation-delay: 4s;
}

.animation-delay-6000 {
  animation-delay: 6s;
}

/* Enhanced Opacity Classes */
.opacity-5 {
  opacity: 0.05;
}

.opacity-8 {
  opacity: 0.08;
}

.opacity-20 {
  opacity: 0.2;
}

/* Enhanced Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #764ba2, #667eea);
}

/* Section Utilities */
.section-padding {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

@media (min-width: 1024px) {
  .section-padding {
    padding-top: 8rem;
    padding-bottom: 8rem;
  }
}

.container-custom {
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container-custom {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container-custom {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Loading & States */
.loading-spinner {
  animation: spin 1s linear infinite;
  border-radius: 50%;
  height: 2rem;
  width: 2rem;
  border: 2px solid transparent;
  border-top: 2px solid #667eea;
  border-right: 2px solid #667eea;
}

.loading-dots {
  display: inline-block;
}

.loading-dots::after {
  content: '';
  animation: dots 1.5s infinite;
}

@keyframes dots {
  0%, 20% { content: ''; }
  40% { content: '.'; }
  60% { content: '..'; }
  80%, 100% { content: '...'; }
}

/* Mobile responsive utilities */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

@media (min-width: 1024px) {
  .mobile-menu {
    display: none !important;
  }
  
  /* Hide mobile menu button on desktop/laptop screens */
  #mobile-menu-btn {
    display: none !important;
  }
  
  /* Hide mobile menu panel on desktop/laptop screens */
  #mobile-menu-panel {
    display: none !important;
  }
}

.mobile-menu-panel {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  height: 100%;
  width: 20rem;
  max-width: 85vw;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-menu-panel.open {
  transform: translateX(0);
}

/* Mobile Menu Responsive Adjustments */
@media (max-width: 480px) {
  .mobile-menu-panel {
    width: 100vw;
    max-width: none;
  }
  
  #navbar .container-fluid,
  #navbar > div {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  #navbar img {
    height: 2rem;
  }
  
  .mobile-nav-link {
    padding: 1rem;
    font-size: 1.1rem;
  }
}

@media (max-width: 360px) {
  #navbar > div {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  
  #navbar img {
    height: 1.75rem;
  }
}

/* Ensure navbar is always visible and properly positioned */
#navbar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 50 !important;
}

/* Mobile navigation improvements */
@media (max-width: 1023px) {
  #mobile-menu-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 51;
    min-width: 44px;
    min-height: 44px;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
  }
  
  #mobile-menu-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
  }
  
  #mobile-menu-btn:active {
    background-color: rgba(0, 0, 0, 0.1);
    transform: scale(0.95);
  }
  
  /* Hide desktop navigation on mobile */
  .hidden.lg\\:flex {
    display: none !important;
  }
  
  /* Ensure mobile logo is visible */
  #navbar .flex.items-center a img {
    display: block !important;
    max-height: 2.5rem;
  }
  
  /* Mobile menu panel adjustments */
  #mobile-menu-panel {
    position: relative;
    z-index: 61;
  }
  
  /* Mobile navbar container spacing */
  #navbar .max-w-7xl {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  /* Mobile navigation flex container */
  #navbar .flex.justify-between {
    gap: 0.75rem;
    align-items: center;
  }
  
  /* Logo container on mobile */
  #navbar .flex.items-center.flex-shrink-0 {
    flex: 1;
    min-width: 0;
  }
  
  #navbar .flex.items-center.flex-shrink-0 img {
    max-width: 100%;
    height: auto;
  }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
  #navbar .max-w-7xl {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  
  #navbar .py-4 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }
  
  #navbar img {
    height: 2rem !important;
    max-height: 2rem !important;
  }
  
  #mobile-menu-btn {
    min-width: 40px !important;
    min-height: 40px !important;
    padding: 0.375rem !important;
  }
  
  #mobile-menu-btn svg {
    width: 1.25rem;
    height: 1.25rem;
  }
}

/* Fix for Safari mobile */
@supports (-webkit-touch-callout: none) {
  #navbar {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }
  
  .mobile-menu-panel {
    -webkit-transform: translateX(100%);
    transform: translateX(100%);
  }
}

/* Touch improvements for mobile */
@media (hover: none) and (pointer: coarse) {
  .mobile-nav-link:hover {
    background: linear-gradient(135deg, #eff6ff, #f3e8ff);
  }
  
  #mobile-menu-btn:hover {
    background-color: rgba(59, 130, 246, 0.1);
  }
  
  /* Larger touch targets */
  .mobile-nav-link {
    min-height: 48px;
    display: flex;
    align-items: center;
  }
  
  #mobile-menu-btn {
    min-width: 48px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* Enhanced blur support for webkit browsers */
@supports (backdrop-filter: blur(20px)) {
  #navbar {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  
  #navbar.navbar-scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }
  
  .mobile-menu-panel {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }
}

/* Fallback for browsers that don't support backdrop-filter */
@supports not (backdrop-filter: blur(20px)) {
  #navbar {
    background: rgba(255, 255, 255, 0.95);
  }
  
  #navbar.navbar-scrolled {
    background: rgba(255, 255, 255, 0.98);
  }
  
  .mobile-menu-panel {
    background: rgba(255, 255, 255, 0.98);
  }
}

/* SyncGaze Connect Enhanced Form System */
.form-input {
  width: 100%;
  padding: 1rem 1.25rem;
  border-radius: 1rem;
  border: 2px solid #e5e7eb;
  outline: none;
  transition: all 0.3s ease;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
}

.form-input:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-1px);
}

.form-textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  border-radius: 1rem;
  border: 2px solid #e5e7eb;
  outline: none;
  transition: all 0.3s ease;
  resize: vertical;
  min-height: 120px;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  font-family: 'Inter', sans-serif;
}

.form-textarea:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-1px);
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #374151;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Loading animations */
.loading-spinner {
  animation: spin 1s linear infinite;
  border-radius: 50%;
  height: 2rem;
  width: 2rem;
  border-bottom: 2px solid #3366FF;
}

/* Responsive navigation */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
}

@media (min-width: 1024px) {
  .mobile-menu {
    display: none;
  }
}

.mobile-menu-panel {
  background-color: white;
  height: 100%;
  width: 20rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: translateX(0);
  transition: transform 0.3s ease-in-out;
}

/* SyncGaze Connect Specialized Component Styles */

/* Hero Section Enhancements */
.hero-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  background: linear-gradient(135deg, #1e3a8a, #7c3aed, #1e40af);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  color: #6b7280;
  max-width: 42rem;
  line-height: 1.6;
}

/* Feature Grid System */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  border-radius: 1.5rem 1.5rem 0 0;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.feature-icon {
  width: 3rem;
  height: 3rem;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.product-card {
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
}

.product-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* Testimonial Styles */
.testimonial-card {
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 4rem;
  color: #667eea;
  opacity: 0.3;
  font-family: serif;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.testimonial-stars {
  display: flex;
  gap: 0.25rem;
  color: #f59e0b;
  margin-bottom: 1rem;
}

/* Blog Card Styles */
.blog-card {
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
}

.blog-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.blog-tag {
  display: inline-block;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  padding: 0.375rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* Pricing Card System */
.pricing-card {
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  border-radius: 1.5rem;
  padding: 2.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.pricing-card-featured {
  border: 2px solid #667eea;
  transform: scale(1.05);
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
}

.pricing-card-featured .pricing-card-title,
.pricing-card-featured .pricing-card-price {
  color: white;
}

.pricing-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 700;
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}

/* Footer Enhancements */
.footer-link {
  color: #9ca3af;
  transition: all 0.3s ease;
  text-decoration: none;
  display: flex;
  align-items: center;
  padding: 0.5rem 0;
}

.footer-link:hover {
  color: #667eea;
  transform: translateX(5px);
}

.footer-link i {
  margin-right: 0.5rem;
  transition: color 0.3s ease;
}

.footer-link:hover i {
  color: #667eea;
}

/* Social Media Links */
.social-link {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  color: white;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.social-link:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Call-to-Action Sections */
.cta-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 2rem;
  padding: 4rem 2rem;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.5;
}

/* SyncGaze Connect Design System - Advanced Keyframe Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 20px rgba(102, 126, 234, 0.3); }
  50% { box-shadow: 0 0 30px rgba(102, 126, 234, 0.6); }
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes floatSlow {
  0%, 100% { transform: translateY(0px) translateX(0px); }
  33% { transform: translateY(-30px) translateX(15px); }
  66% { transform: translateY(-15px) translateX(-15px); }
}

@keyframes floatReverse {
  0%, 100% { transform: translateY(0px) translateX(0px); }
  33% { transform: translateY(25px) translateX(-20px); }
  66% { transform: translateY(40px) translateX(10px); }
}

/* SyncGaze Connect Animation Classes */
.fade-in {
  animation: fadeIn 1s ease-in-out;
}

.fadeIn {
  animation: fadeIn 1s ease-in-out;
}

.pulse-hover:hover {
  animation: pulse 1.5s infinite;
}

.floating {
  animation: float 3s ease-in-out infinite;
}

.glow-effect {
  animation: glow 2s ease-in-out infinite;
}

.animate-fadeIn {
  animation: fadeIn 0.8s ease-out;
}

.animate-slideUp {
  animation: slideUp 0.6s ease-out;
}

.animate-scaleIn {
  animation: scaleIn 0.5s ease-out;
}

.animate-float {
  animation: float 8s ease-in-out infinite;
}

.animate-float-slow {
  animation: floatSlow 12s ease-in-out infinite;
}

.animate-float-reverse {
  animation: floatReverse 10s ease-in-out infinite;
}

.animate-pulse-slow {
  animation: pulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Background particle animations */
.bg-particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}

.particle {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: multiply;
  filter: blur(60px);
  opacity: 0.15;
}

.particle-1 {
  top: 10%;
  left: 10%;
  width: 300px;
  height: 300px;
  background: linear-gradient(45deg, #8B5CF6, #A855F7);
  animation: float 8s ease-in-out infinite;
}

.particle-2 {
  top: 30%;
  right: 10%;
  width: 250px;
  height: 250px;
  background: linear-gradient(45deg, #F59E0B, #F97316);
  animation: floatSlow 12s ease-in-out infinite;
  animation-delay: 2s;
}

.particle-3 {
  bottom: 30%;
  left: 20%;
  width: 280px;
  height: 280px;
  background: linear-gradient(45deg, #EC4899, #F472B6);
  animation: floatReverse 10s ease-in-out infinite;
  animation-delay: 4s;
}

.particle-4 {
  top: 60%;
  right: 30%;
  width: 200px;
  height: 200px;
  background: linear-gradient(45deg, #3B82F6, #6366F1);
  animation: float 6s ease-in-out infinite;
  animation-delay: 6s;
}

.particle-5 {
  bottom: 10%;
  right: 50%;
  width: 180px;
  height: 180px;
  background: linear-gradient(45deg, #10B981, #059669);
  animation: floatSlow 14s ease-in-out infinite;
  animation-delay: 1s;
}

/* Enhanced floating effects for inline particles */
.animate-float {
  animation: float 8s ease-in-out infinite;
}

.animate-float-slow {
  animation: floatSlow 12s ease-in-out infinite;
}

.animate-float-reverse {
  animation: floatReverse 10s ease-in-out infinite;
}

/* Additional mobile menu visibility controls for desktop/laptop screens */
@media screen and (min-width: 1024px) {
  /* Force hide mobile menu elements on desktop/laptop */
  button[id="mobile-menu-btn"],
  #mobile-menu-btn,
  .mobile-menu-button,
  [aria-label*="mobile menu"],
  [aria-controls="mobile-menu"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
  }
  
  /* Force hide mobile menu panels */
  div[id="mobile-menu"],
  #mobile-menu,
  div[id="mobile-menu-panel"],
  #mobile-menu-panel,
  .mobile-menu,
  .mobile-menu-panel {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
}