body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

code {
  font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
    monospace;
}
/* Reset and Base Styles */
.App {
  text-align: center;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
}

/* Remove default margins and paddings for better MUI integration */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Logo Animation */
@media (prefers-reduced-motion: no-preference) {
  .App-logo {
    animation: App-logo-spin infinite 20s linear;
  }
}

/* Logo Animation */
.App-logo {
  height: 50px;
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .App-logo {
    animation: App-logo-spin infinite 20s linear;
  }
}

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

/* Custom MUI Theme Overrides */
.MuiContainer-root {
  padding-left: 24px !important;
  padding-right: 24px !important;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .MuiContainer-root {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  
  .MuiTab-root {
    min-width: 80px !important;
    padding: 6px 8px !important;
  }
  
  .MuiTab-root .MuiSvgIcon-root {
    font-size: 1.2rem !important;
  }
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 600px) {
  .MuiContainer-root {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  
  /* Optimize hero section for mobile */
  .hero-particles {
    display: none; /* Hide particles on mobile for better performance */
  }
  
  /* Better spacing for mobile statistics */
  .MuiGrid-item {
    padding: 8px !important;
  }
  
  /* Smaller text sizes for mobile */
  .MuiTypography-h1 {
    font-size: 2rem !important;
    line-height: 1.2 !important;
  }
  
  .MuiTypography-h3 {
    font-size: 1.8rem !important;
  }
  
  .MuiTypography-h5 {
    font-size: 1.3rem !important;
  }
  
  /* Better button sizing for mobile */
  .MuiButton-root {
    padding: 12px 24px !important;
    font-size: 0.9rem !important;
  }
  
  /* Optimize card spacing for mobile */
  .MuiCard-root {
    margin-bottom: 16px !important;
  }
}

/* Tablet-specific optimizations */
@media (min-width: 601px) and (max-width: 960px) {
  .hero-particles .particle {
    opacity: 0.6; /* Reduce particle opacity on tablets */
  }
}

/* Ensure MUI components use theme colors and improve readability */
.MuiTypography-root {
  text-shadow: none !important;
  letter-spacing: 0.02em !important;
}

/* Custom scrollbar for any overflow content */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 135, 68, 0.5);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 135, 68, 0.7);
}

/* Accessibility Improvements */
.MuiCard-root {
  transition: all 0.3s ease !important;
}

.MuiCard-root:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3) !important;
}

/* Ensure proper focus styles for accessibility */
.MuiButton-root:focus-visible,
.MuiTab-root:focus-visible {
  outline: 2px solid #FF8744 !important;
  outline-offset: 2px !important;
}

/* Advanced accessibility and performance styles */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip to main content link for screen readers */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: #FF8744;
  color: #000000; /* Changed to black for WCAG AA compliance (4.84:1 contrast ratio) */
  padding: 8px;
  text-decoration: none;
  z-index: 1000;
  border-radius: 4px;
  transition: top 0.3s;
  font-weight: 600; /* Enhance readability */
}

.skip-link:focus {
  top: 6px;
}

/* Improve focus indicators for better accessibility */
.MuiButton-root:focus-visible,
.MuiIconButton-root:focus-visible {
  outline: 3px solid #FF8744 !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 2px rgba(255, 135, 68, 0.2) !important;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .MuiCard-root {
    border-width: 3px !important;
  }
  
  .MuiTypography-h3,
  .MuiTypography-h5,
  .MuiTypography-h6 {
    font-weight: 700 !important;
  }
}

/* High contrast improvements */
@media (prefers-contrast: high) {
  .particle {
    display: none; /* Hide decorative particles in high contrast mode */
  }
  
  .MuiCard-root {
    border-width: 2px !important;
    border-color: currentColor !important;
  }
  
  .MuiButton-root {
    border-width: 2px !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;
  }
  
  .MuiGrow-root,
  .MuiFade-root {
    transition: none !important;
  }
}

/* Print styles */
@media print {
  .hero-particles,
  .MuiAppBar-root,
  .MuiButton-root,
  .particle {
    display: none !important;
  }
  
  .MuiContainer-root {
    max-width: none !important;
    padding: 0 !important;
  }
  
  .MuiTypography-root {
    color: black !important;
  }
}

