/* ================================
   CSS Variables & Reset
   ================================ */
:root {
	--primary-color: #A4CE2E;
	--secondary-color: #7C38FB;
	--bg-light: #ffffff;
	--bg-secondary: #f8f9fa;
	--bg-card: #ffffff;
	--bg-card-hover: #f5f5f5;
	--text-primary: #1a1a1a;
	--text-secondary: #6b6b6b;
	--border-color: #e0e0e0;
	--border-radius: 16px;
	--transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	--shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	--shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.12);
	--max-width: 600px;
}

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

html {
	scroll-behavior: smooth;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
	background: rgba(241, 243, 245, 0.95);
	color: var(--text-primary);
	line-height: 1.6;
	min-height: 100vh;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* ================================
   Page Layout
   ================================ */
.page-wrapper {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.hero-column {
	display: none;
	/* Hidden on mobile by default */
}

.content-column {
	flex: 1;
	display: flex;
	flex-direction: column;
}

.container {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 20px;
	width: 100%;
}

/* ================================
   Header & Profile Section
   ================================ */
.header {
	text-align: center;
	margin-bottom: 30px;
	padding-top: 20px;
}

.hero-image {
	position: relative;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

.hero {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
	object-position: center;
}

.profile-section {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
}

.avatar {
	width: 120px;
	height: 120px;
	border-radius: 50%;
	border: 4px solid var(--primary-color);
	box-shadow: 0 4px 12px rgba(164, 206, 46, 0.3);
	object-fit: cover;
	transition: var(--transition);
	cursor: pointer;
	user-select: none;
}

.avatar:hover {
	transform: scale(1.05);
	box-shadow: 0 6px 20px rgba(164, 206, 46, 0.4);
}

.avatar:active {
	transform: scale(0.98);
}

.logo {
	max-width: 280px;
	height: auto;
	filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
}

.tagline {
	font-size: 1rem;
	color: var(--text-secondary);
	letter-spacing: 0.5px;
	margin-top: 10px;
}

/* ================================
   Biography Section
   ================================ */
.bio-section {
	text-align: center;
	margin: 30px auto 40px;
	max-width: 520px;
}

.bio-text {
	font-size: 0.938rem;
	line-height: 1.7;
	color: var(--text-secondary);
	background: rgba(255, 255, 255, 0.5);
	padding: 20px 24px;
	border-radius: 12px;
	border: 1px solid var(--border-color);
}

/* ================================
   Links Section
   ================================ */
.links-section {
	display: flex;
	flex-direction: column;
	gap: 30px;
}

.link-group {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.section-title {
	font-size: 0.875rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	color: var(--text-secondary);
	padding: 0 8px;
	margin-bottom: 4px;
}

/* ================================
   Link Cards
   ================================ */
.link-card {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 18px 20px;
	background: var(--bg-card);
	border-radius: var(--border-radius);
	text-decoration: none;
	color: var(--text-primary);
	transition: var(--transition);
	box-shadow: var(--shadow);
	border: 2px solid var(--border-color);
	position: relative;
	overflow: hidden;
}

.link-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
	opacity: 0;
	transition: var(--transition);
	z-index: 0;
}

.link-card:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow-hover);
	background: var(--bg-card-hover);
}

.link-card:hover::before {
	opacity: 0.1;
}

.link-card:active {
	transform: translateY(0);
}

/* Primary link (main YouTube) */
.link-card.primary {
	border: 2px solid var(--primary-color);
	background: linear-gradient(135deg, rgba(164, 206, 46, 0.08) 0%, rgba(124, 56, 251, 0.04) 100%);
}

.link-card.primary:hover {
	border-color: var(--secondary-color);
	box-shadow: 0 6px 20px rgba(164, 206, 46, 0.2);
}

/* Icon Styling */
.link-icon {
	flex-shrink: 0;
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 12px;
	background: rgba(0, 0, 0, 0.04);
	transition: var(--transition);
	position: relative;
	z-index: 1;
}

.link-card:hover .link-icon {
	transform: scale(1.1);
	background: rgba(0, 0, 0, 0.08);
}

.link-icon svg {
	width: 24px;
	height: 24px;
	color: var(--text-primary);
	opacity: 0.8;
}

/* Content Styling */
.link-content {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 2px;
	position: relative;
	z-index: 1;
}

.link-title {
	font-size: 1rem;
	font-weight: 600;
	color: var(--text-primary);
}

.link-subtitle {
	font-size: 0.875rem;
	color: var(--text-secondary);
}

/* ================================
   Platform-Specific Colors
   ================================ */
.link-card.youtube-main .link-icon {
	background: rgba(255, 0, 0, 0.15);
}

.link-card.youtube-main:hover .link-icon {
	background: rgba(255, 0, 0, 0.25);
}

.link-card.youtube-va .link-icon {
	background: rgba(255, 0, 0, 0.15);
}

.link-card.youtube-va:hover .link-icon {
	background: rgba(255, 0, 0, 0.25);
}

.link-card.twitch .link-icon {
	background: rgba(145, 70, 255, 0.15);
}

.link-card.twitch:hover .link-icon {
	background: rgba(145, 70, 255, 0.25);
}

.link-card.bluesky .link-icon {
	background: rgba(18, 155, 240, 0.15);
}

.link-card.bluesky:hover .link-icon {
	background: rgba(18, 155, 240, 0.25);
}

.link-card.twitter .link-icon {
	background: rgba(0, 0, 0, 0.08);
}

.link-card.twitter:hover .link-icon {
	background: rgba(0, 0, 0, 0.15);
}

.link-card.discord .link-icon {
	background: rgba(88, 101, 242, 0.15);
}

.link-card.discord:hover .link-icon {
	background: rgba(88, 101, 242, 0.25);
}

.link-card.email .link-icon {
	background: rgba(164, 206, 46, 0.15);
}

.link-card.email:hover .link-icon {
	background: rgba(164, 206, 46, 0.25);
}

.link-card.character-ref .link-icon {
	background: rgba(124, 56, 251, 0.15);
}

.link-card.character-ref:hover .link-icon {
	background: rgba(124, 56, 251, 0.25);
}

/* ================================
   Footer
   ================================ */
.footer {
	text-align: center;
	margin-top: 60px;
	padding: 40px 20px 20px;
	border-top: 1px solid var(--border-color);
}

.halo {
	width: 60px;
	height: auto;
	margin-bottom: 20px;
	opacity: 0.8;
	transition: var(--transition);
	cursor: pointer;
	user-select: none;
}

.halo:hover {
	opacity: 1;
	transform: rotate(15deg);
}

.halo:active {
	transform: scale(0.95);
}

.halo-spinning {
	animation: halo-super-spin 2s ease-in-out;
	opacity: 1 !important;
	transition: none !important;
}

.copyright {
	font-size: 0.875rem;
	color: var(--text-secondary);
}

.trademark-notice {
	font-size: 0.75rem;
	color: var(--text-secondary);
	margin-top: 8px;
	opacity: 0.8;
}

/* ================================
   Responsive Design
   ================================ */

/* Small mobile devices */
@media (max-width: 480px) {
	.container {
		padding: 16px;
	}

	.avatar {
		width: 100px;
		height: 100px;
	}

	.logo {
		max-width: 240px;
	}

	.tagline {
		font-size: 0.875rem;
	}

	.bio-section {
		margin: 20px auto 30px;
	}

	.bio-text {
		font-size: 0.875rem;
		padding: 16px 18px;
	}

	.link-card {
		padding: 16px;
		gap: 12px;
	}

	.link-icon {
		width: 40px;
		height: 40px;
	}

	.link-icon svg {
		width: 20px;
		height: 20px;
	}

	.link-title {
		font-size: 0.938rem;
	}

	.link-subtitle {
		font-size: 0.813rem;
	}
}

/* Tablets - Show hero image on the side */
@media (min-width: 768px) {
	.page-wrapper {
		flex-direction: row;
		position: relative;
	}

	.hero-column {
		display: block;
		flex-shrink: 0;
		width: 320px;
		position: sticky;
		top: 0;
		height: 100vh;
		margin-right: -80px;
		z-index: 1;
	}

	.hero-image {
		position: relative;
		width: 100%;
		height: 100%;
		overflow: hidden;
	}

	.hero-image::after {
		content: '';
		position: absolute;
		top: 0;
		right: 0;
		width: 120px;
		height: 100%;
		background: linear-gradient(to right,
				transparent 0%,
				rgba(248, 249, 250, 0) 50%,
				rgba(241, 243, 245, 0.95) 100%);
		pointer-events: none;
	}

	.hero {
		object-position: center top;
	}

	.content-column {
		flex: 1;
		overflow-y: auto;
		position: relative;
		z-index: 2;
		background: rgba(241, 243, 245, 0.95);
		backdrop-filter: blur(10px);
		border-radius: 24px 0 0 24px;
		margin-left: 80px;
		display: flex;
		justify-content: center;
	}

	.container {
		padding: 30px 40px;
		max-width: 600px;
	}

	.header {
		margin-bottom: 40px;
		padding-top: 10px;
	}

	.avatar {
		width: 120px;
		height: 120px;
	}

	.logo {
		max-width: 280px;
	}

	.tagline {
		font-size: 1rem;
	}

	.bio-section {
		margin: 35px auto 40px;
	}

	.bio-text {
		font-size: 0.938rem;
	}

	.links-section {
		gap: 35px;
	}

	.link-card {
		padding: 20px 24px;
	}
}

/* Large desktops */
@media (min-width: 1024px) {
	.hero-column {
		width: 380px;
		margin-right: -100px;
	}

	.hero-image::after {
		width: 140px;
	}

	.content-column {
		margin-left: 100px;
		margin-right: 100px;
	}

	.container {
		padding: 40px 60px;
		max-width: 650px;
	}

	.header {
		padding-top: 20px;
	}

	.avatar {
		width: 140px;
		height: 140px;
	}

	.logo {
		max-width: 320px;
	}

	.tagline {
		font-size: 1.125rem;
	}

	/* Subtle animation on page load */
	.link-card {
		animation: fadeInUp 0.5s ease-out backwards;
	}

	.link-card:nth-child(1) {
		animation-delay: 0.1s;
	}

	.link-card:nth-child(2) {
		animation-delay: 0.15s;
	}

	.link-card:nth-child(3) {
		animation-delay: 0.2s;
	}

	.link-card:nth-child(4) {
		animation-delay: 0.25s;
	}

	.link-card:nth-child(5) {
		animation-delay: 0.3s;
	}
}

/* Extra large desktops */
@media (min-width: 1440px) {
	.hero-column {
		width: 450px;
		margin-right: -120px;
	}

	.hero-image::after {
		width: 160px;
	}

	.content-column {
		margin-left: 120px;
		margin-right: 120px;
	}
}

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

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

/* ================================
   Accessibility
   ================================ */
@media (prefers-reduced-motion: reduce) {

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

/* Focus styles for keyboard navigation */
.link-card:focus-visible {
	outline: 2px solid var(--primary-color);
	outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
	.link-card {
		border: 2px solid var(--text-primary);
	}
}

/* ================================
   Easter Eggs - Star Animation
   ================================ */
.easter-egg-star {
	position: fixed;
	pointer-events: none;
	z-index: 9999;
	animation: star-burst ease-out forwards;
	transform-origin: center;
}

.easter-egg-star::before {
	content: '✦';
	display: block;
	font-size: inherit;
	color: var(--star-color);
	text-shadow: 0 0 10px currentColor, 0 0 20px currentColor;
	animation: star-sparkle ease-in-out infinite;
	animation-duration: 0.6s;
}

@keyframes star-burst {
	0% {
		opacity: 0;
		transform: translate(0, 0) rotate(var(--rotation)) scale(0);
	}

	20% {
		opacity: 1;
	}

	100% {
		opacity: 0;
		transform: translate(var(--end-x), var(--end-y)) rotate(var(--rotation-speed)) scale(1);
	}
}

@keyframes star-sparkle {

	0%,
	100% {
		filter: brightness(1);
	}

	50% {
		filter: brightness(1.8);
	}
}

@keyframes halo-super-spin {
	0% {
		transform: rotate(0deg) scale(1);
	}

	15% {
		transform: rotate(360deg) scale(1.1);
	}

	30% {
		transform: rotate(720deg) scale(1);
	}

	45% {
		transform: rotate(1080deg) scale(1.05);
	}

	60% {
		transform: rotate(1440deg) scale(1);
	}

	75% {
		transform: rotate(1800deg) scale(1.02);
	}

	90% {
		transform: rotate(2160deg) scale(1);
	}

	100% {
		transform: rotate(2520deg) scale(1);
	}
}

/* Disable star animations for reduced motion preference */
@media (prefers-reduced-motion: reduce) {
	.easter-egg-star {
		display: none;
	}

	.halo-spinning {
		animation: none !important;
	}
}