/**
 * MercekElements - Mercek Motion Effects CSS
 * 
 * Scrolling Effects, Mouse Effects, Sticky ve Entrance Animations
 */

/* ==================== 1. STICKY (YAPIŞKANLIK) ==================== */
.mercek-sticky {
	transition: box-shadow 0.3s ease, background-color 0.3s ease, padding 0.3s ease;
}

.mercek-sticky-top {
	position: -webkit-sticky !important;
	position: sticky !important;
	top: var(--mercek-sticky-offset, 0px);
	z-index: 999;
}

.mercek-sticky-bottom {
	position: -webkit-sticky !important;
	position: sticky !important;
	bottom: var(--mercek-sticky-offset, 0px);
	z-index: 999;
}

/* Scroll mesafesi aşıldığında eklenen aktif sınıf */
.mercek-sticky-active {
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* ==================== 2. SCROLL & MOUSE EFFECTS ==================== */
.mercek-has-scroll-fx {
	will-change: transform, opacity, filter;
}

.mercek-has-mouse-fx {
	will-change: transform;
	transform-style: preserve-3d;
	transition: transform 0.08s ease-out;
}

/* ==================== 3. ENTRANCE ANIMATIONS (GİRİŞ ANİMASYONLARI) ==================== */
.mercek-entrance-element {
	opacity: 0;
	animation-fill-mode: forwards;
	animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

.mercek-dur-fast {
	animation-duration: 0.4s !important;
}

.mercek-dur-normal {
	animation-duration: 0.75s !important;
}

.mercek-dur-slow {
	animation-duration: 1.25s !important;
}

/* Fade In Up */
.mercek-anim-fade-in-up.is-revealed {
	animation-name: mercekFadeInUp;
}

@keyframes mercekFadeInUp {
	from {
		opacity: 0;
		transform: translate3d(0, 40px, 0);
	}
	to {
		opacity: 1;
		transform: translate3d(0, 0, 0);
	}
}

/* Fade In Down */
.mercek-anim-fade-in-down.is-revealed {
	animation-name: mercekFadeInDown;
}

@keyframes mercekFadeInDown {
	from {
		opacity: 0;
		transform: translate3d(0, -40px, 0);
	}
	to {
		opacity: 1;
		transform: translate3d(0, 0, 0);
	}
}

/* Fade In Left */
.mercek-anim-fade-in-left.is-revealed {
	animation-name: mercekFadeInLeft;
}

@keyframes mercekFadeInLeft {
	from {
		opacity: 0;
		transform: translate3d(-40px, 0, 0);
	}
	to {
		opacity: 1;
		transform: translate3d(0, 0, 0);
	}
}

/* Fade In Right */
.mercek-anim-fade-in-right.is-revealed {
	animation-name: mercekFadeInRight;
}

@keyframes mercekFadeInRight {
	from {
		opacity: 0;
		transform: translate3d(40px, 0, 0);
	}
	to {
		opacity: 1;
		transform: translate3d(0, 0, 0);
	}
}

/* Zoom In Spring */
.mercek-anim-zoom-in-spring.is-revealed {
	animation-name: mercekZoomInSpring;
}

@keyframes mercekZoomInSpring {
	0% {
		opacity: 0;
		transform: scale(0.85);
	}
	70% {
		opacity: 1;
		transform: scale(1.03);
	}
	100% {
		opacity: 1;
		transform: scale(1);
	}
}

/* Blur In Reveal */
.mercek-anim-blur-in.is-revealed {
	animation-name: mercekBlurIn;
}

@keyframes mercekBlurIn {
	from {
		opacity: 0;
		filter: blur(14px);
		transform: scale(0.96);
	}
	to {
		opacity: 1;
		filter: blur(0px);
		transform: scale(1);
	}
}

/* Kinetic Slide */
.mercek-anim-kinetic-slide.is-revealed {
	animation-name: mercekKineticSlide;
}

@keyframes mercekKineticSlide {
	from {
		opacity: 0;
		transform: translate3d(0, 60px, 0) rotate(2deg);
	}
	to {
		opacity: 1;
		transform: translate3d(0, 0, 0) rotate(0deg);
	}
}

/* ==================== 4. MERCEK HOVER EFEKTLERİ ==================== */

/* Taban Geçiş Tanımı: Tüm hover efektli elementler için (Donanım Hızlandırmalı) */
.elementor-element[class*="mercek-hover-fx-"],
[class*="mercek-hover-fx-"] {
	--mercek-hover-duration: 400ms;
	--mercek-hover-delay: 0ms;
	--mercek-hover-easing: cubic-bezier(0.25, 1, 0.5, 1);
	--mercek-hover-translate-y: -12px;
	--mercek-hover-tilt-deg: 3deg;
	--mercek-hover-scale: 1.04;

	transition-property: transform, box-shadow, filter !important;
	transition-duration: var(--mercek-hover-duration, 400ms) !important;
	transition-delay: var(--mercek-hover-delay, 0ms) !important;
	transition-timing-function: var(--mercek-hover-easing, cubic-bezier(0.25, 1, 0.5, 1)) !important;
	will-change: transform, box-shadow;
}

/* 1. Havaya Kalkma (Float Up) */
.elementor-element.mercek-hover-fx-lift-up:hover,
.mercek-hover-fx-lift-up:hover {
	transform: translateY(var(--mercek-hover-translate-y, -12px)) !important;
	z-index: 5 !important;
}

/* 2. Aşağı İnme (Float Down) */
.elementor-element.mercek-hover-fx-lift-down:hover,
.mercek-hover-fx-lift-down:hover {
	transform: translateY(calc(-1 * var(--mercek-hover-translate-y, -12px))) !important;
	z-index: 5 !important;
}

/* 3. Sağa Eğilme (Tilt Right + Havaya Kalkma) */
.elementor-element.mercek-hover-fx-tilt-right:hover,
.mercek-hover-fx-tilt-right:hover {
	transform: translateY(calc(var(--mercek-hover-translate-y, -12px) * 0.6)) rotate(var(--mercek-hover-tilt-deg, 3deg)) !important;
	z-index: 5 !important;
}

/* 4. Sola Eğilme (Tilt Left + Havaya Kalkma) */
.elementor-element.mercek-hover-fx-tilt-left:hover,
.mercek-hover-fx-tilt-left:hover {
	transform: translateY(calc(var(--mercek-hover-translate-y, -12px) * 0.6)) rotate(calc(-1 * var(--mercek-hover-tilt-deg, 3deg))) !important;
	z-index: 5 !important;
}

/* 5. Hafif Büyüme (Scale Up) */
.elementor-element.mercek-hover-fx-scale-up:hover,
.mercek-hover-fx-scale-up:hover {
	transform: scale(var(--mercek-hover-scale, 1.04)) !important;
	z-index: 5 !important;
}

/* 6. Hafif Küçülme (Scale Down) */
.elementor-element.mercek-hover-fx-scale-down:hover,
.mercek-hover-fx-scale-down:hover {
	transform: scale(0.96) !important;
	z-index: 5 !important;
}

/* 7. Açılı Havaya Kalkma (Rotate & Lift) */
.elementor-element.mercek-hover-fx-rotate-lift:hover,
.mercek-hover-fx-rotate-lift:hover {
	transform: translateY(var(--mercek-hover-translate-y, -12px)) rotate(var(--mercek-hover-tilt-deg, 2deg)) scale(1.02) !important;
	z-index: 5 !important;
}

/* 8. Işıltılı Parlama (Glow Border) */
.elementor-element.mercek-hover-fx-glow:hover,
.mercek-hover-fx-glow:hover {
	transform: translateY(calc(var(--mercek-hover-translate-y, -12px) * 0.5)) !important;
	z-index: 5 !important;
}

/* ==================== GÖLGE YÖNETİMİ ==================== */

/* A. Hazır 3D Gölge Modu (mercek-hover-shadow-preset) */
.elementor-element.mercek-hover-shadow-preset.mercek-hover-fx-lift-up:hover,
.mercek-hover-shadow-preset.mercek-hover-fx-lift-up:hover {
	box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.16), 0 10px 15px -5px rgba(0, 0, 0, 0.08);
}

.elementor-element.mercek-hover-shadow-preset.mercek-hover-fx-lift-down:hover,
.mercek-hover-shadow-preset.mercek-hover-fx-lift-down:hover {
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.elementor-element.mercek-hover-shadow-preset.mercek-hover-fx-tilt-right:hover,
.mercek-hover-shadow-preset.mercek-hover-fx-tilt-right:hover {
	box-shadow: 12px 20px 35px -10px rgba(0, 0, 0, 0.16);
}

.elementor-element.mercek-hover-shadow-preset.mercek-hover-fx-tilt-left:hover,
.mercek-hover-shadow-preset.mercek-hover-fx-tilt-left:hover {
	box-shadow: -12px 20px 35px -10px rgba(0, 0, 0, 0.16);
}

.elementor-element.mercek-hover-shadow-preset.mercek-hover-fx-scale-up:hover,
.mercek-hover-shadow-preset.mercek-hover-fx-scale-up:hover {
	box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.16);
}

.elementor-element.mercek-hover-shadow-preset.mercek-hover-fx-scale-down:hover,
.mercek-hover-shadow-preset.mercek-hover-fx-scale-down:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.elementor-element.mercek-hover-shadow-preset.mercek-hover-fx-rotate-lift:hover,
.mercek-hover-shadow-preset.mercek-hover-fx-rotate-lift:hover {
	box-shadow: 0 25px 40px -10px rgba(0, 0, 0, 0.2);
}

.elementor-element.mercek-hover-shadow-preset.mercek-hover-fx-glow:hover,
.mercek-hover-shadow-preset.mercek-hover-fx-glow:hover {
	box-shadow: 0 0 35px rgba(99, 102, 241, 0.38), 0 10px 25px rgba(0, 0, 0, 0.12);
}

/* B. Gölgesiz Mod */
.elementor-element.mercek-hover-shadow-none:hover,
.mercek-hover-shadow-none:hover {
	box-shadow: none !important;
}


