/* ==========================================================================
   Kapil Tour & Travel — Premium JustWravel-Grade Motion & Micro-Interactions
   Smooth, purposeful human-crafted animations (respects prefers-reduced-motion).
   ========================================================================== */

/* 1. Top Scroll Progress Line */
.mn-scroll-progress {
	position: fixed;
	top: 0;
	left: 0;
	height: 3px;
	width: 0%;
	background: linear-gradient(90deg, var(--mn-primary) 0%, var(--mn-accent) 100%);
	z-index: 9999;
	transition: width 0.08s linear;
	pointer-events: none;
}

/* 2. Safe Staggered Scroll Reveals (only hidden once JS activates) */
html.mn-js-ready .mn-reveal {
	opacity: 0;
	transform: translateY(28px) scale(0.985);
	transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
	will-change: opacity, transform;
}
html.mn-js-ready .mn-reveal.is-visible {
	opacity: 1;
	transform: translateY(0) scale(1);
}

/* 3. Hero Carousel Entrance & Subtle Ken Burns Zoom */
.mn-hero-slide.is-active .mn-hero-bg {
	animation: mnKenBurns 8.5s ease-out forwards;
}
.mn-hero-slide.is-active .mn-hero-badge {
	animation: mnSlideUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.05s both;
}
.mn-hero-slide.is-active .mn-hero-title {
	animation: mnSlideUp 0.72s cubic-bezier(0.22, 1, 0.36, 1) 0.14s both;
}
.mn-hero-slide.is-active .mn-hero-subtitle {
	animation: mnSlideUp 0.72s cubic-bezier(0.22, 1, 0.36, 1) 0.24s both;
}
.mn-hero-slide.is-active .mn-hero-cta-row {
	animation: mnSlideUp 0.72s cubic-bezier(0.22, 1, 0.36, 1) 0.34s both;
}

/* Live pulsing dot in topbar */
.mn-live-dot {
	animation: mnPulseRing 2.2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* 4. Primary Button Subtle Shine Sweep on Hover */
.mn-btn-primary::after,
.mn-btn-accent::after {
	content: '';
	position: absolute;
	top: 0;
	left: -120%;
	width: 65%;
	height: 100%;
	background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.28), transparent);
	transform: skewX(-20deg);
	transition: left 0.6s ease;
	pointer-events: none;
}
.mn-btn-primary:hover::after,
.mn-btn-accent:hover::after {
	left: 135%;
}

/* 5. Category Chip Tactile Bounce & Glow */
.mn-cat-chip:hover .mn-cat-icon {
	transform: translateY(-3px) scale(1.08);
	background: var(--mn-primary);
	color: #FFFFFF;
	box-shadow: 0 8px 18px rgba(29, 78, 216, 0.26);
}
.mn-cat-icon {
	transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
}

/* 6. Why Us, Review & Blog Card Elevation */
.mn-why-card,
.mn-review-card,
.mn-blog-card,
.mn-promo-card {
	transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease, border-color 0.25s ease;
}
.mn-why-card:hover,
.mn-review-card:hover,
.mn-blog-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--mn-shadow-lg);
	border-color: rgba(29, 78, 216, 0.24);
}
.mn-promo-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 18px 42px rgba(15, 23, 42, 0.22);
}
.mn-why-card:hover .mn-why-icon {
	transform: scale(1.08) rotate(-3deg);
	background: var(--mn-primary);
	color: #FFFFFF;
}
.mn-why-icon {
	transition: transform 0.26s ease, background-color 0.22s ease, color 0.22s ease;
}

/* 7. Link Arrow Nudge */
.mn-link-all svg,
.mn-read-more svg {
	transition: transform 0.22s ease;
}
.mn-link-all:hover svg,
.mn-read-more:hover svg {
	transform: translateX(4px);
}

/* 8. Destination Card Overlay & Text Slide */
.mn-dest-content {
	transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
.mn-dest-card:hover .mn-dest-content {
	transform: translateY(-5px);
}

/* 9. Smooth Accordion Panel Open */
.mn-acc-item.is-open .mn-acc-panel {
	animation: mnAccordionFade 0.28s ease;
}

/* 10. Floating Action Buttons Radar Ripple + Phone Ring Wiggle */
.mn-fab-wa {
	animation: mnGentleFloat 3.6s ease-in-out infinite;
}
.mn-phone-ring {
	animation: mnPhoneRing 2.6s ease-in-out infinite;
}
.mn-fab:hover .mn-fab-icon {
	transform: scale(1.12);
	transition: transform 0.2s ease;
}

/* 11. Additional Card & Tile Hover Polish */
.mn-contact-tile,
.mn-step-card,
.mn-batch-card,
.mn-poster-card,
.mn-moment-tile {
	transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease, border-color 0.25s ease;
}
.mn-contact-tile:hover,
.mn-step-card:hover,
.mn-batch-card:hover,
.mn-poster-card:hover,
.mn-moment-tile:hover {
	transform: translateY(-5px);
	box-shadow: var(--mn-shadow-md);
	border-color: rgba(29, 78, 216, 0.3);
}
.mn-contact-tile:hover .mn-why-icon {
	transform: scale(1.08) rotate(-4deg);
	background: var(--mn-primary);
	color: #FFFFFF;
}
.mn-btn-outline:hover,
.mn-btn-white:hover,
.mn-btn-wa:hover,
.mn-btn-glass:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
}
.mn-circle-btn:hover {
	transform: scale(1.08);
	box-shadow: 0 8px 18px rgba(29, 78, 216, 0.28);
}

/* Keyframes */
@keyframes mnSlideUp {
	from { opacity: 0; transform: translateY(24px); }
	to   { opacity: 1; transform: translateY(0); }
}
@keyframes mnKenBurns {
	from { transform: scale(1.08); }
	to   { transform: scale(1); }
}
@keyframes mnPulseRing {
	0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55); }
	70%  { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
	100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
@keyframes mnWaRipple {
	0%   { transform: scale(1); opacity: 0.7; }
	75%  { transform: scale(1.26, 1.48); opacity: 0; }
	100% { transform: scale(1.26, 1.48); opacity: 0; }
}
@keyframes mnPhoneRing {
	0%, 70%, 100% { transform: rotate(0deg); }
	75% { transform: rotate(-16deg); }
	80% { transform: rotate(16deg); }
	85% { transform: rotate(-12deg); }
	90% { transform: rotate(12deg); }
	95% { transform: rotate(-6deg); }
}
@keyframes mnAccordionFade {
	from { opacity: 0; transform: translateY(-6px); }
	to   { opacity: 1; transform: translateY(0); }
}
@keyframes mnGentleFloat {
	0%, 100% { transform: translateY(0); }
	50%      { transform: translateY(-4px); }
}

@media (prefers-reduced-motion: reduce) {
	html.mn-js-ready .mn-reveal { opacity: 1; transform: none; transition: none; }
	.mn-hero-slide.is-active .mn-hero-bg,
	.mn-hero-slide.is-active *,
	.mn-live-dot,
	.mn-fab-wa,
	.mn-fab-wa::before,
	.mn-fab-call::before,
	.mn-phone-ring { animation: none !important; }
}
