:root {
	--bg-base: #050505;
	--text-main: #ffffff;
	--text-muted: #a1a1aa;
	--card-bg: rgba(255, 255, 255, 0.04);
	--card-hover: rgba(255, 255, 255, 0.09);
	--border-color: rgba(255, 255, 255, 0.08);
	--border-hover: rgba(255, 255, 255, 0.25);
	--accent-color: #10b981; /* Emerald green for status */
}

body {
	font-family: 'Outfit', sans-serif; /* Corrected to match your HTML import */
	background-color: var(--bg-base);
	color: var(--text-main);
	display: flex;
	flex-direction: column;
	align-items: center;
	min-height: 100vh;
	margin: 0;
	padding: 5rem 1.5rem;
	box-sizing: border-box;
	-webkit-font-smoothing: antialiased;
	position: relative;
	overflow-x: hidden;
}

/* --- Loading Animation Styling --- */
.loader-wrapper {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: var(--bg-base);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 1000;
	transition: opacity 0.5s ease;
}

.spinner {
	width: 50px;
	height: 50px;
	border: 4px solid var(--border-color);
	border-top: 4px solid var(--accent-color);
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

.loader-hidden {
	opacity: 0;
	pointer-events: none;
}

/* --- Animated Ambient Background --- */
body::before, body::after {
	content: '';
	position: fixed;
	width: 600px;
	height: 600px;
	border-radius: 50%;
	filter: blur(120px);
	z-index: -1;
	animation: float 20s infinite ease-in-out alternate;
	opacity: 0.15;
}

body::before {
	background: #3b82f6; /* Blue hue */
	top: -100px;
	left: -100px;
}

body::after {
	background: #8b5cf6; /* Purple hue */
	bottom: -100px;
	right: -100px;
	animation-delay: -10s;
}

@keyframes float {
	0% { transform: translate(0, 0) scale(1); }
	100% { transform: translate(100px, 50px) scale(1.2); }
}

.container {
	max-width: 440px;
	width: 100%;
	text-align: center;
	z-index: 1;
}

/* --- Staggered Entrance Animation --- */
.animate-up {
	opacity: 0;
	transform: translateY(20px);
}

/* NEW: Only run the animation when the body gets the 'loaded' class */
body.loaded .animate-up {
	animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Extended delays for 1-by-1 button appearance */
.delay-0 { animation-delay: 0s; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }
.delay-7 { animation-delay: 0.7s; }
.delay-8 { animation-delay: 0.8s; }

@keyframes fadeUp {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.profile-pic {
	width: 110px;
	height: 110px;
	border-radius: 50%;
	object-fit: cover;
	margin-bottom: 1rem;
	border: 1px solid var(--border-hover);
	box-shadow: 0 0 30px rgba(255, 255, 255, 0.05);
	padding: 4px;
}

.name {
	font-size: 1.6rem;
	font-weight: 700;
	letter-spacing: -0.03em;
	margin: 0 0 0.5rem 0;
}

.bio {
	font-size: 1rem;
	color: var(--text-muted);
	margin-bottom: 1rem;
	font-weight: 400;
	line-height: 1.6;
}

/* --- Status Badge --- */
.status-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: rgba(16, 185, 129, 0.1);
	color: var(--accent-color);
	padding: 6px 14px;
	border-radius: 20px;
	font-size: 0.85rem;
	font-weight: 500;
	margin-bottom: 2.5rem;
	border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-dot {
	width: 8px;
	height: 8px;
	background-color: var(--accent-color);
	border-radius: 50%;
	position: relative;
}

.status-dot::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: var(--accent-color);
	border-radius: 50%;
	animation: pulse 2s infinite;
}

@keyframes pulse {
	0% { transform: scale(1); opacity: 0.8; }
	100% { transform: scale(3); opacity: 0; }
}

.links-container {
	display: flex;
	flex-direction: column;
	gap: 1.2rem;
}

/* --- Advanced Button Styling --- */
.link-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	background-color: var(--card-bg);
	color: var(--text-main);
	text-decoration: none;
	padding: 1.1rem 1.5rem;
	border-radius: 14px;
	font-weight: 500;
	font-size: 1rem;
	border: 1px solid var(--border-color);
	backdrop-filter: blur(12px);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	overflow: hidden; 
}

.link-btn i {
	position: absolute;
	left: 1.5rem;
	font-size: 1.2rem;
	color: var(--text-muted);
	transition: color 0.3s ease;
}

/* Shine Effect */
.link-btn::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 50%;
	height: 100%;
	background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.05), transparent);
	transform: skewX(-20deg);
	transition: left 0.5s ease;
}

.link-btn:hover::before {
	left: 150%;
}

.link-btn:hover {
	transform: translateY(-3px) scale(1.01);
	background-color: var(--card-hover);
	border-color: var(--border-hover);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.link-btn:hover i {
	color: var(--text-main);
}

.socials {
	margin-top: 3.5rem;
	display: flex;
	justify-content: center;
	gap: 1.2rem;
}

.social-icon {
	font-size: 1.3rem;
	color: var(--text-muted);
	text-decoration: none;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background-color: var(--card-bg);
	border: 1px solid var(--border-color);
}

.social-icon:hover {
	color: var(--text-main);
	background-color: var(--card-hover);
	border-color: var(--border-hover);
	transform: translateY(-4px) rotate(8deg);
}

/* --- Footer Styling --- */
.footer {
	margin-top: 4rem;
	font-size: 0.85rem;
	color: var(--text-muted);
	text-align: center;
}

.footer p {
	margin: 0;
	letter-spacing: 0.02em;
	opacity: 0.7;
	transition: opacity 0.3s ease;
}

.footer:hover p {
	opacity: 1;
}