/* ==========================================
   AHENK KAFE - Animations & Scroll Effects
   ========================================== */

/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* Stagger delays */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }

/* Hero entrance animations */
@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    animation: heroFadeIn 0.8s ease 0.3s both;
}

.hero-title .title-line-1 {
    animation: heroFadeIn 0.8s ease 0.5s both;
}

.hero-title .title-line-2 {
    animation: heroFadeIn 0.8s ease 0.7s both;
}

.hero-motto {
    animation: heroFadeIn 0.8s ease 0.85s both;
}

.hero-tagline {
    animation: heroFadeIn 0.8s ease 0.9s both;
}

.hero-description {
    animation: heroFadeIn 0.8s ease 1.1s both;
}

.hero-buttons {
    animation: heroFadeIn 0.8s ease 1.3s both;
}

.hero-stats {
    animation: heroFadeIn 0.8s ease 1.5s both;
}

.scroll-indicator {
    animation: heroFadeIn 0.8s ease 1.8s both;
}

/* Shimmer effect for menu items */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.menu-item:hover {
    background: linear-gradient(
        90deg,
        transparent,
        rgba(77, 124, 63, 0.03),
        transparent
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s ease;
}

/* Pulse animation for stars */
@keyframes starPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.google-badge:hover .star {
    animation: starPulse 0.4s ease;
}

.google-badge:hover .star:nth-child(2) { animation-delay: 0.05s; }
.google-badge:hover .star:nth-child(3) { animation-delay: 0.1s; }
.google-badge:hover .star:nth-child(4) { animation-delay: 0.15s; }
.google-badge:hover .star:nth-child(5) { animation-delay: 0.2s; }

/* Gentle float for about cards */
@keyframes gentleFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* Smooth gradient animation for hero bg */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-section {
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
}

/* Counter animation for stats */
@keyframes countUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Ripple effect on buttons */
.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.3), transparent 70%);
    opacity: 0;
    transform: scale(0);
    transition: all 0.5s ease;
}

.btn:active::after {
    opacity: 1;
    transform: scale(2);
    transition: 0s;
}

/* Smooth scroll indicator pulse */
@keyframes pulseRing {
    0% { box-shadow: 0 0 0 0 rgba(77, 124, 63, 0.3); }
    100% { box-shadow: 0 0 0 12px rgba(77, 124, 63, 0); }
}

.back-to-top.visible {
    animation: pulseRing 2s ease-in-out infinite;
}

.back-to-top:hover {
    animation: none;
}

/* Nav link hover micro-animation */
.nav-link {
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover {
    transform: translateY(-1px);
}

/* Feature tag hover */
.feature-tag {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Review card entrance when carousel slides */
@keyframes slideIn {
    from {
        opacity: 0.7;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Mini avatar wave effect */
.reviewer-bubbles .mini-avatar:nth-child(1) { animation-delay: 0ms; }
.reviewer-bubbles .mini-avatar:nth-child(2) { animation-delay: 50ms; }
.reviewer-bubbles .mini-avatar:nth-child(3) { animation-delay: 100ms; }
.reviewer-bubbles .mini-avatar:nth-child(4) { animation-delay: 150ms; }
.reviewer-bubbles .mini-avatar:nth-child(5) { animation-delay: 200ms; }
.reviewer-bubbles .mini-avatar:nth-child(6) { animation-delay: 250ms; }
.reviewer-bubbles .mini-avatar:nth-child(7) { animation-delay: 300ms; }
.reviewer-bubbles .mini-avatar:nth-child(8) { animation-delay: 350ms; }
.reviewer-bubbles .mini-avatar:nth-child(9) { animation-delay: 400ms; }
.reviewer-bubbles .mini-avatar:nth-child(10) { animation-delay: 450ms; }

/* Decorative leaf animation for menu */
@keyframes sway {
    0%, 100% { transform: rotate(-20deg); }
    50% { transform: rotate(-15deg); }
}

.menu-content::before {
    animation: sway 6s ease-in-out infinite;
}

.menu-content::after {
    animation: sway 6s ease-in-out infinite reverse;
}
