/* ===== AECO TRACTORS — Custom Styles ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

body {
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* Smooth fade-in on scroll */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Card hover lift */
.card-hover {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.card-hover:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, #16a34a 0%, #eab308 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Pulse ring on accent buttons */
.pulse-ring {
  animation: pulseRing 2.5s infinite;
}
@keyframes pulseRing {
  0%   { box-shadow: 0 0 0 0 rgba(234, 179, 8, 0.5); }
  70%  { box-shadow: 0 0 0 14px rgba(234, 179, 8, 0); }
  100% { box-shadow: 0 0 0 0 rgba(234, 179, 8, 0); }
}

/* Shimmer overlay on hover */
.shimmer {
  position: relative;
  overflow: hidden;
}
.shimmer::after {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  transition: left 0.6s ease;
}
.shimmer:hover::after {
  left: 100%;
}

/* Modal animation */
.modal-content {
  animation: modalIn 0.35s ease forwards;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.9) translateY(24px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* Gallery item hover */
.gallery-item {
  transition: transform 0.4s ease, filter 0.4s ease;
}
.gallery-item:hover {
  transform: scale(1.03);
  filter: brightness(1.08);
}

/* Locked gallery state */
body.gallery-restricted > *:not(#galleryGate) {
  display: none !important;
}
body.gallery-restricted {
  overflow: hidden;
}
#galleryGate {
  display: none;
}
body.gallery-restricted #galleryGate {
  display: flex;
}

/* Floating WhatsApp */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 40;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.whatsapp-float:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.55);
}

/* Scroll progress */
#scrollProgress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #16a34a, #eab308);
  z-index: 9999;
  transition: width 0.1s linear;
}

/* Back to top */
#backToTop {
  position: fixed;
  bottom: 90px;
  right: 24px;
  z-index: 40;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}
#backToTop.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Quote mark decoration */
.quote-card {
  position: relative;
}
.quote-card::before {
  content: '\201C';
  font-size: 5rem;
  line-height: 1;
  font-family: Georgia, serif;
  position: absolute;
  top: -10px; left: 16px;
  opacity: 0.08;
  color: #16a34a;
}

/* Image overlay gradient */
.img-overlay {
  position: relative;
}
.img-overlay::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
  border-radius: 0 0 0.75rem 0.75rem;
  pointer-events: none;
}

/* Stat counter */
.counter-num {
  font-variant-numeric: tabular-nums;
}

/* Hero gradient overlay */
.hero-overlay {
  background: linear-gradient(135deg, rgba(2, 44, 34, 0.85) 0%, rgba(0, 0, 0, 0.4) 100%);
}

/* Section divider wave */
.wave-divider {
  position: relative;
}
.wave-divider::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 40px;
  background: white;
  clip-path: ellipse(55% 100% at 50% 100%);
}

/* Testimonial marquee scroll */
.testimonial-track {
  display: flex;
  gap: 1.75rem;
  width: max-content;
  animation: marqueeScroll 40s linear infinite;
}
.testimonial-track:hover {
  animation-play-state: paused;
}
@keyframes marqueeScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
