/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Google Fonts - Onest (modern, pleasant, professional) */
@import url('https://fonts.googleapis.com/css2?family=Onest:wght@300;400;500;600;700;800&display=swap');

/* Base styles */
html {
  font-family: 'Onest', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Image optimizations */
img {
  max-width: 100%;
  height: auto;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* Hero image optimization */
.hero-image {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

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

/* Custom utility classes for backdrop blur */
.backdrop-blur-sm {
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Hero gradient with better quality */
.hero-gradient {
  background: radial-gradient(ellipse at 50% 100%, #5A1BBC 0%, #1A0D52 100%);
}

/* Improved hero gradient with smooth transitions */
.hero-gradient-enhanced {
  background: 
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(90, 27, 188, 0.8) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 50% 100%, #5A1BBC 0%, #1A0D52 100%);
}

/* Section spacing utilities */
.py-30 {
  padding-top: 7.5rem;
  padding-bottom: 7.5rem;
}

.rounded-4xl {
  border-radius: 2rem;
}

/* Active state transitions */
.btn-active {
  transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1), 
              filter 0.15s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-active:active {
  transform: scale(0.95);
  filter: brightness(0.95);
}

/* Card hover effects */
.card-hover {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.15);
}

.card-hover:active {
  transform: scale(0.98) translateY(-2px);
}

/* Link active states */
.link-active {
  transition: opacity 0.15s ease, color 0.2s ease;
}

.link-active:active {
  opacity: 0.7;
}

/* Enhanced focus states for accessibility */
.focus-ring:focus-visible {
  outline: 2px solid rgb(59 130 246);
  outline-offset: 2px;
}

/* Smooth transitions for interactive elements */
.interactive-smooth {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Text selection color */
::selection {
  background-color: rgba(90, 136, 247, 0.3);
  color: inherit;
}

/* Improved typography */
.text-balance {
  text-wrap: balance;
}

/* Gradient text utility */
.gradient-text {
  background: linear-gradient(135deg, #5A88F7 0%, #6366f1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Glow effect for important elements */
.glow-blue {
  box-shadow: 0 0 20px rgba(90, 136, 247, 0.3);
}

/* Stagger animation delays */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }

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