/* Custom CSS Variables */
:root {
  --primary: #ED6261;
  --primary-dark: #D94948;
  --gray-50: #FAFAFA;
  --gray-100: #F2F2F2;
  --gray-300: #D8D8D8;
  --gray-500: #BCBCBC;
  --gray-900: #1A1A1A;
}

/* Global Font Settings */
* {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Consistent Typography */
h1 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
}

h2 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.3;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.4;
}

h4 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
}

p {
  font-size: 1rem;
  line-height: 1.6;
}

/* Consistent Icon Sizes */
i[data-feather] {
  width: 1.5rem;
  height: 1.5rem;
}

/* Consistent Button Sizes */
button, .btn, a[class*="bg-\[#ED6261\]"] {
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
}

/* Consistent Spacing */
section {
  padding: 5rem 0;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}

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

/* Animations - matches React Framer Motion */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes floatReverse {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(20px);
  }
}

/* Exact match for React Framer Motion animations */
@keyframes floatUpDown {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes floatDownUp {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(20px);
  }
}

/* Animation Classes */
.fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

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

.animate-pulse-custom {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

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

.float-animation-reverse {
  animation: floatDownUp 3s ease-in-out infinite;
  animation-delay: 1.5s;
}

/* Delay Classes for Staggered Animations */
.delay-100 {
  animation-delay: 0.1s;
  opacity: 0;
}

.delay-200 {
  animation-delay: 0.2s;
  opacity: 0;
}

.delay-300 {
  animation-delay: 0.3s;
  opacity: 0;
}

.delay-400 {
  animation-delay: 0.4s;
  opacity: 0;
}

.delay-500 {
  animation-delay: 0.5s;
  opacity: 0;
}

.delay-600 {
  animation-delay: 0.6s;
  opacity: 0;
}

.delay-700 {
  animation-delay: 0.7s;
  opacity: 0;
}

.delay-800 {
  animation-delay: 0.8s;
  opacity: 0;
}

.delay-900 {
  animation-delay: 0.9s;
  opacity: 0;
}

.delay-1000 {
  animation-delay: 1.0s;
  opacity: 0;
}

.delay-1100 {
  animation-delay: 1.1s;
  opacity: 0;
}

.delay-1200 {
  animation-delay: 1.2s;
  opacity: 0;
}

.delay-1300 {
  animation-delay: 1.3s;
  opacity: 0;
}

.delay-1400 {
  animation-delay: 1.4s;
  opacity: 0;
}

/* Active Navigation Link */
.nav-link.active {
  color: var(--primary);
  background-color: rgba(237, 98, 97, 0.1);
}

.nav-link:not(.active) {
  color: var(--gray-900);
}

.nav-link:not(.active):hover {
  color: var(--primary);
  background-color: var(--gray-100);
}

/* Scroll Reveal - matches React whileInView animations */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Slide animations for About, Privacy, Terms pages - matches React x: -30 and x: 30 */
.scroll-reveal.slide-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-reveal.slide-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

.scroll-reveal.slide-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-reveal.slide-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

/* Feature cards animation - matches React delay: index * 0.1, duration: 0.5s */
.scroll-reveal.delay-feature-0 {
  transition-delay: 0s;
  transition-duration: 0.5s;
}

.scroll-reveal.delay-feature-1 {
  transition-delay: 0s;
  transition-duration: 0.5s;
}

.scroll-reveal.delay-feature-2 {
  transition-delay: 0s;
  transition-duration: 0.5s;
}

.scroll-reveal.delay-feature-3 {
  transition-delay: 0s;
  transition-duration: 0.5s;
}

/* Scale animation for phone mockup - matches React scale: 0.8 to 1 */
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.scale-in {
  animation: scaleIn 0.8s ease-out forwards;
  animation-delay: 0.2s;
  opacity: 0;
}

/* Hero left content - matches React initial animate (no delay) */
.hero-left {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.6s ease-out forwards;
}

/* Stats animation - matches React delay: 0.2 + index * 0.1 */
.stats-item {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUpSmall 0.6s ease-out forwards;
}

/* Hover Effects */
.hover-scale {
  transition: transform 0.3s ease;
}

.hover-scale:hover {
  transform: scale(1.05);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

