/* Derun Studio Özel Animasyonlar ve Sketch Efektler */

/* Sketch/Hand-drawn border animasyonları */
@keyframes sketchDraw {
  0% {
    stroke-dashoffset: 1000;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

/* Organic wobble animasyonu */
@keyframes organicWobble {
  0%,
  100% {
    border-radius: 28px 32px 30px 34px;
  }
  25% {
    border-radius: 32px 28px 34px 30px;
  }
  50% {
    border-radius: 30px 34px 28px 32px;
  }
  75% {
    border-radius: 34px 30px 32px 28px;
  }
}

/* Dalgalı arka plan animasyonu */
@keyframes waveBackground {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Sketch line efekti için SVG desenler */
.sketch-border {
  position: relative;
}

.sketch-border::after {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border: 2px solid var(--derun-toprak);
  border-radius: 28px 32px 30px 34px;
  pointer-events: none;
  filter: url(#sketch-filter);
}

/* Organik hover efekti - tüm kartlar için */
.organic-hover {
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.organic-hover:hover {
  animation: organicWobble 3s ease-in-out infinite;
}

/* Doğal doku overlay */
.natural-texture {
  position: relative;
}

.natural-texture::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(
      circle at 20% 50%,
      transparent 0%,
      rgba(139, 106, 78, 0.03) 100%
    ),
    radial-gradient(
      circle at 80% 20%,
      transparent 0%,
      rgba(124, 154, 109, 0.03) 100%
    );
  pointer-events: none;
  z-index: 1;
}

/* El çizimi gibi animasyonlu çizgiler */
@keyframes drawLine {
  to {
    stroke-dashoffset: 0;
  }
}

.hand-drawn-line {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: drawLine 2s ease forwards;
}

/* Floating animasyonu - doğal hareket */
@keyframes floatingNatural {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(1deg);
  }
}

.floating-natural {
  animation: floatingNatural 6s ease-in-out infinite;
}

/* Pulse efekti - organik */
@keyframes pulseOrganic {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
}

.pulse-organic {
  animation: pulseOrganic 3s ease-in-out infinite;
}

/* Responsive sketch border  */
@media screen and (max-width: 991px) {
  .sketch-border::after {
    border-radius: 24px 28px 26px 30px;
  }
}

@media screen and (max-width: 767px) {
  .sketch-border::after {
    border-radius: 20px 24px 22px 26px;
  }
}
