:root {
	--bg-primary: #0a0d12;
	--bg-card: rgba(18, 22, 31, 0.78);
	--bg-card-hover: rgba(24, 30, 42, 0.9);
	--border-subtle: rgba(255, 255, 255, 0.08);
	--border-hover: rgba(88, 166, 255, 0.4);
	--text-primary: #f0f6fc;
	--text-secondary: #8b949e;
	--text-muted: #484f58;
	--accent-cyan: #38bdf8;
	--accent-emerald: #34d399;
	--accent-purple: #a855f7;
	--accent-green: #107c10;
	--font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	--radius-lg: 20px;
	--radius-md: 12px;
	--radius-sm: 8px;
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

body {
	background-color: var(--bg-primary);
	color: var(--text-primary);
	font-family: var(--font-sans);
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px 16px;
	position: relative;
	overflow-x: hidden;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

/* Background Atmosphere */
.bg-ambient {
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 0;
	overflow: hidden;
}

.ambient-glow-1 {
	position: absolute;
	top: -15%;
	left: 50%;
	transform: translateX(-50%);
	width: 550px;
	height: 450px;
	background: radial-gradient(circle, rgba(56, 189, 248, 0.12) 0%, rgba(168, 85, 247, 0.05) 50%, transparent 70%);
	filter: blur(60px);
}

.ambient-glow-2 {
	position: absolute;
	bottom: -20%;
	left: 50%;
	transform: translateX(-50%);
	width: 600px;
	height: 400px;
	background: radial-gradient(circle, rgba(52, 211, 153, 0.08) 0%, transparent 65%);
	filter: blur(80px);
}

.ambient-grid {
	position: absolute;
	inset: 0;
	background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
	                  linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
	background-size: 32px 32px;
	mask-image: radial-gradient(ellipse 65% 50% at 50% 50%, #000 60%, transparent 100%);
	-webkit-mask-image: radial-gradient(ellipse 65% 50% at 50% 50%, #000 60%, transparent 100%);
}

/* Card Container */
.profile-card {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 460px;
	background: var(--bg-card);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-lg);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	padding: 36px 28px;
	box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.6),
	            0 0 0 1px rgba(255, 255, 255, 0.03);
	text-align: center;
	transition: border-color 0.3s ease, transform 0.3s ease;
}

/* Avatar Area */
.avatar-wrapper {
	position: relative;
	width: 112px;
	height: 112px;
	margin: 0 auto 20px;
}

.avatar-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 28px;
	border: 2px solid rgba(255, 255, 255, 0.12);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
	transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.3s ease;
}

.avatar-wrapper:hover .avatar-img {
	transform: scale(1.04);
	border-color: rgba(56, 189, 248, 0.4);
}

.status-beacon {
	position: absolute;
	bottom: -4px;
	right: -4px;
	background: #0f172a;
	padding: 3px;
	border-radius: 9999px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--border-subtle);
}

.status-beacon-dot {
	width: 12px;
	height: 12px;
	background-color: var(--accent-emerald);
	border-radius: 50%;
	position: relative;
}

.status-beacon-dot::after {
	content: '';
	position: absolute;
	inset: -3px;
	border-radius: 50%;
	background-color: var(--accent-emerald);
	opacity: 0.4;
	animation: pulse 2.2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

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

/* Identity / Title */
.profile-name {
	font-size: 26px;
	font-weight: 800;
	letter-spacing: -0.02em;
	background: linear-gradient(135deg, #ffffff 40%, #94a3b8 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	margin-bottom: 6px;
}

.profile-role {
	font-family: var(--font-mono);
	font-size: 13px;
	font-weight: 500;
	color: var(--accent-cyan);
	letter-spacing: -0.01em;
	margin-bottom: 16px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: rgba(56, 189, 248, 0.08);
	padding: 4px 12px;
	border-radius: 9999px;
	border: 1px solid rgba(56, 189, 248, 0.18);
}

/* Skills Badges */
.tags-row {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	justify-content: center;
	margin-bottom: 24px;
}

.tag-item {
	font-family: var(--font-mono);
	font-size: 11px;
	font-weight: 500;
	color: var(--text-secondary);
	background: rgba(255, 255, 255, 0.04);
	padding: 3px 9px;
	border-radius: var(--radius-sm);
	border: 1px solid rgba(255, 255, 255, 0.06);
	transition: all 0.2s ease;
}

.tag-item:hover {
	color: var(--text-primary);
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.15);
}

/* Social Grid */
.social-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px;
	margin-bottom: 28px;
}

.social-btn {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 12px 8px;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-md);
	color: var(--text-secondary);
	text-decoration: none;
	transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
	position: relative;
	overflow: hidden;
}

.social-btn svg,
.social-btn .social-icon-img {
	width: 22px;
	height: 22px;
	transition: transform 0.25s ease, fill 0.25s ease, filter 0.25s ease, opacity 0.25s ease;
}

.social-btn svg {
	fill: currentColor;
}

.social-btn .social-icon-img {
	object-fit: contain;
	display: block;
	opacity: 0.75;
}

.social-label {
	font-size: 11px;
	font-weight: 600;
	margin-top: 6px;
	opacity: 0.8;
	transition: opacity 0.25s ease;
}

.social-btn:hover {
	transform: translateY(-2px);
	color: #fff;
	background: rgba(255, 255, 255, 0.07);
}

