/* Reset and Base Styles */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

/* CSS Variables for Theming */
:root {
	color-scheme: light dark;

	/* Light mode colors */
	--bg-color: #fafaf9;
	--text-color: #0a0a0a;
	--text-secondary: #737373;
	--text-muted: #404040;
	--border-color: #e7e5e4;
	--hover-bg: #0a0a0a;
	--hover-text: #fafaf9;
	--grid-color: #e7e5e4;
	--badge-bg: #dcfce7;
	--badge-dot: #16a34a;
	--badge-text: #166534;
}

/* Dark mode colors */
@media (prefers-color-scheme: dark) {
	:root {
		--bg-color: #0a0a0a;
		--text-color: #fafafa;
		--text-secondary: #a3a3a3;
		--text-muted: #d4d4d4;
		--border-color: #262626;
		--hover-bg: #fafafa;
		--hover-text: #0a0a0a;
		--grid-color: #1a1a1a;
		--badge-bg: #14532d;
		--badge-dot: #4ade80;
		--badge-text: #bbf7d0;
	}
}

body {
	font-family:
		"Figtree",
		-apple-system,
		BlinkMacSystemFont,
		"Segoe UI",
		Roboto,
		"Helvetica Neue",
		Arial,
		sans-serif;
	background-color: var(--bg-color);
	color: var(--text-color);
	line-height: 1.6;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	overflow-x: hidden;
	transition:
		background-color 0.3s ease,
		color 0.3s ease;
	position: relative;
}

/* Custom Cursor */
.cursor {
	width: 20px;
	height: 20px;
	border: 2px solid var(--text-color);
	border-radius: 50%;
	position: fixed;
	pointer-events: none;
	z-index: 9999;
	transition: all 0.15s ease;
	opacity: 0;
}

.cursor-follower {
	width: 40px;
	height: 40px;
	border: 1px solid var(--text-secondary);
	border-radius: 50%;
	position: fixed;
	pointer-events: none;
	z-index: 9998;
	transition: all 0.3s ease;
	opacity: 0;
}

.cursor.active {
	opacity: 0.8;
}

.cursor-follower.active {
	opacity: 0.3;
}

.cursor.hover {
	transform: scale(1.5);
	background-color: var(--text-color);
	opacity: 0.3;
}

.cursor-follower.hover {
	transform: scale(1.5);
}

/* Dashed Grid Background */
body::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: 0;
	background-image: linear-gradient(to right, var(--grid-color) 1px, transparent 1px), linear-gradient(to bottom, var(--grid-color) 1px, transparent 1px);
	background-size: 20px 20px;
	mask-image:
		repeating-linear-gradient(to right, black 0px, black 3px, transparent 3px, transparent 8px), repeating-linear-gradient(to bottom, black 0px, black 3px, transparent 3px, transparent 8px),
		radial-gradient(ellipse 70% 60% at 50% 0%, #000 60%, transparent 100%);
	-webkit-mask-image:
		repeating-linear-gradient(to right, black 0px, black 3px, transparent 3px, transparent 8px), repeating-linear-gradient(to bottom, black 0px, black 3px, transparent 3px, transparent 8px),
		radial-gradient(ellipse 70% 60% at 50% 0%, #000 60%, transparent 100%);
	mask-composite: intersect;
	-webkit-mask-composite: source-in;
	pointer-events: none;
	animation: gridExpand 1.8s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

@keyframes gridExpand {
	0% {
		clip-path: circle(0% at 50% 50%);
		opacity: 0;
	}
	1% {
		opacity: 1;
	}
	100% {
		clip-path: circle(150% at 50% 50%);
		opacity: 1;
	}
}

/* Container */
.container {
	max-width: 800px;
	margin: 0 auto;
	padding-top: 5rem;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	justify-content: center;
	position: relative;
	z-index: 1;
}

/* Content */
.content {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 3rem;
}

/* Intro Section */
.intro {
	text-align: left;
	display: flex;
	align-items: center;
	gap: 1.5rem;
	position: relative;
}

.intro-text {
	flex: 1;
}

.greeting {
	font-size: clamp(0.875rem, 2vw, 1rem);
	color: var(--text-secondary);
	font-weight: 300;
	margin-bottom: 0.5rem;
	letter-spacing: 0.05em;
}

.name {
	font-family: "Outfit", sans-serif;
	font-size: clamp(2.5rem, 8vw, 4.5rem);
	font-weight: 500;
	letter-spacing: -0.02em;
	margin-bottom: 0.5rem;
	line-height: 1.1;
	color: var(--text-color);
}

.tagline {
	font-size: clamp(1rem, 3vw, 1.25rem);
	font-weight: 400;
	color: var(--text-secondary);
	letter-spacing: 0.05em;
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex-wrap: wrap;
}

.tagline-text {
	display: block;
	width: 100%;
}

/* Availability Badge */
.availability-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.375rem 0.75rem;
	background-color: var(--badge-bg);
	border-radius: 100px;
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--badge-text);
	letter-spacing: 0.02em;
}

