/* Mobile-first responsive styles */

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

/* Better touch targets on mobile — only standalone interactive elements */
@media (max-width: 768px) {
  nav button,
  nav a,
  .touch-target {
    min-height: 44px;
  }
}

/* Prevent horizontal scroll */
body {
  overflow-x: hidden;
}

/* Animation classes for Tailwind */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

.animate-in {
  animation: fadeIn 0.5s ease-out forwards, slideInFromBottom 0.5s ease-out forwards;
}

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

.slide-in-from-bottom-4 {
  animation: slideInFromBottom 0.5s ease-out forwards;
}

.slide-in-from-bottom-8 {
  animation: slideInFromBottom 0.7s ease-out forwards;
}

/* Logo marquee — infinite horizontal scroll under the hero */
.logo-marquee {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0, black 8%, black 92%, transparent 100%);
}

.logo-marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: logoMarquee 38s linear infinite;
}

.logo-marquee:hover .logo-marquee-track {
  animation-play-state: paused;
}

@keyframes logoMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .logo-marquee-track {
    animation: none;
  }
}


/* Reduced 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;
  }
}

/* Focus states for accessibility */
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid #627EEA;
  outline-offset: 2px;
}

/* Hide decorative elements on small screens for cleaner mobile UX */
@media (max-width: 640px) {
  .decorative-element {
    display: none;
  }
}

/* Improve text readability on mobile */
@media (max-width: 640px) {
  body {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }
}

/* Safe area insets for notched phones */
@supports (padding: max(0px)) {
  body {
    padding-left: max(0px, env(safe-area-inset-left));
    padding-right: max(0px, env(safe-area-inset-right));
    padding-bottom: max(0px, env(safe-area-inset-bottom));
  }
}