.social-btn.gh:hover {
	border-color: rgba(255, 255, 255, 0.3);
	box-shadow: 0 4px 16px rgba(255, 255, 255, 0.08);
}

.social-btn.tg:hover {
	border-color: rgba(41, 182, 246, 0.4);
	color: #29b6f6;
	box-shadow: 0 4px 16px rgba(41, 182, 246, 0.15);
}

.social-btn.twitch:hover {
	border-color: rgba(169, 112, 255, 0.4);
	color: #a970ff;
	box-shadow: 0 4px 16px rgba(169, 112, 255, 0.15);
}

.social-btn.xbox:hover {
	border-color: rgba(16, 124, 16, 0.5);
	color: #107c10;
	box-shadow: 0 4px 16px rgba(16, 124, 16, 0.2);
}

.social-btn.xbox:hover .social-icon-img {
	opacity: 1;
	filter: drop-shadow(0 0 6px rgba(16, 124, 16, 0.9));
}

/* Projects Section */
.section-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
	padding: 0 2px;
}

.section-title {
	font-family: var(--font-mono);
	font-size: 12px;
	font-weight: 600;
	color: var(--text-muted);
	letter-spacing: 0.05em;
	text-transform: uppercase;
	display: flex;
	align-items: center;
	gap: 6px;
}

.section-title::before {
	content: '>';
	color: var(--accent-cyan);
}

.projects-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 24px;
}

.project-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 16px;
	background: rgba(255, 255, 255, 0.02);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-md);
	text-decoration: none;
	text-align: left;
	transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover {
	background: var(--bg-card-hover);
	border-color: var(--border-hover);
	transform: translateX(2px);
}

.project-meta {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.project-name {
	font-family: var(--font-mono);
	font-size: 14px;
	font-weight: 700;
	color: var(--text-primary);
	display: flex;
	align-items: center;
	gap: 8px;
}

.project-desc {
	font-size: 12px;
	color: var(--text-secondary);
}

.project-action {
	color: var(--text-muted);
	display: flex;
	align-items: center;
	transition: color 0.2s ease, transform 0.2s ease;
}

.project-card:hover .project-action {
	color: var(--accent-cyan);
	transform: translate(2px, -2px);
}

/* Easter Egg Trigger Pill */
.easter-egg-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 12px;
	background: rgba(0, 0, 0, 0.25);
	border: 1px dashed rgba(255, 255, 255, 0.08);
	border-radius: var(--radius-sm);
	font-family: var(--font-mono);
	font-size: 11px;
	color: var(--text-muted);
	cursor: pointer;
	user-select: none;
	transition: all 0.2s ease;
}

.easter-egg-bar:hover {
	border-color: rgba(56, 189, 248, 0.3);
	color: var(--text-secondary);
	background: rgba(56, 189, 248, 0.03);
}

.easter-egg-tag {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.easter-egg-tag svg {
	width: 14px;
	height: 14px;
	stroke: currentColor;
	fill: none;
}

.easter-egg-hint {
	font-size: 10px;
	color: var(--text-muted);
	background: rgba(255, 255, 255, 0.05);
	padding: 2px 6px;
	border-radius: 4px;
}

/* Modal / Easter Egg Popup */
.modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(10, 13, 18, 0.85);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	z-index: 100;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s ease;
}

.modal-overlay.active {
	opacity: 1;
	pointer-events: auto;
}

.modal-box {
	width: 100%;
	max-width: 400px;
	background: #11151c;
	border: 1px solid rgba(56, 189, 248, 0.3);
	border-radius: var(--radius-md);
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 30px rgba(56, 189, 248, 0.1);
	padding: 24px;
	text-align: center;
	transform: scale(0.92);
	transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-box {
	transform: scale(1);
}

.modal-title {
	font-family: var(--font-mono);
	font-size: 18px;
	font-weight: 700;
	color: var(--accent-cyan);
	margin-bottom: 8px;
}

.modal-text {
	font-size: 13px;
	color: var(--text-secondary);
	margin-bottom: 20px;
	line-height: 1.5;
}

.modal-buttons {
	display: flex;
	gap: 10px;
	justify-content: center;
}

.btn-rickroll {
	background: linear-gradient(135deg, #38bdf8 0%, #2563eb 100%);
	color: #fff;
	border: none;
	padding: 10px 18px;
	border-radius: var(--radius-sm);
	font-family: var(--font-mono);
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn-rickroll:hover {
	opacity: 0.92;
	transform: translateY(-1px);
}

.btn-close {
	background: rgba(255, 255, 255, 0.08);
	color: var(--text-secondary);
	border: 1px solid var(--border-subtle);
	padding: 10px 18px;
	border-radius: var(--radius-sm);
	font-family: var(--font-mono);
	font-size: 12px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease;
}

.btn-close:hover {
	color: var(--text-primary);
	background: rgba(255, 255, 255, 0.12);
}

/* Footer note */
.profile-footer {
	margin-top: 20px;
	font-size: 11px;
	color: var(--text-muted);
}

.profile-footer a {
	color: var(--text-secondary);
	text-decoration: none;
	transition: color 0.2s ease;
}

.profile-footer a:hover {
	color: var(--accent-cyan);
}

@media (max-width: 480px) {
	.profile-card {
		padding: 28px 18px;
		border-radius: var(--radius-md);
	}

	.social-grid {
		gap: 6px;
	}

	.social-btn {
		padding: 10px 4px;
	}

	.profile-name {
		font-size: 22px;
	}
}
