@keyframes fadeIn {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}

	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(-30px);
	}

	to {
		opacity: 1;
		transform: translateX(0);
	}
}

@keyframes fadeInRight {
	from {
		opacity: 0;
		transform: translateX(30px);
	}

	to {
		opacity: 1;
		transform: translateX(0);
	}
}

@keyframes fadeInScale {
	from {
		opacity: 0;
		transform: scale(0.8);
	}

	to {
		opacity: 1;
		transform: scale(1);
	}
}

@keyframes rotate {
	from {
		transform: rotate(0deg);
	}

	to {
		transform: rotate(360deg);
	}
}

@keyframes rotateY {
	from {
		transform: rotateY(0deg);
	}

	to {
		transform: rotateY(360deg);
	}
}

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

	50% {
		transform: scale(1.05);
	}
}

@keyframes pulseGlow {
	0%, 100% {
		box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
	}

	50% {
		box-shadow: 0 0 40px rgba(99, 102, 241, 0.6);
	}
}

@keyframes bounce {
	0%, 20%, 53%, 80%, 100% {
		transform: translateY(0);
	}

	40%, 43% {
		transform: translateY(-15px);
	}

	70% {
		transform: translateY(-7px);
	}

	90% {
		transform: translateY(-3px);
	}
}

@keyframes bounceIn {
	0% {
		opacity: 0;
		transform: scale(0.3);
	}

	50% {
		opacity: 1;
		transform: scale(1.05);
	}

	70% {
		transform: scale(0.9);
	}

	100% {
		opacity: 1;
		transform: scale(1);
	}
}

@keyframes slideInUp {
	from {
		transform: translateY(100%);
	}

	to {
		transform: translateY(0);
	}
}

@keyframes slideInDown {
	from {
		transform: translateY(-100%);
	}

	to {
		transform: translateY(0);
	}
}

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

	50% {
		transform: translateY(-20px);
	}
}

@keyframes floatRotate {
	0%, 100% {
		transform: translateY(0px) rotate(0deg);
	}

	50% {
		transform: translateY(-20px) rotate(180deg);
	}
}

@keyframes typewriter {
	from {
		width: 0;
	}

	to {
		width: 100%;
	}
}

@keyframes blinkCaret {
	from, to {
		border-color: transparent;
	}

	50% {
		border-color: var(--accent-primary);
	}
}

@keyframes shake {
	0%, 100% {
		transform: translateX(0);
	}

	10%, 30%, 50%, 70%, 90% {
		transform: translateX(-5px) rotate(-1deg);
	}

	20%, 40%, 60%, 80% {
		transform: translateX(5px) rotate(1deg);
	}
}

@keyframes wobble {
	0%, 100% {
		transform: rotate(0deg);
	}

	15% {
		transform: rotate(-5deg);
	}

	30% {
		transform: rotate(4deg);
	}

	45% {
		transform: rotate(-3deg);
	}

	60% {
		transform: rotate(2deg);
	}

	75% {
		transform: rotate(-1deg);
	}
}

@keyframes flip {
	0% {
		transform: perspective(400px) rotateY(0);
	}

	40% {
		transform: perspective(400px) translateZ(150px) rotateY(170deg);
	}

	50% {
		transform: perspective(400px) translateZ(150px) rotateY(190deg);
	}

	80% {
		transform: perspective(400px) rotateY(360deg);
	}

	100% {
		transform: perspective(400px) rotateY(360deg);
	}
}

@keyframes zoomIn {
	from {
		opacity: 0;
		transform: scale3d(0.3, 0.3, 0.3);
	}

	50% {
		opacity: 1;
	}

	to {
		opacity: 1;
		transform: scale3d(1, 1, 1);
	}
}

@keyframes zoomOut {
	from {
		opacity: 1;
		transform: scale3d(1, 1, 1);
	}

	50% {
		opacity: 1;
		transform: scale3d(1.1, 1.1, 1.1);
	}

	to {
		opacity: 0;
		transform: scale3d(0.3, 0.3, 0.3);
	}
}

@keyframes gradientShift {
	0% {
		background-position: 0% 50%;
	}

	50% {
		background-position: 100% 50%;
	}

	100% {
		background-position: 0% 50%;
	}
}

@keyframes particle1 {
	0%, 100% {
		transform: translateY(0px) translateX(0px) rotate(0deg);
		opacity: 0.7;
	}

	33% {
		transform: translateY(-100px) translateX(50px) rotate(120deg);
		opacity: 0.9;
	}

	66% {
		transform: translateY(-50px) translateX(-30px) rotate(240deg);
		opacity: 0.5;
	}
}

@keyframes particle2 {
	0%, 100% {
		transform: translateY(0px) translateX(0px) rotate(0deg);
		opacity: 0.5;
	}

	25% {
		transform: translateY(-80px) translateX(-40px) rotate(90deg);
		opacity: 0.8;
	}

	50% {
		transform: translateY(-120px) translateX(20px) rotate(180deg);
		opacity: 0.6;
	}

	75% {
		transform: translateY(-60px) translateX(60px) rotate(270deg);
		opacity: 0.9;
	}
}

.fade-in {
	animation: fadeIn 1s ease-out forwards;
}