/* Bounce Animation for Hero Section Arrow */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0) translateX(-50%);
  }
  40% {
    transform: translateY(-8px) translateX(-50%);
  }
  60% {
    transform: translateY(-4px) translateX(-50%);
  }
}

/* Custom animation utilities */
.bounce {
  animation: bounce 2s infinite;
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
  /* Fix Firefox scroll-to-bottom issue by disabling scroll anchoring */
  overflow-anchor: none;
}

/* Re-enable scroll anchoring for specific containers if needed */
body {
  overflow-anchor: auto;
}

/* Additional hover effects for better interactivity */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(255, 135, 68, 0.3);
}

/* Enhanced card animations */
.feature-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* Gradient text effects */
.gradient-text {
  background: linear-gradient(135deg, #FF8744 0%, #4ECDC4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Floating animation for decorative elements */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

.float {
  animation: float 6s ease-in-out infinite;
}

/* Pulse animation for call-to-action buttons */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 135, 68, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(255, 135, 68, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 135, 68, 0);
  }
}

.pulse {
  animation: pulse 2s infinite;
}

/* Animated Background Particles using CSS */
.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 135, 68, 0.6);
  animation: float-particle linear infinite;
}

.particle:nth-child(1) {
  width: 4px;
  height: 4px;
  left: 10%;
  animation-duration: 15s;
  animation-delay: 0s;
}

.particle:nth-child(2) {
  width: 6px;
  height: 6px;
  left: 20%;
  animation-duration: 18s;
  animation-delay: 2s;
  background: rgba(78, 205, 196, 0.5);
}

.particle:nth-child(3) {
  width: 3px;
  height: 3px;
  left: 30%;
  animation-duration: 12s;
  animation-delay: 4s;
}

.particle:nth-child(4) {
  width: 5px;
  height: 5px;
  left: 40%;
  animation-duration: 20s;
  animation-delay: 1s;
  background: rgba(255, 135, 68, 0.4);
}

.particle:nth-child(5) {
  width: 2px;
  height: 2px;
  left: 50%;
  animation-duration: 14s;
  animation-delay: 3s;
  background: rgba(78, 205, 196, 0.6);
}

.particle:nth-child(6) {
  width: 4px;
  height: 4px;
  left: 60%;
  animation-duration: 16s;
  animation-delay: 5s;
}

.particle:nth-child(7) {
  width: 3px;
  height: 3px;
  left: 70%;
  animation-duration: 13s;
  animation-delay: 2s;
  background: rgba(255, 135, 68, 0.3);
}

.particle:nth-child(8) {
  width: 5px;
  height: 5px;
  left: 80%;
  animation-duration: 17s;
  animation-delay: 4s;
  background: rgba(78, 205, 196, 0.4);
}

.particle:nth-child(9) {
  width: 2px;
  height: 2px;
  left: 90%;
  animation-duration: 19s;
  animation-delay: 1s;
}

.particle:nth-child(10) {
  width: 6px;
  height: 6px;
  left: 25%;
  animation-duration: 21s;
  animation-delay: 6s;
  background: rgba(255, 135, 68, 0.5);
}

@keyframes float-particle {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) scale(1);
    opacity: 0;
  }
}

/* Performance optimization for reduced motion */
@media (prefers-reduced-motion: reduce) {
  .particle,
  .float,
  .bounce,
  .pulse,
  .App-logo {
    animation: none !important;
  }
  
  .MuiCard-root:hover {
    transform: none !important;
  }
  
  .feature-card:hover {
    transform: none !important;
  }
}

/* Dark mode enhancements */
@media (prefers-color-scheme: dark) {
  .particle {
    filter: brightness(1.2);
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .MuiCard-root:hover,
  .feature-card:hover {
    transform: none !important;
    box-shadow: inherit !important;
  }
  
  /* Larger touch targets */
  .MuiButton-root,
  .MuiIconButton-root {
    min-height: 48px !important;
    min-width: 48px !important;
  }
}
