/* ===================================================
   LINGODEMIA IELTS COACHING - Animation Definitions
   =================================================== */

/* ===================== SCROLL REVEAL ===================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays for children elements */
.animate-on-scroll:nth-child(1) { transition-delay: 0ms; }
.animate-on-scroll:nth-child(2) { transition-delay: 100ms; }
.animate-on-scroll:nth-child(3) { transition-delay: 200ms; }
.animate-on-scroll:nth-child(4) { transition-delay: 300ms; }

/* ===================== WHATSAPP PULSE ===================== */
.whatsapp-float::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #25D366;
    animation: whatsapp-pulse 2s ease-out infinite;
    z-index: -1;
}

@keyframes whatsapp-pulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

/* ===================== HERO FLOATING CARDS ===================== */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ===================== SECTION TRANSITIONS ===================== */
.process__step {
    transition: all 0.3s ease, transform 0.3s ease;
}

.audience__card {
    transition: all 0.3s ease, transform 0.3s ease;
}

.testimonial-card {
    transition: all 0.3s ease, transform 0.3s ease;
}

.program__benefit-card {
    transition: all 0.3s ease, transform 0.3s ease;
}

/* ===================== FAQ ACCORDION ===================== */
.faq__answer {
    transition: max-height 0.4s ease;
}

.faq__icon {
    transition: transform 0.3s ease;
}

/* ===================== BUTTON RIPPLE EFFECT ===================== */
.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.btn:active::after {
    width: 200px;
    height: 200px;
}

/* ===================== LOADING SPINNER ===================== */
@keyframes spin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ===================== FADE IN FROM DIRECTIONS ===================== */
.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ===================== SCALE IN ===================== */
.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* ===================== MOBILE MENU ANIMATION ===================== */
.nav__mobile-menu {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ===================== STICKY CTA ANIMATION ===================== */
.sticky-cta {
    transition: transform 0.3s ease;
}

/* ===================== FORM INPUT ANIMATIONS ===================== */
.form-input,
.form-select,
.form-textarea {
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.form-error {
    transition: opacity 0.3s ease;
}

/* ===================== SUCCESS MESSAGE ===================== */
.practice-test__success {
    animation: fadeInScale 0.5s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
