/* =============================================
   LIMON KAFE SİSTEMLERİ — ANIMATIONS & EXTRAS
   ============================================= */

/* Smooth entrance for hero content */
.hero-content > * {
  animation: hero-stagger 0.8s ease forwards;
  opacity: 0;
}

.hero-content .hero-badge { animation-delay: 0.1s; }
.hero-content .hero-title { animation-delay: 0.25s; }
.hero-content .hero-subtitle { animation-delay: 0.4s; }
.hero-content .hero-stats { animation-delay: 0.55s; }
.hero-content .hero-actions { animation-delay: 0.7s; }

@keyframes hero-stagger {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-visual {
  animation: hero-visual-in 1s ease 0.3s forwards;
  opacity: 0;
}

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

/* Number counter glow on hover */
.stat-number, .rs-number {
  transition: text-shadow 0.3s ease;
}

.stat-item:hover .stat-number,
.result-stat:hover .rs-number {
  text-shadow: 0 0 20px rgba(255,214,10,0.6);
}

/* Service card shimmer effect */
.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(0,0,0,0.02) 50%,
    transparent 60%
  );
  background-size: 200% 200%;
  background-position: 200% 0;
  transition: background-position 0.6s ease;
}

.service-card:hover::after {
  background-position: -200% 0;
}

/* Why card icon bounce */
.why-card:hover .why-icon {
  animation: icon-bounce 0.5s ease;
}

@keyframes icon-bounce {
  0%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  70% { transform: translateY(-5px); }
}

/* Testimonial quote mark */
.testimonial-card .tc-text::before {
  content: '"';
  display: block;
  font-size: 3rem;
  line-height: 0.5;
  color: rgba(255,214,10,0.15);
  font-family: Georgia, serif;
  margin-bottom: 0.5rem;
}

/* Trust logo scroll marquee on small screens */
@media (max-width: 768px) {
  .trust-logos {
    animation: marquee 20s linear infinite;
    flex-wrap: nowrap;
    white-space: nowrap;
    overflow: hidden;
    width: 100%;
  }
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Demo tab hover state */
.demo-tab:not(.active):hover {
  background: rgba(255,214,10,0.06);
}

/* Form input glow on valid */
.form-group input:valid:not(:placeholder-shown),
.form-group select:valid {
  border-color: rgba(34,197,94,0.3);
}

/* Button loading state */
.btn-loading {
  opacity: 0.7;
  pointer-events: none;
  cursor: not-allowed;
}

.btn-loading::after {
  content: '';
  width: 16px;
  height: 16px;
  border: 2px solid rgba(0,0,0,0.1);
  border-top-color: var(--text-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-left: 8px;
}

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

/* Glossy overlay for hero image */
.hero-img-overlay {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  background: linear-gradient(
    135deg,
    rgba(255,214,10,0.04) 0%,
    transparent 50%,
    rgba(78,205,196,0.03) 100%
  );
  pointer-events: none;
}

/* Section transitions */
section {
  position: relative;
}

/* Highlight pulse for CTA */
.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn-primary:active::before {
  width: 300px;
  height: 300px;
}

/* Focus styles for accessibility */
:focus-visible {
  outline: 2px solid var(--lemon-500);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb {
  background: rgba(255,214,10,0.3);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(255,214,10,0.5); }

/* Selection color */
::selection {
  background: var(--lemon-soft);
  color: var(--text-primary);
}

/* Performance: reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
