/* 23G — Tarım temalı sürükleyici animasyonlar */

/* --- Gökyüzü & güneş --- */
.motion-sky {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(20, 50, 80, 0.35) 0%,
    rgba(30, 70, 50, 0.15) 45%,
    transparent 70%
  );
}

.motion-sun {
  position: absolute;
  top: 6%;
  right: 10%;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 230, 140, 0.5) 0%, rgba(255, 200, 80, 0.15) 55%, transparent 72%);
  animation: farm-sun-pulse 8s ease-in-out infinite;
}

.motion-sun::before {
  content: "☀️";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  opacity: 0.55;
  animation: farm-sun-spin 48s linear infinite;
}

@keyframes farm-sun-pulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.08); opacity: 0.95; }
}

@keyframes farm-sun-spin {
  to { transform: rotate(360deg); }
}

/* --- Tarla tepeleri --- */
.motion-hills {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 38%;
  pointer-events: none;
}

.motion-hill {
  position: absolute;
  left: -10%;
  right: -10%;
  border-radius: 50% 50% 0 0;
}

.motion-hill--far {
  bottom: 8%;
  height: 28%;
  background: linear-gradient(180deg, rgba(34, 85, 55, 0.35) 0%, rgba(20, 50, 35, 0.5) 100%);
  animation: farm-hill-drift 32s ease-in-out infinite alternate;
}

.motion-hill--near {
  bottom: 0;
  height: 22%;
  background: linear-gradient(180deg, rgba(45, 120, 70, 0.45) 0%, rgba(25, 65, 42, 0.65) 100%);
  animation: farm-hill-drift 24s ease-in-out infinite alternate-reverse;
}

@keyframes farm-hill-drift {
  0% { transform: translateX(0); }
  100% { transform: translateX(3%); }
}

/* --- Ekin sıraları --- */
.motion-crop-rows {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 18%;
  opacity: 0.2;
  background: repeating-linear-gradient(
    90deg,
    transparent 0,
    transparent 28px,
    rgba(120, 200, 100, 0.15) 28px,
    rgba(120, 200, 100, 0.15) 30px
  );
  mask-image: linear-gradient(180deg, transparent, #000 40%);
  animation: farm-crop-sway 6s ease-in-out infinite;
}

@keyframes farm-crop-sway {
  0%, 100% { transform: skewX(-1deg); }
  50% { transform: skewX(1deg); }
}

/* --- Uçan yaprak / damla (CSS) --- */
.motion-floaters {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.motion-floater {
  position: absolute;
  font-size: clamp(0.85rem, 2vw, 1.25rem);
  opacity: 0;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
  animation: farm-floater-drift linear infinite;
  user-select: none;
}

.motion-floater--leaf { opacity: 0.35; }
.motion-floater--drop { opacity: 0.4; font-size: 0.75rem; }
.motion-floater--seed { opacity: 0.3; font-size: 0.65rem; }

@keyframes farm-floater-drift {
  0% {
    transform: translate(0, 110vh) rotate(0deg);
    opacity: 0;
  }
  8% { opacity: 0.45; }
  92% { opacity: 0.35; }
  100% {
    transform: translate(var(--drift-x, 40px), -15vh) rotate(var(--drift-rot, 180deg));
    opacity: 0;
  }
}

/* --- Sulama dalgası (arka plan) --- */
.motion-water-band {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12%;
  height: 40px;
  background: linear-gradient(180deg, transparent, rgba(60, 140, 200, 0.08));
  opacity: 0.6;
}

.motion-water-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent 0 40px,
    rgba(100, 180, 255, 0.12) 40px 80px
  );
  animation: farm-water-flow 4s linear infinite;
}

@keyframes farm-water-flow {
  0% { transform: translateX(0); }
  100% { transform: translateX(80px); }
}

/* --- Hero: tarla dekoru --- */
.hero-farm-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.hero-deco {
  position: absolute;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  opacity: 0.5;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
  animation: hero-deco-float 7s ease-in-out infinite;
}

.hero-deco--sun {
  top: 12%;
  right: 8%;
  font-size: clamp(2rem, 5vw, 3rem);
  animation: hero-sun-glow 6s ease-in-out infinite;
}

.hero-deco--leaf1 { left: 6%; top: 35%; animation-delay: 0s; }
.hero-deco--leaf2 { right: 12%; top: 55%; animation-delay: 1.2s; animation-duration: 8s; }
.hero-deco--drop1 { left: 18%; bottom: 28%; animation-delay: 0.6s; font-size: 1.2rem; }
.hero-deco--drop2 { right: 22%; bottom: 22%; animation-delay: 2s; font-size: 1rem; }
.hero-deco--plant { left: 42%; bottom: 18%; font-size: clamp(2rem, 6vw, 3.5rem); animation-delay: 0.3s; }

