/* =========================================
   UI Enhancements - Conversion Optimization
   ========================================= */

/* =========================================
   1. Hero CTA Pulse Animation
   ========================================= */
.btn-hero-purple {
    position: relative;
    animation: heroButtonPulse 3s ease-in-out infinite;
}

@keyframes heroButtonPulse {

    0%,
    100% {
        box-shadow:
            0 8px 20px rgba(75, 0, 200, 0.25),
            0 0 0 0 rgba(75, 0, 200, 0.4);
    }

    50% {
        box-shadow:
            0 12px 30px rgba(75, 0, 200, 0.35),
            0 0 0 12px rgba(75, 0, 200, 0);
    }
}

/* Add shimmer effect on hover */
.btn-hero-purple::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 150%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent);
    transform: skewX(-20deg);
    transition: left 0.7s ease;
}

.btn-hero-purple:hover::after {
    left: 150%;
}

/* =========================================
   2. Enhanced Scroll Animations
   ========================================= */
/* Staggered children animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Stagger delays for multiple elements */
.stagger-children>*:nth-child(1) {
    transition-delay: 0.1s;
}

.stagger-children>*:nth-child(2) {
    transition-delay: 0.2s;
}

.stagger-children>*:nth-child(3) {
    transition-delay: 0.3s;
}

.stagger-children>*:nth-child(4) {
    transition-delay: 0.4s;
}

.stagger-children>*:nth-child(5) {
    transition-delay: 0.5s;
}

/* Fade in up */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Scale in */
.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

/* =========================================
   3. Enhanced Card Hover Effects
   ========================================= */
/* Model Cases Cards */
.case-card {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        box-shadow 0.4s ease,
        border-color 0.3s ease;
}

.case-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    border-color: #4B00C8;
}

/* Merit Cards */
.merit-card {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        box-shadow 0.4s ease;
}

.merit-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.merit-card:hover .merit-badge {
    background-color: #4B00C8;
    transition: background-color 0.3s ease;
}

/* Invitation Card */
.invitation-bottom-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.invitation-bottom-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

/* FAQ Blocks */
.faq-block {
    padding: 20px 24px;
    border-radius: 12px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    margin-left: -24px;
    margin-right: -24px;
    padding-left: 24px;
    padding-right: 24px;
}

.faq-block:hover {
    background-color: rgba(255, 255, 255, 0.6);
}

/* =========================================
   4. Button Shimmer Effect (All CTA Buttons)
   ========================================= */
.btn-hero-purple,
.case-cta-btn,
.merit-btn-apply,
.btn-recruitment,
.btn-flow-cta {
    position: relative;
    overflow: hidden;
}

.case-cta-btn::after,
.merit-btn-apply::after,
.btn-recruitment::after,
.btn-flow-cta::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 150%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.25),
            transparent);
    transform: skewX(-20deg);
    animation: buttonShimmer 4s ease-in-out infinite;
}

@keyframes buttonShimmer {

    0%,
    100% {
        left: -150%;
    }

    50%,
    60% {
        left: 150%;
    }
}

/* =========================================
   5. Floating Mobile CTA Button
   ========================================= */
.floating-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 998;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.9) 80%, transparent 100%);
    padding: 16px 20px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        opacity 0.4s ease;
    display: none;
    /* Hidden on desktop by default */
}

.floating-cta.visible {
    transform: translateY(0);
    opacity: 1;
}

.floating-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background: linear-gradient(135deg, #5A00E0 0%, #4B00C8 50%, #3A00B0 100%);
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 16px 24px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(75, 0, 200, 0.4),
        0 0 0 0 rgba(75, 0, 200, 0.4);
    animation: floatingCtaPulse 2.5s ease-in-out infinite;
    text-align: center;
}

@keyframes floatingCtaPulse {

    0%,
    100% {
        box-shadow: 0 4px 20px rgba(75, 0, 200, 0.4),
            0 0 0 0 rgba(75, 0, 200, 0.4);
    }

    50% {
        box-shadow: 0 8px 30px rgba(75, 0, 200, 0.5),
            0 0 0 8px rgba(75, 0, 200, 0);
    }
}