.fade-in-up {
	animation: fadeInUp 1s ease-out forwards;
	opacity: 0;
}

.fade-in-down {
	animation: fadeInDown 1s ease-out forwards;
	opacity: 0;
}

.fade-in-left {
	animation: fadeInLeft 1s ease-out forwards;
	opacity: 0;
}

.fade-in-right {
	animation: fadeInRight 1s ease-out forwards;
	opacity: 0;
}

.fade-in-scale {
	animation: fadeInScale 1s ease-out forwards;
	opacity: 0;
}

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

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

.delay-3 {
	animation-delay: 0.6s;
}

.delay-4 {
	animation-delay: 0.8s;
}

.delay-5 {
	animation-delay: 1s;
}

.delay-6 {
	animation-delay: 1.2s;
}

.duration-fast {
	animation-duration: 0.5s;
}

.duration-normal {
	animation-duration: 1s;
}

.duration-slow {
	animation-duration: 2s;
}

.animate-spin {
	animation: rotate 2s linear infinite;
}

.animate-pulse {
	animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-bounce {
	animation: bounce 1s infinite;
}

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

.animate-float-rotate {
	animation: floatRotate 6s ease-in-out infinite;
}

.animate-shake {
	animation: shake 0.5s ease-in-out;
}

.animate-wobble {
	animation: wobble 1s ease-in-out;
}

.animate-pulse-glow {
	animation: pulseGlow 2s ease-in-out infinite;
}

.hover-scale:hover {
	transform: scale(1.05);
	transition: transform var(--transition-normal);
}

.hover-lift:hover {
	transform: translateY(-5px);
	transition: transform var(--transition-normal);
}

.hover-rotate:hover {
	transform: rotate(5deg);
	transition: transform var(--transition-normal);
}

.hover-glow:hover {
	box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
	transition: box-shadow var(--transition-normal);
}

.hero-title {
	overflow: hidden;
}

	.hero-title .title-line {
		display: inline-block;
		animation: slideInUp 1s ease-out forwards;
		opacity: 0;
	}

		.hero-title .title-line:nth-child(2) {
			animation-delay: 0.2s;
		}

.typewriter {
	border-right: 3px solid var(--accent-primary);
	animation: blinkCaret 1s step-end infinite;
}

.floating-shapes .shape {
	position: absolute;
	border-radius: 50%;
	opacity: 0.1;
}

.shape-1 {
	width: 100px;
	height: 100px;
	background: var(--gradient-primary);
	top: 20%;
	left: 10%;
	animation: particle1 8s ease-in-out infinite;
}

.shape-2 {
	width: 150px;
	height: 150px;
	background: var(--gradient-secondary);
	top: 60%;
	right: 15%;
	animation: particle2 10s ease-in-out infinite reverse;
}

.shape-3 {
	width: 80px;
	height: 80px;
	background: var(--gradient-tertiary);
	bottom: 30%;
	left: 20%;
	animation: float 6s ease-in-out infinite;
	animation-delay: 1s;
}

.shape-4 {
	width: 120px;
	height: 120px;
	background: var(--gradient-warning);
	top: 40%;
	right: 40%;
	animation: floatRotate 8s ease-in-out infinite;
	animation-delay: 2s;
}

.card-hover {
	transition: all var(--transition-normal);
}

	.card-hover:hover {
		transform: translateY(-10px) scale(1.02);
		box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
	}

.mystery-box {
	transition: all var(--transition-normal);
}

	.mystery-box.opening {
		animation: shake 0.5s ease-in-out, rotateY 1s ease-in-out 0.5s;
	}

	.mystery-box:hover {
		transform: scale(1.1) rotateY(15deg);
		animation: pulseGlow 1s ease-in-out infinite;
	}

.coin-animation {
	animation: bounceIn 0.5s ease-out, rotate 2s linear infinite 0.5s;
}

.loading-dots::after {
	content: '';
	animation: loadingDots 1.5s steps(3, end) infinite;
}

@keyframes loadingDots {
	0%, 20% {
		content: '.';
	}

	40% {
		content: '..';
	}

	60%, 100% {
		content: '...';
	}
}

.reveal {
	opacity: 0;
	transform: translateY(50px);
	transition: all 1s ease-out;
}

	.reveal.revealed {
		opacity: 1;
		transform: translateY(0);
	}

.stagger-animation > * {
	opacity: 0;
	transform: translateY(30px);
	animation: fadeInUp 0.8s ease-out forwards;
}

	.stagger-animation > *:nth-child(1) {
		animation-delay: 0.1s;
	}

	.stagger-animation > *:nth-child(2) {
		animation-delay: 0.2s;
	}

	.stagger-animation > *:nth-child(3) {
		animation-delay: 0.3s;
	}

	.stagger-animation > *:nth-child(4) {
		animation-delay: 0.4s;
	}

	.stagger-animation > *:nth-child(5) {
		animation-delay: 0.5s;
	}

	.stagger-animation > *:nth-child(6) {
		animation-delay: 0.6s;
	}

.page-transition {
	animation: fadeIn 0.5s ease-out;
}

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

	.animate-spin,
	.animate-pulse,
	.animate-bounce,
	.animate-float,
	.animate-float-rotate {
		animation: none;
	}
}
