@font-face {
	font-family: 'negar';
	src: url('/habases/fonts/negar.ttf') format('truetype');
	font-weight:normal;
	font-style:normal;
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html, body {
	height: 100%;
	margin: 0;
	padding: 0;
	overflow: hidden;
}

body {
	font-family: 'negar', 'Iranian Sans', Tahoma, sans-serif;
	background: #ffffff;
	background-image: url("/habases/Image/backaround/splash.jpg");
	background-size: cover;
	background-repeat: no-repeat;
	display: flex;
	justify-content: center;
	align-items: center;
}

.splash-screen {
	width: 100%;
	height: 100%;
	/*background: linear-gradient(145deg, #ffffff, #ffffff);*/
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	position: relative;
	overflow: hidden;
}

/* پس‌زمینه داینامیک */
.splash-screen::before {
	content: '';
	position: absolute;
	width: 600px;
	height: 600px;
	background: radial-gradient(circle, rgba(74, 106, 158, 0.08) 0%, transparent 70%);
	border-radius: 50%;
	top: -200px;
	right: -200px;
	animation: floatBg 8s ease-in-out infinite;
}

.splash-screen::after {
	content: '';
	position: absolute;
	width: 500px;
	height: 500px;
	background: radial-gradient(circle, rgba(46, 204, 113, 0.06) 0%, transparent 70%);
	border-radius: 50%;
	bottom: -150px;
	left: -150px;
	animation: floatBg 10s ease-in-out infinite reverse;
}

@keyframes floatBg {
	0%, 100% { transform: translate(0, 0) scale(1); }
	50% { transform: translate(30px, -30px) scale(1.1); }
}

/* کانتینر لوگو */
.logo-container {
	
	position: absolute;
	top: 150px;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px) scale(0.9);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

/* لوگو */
.logo {
	width: 140px;
	height: 140px;
	background: linear-gradient(145deg, #1a2a4a, #0f1a30);
	border-radius: 35px;
	display: flex;
	justify-content: center;
	align-items: center;
	border: 2px solid #2a3a5a;
	box-shadow: 
		0 20px 60px rgba(0, 0, 0, 0.5),
		inset 0 2px 0 rgba(255, 255, 255, 0.05);
	position: relative;
	margin-bottom: 30px;
	animation: pulseLogo 2s ease-in-out infinite;
}

@keyframes pulseLogo {
	0%, 100% {
		box-shadow: 
			0 20px 60px rgba(0, 0, 0, 0.5),
			inset 0 2px 0 rgba(255, 255, 255, 0.05);
	}
	50% {
		box-shadow: 
			0 20px 80px rgba(74, 106, 158, 0.2),
			0 20px 60px rgba(0, 0, 0, 0.5),
			inset 0 2px 0 rgba(255, 255, 255, 0.05);
	}
}

.logo .logo-icon {
	font-size: 4.5rem;
	line-height: 1;
	filter: drop-shadow(0 4px 20px rgba(74, 106, 158, 0.3));
	animation: rotateIcon 10s linear infinite;
}

@keyframes rotateIcon {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

/* حلقه‌های دور لوگو */
.logo-ring {
	position: absolute;
	width: 170px;
	height: 170px;
	border-radius: 50%;
	border: 2px solid rgba(74, 106, 158, 0.15);
	animation: ringSpin 8s linear infinite;
}

.logo-ring:nth-child(2) {
	width: 190px;
	height: 190px;
	border: 2px solid rgba(46, 204, 113, 0.1);
	animation-duration: 12s;
	animation-direction: reverse;
}

@keyframes ringSpin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

/* نام برند */
.brand-name {
	font-size: 4.8rem;
	font-weight: 700;
	letter-spacing: 2px;
	/*background: linear-gradient(135deg, #e8edf5, #7a9ad0, #4fc3f7);*/
	background: linear-gradient(135deg, #00bfff, #7a9ad0, #ffffff);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	text-shadow: 0 0 60px rgba(74, 106, 158, 0.15);
	margin-bottom: 8px;
	position: relative;
	z-index: 2;
}

.brand-sub {
	font-size: 0.95rem;
	/*color: #6a7d9e;*/
	color: #ffffff;
	letter-spacing: 6px;
	font-weight: 300;
	position: relative;
	z-index: 2;
}

.brand-sub span {
	/*color: #4fc3f7;*/
	color: #ffffff;
	font-weight: 400;
}

/* خط تزئینی */
.brand-line {
	width: 80px;
	height: 2px;
	background: linear-gradient(90deg, transparent, #4fc3f7, transparent);
	margin: 12px 0 8px;
	position: relative;
	z-index: 2;
	animation: linePulse 2s ease-in-out infinite;
}

@keyframes linePulse {
	0%, 100% { opacity: 0.4; transform: scaleX(1); }
	50% { opacity: 1; transform: scaleX(1.2); }
}

/* بخش بارگذاری */
.loading-section {
	position: absolute;
	bottom: 100px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	
	z-index: 2;
	animation: fadeInUp 1s ease-out 0.3s both;
}

/* اسپینر بارگذاری */
.spinner-container {
	display: flex;
	gap: 8px;
	align-items: center;
}

.spinner-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	/*background: #4a6a9e;*/
	background: #ffffff;
	animation: bounceDot 1.4s ease-in-out infinite;
}

/*.spinner-dot:nth-child(1) { animation-delay: 0s; }
.spinner-dot:nth-child(2) { animation-delay: 0.2s; background: #4fc3f7; }
.spinner-dot:nth-child(3) { animation-delay: 0.4s; background: #2ecc71; }
.spinner-dot:nth-child(4) { animation-delay: 0.6s; }
.spinner-dot:nth-child(5) { animation-delay: 0.8s; background: #4fc3f7; }*/

.spinner-dot:nth-child(1) { animation-delay: 0s; }
.spinner-dot:nth-child(2) { animation-delay: 0.2s; background: #ffffff; }
.spinner-dot:nth-child(3) { animation-delay: 0.4s; background: #ffffff; }
.spinner-dot:nth-child(4) { animation-delay: 0.6s; }
.spinner-dot:nth-child(5) { animation-delay: 0.8s; background: #ffffff; }

@keyframes bounceDot {
	0%, 80%, 100% { 
		transform: scale(0.6);
		opacity: 0.3;
	}
	40% { 
		transform: scale(1);
		opacity: 1;
	}
}

.loading-text {
	/*color: #6a7d9e;*/
	color: #ffffff;
	font-size: 0.9rem;
	letter-spacing: 2px;
	font-weight: 300;
}

.loading-text .highlight {
	color: #4fc3f7;
	font-weight: 400;
}

/* نوار پیشرفت */
.progress-container {
	width: 290px;
	height: 5px;
	background: #1a2338;
	border-radius: 4px;
	overflow: hidden;
	position: relative;
}

.progress-bar {
	height: 100%;
	width: 0%;
	/*background: linear-gradient(90deg, #4a6a9e, #4fc3f7, #2ecc71);*/
	background: linear-gradient(90deg, #ffffff, #ffffff, #ffffff);
	border-radius: 4px;
	transition: width 0.3s ease;
	animation: progressGlow 1.5s ease-in-out infinite;
}

@keyframes progressGlow {
	0%, 100% { opacity: 0.8; }
	50% { opacity: 1; }
}

/* درصد بارگذاری */
.progress-percent {

	/*color: #4a6a9e;*/
	color: #ffffff;
	font-size: 0.9rem;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	min-width: 40px;
	text-align: center;
	font-family: 'Courier New', monospace;
}

.progress-wrapper {
	display: flex;
	align-items: center;
	gap: 12px;
}

/* نسخه */
.version {
	position: absolute;
	bottom: 30px;
	/*color: #2a3650;*/
	color: #ffffff;
	font-size: 0.9rem;
	letter-spacing: 1px;
	z-index: 2;
}

.version span {
	/*color: #2a3650;*/
	color: #ffffff;
}

/* ذرات پس‌زمینه */
.particles {
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	z-index: 1;
	pointer-events: none;
	overflow: hidden;
}

.particle {
	position: absolute;
	width: 4px;
	height: 4px;
	background: #4fc3f7;
	border-radius: 50%;
	opacity: 0.15;
	animation: particleFloat 15s linear infinite;
}

@keyframes particleFloat {
	0% {
		transform: translateY(100vh) translateX(0) scale(0);
		opacity: 0;
	}
	10% {
		opacity: 0.15;
	}
	90% {
		opacity: 0.15;
	}
	100% {
		transform: translateY(-100vh) translateX(100px) scale(1);
		opacity: 0;
	}
}

/* واکنش‌گرا */
@media (max-width: 600px) {
	.logo {
		width: 110px;
		height: 110px;
		border-radius: 28px;
	}
	
	.logo .logo-icon {
		font-size: 3.5rem;
	}
	
	.logo-ring {
		width: 135px;
		height: 135px;
	}
	
	.logo-ring:nth-child(2) {
		width: 155px;
		height: 155px;
	}
	
	.brand-name {
		font-size: 2.9rem;
	}
	
	.brand-sub {
		font-size: 1.1rem;
		letter-spacing: 4px;
	}
	
	.progress-container {
		width: 300px;
	}
	
	.loading-text {
		font-size: 0.9rem;
	}
}

@media (max-width: 400px) {
	.logo {
		width: 90px;
		height: 90px;
		border-radius: 22px;
	}
	
	.logo .logo-icon {
		font-size: 2.8rem;
	}
	
	.logo-ring {
		width: 115px;
		height: 115px;
	}
	
	.logo-ring:nth-child(2) {
		width: 130px;
		height: 130px;
	}
	
	.brand-name {
		font-size: 2.2rem;
	}
	
	.brand-sub {
		font-size: 1rem;
		letter-spacing: 3px;
	}
	
	.progress-container {
		width: 260px;
	}
}