/* Critical CSS for above-the-fold content */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-display: swap;
  text-rendering: optimizeSpeed;
}

img {
  max-width: 100%;
  height: auto;
  loading: lazy;
}

/* Critical styles for hero section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0284dc 0%, #0ea5e9 50%, #0369a1 100%);
  overflow: hidden;
  position: relative;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: white;
  max-width: 80rem;
  margin: 0 auto;
  padding: 1.5rem;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 900;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, #ffffff 0%, #dbeafe 50%, #ffffff 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
  line-height: 1.1;
}

/* Evendoro Branding Styles */
.evendoro-hero {
  font-family: 'Poppins', system-ui, sans-serif !important;
  font-size: 52px !important;
  font-weight: 600 !important;
}

@media (min-width: 768px) {
  .evendoro-hero {
    font-size: 62px !important;
  }
}

.evendoro-footer {
  font-family: 'Poppins', system-ui, sans-serif !important;
  font-size: 32px !important;
  font-weight: 600 !important;
}

@media (min-width: 768px) {
  .evendoro-footer {
    font-size: 36px !important;
  }
}

.hero-subtitle {
  font-size: clamp(1.25rem, 3vw, 1.875rem);
  font-weight: 300;
  color: #dbeafe;
  margin-bottom: 2rem;
}

/* Defer non-critical animations */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-fade-in {
  animation: fade-in 1s ease-in-out forwards;
}

/* Performance optimization for animations */
.will-change-transform {
  will-change: transform;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Rounded modal styling */
.rounded-modal .modal-wrapper {
  border-radius: 24px;
  overflow: hidden;
  margin: 20px;
  max-height: calc(100vh - 40px);
}

.rounded-modal ion-content {
  border-radius: 0 0 24px 24px;
}

.rounded-modal ion-header {
  border-radius: 24px 24px 0 0;
}

@media (max-width: 768px) {
  .rounded-modal .modal-wrapper {
    margin: 0;
    border-radius: 0;
    max-height: 100vh;
  }
  
  .rounded-modal ion-content,
  .rounded-modal ion-header {
    border-radius: 0;
  }
}