/**
 * HMVIP Landing Page V3 — Motion Stylesheet
 * Scroll reveals, carousels, 3D presentation, animated CTAs, and motion-safe
 * accessibility rules for the standalone hotmodel.vip landing page template.
 */

/* Scroll reveal animations. */
.hmvip-animate {
    opacity: 0;
    will-change: transform, opacity;
}

.hmvip-animate--fade {
    transform: translateY(22px);
    transition: opacity .6s cubic-bezier(.16, 1, .3, 1), transform .6s cubic-bezier(.16, 1, .3, 1);
}

.hmvip-animate--slide-left {
    transform: translateX(-30px);
    transition: opacity .6s cubic-bezier(.16, 1, .3, 1), transform .6s cubic-bezier(.16, 1, .3, 1);
}

.hmvip-animate--slide-right {
    transform: translateX(30px);
    transition: opacity .6s cubic-bezier(.16, 1, .3, 1), transform .6s cubic-bezier(.16, 1, .3, 1);
}

.hmvip-animate--scale {
    transform: scale(.95);
    transition: opacity .6s cubic-bezier(.16, 1, .3, 1), transform .6s cubic-bezier(.16, 1, .3, 1);
}

.hmvip-animate--stagger {
    transform: translateY(18px);
    transition: opacity .5s cubic-bezier(.16, 1, .3, 1), transform .5s cubic-bezier(.16, 1, .3, 1);
}

.hmvip-animate--visible {
    opacity: 1 !important;
    transform: translate(0, 0) scale(1) !important;
}

.hmvip-animate--stagger:nth-child(1) { transition-delay: 0s; }
.hmvip-animate--stagger:nth-child(2) { transition-delay: .08s; }
.hmvip-animate--stagger:nth-child(3) { transition-delay: .16s; }
.hmvip-animate--stagger:nth-child(4) { transition-delay: .24s; }
.hmvip-animate--stagger:nth-child(5) { transition-delay: .32s; }
.hmvip-animate--stagger:nth-child(6) { transition-delay: .40s; }

/* Motion primitives. */
@keyframes hmvip-fade-in {
    from { opacity: 0; transform: translateY(22px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes hmvip-slide-in-left {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes hmvip-slide-in-right {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes hmvip-scale-in {
    from { opacity: 0; transform: scale(.95); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes hmvip-smoke {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: .3; }
    50% { transform: translate(-50%, -50%) scale(1.3); opacity: .08; }
}

@keyframes hmvip-float {
    0%, 100% { transform: rotateY(-15deg) rotateX(5deg) translateY(0); }
    50% { transform: rotateY(-12deg) rotateX(3deg) translateY(-8px); }
}

@keyframes hmvip-float-simple {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes hmvip-pulse-glow {
    0%, 100% { box-shadow: 0 0 30px rgba(231, 43, 108, .3); }
    50% { box-shadow: 0 0 60px rgba(231, 43, 108, .55); }
}

/* Horizontal carousels. */
.hmvip-carousel-wrapper {
    position: relative;
}

.hmvip-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 14px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.hmvip-carousel::-webkit-scrollbar {
    display: none;
}

.hmvip-carousel > * {
    flex: 0 0 280px;
    scroll-snap-align: start;
}

.hmvip-carousel .hmvip-testimonial-card {
    flex: 0 0 300px;
}

.hmvip-carousel-btn {
    position: absolute;
    top: 50%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--br);
    border-radius: 50%;
    background: rgba(0, 0, 0, .7);
    color: #fff;
    cursor: pointer;
    opacity: 0;
    transform: translateY(-50%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: opacity .25s, background .2s, border-color .2s, box-shadow .2s;
}

.hmvip-carousel-btn--prev {
    left: 8px;
}

.hmvip-carousel-btn--next {
    right: 8px;
}

.hmvip-carousel-wrapper:hover .hmvip-carousel-btn,
.hmvip-carousel-btn:focus-visible {
    opacity: 1;
}

.hmvip-carousel-btn:hover {
    border-color: var(--p);
    background: var(--p);
    box-shadow: 0 0 20px rgba(231, 43, 108, .4);
}

.hmvip-carousel-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 16px;
}

.hmvip-carousel-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--br);
    cursor: pointer;
    transition: all .25s;
}

.hmvip-carousel-dot--active {
    width: 24px;
    border-radius: 4px;
    background: var(--p);
}

/* hmvip.link 3D product presentation. */
.hmvip-link-3d {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    padding: 40px 20px;
    overflow: hidden;
    perspective: 1200px;
}

.hmvip-link-3d::before,
.hmvip-link-3d::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(231, 43, 108, .25) 0%, transparent 65%);
    pointer-events: none;
}

.hmvip-link-3d::before {
    animation: hmvip-smoke 8s ease-in-out infinite;
}

.hmvip-link-3d::after {
    width: 300px;
    height: 300px;
    animation: hmvip-smoke 8s ease-in-out infinite 4s;
}

.hmvip-link-3d__card {
    position: relative;
    z-index: 1;
    transform: rotateY(-15deg) rotateX(5deg);
    transform-style: preserve-3d;
    animation: hmvip-float 6s ease-in-out infinite;
    transition: transform .5s cubic-bezier(.16, 1, .3, 1);
}

.hmvip-link-3d__card:hover {
    transform: rotateY(-8deg) rotateX(2deg) scale(1.02);
    animation-play-state: paused;
}

.hmvip-link-3d__card img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, .5), 0 0 0 1px rgba(231, 43, 108, .15);
}