.badge-dot {
	width: 6px;
	height: 6px;
	background-color: var(--badge-dot);
	border-radius: 50%;
	animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
	0%,
	100% {
		opacity: 1;
	}
	50% {
		opacity: 0.5;
	}
}

.profile-picture {
	width: 105px;
	height: 105px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid var(--border-color);
	flex-shrink: 0;
	transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	user-select: none;
	-webkit-user-drag: none;
}

.profile-picture:hover {
	transform: scale(1.1);
}

/* About Section */
.about {
	max-width: 600px;
}

.about p {
	font-size: clamp(1rem, 2.5vw, 1.125rem);
	line-height: 1.8;
	color: var(--text-muted);
	font-weight: 300;
}

/* Links Section */
.links {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	margin-top: 1rem;
}

.link {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1.5rem 2rem;
	background: transparent;
	border: 1px solid var(--border-color);
	color: var(--text-color);
	text-decoration: none;
	font-size: 1.125rem;
	font-weight: 400;
	letter-spacing: 0.02em;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
	overflow: hidden;
}

.link::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 0;
	height: 100%;
	background: var(--hover-bg);
	transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	z-index: -1;
}

.link:hover::before {
	width: 100%;
}

.link:hover {
	border-color: var(--text-color);
	color: var(--hover-text);
}

.link-text {
	display: block;
	position: relative;
	z-index: 2;
}

.arrow {
	font-size: 1.5rem;
	transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
	z-index: 1;
}

/* Footer */
.footer {
	text-align: center;
	padding: 2rem 0 1rem;
	margin-top: 4rem;
}

.footer p {
	font-size: 0.875rem;
	color: var(--text-secondary);
	font-weight: 300;
	transition: color 0.3s ease;
}

.footer p:hover {
	color: var(--text-color);
}

/* Animations */
@keyframes contentSlideIn {
	from {
		transform: translateY(20px);
	}
	to {
		transform: translateY(0);
	}
}

.fade-in {
	animation: contentSlideIn 0.8s ease-out 0s both;
}

.fade-in-delay {
	animation: contentSlideIn 0.8s ease-out 0.15s both;
}

.fade-in-delay-2 {
	animation: contentSlideIn 0.8s ease-out 0.3s both;
}

/* Responsive Design */
@media (max-width: 768px) {
	.container {
		padding: 1.5rem;
		padding-top: 1.5rem;
	}

	.content {
		gap: 2rem;
	}

	.intro {
		align-items: flex-start;
	}

	.profile-picture {
		width: 70px;
		height: 70px;
	}

	.link {
		padding: 1.25rem 1.5rem;
		font-size: 1rem;
	}

	.footer {
		margin-top: 3rem;
	}

	.tagline {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.5rem;
	}

	.tagline-text {
		width: auto;
	}
}

@media (max-width: 480px) {
	.container {
		padding: 1rem;
	}

	.content {
		gap: 1.5rem;
	}

	.intro {
		flex-direction: column;
		padding-top: 3rem;
	}

	.intro-text {
		width: 100%;
	}

	.profile-picture {
		width: 105px;
		height: 105px;
		order: -1;
		margin-bottom: 1rem;
	}

	.name {
		margin-bottom: 0.25rem;
	}

	.link {
		padding: 0.75rem 1.25rem;
	}
}

/* Hide custom cursor on touch devices */
@media (hover: none) and (pointer: coarse) {
	.cursor,
	.cursor-follower {
		display: none;
	}
}

/* Smooth Scrolling */
html {
	scroll-behavior: smooth;
}

/* Selection Color */
::selection {
	background: var(--text-color);
	color: var(--bg-color);
}

/* Cursor interaction for devices with hover capability */
@media (hover: hover) and (pointer: fine) {
	.link,
	.profile-picture,
	.footer p {
		cursor: none;
	}
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
	*,
	::before,
	::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}

	/* Disable the badge pulse specifically */
	.badge-dot {
		animation: none;
	}
}
