/* Animations for SOHO Gym + Recovery */

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Slide Up Animation */
@keyframes slideUp {
    from {
        transform: translateY(40px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Slide In From Left */
@keyframes slideInLeft {
    from {
        transform: translateX(-40px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Slide In From Right */
@keyframes slideInRight {
    from {
        transform: translateX(40px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Scale Up Animation */
@keyframes scaleUp {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Text Reveal Animation */
@keyframes textReveal {
    from {
        clip-path: inset(0 100% 0 0);
    }
    to {
        clip-path: inset(0 0 0 0);
    }
}

/* Smooth Underline Animation */
@keyframes underlineGrow {
    from {
        width: 0;
    }
    to {
        width: 40px;
    }
}

/* Pulse Animation for CTA */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(155, 170, 145, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(155, 170, 145, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(155, 170, 145, 0);
    }
}

/* Apply animations directly to elements */
.section-title {
    animation: fadeIn 0.8s ease forwards;
}

/* Hero elements animation */
.logo {
    animation: fadeIn 1s ease 0.2s forwards, slideUp 1s ease 0.2s forwards;
    opacity: 0;
}

.tagline {
    animation: fadeIn 1s ease 0.6s forwards, slideUp 1s ease 0.6s forwards;
    opacity: 0;
}

.subtext {
    animation: fadeIn 1s ease 1s forwards, slideUp 1s ease 1s forwards;
    opacity: 0;
}

/* Animation for button hover */
.btn-submit {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-submit:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--black);
    z-index: -2;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.btn-submit:hover:after {
    transform: scaleX(1);
    transform-origin: left;
}

/* CTA Button Animation */
.btn-cta {
    animation: pulse 2s infinite;
}

/* Section title underline animation */
.section-title::after {
    animation: underlineGrow 0.8s ease forwards;
    animation-delay: 0.5s;
    width: 0;
}

/* FAQ animation enhancement */
.faq-question::after {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
} 