/* ================= Reset & Base ================= */
@font-face {
  font-family: 'PoppinsLatin';
  src: url('fonts/PoppinsLatin-Black.otf') format('opentype'),
       url('fonts/PoppinsLatin-Black.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Vazirmatn';
  src: url('fonts/Vazirmatn.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}


* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: 'Vazirmatn', Tahoma, sans-serif;
}

body, html {
	width: 100%;
	height: 100%;
	overflow: hidden;
	background-color: #050510;
	display: flex;
	justify-content: center;
	align-items: center;
	font-family : 'Vazirmatn' !important;
}

/* ================= Canvas Background ================= */
#starry-sky {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
}

/* ================= Animated Border Wrapper ================= */
.card-wrapper {
	position: relative;
	z-index: 2;
	width: 90%;
	max-width: 350px;
	border-radius: 20px;
	padding: 3px; 
	overflow: hidden;
	box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
	background: rgba(255, 255, 255, 0.05);
	display: flex;
	justify-content: center;
	align-items: center;
}

.card-wrapper::before {
	content: '';
	position: absolute;
	width: 250%;
	height: 250%;
	background: conic-gradient(
				transparent 60%,
				rgba(0, 191, 255, 0.4) 80%,
				rgba(135, 206, 250, 0.9) 95%,
				#ffffff 100%
				);
	animation: rotateBorder 4s linear infinite;
	z-index: -1;
	box-shadow: 0 0 15px rgba(0, 191, 255, 0.7);
}

.card-wrapper::after {
	content: "";
	position: absolute;
	inset: 3px;
	background: #fff;
	border-radius: 10px;
	z-index: -1;
}


@keyframes rotateBorder {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

/* ================= Profile Card Content ================= */
.card-content {
	background: rgba(255, 255, 255, 0.95);
	border-radius: 17px; 
	padding: 40px 30px;
	text-align: center;
	width: 100%;
	height: 100%;
	backdrop-filter: blur(10px);
}

/* Avatar */
.avatar-container {
	margin-bottom: 15px;
}

.avatar {
	width: 120px;
	height: 120px;
	border-radius: 50%;
	object-fit: cover;
	border: 4px solid #fff;
	box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Typography */
.small-text {
	color: #666;
	font-size: 14px;
	margin-bottom: 8px;
	letter-spacing: 1px;
	text-transform: uppercase;
	margin-bottom: 30px;
}

.name {
	color: #222;
	font-size: 24px;
	font-weight: 600;
	margin-bottom: 10px;
}

/* Buttons */
.button-group {
	display: flex;
	gap: 15px;
	justify-content: center;
}

.btn {
	flex: 1;
	padding: 12px 0;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
}

.btn-primary {
	background-color: #222;
	color: #fff;
	border: 2px solid #222;
}

.btn-primary:hover {
	background-color: #444;
	border-color: #444;
}

.btn-secondary {
	background-color: transparent;
	color: #222;
	border: 2px solid #222;
}

.btn-secondary:hover {
	background-color: #222;
	color: #fff;
}

/* ================= Responsive ================= */
@media (max-width: 400px) {
	.card-content {
		padding: 30px 20px;
	}
	.avatar {
		width: 100px;
		height: 100px;
	}
	.name {
		font-size: 22px;
	}
}

.modal {
	display: none;
	position: fixed;
	z-index: 1000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.6);
	align-items: center;
	justify-content: center;
}

.modal-content {
	background-color: #1e1e2f;
	color: #fff;
	padding: 30px;
	border-radius: 12px;
	width: 100%;
	max-width: 500px;
	position: relative;
	text-align: center;
	box-shadow: 0 5px 15px rgba(0,0,0,0.5);
	animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
	from { opacity: 0; transform: translateY(-20px); }
	to { opacity: 1; transform: translateY(0); }
}

.close-btn {
	position: absolute;
	top: 10px;
	right: 15px;
	color: #aaa;
	font-size: 28px;
	font-weight: bold;
	cursor: pointer;
	transition: color 0.3s;
}

.close-btn:hover {
	color: #fff;
}