/* ========================================
   İslami Değerler Külliyesi - Animations
   ======================================== */

/* --- Keyframe Animations --- */
@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(40px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

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

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

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

@keyframes scaleIn {
	from {
		opacity: 0;
		transform: scale(0.85);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

@keyframes shimmer {
	0% { background-position: -200% center; }
	100% { background-position: 200% center; }
}

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

@keyframes pulse-glow {
	0%, 100% { box-shadow: 0 0 20px rgba(184,134,11,0.2); }
	50% { box-shadow: 0 0 40px rgba(184,134,11,0.4); }
}

@keyframes rotate-slow {
	from { transform: rotate(0deg); }
	to { transform: rotate(360deg); }
}

@keyframes draw-line {
	from { width: 0; }
	to { width: 80px; }
}

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

@keyframes slide-in-bottom {
	from {
		opacity: 0;
		transform: translateY(100px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes border-glow {
	0%, 100% { border-color: rgba(184,134,11,0.2); }
	50% { border-color: rgba(184,134,11,0.6); }
}

/* --- Scroll-triggered Animation Classes --- */
.idk-animate {
	opacity: 0;
	transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.idk-animate.animate-up {
	transform: translateY(50px);
}

.idk-animate.animate-down {
	transform: translateY(-30px);
}

.idk-animate.animate-left {
	transform: translateX(-50px);
}

.idk-animate.animate-right {
	transform: translateX(50px);
}

.idk-animate.animate-scale {
	transform: scale(0.85);
}

.idk-animate.animate-fade {
	/* Just opacity, no transform */
}

/* When visible */
.idk-animate.is-visible {
	opacity: 1;
	transform: translateY(0) translateX(0) scale(1);
}

/* Staggered delays */
.idk-delay-1 { transition-delay: 0.1s; }
.idk-delay-2 { transition-delay: 0.2s; }
.idk-delay-3 { transition-delay: 0.3s; }
.idk-delay-4 { transition-delay: 0.4s; }
.idk-delay-5 { transition-delay: 0.5s; }

/* --- Parallax Elements --- */
.parallax-bg {
	will-change: transform;
	transition: transform 0.1s linear;
}

/* --- Hero Animations --- */
.hero-title-animate {
	animation: fadeInUp 1s ease 0.2s both;
}

.hero-subtitle-animate {
	animation: fadeInUp 1s ease 0.5s both;
}

.hero-btn-animate {
	animation: fadeInUp 1s ease 0.8s both;
}

.hero-bismillah {
	animation: fadeInDown 1.2s ease 0s both;
	font-family: 'Amiri', serif;
}

/* --- Islamic Decorative Element --- */
.islamic-ornament {
	position: relative;
	text-align: center;
	padding: 1rem 0;
}

.islamic-ornament::before,
.islamic-ornament::after {
	content: '';
	display: inline-block;
	width: 60px;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--idk-gold), transparent);
	vertical-align: middle;
	margin: 0 1rem;
}

/* --- Hover Effects --- */
.hover-lift {
	transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hover-lift:hover {
	transform: translateY(-8px);
	box-shadow: var(--idk-shadow-lg);
}

.hover-glow {
	transition: box-shadow 0.4s ease;
}

.hover-glow:hover {
	box-shadow: 0 0 30px rgba(184,134,11,0.3);
}

/* --- Gold Shimmer Text --- */
.gold-shimmer {
	background: linear-gradient(
		90deg,
		var(--idk-gold) 0%,
		var(--idk-gold-light) 25%,
		#f5e6a3 50%,
		var(--idk-gold-light) 75%,
		var(--idk-gold) 100%
	);
	background-size: 200% auto;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	animation: shimmer 4s linear infinite;
}

/* --- Floating Islamic Pattern Decoration --- */
.floating-pattern {
	position: absolute;
	opacity: 0.05;
	animation: float 6s ease-in-out infinite;
	pointer-events: none;
}

.floating-pattern:nth-child(2) {
	animation-delay: -2s;
}

.floating-pattern:nth-child(3) {
	animation-delay: -4s;
}

/* --- Counter Animation --- */
.counter-animate .stat-number {
	animation: count-up 0.8s ease both;
}

/* --- Image Reveal --- */
.image-reveal {
	position: relative;
	overflow: hidden;
}

.image-reveal::after {
	content: '';
	position: absolute;
	inset: 0;
	background: var(--idk-gold);
	transform-origin: right;
	transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}

.image-reveal.is-visible::after {
	transform: scaleX(0);
}

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

	.idk-animate {
		opacity: 1;
		transform: none;
	}
}
