/*======================================================
    MediLinkFilm — animation.css
    Subtle, refined motion. No jitter, no overkill.
======================================================*/


/*==============================
    KEYFRAMES
==============================*/

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeLeft {
    from {
        opacity: 0;
        transform: translateX(-24px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeRight {
    from {
        opacity: 0;
        transform: translateX(24px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes floatSubtle {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}


/*==============================
    ENTRANCE
==============================*/

.hero-copy,
.hero-left {
    animation: fadeLeft 0.8s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.hero-actions {
    animation: fadeLeft 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.12s both;
}

.hero-right {
    animation: fadeRight 0.9s cubic-bezier(0.4, 0, 0.2, 1) 0.1s both;
}

.hero-right .phone-mock {
    animation: floatSubtle 8s ease-in-out infinite;
}


/*==============================
    SCROLL REVEAL
==============================*/

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}


/*==============================
    FLOATING SHAPES
==============================*/

.shape {
    animation: floatSubtle 12s ease-in-out infinite;
}

.shape.two {
    animation-duration: 14s;
    animation-delay: 2s;
}


/*==============================
    HOVER (phone mock)
==============================*/

.phone-mock {
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.viewer-image .phone-mock:hover,
.hero-right .phone-mock:hover {
    transform: scale(1.015);
    box-shadow: 0 40px 80px rgba(15, 23, 42, 0.14);
}


/*==============================
    LOGO
==============================*/

.logo img {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo:hover img {
    transform: scale(1.03);
}


/*==============================
    FOOTER LINKS
==============================*/

.footer-links a,
.footer-links-inline a {
    position: relative;
}

.footer-links a::after,
.footer-links-inline a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-links a:hover::after,
.footer-links-inline a:hover::after {
    width: 100%;
}


/*==============================
    REDUCED MOTION
==============================*/

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

    html {
        scroll-behavior: auto;
    }

}
