/* ========== RangeFarm Enhanced Styles ========== */

/* Animations */
@keyframes scroll-logos {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

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

@keyframes slide-up {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(0, 176, 116, 0.4); }
  70% { box-shadow: 0 0 0 12px rgba(0, 176, 116, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 176, 116, 0); }
}

.animate-scroll-logos {
  animation: scroll-logos 50s linear infinite;
  display: flex;
  width: max-content;
}
.animate-scroll-logos:hover {
  animation-play-state: paused;
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

/* Font smoothing */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #00B074; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #00895A; }

/* Line clamp */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Modal animations */
#modal:not(.hidden) > div:first-child {
  animation: fade-in 0.2s ease-out;
}
#modal:not(.hidden) > div:last-child > div {
  animation: slide-up 0.3s ease-out;
}

/* Image lazy load effect */
img {
  transition: opacity 0.3s ease;
}
img[loading="lazy"] {
  opacity: 0;
}
img[loading="lazy"].loaded,
img:not([loading="lazy"]) {
  opacity: 1;
}

/* Selection */
::selection {
  background-color: rgba(0, 176, 116, 0.15);
  color: #14532d;
}

/* Responsive */
@media (max-width: 768px) {
  .animate-scroll-logos { animation-duration: 30s; }
}

/* Print */
@media print {
  nav, #modal, footer, button { display: none !important; }
}
