/* Bahar-e-Haram — motion & micro-interactions */

/* ========== REVEAL VARIANTS ========== */
.bhe-reveal-left {
    opacity: 0;
    transform: translateX(-32px);
    transition: opacity 0.7s var(--bhe-ease, cubic-bezier(0.22, 1, 0.36, 1)),
                transform 0.7s var(--bhe-ease, cubic-bezier(0.22, 1, 0.36, 1));
}

.bhe-reveal-right {
    opacity: 0;
    transform: translateX(32px);
    transition: opacity 0.7s var(--bhe-ease, cubic-bezier(0.22, 1, 0.36, 1)),
                transform 0.7s var(--bhe-ease, cubic-bezier(0.22, 1, 0.36, 1));
}

.bhe-reveal-blur {
    opacity: 0;
    transform: translateY(20px);
    filter: blur(8px);
    transition: opacity 0.75s ease, transform 0.75s var(--bhe-ease, cubic-bezier(0.22, 1, 0.36, 1)),
                filter 0.75s ease;
}

.bhe-reveal-pop {
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.bhe-reveal-left.is-visible,
.bhe-reveal-right.is-visible,
.bhe-reveal-blur.is-visible,
.bhe-reveal-pop.is-visible {
    opacity: 1;
    transform: none;
    filter: none;
}

.bhe-stagger-7 { transition-delay: 0.42s; }
.bhe-stagger-8 { transition-delay: 0.48s; }

/* ========== HERO ENTRANCE (after loader) ========== */
.bhe-hero-enter > * {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.bhe-hero-enter.is-animated > .bhe-hero-eyebrow { transition-delay: 0.05s; }
.bhe-hero-enter.is-animated > .bhe-hero-title { transition-delay: 0.15s; }
.bhe-hero-enter.is-animated > .bhe-hero-subtitle { transition-delay: 0.25s; }
.bhe-hero-enter.is-animated > .bhe-hero-actions { transition-delay: 0.35s; }
.bhe-hero-enter.is-animated > .bhe-hero-trust { transition-delay: 0.45s; }

.bhe-hero-enter.is-animated > * {
    opacity: 1;
    transform: translateY(0);
}

.bhe-hero .hero-dots,
.bhe-hero .hero-progress {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.6s ease 0.55s, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.55s;
}

.bhe-hero.is-hero-ready .hero-dots,
.bhe-hero.is-hero-ready .hero-progress {
    opacity: 1;
    transform: translateY(0);
}

/* ========== SCROLL PROGRESS BAR ========== */
.bhe-scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100001;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, #9a7b1a, #f0d78c, #c9a227);
    box-shadow: 0 0 12px rgba(201, 162, 39, 0.55);
    pointer-events: none;
    transition: width 0.08s linear;
}

/* ========== SECTION AMBIENT GLOW ========== */
.bhe-section-glow {
    position: relative;
}

.bhe-section-glow::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    background: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(201, 162, 39, 0.08), transparent 70%);
    transition: opacity 1.2s ease;
    z-index: 0;
}

.bhe-section-glow.is-visible::after {
    opacity: 1;
}

/* ========== MARQUEE RING PULSE ========== */
.marquee-card.is-visible .mc-img {
    animation: bheRingPulse 3s ease-in-out infinite;
}

@keyframes bheRingPulse {
    0%, 100% { box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35), 0 0 0 2px rgba(201, 162, 39, 0.25); }
    50% { box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4), 0 0 0 3px rgba(240, 215, 140, 0.45), 0 0 18px rgba(201, 162, 39, 0.2); }
}

/* ========== TAG / EYEBROW SHIMMER ========== */
.marquee-tag,
.travel-categories-tag,
.tst-eyebrow-text,
.umr-eyebrow-text,
.kp-viewall-eyebrow {
    position: relative;
    overflow: hidden;
}

.bhe-site .marquee-tag::after,
.bhe-site .travel-categories-tag::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.35) 50%, transparent 65%);
    transform: translateX(-120%);
    animation: bheShimmerLine 4s ease-in-out infinite;
}

@keyframes bheShimmerLine {
    0%, 70% { transform: translateX(-120%); }
    100% { transform: translateX(120%); }
}

/* ========== CTA BUTTON GLOW ========== */
.kp-viewall-btn,
.bhe-hero-btn--primary,
.umr-cta-primary {
    position: relative;
    overflow: hidden;
}

.kp-viewall-btn::after,
.bhe-hero-btn--primary::after,
.umr-cta-primary::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.4) 50%, transparent 60%);
    transform: translateX(-130%);
    transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}

