/* ============================================
   OpenMindTeam – Subtle Scroll & Load Animations
   ============================================ */

/* --- AOS Overrides for smoother feel --- */
[data-aos] {
    transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

/* --- Parallax-like subtle float on large images --- */
.c-block .swiper-slide img,
.c-block__left--image img,
.c-block__right--image img,
.c-block__contact--image img {
    transition: transform 6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.c-block__left--image img:hover,
.c-block__right--image img:hover,
.c-block__contact--image img:hover {
    transform: scale(1.03);
}

/* --- Soft reveal for text overlays on sliders --- */
.anim-reveal-group .anim-reveal-item {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.anim-reveal-group.is-revealed .anim-reveal-item:nth-child(1) { transition-delay: 0.15s; }
.anim-reveal-group.is-revealed .anim-reveal-item:nth-child(2) { transition-delay: 0.35s; }
.anim-reveal-group.is-revealed .anim-reveal-item:nth-child(3) { transition-delay: 0.55s; }
.anim-reveal-group.is-revealed .anim-reveal-item:nth-child(4) { transition-delay: 0.75s; }
.anim-reveal-group.is-revealed .anim-reveal-item {
    opacity: 1;
    transform: translateY(0);
}

/* --- Staggered children animations using custom property --- */
[data-aos="stagger-children"] > *:nth-child(1) { transition-delay: 0ms; }
[data-aos="stagger-children"] > *:nth-child(2) { transition-delay: 100ms; }
[data-aos="stagger-children"] > *:nth-child(3) { transition-delay: 200ms; }
[data-aos="stagger-children"] > *:nth-child(4) { transition-delay: 300ms; }
[data-aos="stagger-children"] > *:nth-child(5) { transition-delay: 400ms; }
[data-aos="stagger-children"] > *:nth-child(6) { transition-delay: 500ms; }

/* --- Smooth line separator animation --- */
.anim-line {
    position: relative;
    overflow: hidden;
}
.anim-line::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #daa14c, transparent);
    transition: width 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.anim-line.aos-animate::after,
.anim-line:hover::after {
    width: 100%;
}

/* --- Subtle heading text reveal --- */
@keyframes clipReveal {
    from {
        clip-path: inset(0 100% 0 0);
    }
    to {
        clip-path: inset(0 0 0 0);
    }
}

.anim-clip-reveal.aos-animate {
    animation: clipReveal 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* --- Button entrance pulse --- */
.is-btn[data-aos].aos-animate {
    animation: subtlePulse 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.8s both;
}

@keyframes subtlePulse {
    0% { box-shadow: 0 0 0 0 rgba(218, 161, 76, 0.4); }
    70% { box-shadow: 0 0 0 12px rgba(218, 161, 76, 0); }
    100% { box-shadow: 0 0 0 0 rgba(218, 161, 76, 0); }
}

/* --- Counter / number animation support --- */
.anim-number {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.anim-number.aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* --- Smooth image mask reveal --- */
.anim-img-reveal {
    overflow: hidden;
}
.anim-img-reveal img {
    transform: scale(1.15);
    transition: transform 1.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.anim-img-reveal.aos-animate img {
    transform: scale(1);
}

/* --- Quote block gentle entrance --- */
.c-block__quotes .swiper-slide .c-block__quotes--single {
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.8s ease;
}
.c-block__quotes .swiper-slide-active .c-block__quotes--single {
    opacity: 1;
    transform: translateY(0);
}

/* --- Footer slide-up --- */
.c-footer[data-aos].aos-animate .c-footer__logo,
.c-footer[data-aos].aos-animate .c-footer__address,
.c-footer[data-aos].aos-animate .c-footer__menu {
    opacity: 1;
    transform: translateY(0);
}
.c-footer[data-aos] .c-footer__logo,
.c-footer[data-aos] .c-footer__address,
.c-footer[data-aos] .c-footer__menu {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.c-footer[data-aos] .c-footer__logo { transition-delay: 0s; }
.c-footer[data-aos] .c-footer__address { transition-delay: 0.15s; }
.c-footer[data-aos] .c-footer__menu { transition-delay: 0.3s; }

/* --- Blog / offer card hover lift --- */
.c-block.is-swipper,
.c-offer__children .c-block {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                box-shadow 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.c-block.is-swipper:hover,
.c-offer__children .c-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* --- Smooth scroll indicator --- */
.mouse_scroll {
    transition: opacity 0.6s ease;
}

/* --- Respect reduced motion preferences --- */
@media (prefers-reduced-motion: reduce) {
    [data-aos] {
        transition: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
    [data-aos]::after {
        transition: none !important;
    }
    .c-block .is-information {
        animation: none;
        opacity: 1;
    }
    .is-btn[data-aos].aos-animate {
        animation: none;
    }
}
