## MC Full Body Mirror Image
image mc mirror = "images/mc/mc mirror 4K.jpg"

transform at_mirror_face:
    xalign 0.5
    zoom (1920.0 / 2160.0)
    yalign 0.09

transform at_mirror_breasts:
    xalign 0.5
    zoom (1920.0 / 2160.0)
    ease 1.5 yalign 0.45

transform at_mirror_ass:
    xalign 0.5
    zoom (1920.0 / 2160.0)
    ease 1.2 yalign 0.85

transform at_mirror_vagina:
    xalign 0.5
    zoom (1920.0 / 2160.0)
    ease 1.0 yalign 1.0

transform at_mirror_fullbody:
    ease 2.0
    xalign 0.5
    yalign 0.5
    zoom (1080.0 / 3840.0)

## Home Front Panning shot
image bg_home_front = "background/home front_4K.jpg"
transform bg_pan_and_zoom:
    # PHASE 1 — Start slightly zoomed in on the left
    xalign 0.0
    yalign 0.5
    zoom 1.15
    pause 0.1

    # PHASE 2 — Pan all the way across the image
    linear 6.0 xalign 1.0

    # PHASE 3 — Zoom out to show entire image
    linear 2.5 xalign 0.5 zoom 1.0

transform bg_cinematic_sweep:
    zoom 0.5
    #pause 1
    # PHASE 1 — Start zoomed in on the left
    ease 1.0 zoom 0.9 xalign 0.0 yalign 0.2
    pause .5
    xalign 0.0
    yalign 0.2 # Start at vertical center
    zoom .9 
    pause 0.1 

    # PHASE 2 — Pan across AND up simultaneously
    # 'ease 9.0' will apply to both properties,
    # moving from (x=0.0, y=0.5) to (x=1.0, y=0.3)
    ease 7.0 xalign 1.0 yalign 0.3 # End higher up
    ease 1.0 zoom 0.5

    # PHASE 3 — Hold on the upper-right
    pause 2.0

##logo bouncing
image bbc_logo = 'images/Black Bear Creek Logo.png'

transform intro_splash:
        # Center the logo on the screen
        xalign 0.5 yalign 0.5

        # Start invisible and slightly zoomed in
        alpha 0.0
        zoom .9

        # Animate to fully visible and normal size over 1.5 seconds
        ease 1.5 alpha 1.0 zoom 0.5

        # Hold the logo on screen for 2.5 seconds
        pause 2.5

transform outro_splash:
        # Center the logo on the screen
        xalign 0.5 yalign 0.5

        # Start invisible and slightly zoomed in
        alpha 1.0
        zoom .5

        # Animate to fully visible and normal size over 1.5 seconds
        ease 1 alpha 0.0 zoom 0.01

define fadein = ImageDissolve("/dissolvers/005.jpg", 2.0)
define fadeout = ImageDissolve("/dissolvers/005.jpg", 2.0, reverse=True)
define quickdissolve = Dissolve(0.1)

##Tyrone meeting first time shot
image tyrone sauna = "images/tyrone/tyrone sauna 4K.jpg"

transform tyrone_sauna_face:
    subpixel True
    xalign 0.5
    zoom (1920.0 / 2160.0)
    yalign 0.01

transform tyrone_sauna_pecs:
    subpixel True
    xalign 0.5
    zoom (1920.0 / 2160.0)
    ease 1.5 yalign 0.45

transform tyrone_sauna_abs:
    xalign 0.5
    zoom (1920.0 / 2160.0)
    ease 1.2 yalign 0.75

transform tyrone_sauna_dong:
    xalign 0.5
    zoom (1920.0 / 2160.0)
    ease 1.0 yalign 1.0

##BBC ANIMATION
# 1. Define your images first
image bg chapter_end = "presplash.jpg"
image bbc_graphic = "images/next_episode_bbc.png"

# 2. Define the ATL Transform
# This creates a "heavy" drop effect that bounces twice
transform bounce_in:
    xalign 0.5 yalign 0.5          # Center the image
    yoffset -800 alpha 0.0         # Start 800px up and invisible
    
    # The Drop (Accelerate down)
    parallel:
        linear 0.3 alpha 1.0       # Fade in quickly
    parallel:
        easein 0.4 yoffset 0       # Hit the "ground" hard

    # First Bounce (Pop up and fall back)
    easeout 0.15 yoffset -100      # Bounce up
    easein 0.15 yoffset 0          # Fall back down

    # Second Small Bounce (Settle)
    easeout 0.1 yoffset -20        # Small bounce up
    easein 0.1 yoffset 0           # Land and stay

##Panning shot of the living room
image bg living_room_pan = "background/home entry long.jpg"
transform pan_left_to_right(time=10.0):
    # 'subpixel True' ensures the movement is smooth, not jerky
    subpixel True 
    
    # Start at the far left edge
    xalign 0.0 
    
    # Move to the far right edge over 'time' seconds
    linear time xalign 1.0

transform pan_right_to_left(time=10.0):
    # 'subpixel True' ensures the movement is smooth, not jerky
    subpixel True
    # Start at the far right edge
    xalign 1.0
    # Move to the far left edge over 'time' seconds
    linear time xalign 0.0