.kp-viewall-btn:hover::after,
.bhe-hero-btn--primary:hover::after,
.umr-cta-primary:hover::after {
    transform: translateX(130%);
}

/* ========== CARD HOVER ENHANCEMENTS ========== */
@media (hover: hover) {
    .travel-category-card:hover {
        transform: translateY(-10px) scale(1.02) !important;
    }

    .travel-category-card:hover .travel-category-image img {
        transform: scale(1.08);
    }

    .tgs-card:hover {
        transform: translateY(-8px);
    }

    .tgs-card:hover .tgs-media img {
        transform: scale(1.06);
    }

    .kp-card:hover {
        transform: translateY(-10px);
    }

    .umr-pkg-card:hover {
        transform: translateY(-6px);
        border-color: rgba(240, 215, 140, 0.55) !important;
    }

    .mc-label {
        transition: color 0.3s ease, transform 0.3s ease;
    }

    .marquee-card:hover .mc-label {
        color: #f0d78c;
        transform: translateY(-2px);
    }
}

.travel-category-image img,
.tgs-media img {
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ========== STATS POP ========== */
.tst-stat {
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.5s ease, transform 0.55s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.tst-stat.is-visible {
    opacity: 1;
    transform: scale(1);
}

.tst-stat:nth-child(1).is-visible { transition-delay: 0.05s; }
.tst-stat:nth-child(3).is-visible { transition-delay: 0.15s; }
.tst-stat:nth-child(5).is-visible { transition-delay: 0.25s; }

/* ========== LIST ITEM STAGGER ========== */
.umr-dates-list li,
.umr-features li {
    opacity: 0;
    transform: translateX(-12px);
    transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.umr-dates-list.is-visible li,
.umr-features.is-visible li {
    opacity: 1;
    transform: translateX(0);
}

.umr-dates-list.is-visible li:nth-child(1),
.umr-features.is-visible li:nth-child(1) { transition-delay: 0.05s; }
.umr-dates-list.is-visible li:nth-child(2),
.umr-features.is-visible li:nth-child(2) { transition-delay: 0.1s; }
.umr-dates-list.is-visible li:nth-child(3),
.umr-features.is-visible li:nth-child(3) { transition-delay: 0.15s; }
.umr-dates-list.is-visible li:nth-child(4),
.umr-features.is-visible li:nth-child(4) { transition-delay: 0.2s; }
.umr-dates-list.is-visible li:nth-child(5),
.umr-features.is-visible li:nth-child(5) { transition-delay: 0.25s; }
.umr-dates-list.is-visible li:nth-child(6),
.umr-features.is-visible li:nth-child(6) { transition-delay: 0.3s; }

/* ========== THUMB STRIP ========== */
.umr-thumbs .umr-thumb {
    opacity: 0;
    transform: translateY(10px) scale(0.95);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                border-color 0.3s, opacity 0.3s;
}

.umr-thumbs.is-visible .umr-thumb {
    opacity: 0.55;
    transform: translateY(0) scale(1);
}

.umr-thumbs.is-visible .umr-thumb.is-active {
    opacity: 1;
}

.umr-thumbs.is-visible .umr-thumb:nth-child(1) { transition-delay: 0.05s; }
.umr-thumbs.is-visible .umr-thumb:nth-child(2) { transition-delay: 0.1s; }
.umr-thumbs.is-visible .umr-thumb:nth-child(3) { transition-delay: 0.15s; }
.umr-thumbs.is-visible .umr-thumb:nth-child(4) { transition-delay: 0.2s; }
.umr-thumbs.is-visible .umr-thumb:nth-child(5) { transition-delay: 0.25s; }

/* ========== VIEW ALL WRAP ========== */
.kp-viewall-wrap {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.kp-viewall-wrap.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========== FOOTER FADE ========== */
.bhe-footer {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.bhe-footer.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========== HERO SUBTLE PARALLAX ========== */
.bhe-hero.is-hero-ready .bhe-hero-inner {
    will-change: transform;
}

/* ========== REDUCED MOTION ========== */
@media (prefers-reduced-motion: reduce) {
    .bhe-reveal-left,
    .bhe-reveal-right,
    .bhe-reveal-blur,
    .bhe-reveal-pop,
    .bhe-hero-enter > *,
    .bhe-hero .hero-dots,
    .bhe-hero .hero-progress,
    .tst-stat,
    .umr-dates-list li,
    .umr-features li,
    .umr-thumbs .umr-thumb,
    .kp-viewall-wrap,
    .bhe-footer {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        transition: none !important;
        animation: none !important;
    }

    .marquee-card.is-visible .mc-img {
        animation: none !important;
    }

    .bhe-scroll-progress {
        display: none;
    }
}