.hmvip-link-3d__disclaimer {
    position: absolute;
    right: 12px;
    bottom: 8px;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(0, 0, 0, .4);
    color: rgba(255, 255, 255, .5);
    font-size: 10px;
    pointer-events: none;
}

/* Text content is updated by the counter script. */
.hmvip-counter {
    display: inline-block;
}

/* Persistent conversion action. */
.hmvip-floating-cta {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 999998;
    padding: 14px 28px;
    border: none;
    border-radius: 9999px;
    background: linear-gradient(135deg, #e72b6c, rgba(231, 43, 108, .8));
    box-shadow: 0 8px 32px rgba(231, 43, 108, .45);
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: opacity .3s ease, transform .3s ease;
}

.hmvip-floating-cta--visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    animation: hmvip-pulse-glow 2s ease-in-out infinite;
}

.hmvip-floating-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(231, 43, 108, .6);
}

/* Hero artwork. */
.hmvip-hero-visual {
    position: relative;
    flex-shrink: 0;
    margin-top: 40px;
}

.hmvip-hero-visual::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: -20px;
    border-radius: 32px;
    background: radial-gradient(ellipse at center, rgba(231, 43, 108, .2) 0%, transparent 70%);
    animation: hmvip-smoke 6s ease-in-out infinite;
}

.hmvip-hero-visual__img {
    width: 320px;
    max-width: 80vw;
    aspect-ratio: 4 / 5;
    border-radius: 24px;
    object-fit: cover;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .4);
    animation: hmvip-float-simple 5s ease-in-out infinite;
}

/* Tablet carousel sizing and desktop hero layout. */
@media (min-width: 768px) {
    .hmvip-hero-visual {
        margin-top: 0;
        margin-left: 40px;
    }

    .hmvip-hero-visual__img {
        width: 400px;
    }
}

@media (min-width: 769px) {
    .hmvip-carousel > * {
        flex-basis: 240px;
    }

    .hmvip-carousel .hmvip-testimonial-card {
        flex-basis: 360px;
    }
}

@media (min-width: 1024px) {
    .hmvip-carousel > * {
        flex-basis: 220px;
    }

    .hmvip-carousel .hmvip-testimonial-card {
        flex-basis: 360px;
    }
}

@media (max-width: 768px) {
    .hmvip-carousel-btn {
        opacity: .7;
    }

    .hmvip-floating-cta {
        right: 16px;
        bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    }
}

/* Light theme refinements. */
html[data-bx-mode="light"] .hmvip-carousel-btn {
    border-color: #e4e4e4;
    background: rgba(255, 255, 255, .8);
    color: #1a1a1a;
}

html[data-bx-mode="light"] .hmvip-carousel-btn:hover {
    background: var(--p);
    color: #fff;
}

html[data-bx-mode="light"] .hmvip-link-3d__card img {
    box-shadow: 0 25px 80px rgba(0, 0, 0, .15), 0 0 0 1px rgba(231, 43, 108, .1);
}

html[data-bx-mode="light"] .hmvip-hero-visual__img {
    box-shadow: 0 20px 60px rgba(0, 0, 0, .12);
}

/* Respect operating-system motion preferences. */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }

    .hmvip-animate {
        opacity: 1 !important;
        transform: none !important;
    }

    .hmvip-link-3d__card {
        transform: none !important;
        animation: none !important;
    }

    .hmvip-hero-visual__img {
        animation: none !important;
    }

    .hmvip-floating-cta {
        transition: opacity .15s !important;
    }
}
