/* Custom Styles for MemoryMotion Studios */

/* Smooth scrolling */
html {
	scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
	width: 10px;
}

::-webkit-scrollbar-track {
	background: #fff8f0;
}

::-webkit-scrollbar-thumb {
	background: #d4a574;
	border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
	background: #8b5a2b;
}

/* Animation keyframes */
@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@keyframes slideInLeft {
	from {
		opacity: 0;
		transform: translateX(-30px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

@keyframes slideInRight {
	from {
		opacity: 0;
		transform: translateX(30px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

@keyframes pulse {
	0%,
	100% {
		transform: scale(1);
	}
	50% {
		transform: scale(1.05);
	}
}

@keyframes float {
	0%,
	100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-10px);
	}
}

/* Animation classes */
.animate-fadeInUp {
	animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fadeIn {
	animation: fadeIn 0.6s ease-out forwards;
}

.animate-slideInLeft {
	animation: slideInLeft 0.8s ease-out forwards;
}

.animate-slideInRight {
	animation: slideInRight 0.8s ease-out forwards;
}

.animate-pulse-slow {
	animation: pulse 3s ease-in-out infinite;
}

.animate-float {
	animation: float 4s ease-in-out infinite;
}

/* Delay utilities for staggered animations */
.delay-100 {
	animation-delay: 0.1s;
}

.delay-200 {
	animation-delay: 0.2s;
}

.delay-300 {
	animation-delay: 0.3s;
}

.delay-400 {
	animation-delay: 0.4s;
}

.delay-500 {
	animation-delay: 0.5s;
}

/* Hero section video overlay effect */
.hero-video-overlay {
	position: relative;
}

.hero-video-overlay::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(
		135deg,
		rgba(139, 90, 43, 0.1) 0%,
		rgba(212, 165, 116, 0.1) 100%
	);
	pointer-events: none;
}

/* Service card hover effects */
.service-card {
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Video thumbnail hover effect */
.video-thumbnail {
	transition: transform 0.5s ease;
}

.video-thumbnail:hover {
	transform: scale(1.03);
}

/* Button hover animations */
.btn-primary {
	position: relative;
	overflow: hidden;
}

.btn-primary::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(
		90deg,
		transparent,
		rgba(255, 255, 255, 0.2),
		transparent
	);
	transition: left 0.5s;
}

.btn-primary:hover::before {
	left: 100%;
}

/* Navigation link underline effect */
.nav-link {
	position: relative;
	transition: color 0.25s ease;
	padding: 4px 0;
}

.nav-link::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 2px;
	background: linear-gradient(90deg, #8b5a2b, #d4a574);
	border-radius: 1px;
	transform: scaleX(0);
	transform-origin: center;
	transition: transform 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
	transform: scaleX(1);
}

/* Testimonial card glass effect */
.testimonial-card {
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

/* Image sepia filter on hover for gallery */
.gallery-image {
	transition: all 0.5s ease;
}

.gallery-image:hover {
	filter: sepia(30%);
}

/* Form input focus styles */
.form-input {
	transition: all 0.3s ease;
}

.form-input:focus {
	border-color: #8b5a2b;
	box-shadow: 0 0 0 3px rgba(139, 90, 43, 0.1);
}

/* Loading spinner */
.spinner {
	border: 3px solid rgba(139, 90, 43, 0.2);
	border-top-color: #8b5a2b;
	border-radius: 50%;
	width: 40px;
	height: 40px;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

/* Page transition effect */
.page-transition {
	opacity: 0;
	animation: fadeIn 0.5s ease-out forwards;
}

/* Vintage photo frame effect */
.vintage-frame {
	position: relative;
	padding: 15px;
	background: linear-gradient(135deg, #f5e6d3 0%, #d4a574 100%);
	box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.1), 0 10px 40px rgba(0, 0, 0, 0.2);
}

.vintage-frame::before {
	content: '';
	position: absolute;
	inset: 5px;
	border: 2px solid rgba(139, 90, 43, 0.3);
	pointer-events: none;
}

/* Gradient text */
.gradient-text {
	background: linear-gradient(135deg, #8b5a2b 0%, #d4a574 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

/* Section divider */
.section-divider {
	height: 4px;
	width: 80px;
	background: linear-gradient(90deg, #8b5a2b, #d4a574);
	border-radius: 2px;
	margin: 0 auto;
}

/* Card shadow on hover */
.card-hover-shadow {
	transition: box-shadow 0.3s ease;
}

.card-hover-shadow:hover {
	box-shadow: 0 20px 60px rgba(139, 90, 43, 0.15);
}

/* Mobile menu animation */
.mobile-menu-enter {
	animation: slideDown 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes slideDown {
	from {
		opacity: 0;
		transform: translateY(-20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Mobile menu body scroll lock */
body.menu-open {
	overflow: hidden;
	position: fixed;
	width: 100%;
}

/* Nav scroll state - more compact when scrolled */
#main-nav.nav-scrolled {
	background: rgba(255, 255, 255, 0.98);
	box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

#main-nav.nav-scrolled > div > div {
	height: 3.5rem;
}

@media (min-width: 768px) {
	#main-nav.nav-scrolled > div > div {
		height: 4rem;
	}
}

/* Parallax effect helper */
.parallax {
	background-attachment: fixed;
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
}

/* Icon bounce effect */
.icon-bounce:hover {
	animation: bounce 0.5s ease;
}

@keyframes bounce {
	0%,
	100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-5px);
	}
}

/* Responsive adjustments */
@media (max-width: 768px) {
	.hero-title {
		font-size: 2.5rem;
	}

	.section-title {
		font-size: 2rem;
	}

	.parallax {
		background-attachment: scroll;
	}

	/* Mobile Footer - Compact */
	.mobile-footer-compact {
		display: block;
	}
	.desktop-footer-full {
		display: none;
	}

	/* Mobile Carousel for Services & Transformations */
	.mobile-carousel {
		display: flex;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		-ms-overflow-style: none;
		gap: 1rem;
		padding: 0 1rem 1rem;
		margin: 0 -1rem;
	}

	.mobile-carousel::-webkit-scrollbar {
		display: none;
	}

	.mobile-carousel > * {
		scroll-snap-align: center;
		flex: 0 0 85%;
		min-width: 280px;
	}

	/* Video cards need proper height on mobile */
	.mobile-carousel .video-container video {
		height: 240px;
	}

	/* How It Works - Vertical Timeline */
	.how-it-works-grid {
		display: flex;
		flex-direction: column;
		gap: 1.5rem;
	}

	.how-it-works-grid > div {
		display: flex;
		align-items: flex-start;
		text-align: left !important;
		gap: 1rem;
	}

	.how-it-works-grid .step-number {
		flex-shrink: 0;
		width: 48px !important;
		height: 48px !important;
		margin: 0 !important;
	}

	.how-it-works-grid .step-number span {
		font-size: 1.25rem !important;
	}

	.how-it-works-grid .step-content {
		flex: 1;
	}

	.how-it-works-grid .step-content h3 {
		margin-bottom: 0.25rem;
	}

	.how-it-works-grid .step-connector {
		display: none !important;
	}

	/* Compact section padding on mobile */
	.section-mobile-compact {
		padding-top: 3rem;
		padding-bottom: 3rem;
	}

	/* Triple slider markers - compact on mobile */
	.triple-slider-markers {
		gap: 0.25rem;
	}

	.triple-slider-marker .marker-label {
		font-size: 11px;
	}

	.triple-slider-marker .marker-icon {
		font-size: 16px;
	}

	.marker-dot {
		width: 12px;
		height: 12px;
	}

	/* Hero adjustments */
	.hero-section {
		padding-top: 80px;
	}

	/* Make CTA buttons full-width on mobile */
	.cta-button-mobile-full {
		width: 100%;
	}

	/* Section title sizes on mobile */
	.font-serif.text-4xl {
		font-size: 1.875rem;
	}

	.font-serif.text-5xl {
		font-size: 2.25rem;
	}
}

@media (min-width: 769px) {
	.mobile-footer-compact {
		display: none;
	}
	.desktop-footer-full {
		display: grid;
	}

	.mobile-carousel {
		display: grid;
	}
}

/* Print styles */
@media print {
	.no-print {
		display: none !important;
	}

	body {
		background: white !important;
	}
}

/* Accessibility - focus visible */
:focus-visible {
	outline: 2px solid #8b5a2b;
	outline-offset: 2px;
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

/* Before/After Comparison Slider */
.before-after-slider {
	position: relative;
	width: 100%;
	overflow: hidden;
	cursor: ew-resize;
	user-select: none;
	-webkit-user-select: none;
}

.before-after-slider .slider-image {
	display: block;
	width: 100%;
	height: auto;
	pointer-events: none;
}

.before-after-slider .before-image {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.slider-handle {
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 4px;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	z-index: 20;
	pointer-events: none;
}

.slider-line {
	flex: 1;
	width: 4px;
	background: white;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.slider-button {
	width: 48px;
	height: 48px;
	background: white;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
	pointer-events: auto;
	cursor: ew-resize;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.slider-button:hover {
	transform: scale(1.1);
	box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

.slider-button i {
	font-size: 18px;
}

/* Touch feedback for mobile */
@media (hover: none) {
	.slider-button {
		width: 56px;
		height: 56px;
	}

	.slider-button i {
		font-size: 20px;
	}
}

/* Triple Stage Transformation Slider */
.triple-slider {
	position: relative;
	width: 100%;
	overflow: hidden;
}

.triple-slider-container {
	position: relative;
	width: 100%;
}

.triple-slider-image {
	display: block;
	width: 100%;
	height: auto;
}

.triple-slider-stage {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	transition: opacity 0.5s ease;
}

.triple-slider-track {
	position: relative;
	width: 100%;
	height: 16px;
	background: linear-gradient(90deg, #8b5a2b 0%, #d4a574 50%, #f5e6d3 100%);
	border-radius: 8px;
	margin-top: 20px;
	cursor: pointer;
}

.triple-slider-thumb {
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 32px;
	height: 32px;
	background: white;
	border: 4px solid #8b5a2b;
	border-radius: 50%;
	cursor: grab;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
	transition: transform 0.1s ease, box-shadow 0.2s ease;
	z-index: 10;
}

.triple-slider-thumb:hover {
	transform: translate(-50%, -50%) scale(1.15);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.triple-slider-thumb:active {
	cursor: grabbing;
}

.triple-slider-markers {
	display: flex;
	justify-content: space-between;
	margin-top: 12px;
	position: relative;
}

.triple-slider-marker {
	display: flex;
	flex-direction: column;
	align-items: center;
	cursor: pointer;
	transition: transform 0.2s ease;
}

.triple-slider-marker:hover {
	transform: scale(1.05);
}

.triple-slider-marker.active .marker-dot {
	background: #8b5a2b;
	transform: scale(1.3);
}

.triple-slider-marker.active .marker-label {
	color: #8b5a2b;
	font-weight: 600;
}

.marker-dot {
	width: 16px;
	height: 16px;
	background: #d4a574;
	border-radius: 50%;
	margin-bottom: 8px;
	transition: all 0.3s ease;
	border: 3px solid white;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.marker-label {
	font-size: 14px;
	color: #666;
	font-weight: 500;
	transition: all 0.3s ease;
	text-align: center;
}

.marker-icon {
	font-size: 20px;
	margin-bottom: 4px;
	color: #8b5a2b;
}

/* Stage indicator badge */
.stage-badge {
	position: absolute;
	top: 16px;
	left: 16px;
	background: rgba(0, 0, 0, 0.7);
	color: white;
	padding: 8px 16px;
	border-radius: 20px;
	font-size: 14px;
	font-weight: 500;
	z-index: 15;
	backdrop-filter: blur(4px);
	transition: all 0.3s ease;
}

.stage-badge i {
	margin-right: 8px;
}

/* Quad slider (4-stage) specific styles */
.quad-slider .triple-slider-track {
	background: linear-gradient(
		90deg,
		#8b5a2b 0%,
		#d4a574 33%,
		#f5e6d3 66%,
		#ff6b6b 100%
	);
}

/* Quint slider (5-stage) specific styles */
.quint-slider .triple-slider-track {
	background: linear-gradient(
		90deg,
		#8b5a2b 0%,
		#c4885a 25%,
		#d4a574 50%,
		#a8d5ba 75%,
		#ff6b6b 100%
	);
}

/* Video element in slider */
.triple-slider-video {
	object-fit: cover;
}

/* Animated stage marker styling */
.triple-slider-marker[data-stage='3'].active .marker-dot {
	background: #4ade80;
	animation: none;
}

.triple-slider-marker[data-stage='3'].active .marker-icon {
	color: #4ade80;
}

.triple-slider-marker[data-stage='3'].active .marker-label {
	color: #22c55e;
}

/* Fun "fail" stage styling - now stage 4 for quint slider */
.quint-slider .triple-slider-marker[data-stage='4'].active .marker-dot {
	background: #ff6b6b;
	animation: wiggle 0.5s ease-in-out;
}

.quint-slider .triple-slider-marker[data-stage='4'].active .marker-icon {
	color: #ff6b6b;
}

.quint-slider .triple-slider-marker[data-stage='4'].active .marker-label {
	color: #ff6b6b;
}

/* Keep quad slider fail stage at 3 */
.quad-slider .triple-slider-marker[data-stage='3'].active .marker-dot {
	background: #ff6b6b;
	animation: wiggle 0.5s ease-in-out;
}

.quad-slider .triple-slider-marker[data-stage='3'].active .marker-icon {
	color: #ff6b6b;
}

.quad-slider .triple-slider-marker[data-stage='3'].active .marker-label {
	color: #ff6b6b;
}

@keyframes wiggle {
	0%,
	100% {
		transform: scale(1.3) rotate(0deg);
	}
	25% {
		transform: scale(1.3) rotate(-5deg);
	}
	75% {
		transform: scale(1.3) rotate(5deg);
	}
}

/* Photo + Video reveal container */
.photo-video-reveal {
	position: relative;
	overflow: hidden;
	cursor: pointer;
}

.photo-video-reveal .source-photo {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
	transition: opacity 0.8s ease;
}

.photo-video-reveal video {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity 0.8s ease;
}

.photo-video-reveal.playing .source-photo {
	opacity: 0;
}

.photo-video-reveal.playing video {
	opacity: 1;
}

/* Transitioning state - pausing on photo before video plays */
.photo-video-reveal.transitioning .source-photo {
	animation: photoGlow 1s ease-in-out;
}

.photo-video-reveal.transitioning::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: radial-gradient(
		circle at center,
		rgba(212, 165, 116, 0.3) 0%,
		transparent 70%
	);
	animation: transitionGlow 1s ease-in-out;
	pointer-events: none;
	z-index: 10;
}

@keyframes photoGlow {
	0% {
		filter: brightness(1);
	}
	50% {
		filter: brightness(1.15) saturate(1.1);
	}
	100% {
		filter: brightness(1);
	}
}

@keyframes transitionGlow {
	0% {
		opacity: 0;
	}
	50% {
		opacity: 1;
	}
	100% {
		opacity: 0;
	}
}

.photo-video-reveal .reveal-hint {
	position: absolute;
	bottom: 8px;
	left: 50%;
	transform: translateX(-50%);
	background: rgba(0, 0, 0, 0.7);
	color: white;
	padding: 6px 12px;
	border-radius: 20px;
	font-size: 11px;
	display: flex;
	align-items: center;
	gap: 6px;
	backdrop-filter: blur(4px);
	transition: all 0.3s ease;
	z-index: 5;
}

.photo-video-reveal:hover .reveal-hint {
	background: rgba(139, 90, 43, 0.9);
}

.photo-video-reveal .reveal-hint i {
	animation: pulse 1.5s ease-in-out infinite;
	font-size: 10px;
}

/* Hero Photo-to-Video Magic Transition */
.hero-photo-video {
	position: relative;
	overflow: hidden;
}

.hero-photo-video .hero-source-photo {
	width: 100%;
	display: block;
	transition: opacity 1.2s ease, filter 0.8s ease;
	filter: sepia(20%) contrast(1.1);
}

.hero-photo-video .hero-video {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity 1.2s ease;
}

.hero-photo-video.animating .hero-source-photo {
	opacity: 0;
	filter: sepia(0%) brightness(1.3);
}

.hero-photo-video.animating .hero-video {
	opacity: 1;
}

.hero-photo-video .hero-magic-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.5s ease;
	z-index: 15;
	background: radial-gradient(
		circle at center,
		rgba(212, 165, 116, 0.4) 0%,
		transparent 70%
	);
}

.hero-photo-video.transitioning .hero-magic-overlay {
	opacity: 1;
	animation: magicPulse 1s ease-out;
}

.hero-photo-video .magic-sparkles {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	font-size: 48px;
	color: #d4a574;
	text-shadow: 0 0 20px rgba(212, 165, 116, 0.8),
		0 0 40px rgba(212, 165, 116, 0.5);
	opacity: 0;
}

.hero-photo-video.transitioning .magic-sparkles {
	animation: sparkleAppear 1s ease-out;
}

@keyframes magicPulse {
	0% {
		opacity: 0;
		transform: scale(0.8);
	}
	50% {
		opacity: 1;
		transform: scale(1.2);
	}
	100% {
		opacity: 0;
		transform: scale(1.5);
	}
}

@keyframes sparkleAppear {
	0% {
		opacity: 0;
		transform: translate(-50%, -50%) scale(0.5) rotate(0deg);
	}
	50% {
		opacity: 1;
		transform: translate(-50%, -50%) scale(1.2) rotate(180deg);
	}
	100% {
		opacity: 0;
		transform: translate(-50%, -50%) scale(0.8) rotate(360deg);
	}
}

/* ========================================
   AI Chat Assistant Widget
   ======================================== */

#chat-assistant-widget {
	position: fixed;
	bottom: 24px;
	right: 24px;
	z-index: 9999;
	font-family: 'Inter', system-ui, sans-serif;
	transition: bottom 0.3s ease;
}

/* Toggle Button */
.chat-toggle {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: linear-gradient(135deg, #8b5a2b 0%, #d4a574 100%);
	border: none;
	cursor: pointer;
	box-shadow: 0 4px 16px rgba(139, 90, 43, 0.35);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
	position: relative;
}

.chat-toggle:hover {
	transform: scale(1.1);
	box-shadow: 0 6px 25px rgba(139, 90, 43, 0.5);
}

.chat-toggle-icon,
.chat-toggle-close {
	color: white;
	font-size: 20px;
	transition: all 0.3s ease;
	position: absolute;
}

.chat-toggle-close {
	opacity: 0;
	transform: rotate(-90deg) scale(0.5);
}

.chat-open .chat-toggle-icon {
	opacity: 0;
	transform: rotate(90deg) scale(0.5);
}

.chat-open .chat-toggle-close {
	opacity: 1;
	transform: rotate(0deg) scale(1);
}

.chat-notification-badge {
	position: absolute;
	top: -2px;
	right: -2px;
	width: 18px;
	height: 18px;
	background: #ef4444;
	color: white;
	font-size: 10px;
	font-weight: 600;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 2px solid white;
	animation: pulse 2s infinite;
}

/* Chat Window */
.chat-window {
	position: absolute;
	bottom: 64px;
	right: 0;
	width: 340px;
	max-width: calc(100vw - 48px);
	height: 480px;
	max-height: calc(100vh - 120px);
	background: white;
	border-radius: 14px;
	box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	opacity: 0;
	visibility: hidden;
	transform: translateY(20px) scale(0.95);
	transition: all 0.3s ease;
}

.chat-open .chat-window {
	opacity: 1;
	visibility: visible;
	transform: translateY(0) scale(1);
}

/* Chat Header */
.chat-header {
	background: linear-gradient(135deg, #8b5a2b 0%, #d4a574 100%);
	color: white;
	padding: 12px 14px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.chat-header-info {
	display: flex;
	align-items: center;
	gap: 10px;
}

.chat-avatar {
	width: 36px;
	height: 36px;
	background: rgba(255, 255, 255, 0.2);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 17px;
}

.chat-header h4 {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
}

.chat-status {
	font-size: 11px;
	opacity: 0.9;
	display: flex;
	align-items: center;
	gap: 5px;
}

.status-dot {
	width: 6px;
	height: 6px;
	background: #4ade80;
	border-radius: 50%;
	animation: pulse 2s infinite;
}

.chat-minimize {
	background: rgba(255, 255, 255, 0.2);
	border: none;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	color: white;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s;
}

.chat-minimize:hover {
	background: rgba(255, 255, 255, 0.3);
}

/* Chat Messages */
.chat-messages {
	flex: 1;
	overflow-y: auto;
	padding: 12px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	background: #faf7f4;
}

.chat-message {
	max-width: 88%;
	animation: messageSlide 0.3s ease;
}

@keyframes messageSlide {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.user-message {
	align-self: flex-end;
}

.bot-message {
	align-self: flex-start;
}

.message-content {
	padding: 10px 14px;
	border-radius: 14px;
	font-size: 14px;
	line-height: 1.45;
}

.user-message .message-content {
	background: linear-gradient(135deg, #8b5a2b 0%, #d4a574 100%);
	color: white;
	border-bottom-right-radius: 4px;
}

.bot-message .message-content {
	background: white;
	color: #333;
	border-bottom-left-radius: 4px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.message-time {
	font-size: 11px;
	color: #999;
	margin-top: 4px;
	display: block;
}

.user-message .message-time {
	text-align: right;
}

/* Typing Indicator */
.typing-indicator .message-content {
	padding: 12px 16px;
}

.typing-dots {
	display: flex;
	gap: 4px;
}

.typing-dots span {
	width: 6px;
	height: 6px;
	background: #8b5a2b;
	border-radius: 50%;
	animation: typingBounce 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
	animation-delay: 0s;
}

.typing-dots span:nth-child(2) {
	animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
	animation-delay: 0.4s;
}

@keyframes typingBounce {
	0%,
	80%,
	100% {
		transform: scale(0.6);
		opacity: 0.5;
	}
	40% {
		transform: scale(1);
		opacity: 1;
	}
}

/* Quick Actions */
.chat-quick-actions {
	padding: 6px 12px;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	background: white;
	border-top: 1px solid #f0ebe6;
}

.quick-action-btn {
	background: #f5e6d3;
	border: none;
	padding: 5px 11px;
	border-radius: 12px;
	font-size: 12px;
	color: #8b5a2b;
	cursor: pointer;
	transition: all 0.2s ease;
	font-weight: 500;
}

.quick-action-btn:hover {
	background: #8b5a2b;
	color: white;
	transform: translateY(-1px);
}

.quick-action-btn:active {
	transform: scale(0.97);
}

/* Rush Order Button - stands out */
.quick-action-btn.rush-btn {
	background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
	color: white;
	font-weight: 600;
	animation: pulse-subtle 2s ease-in-out infinite;
}

.quick-action-btn.rush-btn:hover {
	background: linear-gradient(135deg, #b91c1c 0%, #dc2626 100%);
	box-shadow: 0 2px 8px rgba(220, 38, 38, 0.35);
}

@keyframes pulse-subtle {
	0%,
	100% {
		opacity: 1;
	}
	50% {
		opacity: 0.85;
	}
}

/* Input Area */
.chat-input-area {
	padding: 10px 12px;
	display: flex;
	gap: 8px;
	background: white;
	border-top: 1px solid #f0ebe6;
}

/* Powered by badge */
.chat-powered-by {
	text-align: center;
	padding: 6px 12px;
	font-size: 10px;
	color: #999;
	background: #faf7f4;
	border-top: 1px solid #f0ebe6;
}

.chat-powered-by i {
	color: #8b5a2b;
	margin-right: 3px;
}

#chat-input {
	flex: 1;
	border: 1.5px solid #f0ebe6;
	border-radius: 20px;
	padding: 9px 14px;
	font-size: 14px;
	outline: none;
	transition: border-color 0.2s;
}

#chat-input:focus {
	border-color: #d4a574;
}

#chat-input::placeholder {
	color: #aaa;
}

#chat-send {
	width: 38px;
	height: 38px;
	background: linear-gradient(135deg, #8b5a2b 0%, #d4a574 100%);
	border: none;
	border-radius: 50%;
	color: white;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s;
	flex-shrink: 0;
}

#chat-send:hover {
	transform: scale(1.05);
	box-shadow: 0 4px 12px rgba(139, 90, 43, 0.3);
}

#chat-send i {
	font-size: 14px;
}

/* Mobile Responsive - Bottom Sheet Style */
@media (max-width: 640px) {
	#chat-assistant-widget {
		bottom: 70px; /* Raise above sticky mobile CTA */
		right: 12px;
		transition: bottom 0.3s ease, opacity 0.3s ease;
	}

	/* When chat is closed, make toggle smaller and semi-transparent until hovered */
	.chat-toggle {
		width: 44px;
		height: 44px;
		opacity: 0.7;
	}
	
	.chat-toggle:active {
		opacity: 1;
	}
}

@media (max-width: 480px) {
	.chat-toggle {
		width: 42px;
		height: 42px;
	}

	/* Hide toggle when chat is open on mobile */
	#chat-assistant-widget.chat-open .chat-toggle {
		opacity: 0;
		pointer-events: none;
		transform: scale(0.8);
	}

	.chat-window {
		position: fixed;
		bottom: 0;
		left: 0;
		right: 0;
		width: 100%;
		max-width: 100%;
		height: 70vh;
		min-height: 400px;
		max-height: 90vh;
		border-radius: 20px 20px 0 0;
		box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.15);
		transform: translateY(100%);
		transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1),
			height 0.3s cubic-bezier(0.32, 0.72, 0, 1);
	}

	.chat-open .chat-window {
		transform: translateY(0);
	}

	/* Expanded state for mobile - near full screen */
	.chat-window.expanded {
		height: 92vh;
		max-height: 92vh;
	}

	/* Drag Handle */
	.chat-drag-handle {
		display: flex;
		justify-content: center;
		align-items: center;
		padding: 10px 0 6px 0;
		cursor: grab;
		touch-action: none;
		background: linear-gradient(135deg, #8b5a2b 0%, #d4a574 100%);
		border-radius: 20px 20px 0 0;
	}

	.chat-drag-handle:active {
		cursor: grabbing;
	}

	.chat-drag-handle-bar {
		width: 36px;
		height: 4px;
		background: rgba(255, 255, 255, 0.5);
		border-radius: 2px;
		transition: background 0.2s;
	}

	.chat-drag-handle:hover .chat-drag-handle-bar {
		background: rgba(255, 255, 255, 0.7);
	}

	/* Adjust header for bottom sheet */
	.chat-header {
		padding: 8px 14px 10px;
		border-radius: 0;
		background: linear-gradient(135deg, #8b5a2b 0%, #d4a574 100%);
	}

	.chat-avatar {
		width: 30px;
		height: 30px;
		font-size: 14px;
	}

	.chat-header h4 {
		font-size: 13px;
	}

	.chat-status {
		font-size: 10px;
	}

	.chat-minimize {
		width: 26px;
		height: 26px;
	}

	.chat-messages {
		padding: 10px;
		flex: 1;
		min-height: 0;
	}

	.message-content {
		padding: 9px 12px;
		font-size: 13px;
		border-radius: 12px;
	}

	.chat-quick-actions {
		padding: 6px 10px;
		gap: 5px;
	}

	.quick-action-btn {
		padding: 5px 10px;
		font-size: 11px;
		border-radius: 10px;
	}

	.chat-input-area {
		padding: 8px 12px;
		padding-bottom: max(8px, env(safe-area-inset-bottom));
	}

	#chat-input {
		padding: 8px 12px;
		font-size: 14px;
		border-radius: 18px;
	}

	#chat-send {
		width: 36px;
		height: 36px;
	}

	.chat-powered-by {
		padding: 5px 10px;
		padding-bottom: max(5px, env(safe-area-inset-bottom));
		font-size: 9px;
	}

	/* Overlay behind bottom sheet */
	.chat-overlay {
		display: block;
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		background: rgba(0, 0, 0, 0);
		pointer-events: none;
		transition: background 0.3s ease;
		z-index: -1;
	}

	.chat-open .chat-overlay {
		background: rgba(0, 0, 0, 0.3);
		pointer-events: auto;
	}
}

/* Desktop: hide mobile-only elements */
@media (min-width: 481px) {
	.chat-drag-handle,
	.chat-overlay {
		display: none !important;
	}
}

/* ============================================
   MOBILE ENHANCEMENTS
   ============================================ */

@media (max-width: 768px) {
	/* Hide transformation slider descriptions on mobile - show only icons and titles */
	.triple-slider-marker .marker-label .text-gray-400,
	.triple-slider-marker .marker-label span.text-xs:not(:first-child),
	.quint-slider .marker-label .text-gray-400 {
		display: none !important;
	}

	/* Make slider marker labels more compact on mobile */
	.triple-slider-marker .marker-label,
	.quint-slider .marker-label {
		gap: 2px;
	}

	/* Hide gallery play indicators on mobile */
	.gallery-piece .play-indicator {
		display: none !important;
	}

	/* Custom projects horizontal slider on mobile */
	.custom-projects-grid {
		display: flex !important;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		-ms-overflow-style: none;
		gap: 1rem;
		padding: 0 1rem 1rem;
		margin: 0 -1rem;
	}

	.custom-projects-grid::-webkit-scrollbar {
		display: none;
	}

	.custom-projects-grid > * {
		scroll-snap-align: center;
		flex: 0 0 85%;
		min-width: 280px;
	}

	/* About page - See What We Create horizontal slider on mobile */
	.about-portfolio-grid {
		display: flex !important;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		-ms-overflow-style: none;
		gap: 1rem;
		padding: 0 1rem 1rem;
		margin: 0 -1rem;
	}

	.about-portfolio-grid::-webkit-scrollbar {
		display: none;
	}

	.about-portfolio-grid > * {
		scroll-snap-align: center;
		flex: 0 0 85%;
		min-width: 280px;
	}

	/* About page - Our Process cards on mobile */
	.about-process-grid {
		display: grid !important;
		grid-template-columns: 1fr 1fr;
		gap: 1rem;
	}

	.about-process-grid .process-card {
		background: rgba(255, 255, 255, 0.08);
	}
}

/* ============================================
   MOBILE TOUCH OPTIMIZATION
   Ensuring minimum 48px touch targets for buttons and links
   ============================================ */

@media (max-width: 768px) {
	/* Ensure all interactive elements have minimum touch target size */
	button, 
	a.rounded-full,
	a.rounded-xl,
	a.rounded-lg,
	.video-container,
	.video-play-btn {
		min-height: 44px;
		min-width: 44px;
	}
	
	/* Make CTA buttons larger on mobile */
	a[href*="checkout"],
	button[type="submit"],
	.inline-flex.items-center.bg-primary,
	.inline-flex.items-center.bg-amber-500 {
		padding: 1rem 1.5rem !important;
		font-size: 1rem !important;
	}
	
	/* Increase tap target for navigation links */
	nav a, 
	footer a {
		padding: 0.75rem 0.5rem;
	}
	
	/* Better spacing for form inputs on mobile */
	input[type="text"],
	input[type="email"],
	input[type="tel"],
	input[type="number"],
	textarea,
	select {
		min-height: 48px;
		font-size: 16px !important; /* Prevents iOS zoom on focus */
		padding: 0.875rem 1rem;
	}
	
	/* Upload areas more touch friendly */
	.upload-zone,
	[class*="dropzone"],
	[class*="file-upload"] {
		min-height: 150px;
		padding: 2rem;
	}
	
	/* Sample video cards - larger touch area */
	.video-container {
		min-height: 200px;
	}
	
	/* Make modal close buttons larger */
	button[onclick*="closeModal"],
	button[onclick*="close"] {
		min-width: 44px;
		min-height: 44px;
		padding: 0.5rem;
	}
	
	/* Hero section mobile optimizations */
	.hero-photo-video {
		border-radius: 1rem;
	}
	
	/* Reduce hero padding on small screens */
	section.min-h-screen {
		min-height: auto;
		padding-top: 5rem;
		padding-bottom: 2rem;
	}
	
	/* Stack stats horizontally with less gap */
	.flex.items-center.gap-6 {
		gap: 1rem;
	}
	
	/* How It Works section - vertical on mobile */
	.how-it-works-grid {
		display: flex !important;
		flex-direction: column;
		gap: 2rem;
	}
	
	.how-it-works-grid > div {
		display: flex;
		align-items: flex-start;
		text-align: left;
		gap: 1rem;
	}
	
	.how-it-works-grid .step-number {
		flex-shrink: 0;
		width: 3rem !important;
		height: 3rem !important;
		margin: 0 !important;
	}
	
	.how-it-works-grid .step-number span {
		font-size: 1.25rem !important;
	}
	
	.how-it-works-grid .step-connector {
		display: none !important;
	}
	
	/* Reduce section padding on mobile */
	section.py-24 {
		padding-top: 3rem;
		padding-bottom: 3rem;
	}
	
	/* Triple slider more compact on mobile */
	.triple-slider-markers {
		gap: 0;
	}
	
	.triple-slider-marker {
		padding: 0.25rem;
	}
	
	.triple-slider-marker .marker-icon {
		width: 2rem;
		height: 2rem;
		font-size: 0.875rem;
	}
	
	.triple-slider-marker .marker-label {
		font-size: 0.625rem;
		line-height: 1.2;
	}
	
	/* Launch Offer cards - stack on very small screens */
	.grid.md\\:grid-cols-3.gap-8 {
		gap: 1rem;
	}
}

/* Extra small screens (phones in portrait) */
@media (max-width: 375px) {
	/* Even more compact on very small screens */
	h1.text-4xl {
		font-size: 1.75rem !important;
	}
	
	h2.text-4xl {
		font-size: 1.5rem !important;
	}
	
	.text-2xl {
		font-size: 1.25rem;
	}
	
	/* Hide some decorative elements */
	.absolute.blur-2xl {
		display: none;
	}
	
	/* Reduce icon sizes */
	.w-20.h-20 {
		width: 4rem !important;
		height: 4rem !important;
	}
	
	.text-3xl {
		font-size: 1.5rem;
	}
}

/* ============================================
   TAP TO PLAY OVERLAY (Mobile Hero)
   ============================================ */
.tap-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.4);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 25;
	cursor: pointer;
	transition: opacity 0.4s ease, visibility 0.4s ease;
	backdrop-filter: blur(2px);
}

.tap-overlay.hidden {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

.tap-content {
	text-align: center;
	color: white;
}

.tap-icon {
	width: 70px;
	height: 70px;
	background: rgba(255, 255, 255, 0.2);
	border: 2px solid rgba(255, 255, 255, 0.5);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 12px;
	animation: tapPulse 2s ease-in-out infinite;
}

.tap-icon i {
	font-size: 28px;
	color: white;
}

.tap-text {
	font-size: 16px;
	font-weight: 600;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
	letter-spacing: 0.5px;
}

@keyframes tapPulse {
	0%, 100% {
		transform: scale(1);
		box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
	}
	50% {
		transform: scale(1.05);
		box-shadow: 0 0 0 15px rgba(255, 255, 255, 0);
	}
}

/* ============================================
   FIX VIDEO FLICKER - Preload poster frames
   ============================================ */
.video-container video,
.hero-video {
	background-color: transparent;
}

.video-container .video-poster,
.hero-source-photo {
	will-change: opacity;
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
}

/* Smoother video poster fade */
.video-container .video-poster {
	transition: opacity 0.6s ease-out !important;
}

.video-container .video-poster.fade-out {
	opacity: 0 !important;
}

/* ============================================
   SERVICE CARDS SCROLL ACTIVATION (Mobile)
   ============================================ */
@media (max-width: 768px) {
	.service-scroll-card {
		opacity: 0.8;
		transform: translateY(8px);
		transition: all 0.3s ease-out;
	}
	
	.service-scroll-card.active {
		opacity: 1;
		transform: translateY(0);
		box-shadow: 0 4px 12px rgba(0,0,0,0.08);
	}
}

/* ============================================
   MOBILE-FRIENDLY SLIDER SECTION
   ============================================ */
@media (max-width: 768px) {
	.triple-slider {
		border-radius: 16px;
	}
	
	.triple-slider-container {
		min-height: 250px;
	}
	
	.triple-slider-markers {
		gap: 4px;
	}
	
	.triple-slider-marker {
		padding: 6px 4px;
	}
	
	.marker-icon {
		width: 28px;
		height: 28px;
		font-size: 12px;
	}
	
	.marker-label {
		font-size: 10px;
		line-height: 1.2;
	}
	
	.marker-label span {
		display: none;
	}
	
	.stage-badge {
		font-size: 12px;
		padding: 6px 12px;
	}
	
	.triple-slider-track {
		height: 6px;
	}
	
	.triple-slider-thumb {
		width: 20px;
		height: 20px;
	}
}

/* ============================================
   CHAT ASSISTANT MOBILE - TALLER
   ============================================ */
@media (max-width: 480px) {
	.chat-window {
		height: 65vh !important;
		min-height: 400px !important;
		max-height: 85vh !important;
	}
	
	.chat-messages {
		min-height: 150px !important;
	}
	
	.chat-window.expanded {
		height: 90vh !important;
	}
	
	.quick-action-btn {
		font-size: 12px !important;
		padding: 6px 10px !important;
	}
	
	.message-content {
		font-size: 14px !important;
	}
}

/* ============================================
   HERO SCAN EFFECT - Magical transformation
   ============================================ */
/* Clean, condensed scan effect - matches upload photo scan */
.hero-scan-overlay {
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 30;
	overflow: hidden;
	opacity: 0;
	transition: opacity 0.2s ease;
}

.hero-scan-overlay.scanning {
	opacity: 1;
}

/* Main scan line - clean amber sweep like upload */
.hero-scan-line {
	position: absolute;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(to right, transparent, #d97706, transparent);
	box-shadow: 0 0 20px rgba(217, 119, 6, 0.8);
	top: 0;
	transition: none;
}

/* Trailing glow behind the scan line */
.hero-scan-glow {
	position: absolute;
	left: 0;
	right: 0;
	height: 60px;
	background: linear-gradient(180deg,
		rgba(217, 119, 6, 0.25) 0%,
		rgba(217, 119, 6, 0.1) 40%,
		transparent 100%
	);
	top: -60px;
	pointer-events: none;
}

/* Scanning text - subtle pill badge */
.hero-scan-text {
	position: absolute;
	bottom: 16px;
	left: 50%;
	transform: translateX(-50%);
	background: rgba(0, 0, 0, 0.75);
	color: white;
	padding: 6px 16px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 500;
	display: flex;
	align-items: center;
	gap: 6px;
	backdrop-filter: blur(4px);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.hero-scan-overlay.scanning .hero-scan-text {
	opacity: 1;
}

.hero-scan-text i {
	animation: spinPulse 0.8s linear infinite;
	font-size: 10px;
}

@keyframes spinPulse {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

/* Grid overlay - subtle scan grid */
.hero-scan-grid {
	position: absolute;
	inset: 0;
	background-image: 
		linear-gradient(rgba(217, 119, 6, 0.08) 1px, transparent 1px),
		linear-gradient(90deg, rgba(217, 119, 6, 0.08) 1px, transparent 1px);
	background-size: 15px 15px;
	opacity: 0;
	transition: opacity 0.2s ease;
}

.hero-scan-overlay.scanning .hero-scan-grid {
	opacity: 1;
}

/* ============================================
   TRANSFORMATION FLASH EFFECT
   ============================================ */
/* Flash overlay when scan completes */
.hero-transform-flash {
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse at center, 
		rgba(255, 255, 255, 0.95) 0%,
		rgba(255, 220, 150, 0.8) 30%,
		rgba(217, 119, 6, 0.4) 60%,
		transparent 100%
	);
	opacity: 0;
	pointer-events: none;
	z-index: 35;
	border-radius: inherit;
}

.hero-transform-flash.active {
	animation: transformFlash 0.8s ease-out forwards;
}

@keyframes transformFlash {
	0% {
		opacity: 0;
		transform: scale(0.8);
	}
	20% {
		opacity: 1;
		transform: scale(1.05);
	}
	100% {
		opacity: 0;
		transform: scale(1.2);
	}
}

/* "Transformed!" badge that appears */
.hero-transform-badge {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) scale(0);
	background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
	color: white;
	padding: 12px 24px;
	border-radius: 30px;
	font-size: 16px;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 8px;
	box-shadow: 0 10px 40px rgba(217, 119, 6, 0.5);
	z-index: 40;
	pointer-events: none;
	opacity: 0;
}

.hero-transform-badge.active {
	animation: badgePop 1.2s ease-out forwards;
}

@keyframes badgePop {
	0% {
		opacity: 0;
		transform: translate(-50%, -50%) scale(0);
	}
	30% {
		opacity: 1;
		transform: translate(-50%, -50%) scale(1.1);
	}
	50% {
		transform: translate(-50%, -50%) scale(1);
	}
	80% {
		opacity: 1;
		transform: translate(-50%, -50%) scale(1);
	}
	100% {
		opacity: 0;
		transform: translate(-50%, -50%) scale(0.9) translateY(-20px);
	}
}

.hero-transform-badge i {
	font-size: 18px;
}