@keyframes hero-deco-float {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50% { transform: translateY(-12px) rotate(8deg); }
}

@keyframes hero-sun-glow {
  0%, 100% { transform: scale(1); opacity: 0.45; }
  50% { transform: scale(1.06); opacity: 0.7; }
}

.hero--tobacco {
  overflow: hidden;
}

.hero--tobacco .hero__inner {
  position: relative;
  z-index: 2;
}

body.motion-intro .hero--tobacco::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(78, 207, 143, 0.08) 0%,
    transparent 35%,
    rgba(45, 143, 95, 0.12) 100%
  );
  animation: hero-soil-breathe 2s ease-out forwards;
}

@keyframes hero-soil-breathe {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* --- Özellik kartları: tarım ikonları --- */
#view-home .feature-card {
  position: relative;
  overflow: hidden;
}

#view-home .feature-card::before {
  content: "";
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(78, 207, 143, 0.15);
  border: 1px solid rgba(78, 207, 143, 0.3);
  z-index: 2;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.35s ease, transform 0.35s var(--motion-ease-out, ease);
}

#view-home .feature-card.motion-revealed::before {
  opacity: 1;
  transform: scale(1);
}

#view-home .feature-card::after {
  position: absolute;
  top: 0.85rem;
  right: 0.95rem;
  font-size: 1rem;
  z-index: 3;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s ease 0.1s, transform 0.4s ease 0.1s;
}

#view-home .feature-card.motion-revealed::after {
  opacity: 1;
  transform: translateY(0);
}

#view-home .feature-card:nth-child(1)::after { content: "💧"; }
#view-home .feature-card:nth-child(2)::after { content: "⛽"; }
#view-home .feature-card:nth-child(3)::after { content: "🌱"; }
#view-home .feature-card:nth-child(4)::after { content: "📊"; }
#view-home .feature-card:nth-child(5)::after { content: "🌤️"; }
#view-home .feature-card:nth-child(6)::after { content: "📅"; }

#view-home .feature-card:hover::before {
  background: rgba(78, 207, 143, 0.28);
  box-shadow: 0 0 20px rgba(78, 207, 143, 0.25);
}

#view-home .irrigation-block--link {
  position: relative;
  overflow: hidden;
}

#view-home .irrigation-block--link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, rgba(100, 180, 255, 0.6), transparent);
  background-size: 200% 100%;
  animation: farm-irrigation-wave 3s ease-in-out infinite;
}

@keyframes farm-irrigation-wave {
  0% { background-position: 200% 0; opacity: 0.4; }
  50% { opacity: 0.9; }
  100% { background-position: -200% 0; opacity: 0.4; }
}

/* --- İmleç: tohum / yaprak --- */
.motion-cursor-ring::after {
  content: "🌱";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.55rem;
  line-height: 1;
  opacity: 0.85;
}

body.motion-pointer-down .motion-cursor-ring::after {
  content: "💧";
}

.motion-cursor-glow {
  background: radial-gradient(circle, rgba(78, 207, 143, 0.35) 0%, rgba(100, 180, 255, 0.12) 45%, transparent 70%);
}

.motion-ripple {
  background: rgba(100, 180, 255, 0.4) !important;
  border-radius: 50% 50% 50% 0 !important;
  transform: scale(0) rotate(-45deg) !important;
}

@keyframes motion-ripple-out {
  to {
    transform: scale(2.5) rotate(-45deg) !important;
    opacity: 0;
  }
}

/* --- Scroll: büyüyen bitki çizgisi --- */
.motion-scroll-progress {
  height: 3px;
  background: linear-gradient(90deg, #2d6b4a, #4ecf8f, #7ec8e8);
  box-shadow: 0 0 12px rgba(78, 207, 143, 0.4);
}

/* --- Panel: tarla dokusu --- */
body.motion-dashboard-active .motion-crop-rows {
  opacity: 0.28;
}

body.motion-dashboard-active .motion-hill--near {
  background: linear-gradient(180deg, rgba(45, 100, 65, 0.4) 0%, rgba(20, 50, 35, 0.55) 100%);
}

/* Eski generic orb gizle */
.motion-orb {
  display: none !important;
}

.motion-scanlines {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .motion-floater,
  .motion-sun,
  .motion-hill,
  .motion-crop-rows,
  .motion-water-band,
  .hero-deco,
  #view-home .irrigation-block--link::after {
    animation: none !important;
  }

  .hero-farm-deco,
  .motion-floaters {
    display: none !important;
  }
}