.floating-cta-btn:hover {
    background: linear-gradient(135deg, #6A10F0 0%, #5A00E0 50%, #4B00C8 100%);
    transform: scale(1.02);
}

.floating-cta-btn i {
    font-size: 1rem;
}

/* Show on mobile only */
/* Floating CTA removed on mobile as per request */
/*
@media (max-width: 768px) {
    .floating-cta {
        display: block;
    }

    body.has-floating-cta {
        padding-bottom: 80px;
    }
}
*/

/* =========================================
   6. Scroll Progress Indicator
   ========================================= */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #5A00E0, #4B00C8, #8B5CF6);
    z-index: 1001;
    transition: width 0.1s ease-out;
}

/* =========================================
   7. Enhanced Visual Hierarchy
   ========================================= */
/* Section title animations */
.brand-main-title,
.model-cases-title,
.merit-main-title,
.faq-main-title,
.about-main-title {
    position: relative;
}

/* Income number highlight animation */
.price-amount,
.total-main-price,
.income-value {
    display: inline-block;
}

.income-value .income-plus {
    background: linear-gradient(135deg, #5A00E0, #8B5CF6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Animated counters - add class via JS */
.count-up {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.count-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   8. Enhanced Button Styles
   ========================================= */
/* Purple gradient buttons */
.btn-hero-purple,
.case-cta-btn,
.merit-btn-apply,
.btn-recruitment {
    background: linear-gradient(135deg, #5A00E0 0%, #4B00C8 100%);
    border: none;
    position: relative;
    z-index: 1;
}

.btn-hero-purple::before,
.case-cta-btn::before,
.merit-btn-apply::before,
.btn-recruitment::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #6A10F0 0%, #5A00E0 100%);
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-hero-purple:hover::before,
.case-cta-btn:hover::before,
.merit-btn-apply:hover::before,
.btn-recruitment:hover::before {
    opacity: 1;
}

/* =========================================
   9. Interactive Elements Enhancements
   ========================================= */
/* Check list items */
.card-list li {
    transition: transform 0.3s ease;
}

.card-list li:hover {
    transform: translateX(8px);
}

.card-list li:hover i {
    color: #4B00C8;
    transition: color 0.3s ease;
}

/* Flow rows */
.flow-row {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.flow-row:hover {
    transform: translateX(8px);
}

.flow-row:hover .flow-label-box {
    background-color: #3d3d3d;
    color: #fff;
}

/* =========================================
   10. Header Scroll Effect
   ========================================= */
.header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.header.scrolled .header-container {
    height: 65px;
    transition: height 0.3s ease;
}

/* =========================================
   11. Image Hover Effects
   ========================================= */
.merit-card-image img,
.about-gym-img,
.invitation-img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.merit-card:hover .merit-card-image img {
    transform: scale(1.05);
}

.about-image-col:hover .about-gym-img,
.invitation-image-col:hover .invitation-img {
    transform: scale(1.03);
}

/* =========================================
   12. Focus & Active States
   ========================================= */
.btn-hero-purple:active,
.case-cta-btn:active,
.merit-btn-apply:active,
.btn-recruitment:active,
.floating-cta-btn:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
}

/* =========================================
   13. Loading Animation for Hero
   ========================================= */
.hero-content-card {
    animation: heroCardSlideIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes heroCardSlideIn {
    0% {
        opacity: 0;
        transform: translateX(40px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* =========================================
   14. Separator Image Parallax Effect
   ========================================= */
.separator-item {
    transition: transform 0.1s ease-out;
}

.separator-section:hover .separator-item:nth-child(1) {
    transform: translateY(-4px);
}

.separator-section:hover .separator-item:nth-child(2) {
    transform: translateY(-2px);
}

.separator-section:hover .separator-item:nth-child(3) {
    transform: translateY(-3px);
}

.separator-section:hover .separator-item:nth-child(4) {
    transform: translateY(-5px);
}