/* Base animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Utility classes */
.animate-fade-in {
    animation: fadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Feature cards */
.feature-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.1);
}

/* Voice wave animation */
.voice-wave {
    transition: all 0.5s ease;
}

/* Testimonial carousel */
.testimonial-container {
    position: relative;
    overflow: hidden;
    min-height: 300px;
}

.testimonial {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    backface-visibility: hidden;
}

.testimonial.active {
    opacity: 1;
    transform: translateX(0) scale(1);
    z-index: 1;
}

.testimonial.next {
    opacity: 0;
    transform: translateX(100%) scale(0.95);
    z-index: 0;
}

.testimonial.prev {
    opacity: 0;
    transform: translateX(-100%) scale(0.95);
    z-index: 0;
}

/* Navigation button animations */
.prev-testimonial,
.next-testimonial {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.7;
}

.prev-testimonial:hover,
.next-testimonial:hover {
    opacity: 1;
    transform: translateX(-12px) translateY(-50%) scale(1.1);
}

.next-testimonial:hover {
    transform: translateX(12px) translateY(-50%) scale(1.1);
}

/* FAQ animations */
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-header {
    transition: background-color 0.3s ease;
}

.faq-header:hover {
    background-color: rgba(0,0,0,0.02);
}

/* Pricing card animations */
.pricing-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.98);
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.15);
}

/* Button animations */
.btn-primary {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    background-size: 200% 100%;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.2);
    background-position: 100% 0;
}

.btn-primary::after {
    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::after {
    width: 300px;
    height: 300px;
}

/* Floating elements */
.float-animation {
    animation: float 3s ease-in-out infinite;
}

/* Hero section animations */
.hero-content {
    opacity: 0;
    animation: fadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.hero-image {
    opacity: 0;
    animation: fadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
}

/* Section transitions */
.section-animate {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Ses dalgası animasyonu */
@keyframes waveAnimation {
    0% {
        d: path("M 0 100 Q 50 80 100 100 T 200 100 T 300 100 T 400 100");
    }
    50% {
        d: path("M 0 100 Q 50 120 100 100 T 200 100 T 300 100 T 400 100");
    }
    100% {
        d: path("M 0 100 Q 50 80 100 100 T 200 100 T 300 100 T 400 100");
    }
}

.voice-wave {
    animation: waveAnimation 2s ease-in-out infinite;
}

/* Pulse animasyonu */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(37, 99, 235, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
    }
}

.pulse-animation {
    animation: pulse 2s infinite;
}

/* Hero section için yeni animasyonlar */
@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

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

/* Floating shapes animation */
@keyframes float-slow {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-20px) scale(1.05);
    }
}

.animate-float {
    animation: float-slow 6s ease-in-out infinite;
}

/* Button hover effect */
.btn-primary {
    background-size: 200% auto;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover {
    background-position: right center;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.15);
}

/* Glass effect for hero section */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
