/* Greenway Theme - Animations & Utilities */

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #334155;
  margin: 0;
}

/* Scroll-triggered animations */
.scroll-animate {
  opacity: 0;
}
.scroll-animate.is-visible.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out both;
}
.scroll-animate.is-visible.animate-slide-in-left {
  animation: slideInLeft 0.6s ease-out both;
}
.scroll-animate.is-visible.animate-slide-in-right {
  animation: slideInRight 0.6s ease-out both;
}
.scroll-animate.is-visible.animate-pulse-glow {
  animation: pulse-glow 2s infinite;
}

/* Keyframes */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-50px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(107, 176, 56, 0.7); }
  50% { box-shadow: 0 0 0 10px rgba(107, 176, 56, 0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

/* Standalone animation classes (non-scroll) */
.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out both;
}
.animate-float {
  animation: float 3s ease-in-out infinite;
}
.animate-pulse-glow {
  animation: pulse-glow 2s infinite;
}

/* Utility classes */
.gradient-text {
  background: linear-gradient(135deg, #8ac742 0%, #F5A623 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn-gradient-hover {
  position: relative;
  overflow: hidden;
}
.btn-gradient-hover::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}
.btn-gradient-hover:hover::before {
  left: 100%;
}

.hover-lift {
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.hover-scale {
  transition: transform 0.3s ease-out;
}
.hover-scale:hover {
  transform: scale(1.05);
}

.icon-grow {
  transition: all 0.3s ease-out;
}
.icon-grow:hover {
  transform: scale(1.2) rotate(5deg);
}

/* Details/Summary for FAQ */
details summary::-webkit-details-marker {
  display: none;
}
