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

:root {
	color-scheme: light;
	--primary: #0f172a;
	--secondary: #1e293b;
	--light: oklch(98.5% 0.002 247.839);
	--light-2: oklch(96.7% 0.003 264.542);
	--dark: oklch(13% 0.028 261.692);
	--dark-2: oklch(27.8% 0.033 256.848);
	--accent: oklch(74.6% 0.16 232.661);

	--text-primary: #f1f5f9;
	--text-secondary: #cbd5e1;
	--text-heading: #ffffff;
	--text-lead: #ffffff;
	--text-base: #99a1af;

	--border: #334155;
	--outline: rgba(255, 255, 255, 0.111);
	--marker: #384357;
	--transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-color-scheme: light) {
	:root {
		color-scheme: light;
		--primary: #f8fafc;
		--secondary: #f1f5f9;
		--light: oklch(98.5% 0.002 247.839);
		--light-2: oklch(96.7% 0.003 264.542);
		--dark: oklch(13% 0.028 261.692);
		--dark-2: oklch(27.8% 0.033 256.848);
		--accent: oklch(52% 0.105 223.128);

		--text-primary: #0f172a;
		--text-secondary: #475569;
		--text-heading: oklch(13% 0.028 261.692);
		--text-lead: oklch(21% 0.034 264.665);
		--text-base: #4a5565;

		--border: #e2e8f0;
		--outline: rgba(24, 24, 24, 0.111);
		--marker: #a1a5ab;
		--transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	}
}

[data-theme="light"] {
	color-scheme: light;
	--primary: #f8fafc;
	--secondary: #f1f5f9;
	--light: oklch(98.5% 0.002 247.839);
	--light-2: oklch(96.7% 0.003 264.542);
	--dark: oklch(13% 0.028 261.692);
	--dark-2: oklch(27.8% 0.033 256.848);
	--accent: oklch(52% 0.105 223.128);

	--text-primary: #0f172a;
	--text-secondary: #475569;
	--text-heading: oklch(13% 0.028 261.692);
	--text-lead: oklch(21% 0.034 264.665);
	--text-base: #4a5565;

	--border: oklch(70.7% 0.022 261.325);
	--outline: rgba(24, 24, 24, 0.111);
	--marker: #a1a5ab;
	--transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
	color-scheme: dark;
	--primary: #030712;
	--secondary: #131924;
	--light: oklch(98.5% 0.002 247.839);
	--light-2: oklch(96.7% 0.003 264.542);
	--dark: oklch(13% 0.028 261.692);
	--dark-2: oklch(27.8% 0.033 256.848);
	--accent: oklch(74.6% 0.16 232.661);

	--text-primary: #f1f5f9;
	--text-secondary: #cbd5e1;
	--text-heading: #ffffff;
	--text-lead: #ffffff;
	--text-base: #99a1af;

	--border: #334155;
	--outline: rgba(255, 255, 255, 0.111);
	--marker: #384357;
	--transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

:root {
	font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

html,
body {
	font-family: "InterVar", system-ui, -apple-system, sans-serif;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

body {
	min-height: 100vh;
	position: relative;
	background: var(--primary);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2rem;
	overflow-y: scroll;
	overflow-x: hidden;
	color: var(--text-base);
	font-family: inherit;
	font-size: 14px;

	&::before,
	&::after {
		content: "";
		position: absolute;
		left: 3rem;
		background: var(--outline);
		width: 1px;
		top: 0;
		bottom: 0;
	}

	&::after {
		left: unset;
		right: 3rem;
	}
}

[data-theme="light"] body {
	background: linear-gradient(135deg, #f8fafc 0%, #f0f4f8 100%);
}


button {
	cursor: pointer;
	color: var(--text-primary);
}

button,
input,
textarea {
	border: none;
	font-family: inherit;
	font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

svg {
	display: block;
}

.theme-switcher {
	background: transparent;
	border: none;
	cursor: pointer;
	transition: color 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;

	& button {
		padding: 2px;
		border-radius: 4px;
		color: var(--text-primary);
		background: var(--outline);

		&:hover {
			color: var(--accent);
		}
	}
}

:is(.about-section, .contact-section) {
	display: flex;
	align-items: center;
	justify-content: center;

	h1,
	h2,
	h3 {
		color: var(--text-heading);
		position: relative;

		&::before,
		&::after {
			content: "";
			position: absolute;
			background-color: var(--outline);
			width: 200vw;
			height: 1px;
			left: -100vw;
			right: -100vw;
			top: 0;
			z-index: 0;
		}
		&::after {
			top: 100%;
			bottom: 0;
		}
	}
}

[data-theme="light"] .sun-icon {
	display: block;
}

[data-theme="light"] .moon-icon {
	display: none;
}

.page-container {
	padding: 20px;
	padding-top: 3rem;
	width: 100%;
	position: relative;
	overflow: hidden;
}

/* Navigation */
.page-nav {
	position: fixed;
	top: 14px;
	left: 50%;
	translate: -50%;
	flex-shrink: none;
	padding: 0.4rem 1.15rem;
	border-radius: 999px;
	border: 2px solid var(--border);
	background: var(--secondary);
	outline: 4px solid var(--outline);
	z-index: 3;
	max-width: fit-content;
	box-shadow: dark(0px 0px 3px 0px oklch(87.2% 0.01 258.338));

	& ul {
		display: flex;
		align-items: center;
		gap: 1.5rem;
		list-style: none;
	}

	.divide {
		width: 1px;
		height: 15px;
		background-color: var(--border);
	}

	& a {
		text-wrap: nowrap;
		color: var(--text-primary);
		text-decoration: none;
		font-weight: 500;

		&[aria-current="page"] {
			color: var(--accent);
		}

		&:hover {
			opacity: 0.85;
		}
	}
}

/* Profile Card */
.profile-card {
	/* display: none !important; */
	position: relative;
	display: grid;
	grid-template-columns: 1fr 2fr;
	/* margin-top: 1rem; */
	gap: 0;
	background: var(--secondary);
	border-radius: 16px;
	overflow: hidden;
	max-width: 1000px;
	margin: auto;
	width: 100%;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
	border: 2px solid var(--border);
	outline: 10px solid var(--outline);
	z-index: 2;

	&:hover {
		box-shadow: 0 30px 80px rgba(6, 182, 212, 0.1);
		border-color: var(--accent);
	}
}

/* Sidebar */
.profile-sidebar {
	position: relative;
	background: var(--primary);
	padding: 40px 5px;
	display: flex;
	flex-direction: column;
	gap: 30px;
	border-right: 1px solid var(--border);
}

.profile-avatar {
	width: 140px;
	height: 140px;
	border-radius: 12px;
	overflow: hidden;
	margin: 0 auto;
	border: 2px solid var(--accent);
	box-shadow: 0 10px 30px rgba(6, 182, 212, 0.2);
	transition: var(--transition);

	&:hover {
		transform: scale(1.05);
		box-shadow: 0 15px 40px rgba(6, 182, 212, 0.3);
	}

	& img {
		width: 100%;
		height: 100%;
		object-fit: cover;
	}
}

.profile-meta {
	text-align: center;
}

.profile-name {
	font-size: 1.8rem;
	font-weight: 400;
	margin-bottom: 4px;
	color: var(--text-primary);
	letter-spacing: -1.2px;
}

.profile-email {
	font-size: 12px;
	color: var(--text-primary);
	margin-bottom: 10px;
	display: block;
}

.profile-title {
	font-size: 0.95rem;
	color: var(--accent);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1px;
	margin-bottom: 12px;
}

.profile-time {
	font-size: 0.85rem;
	color: var(--text-secondary);
	font-family: "Courier New", monospace;
	letter-spacing: 0.5px;
}

/* Social Links */
.social-section {
	margin-top: auto;
}

.social-links {
	display: flex;
	gap: 12px;
	list-style: none;
	justify-content: center;
}

.social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 8px;
	background: rgba(6, 182, 212, 0.1);
	color: var(--accent);
	text-decoration: none;
	transition: var(--transition);
	border: 1px solid rgba(6, 182, 212, 0.2);

	&:hover,
	&:focus {
		background: var(--accent);
		color: var(--primary);
		transform: translateY(-3px);
		box-shadow: 0 8px 20px rgba(6, 182, 212, 0.3);
	}

	&:focus {
		outline: 2px solid var(--accent);
		outline-offset: 2px;
	}
}

/* Main Content */
.profile-content {
	padding: 40px;
	display: flex;
	flex-direction: column;
	gap: 35px;
	overflow-y: auto;
	max-height: 600px;

	&::-webkit-scrollbar {
		width: 6px;
	}

	&::-webkit-scrollbar-track {
		background: transparent;
	}

	&::-webkit-scrollbar-thumb {
		background: var(--border);
	}

	&::-webkit-scrollbar-thumb:hover {
		background: var(--accent);
	}
}

.content-section {
	animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.profile-bio {
	font-size: 0.875rem;
	line-height: 1.8;
	color: var(--text-secondary);
	letter-spacing: 0.3px;

	& p + p {
		margin-top: 10px;
	}

	& strong {
		color: var(--accent);
	}
}

.section-title {
	font-family: "Playfair Display", serif;
	font-size: 1.4rem;
	font-weight: 700;
	color: var(--accent);
	margin-bottom: 16px;
	position: relative;
	padding-bottom: 12px;

	&::after {
		content: "";
		position: absolute;
		bottom: 0;
		left: 0;
		width: 40px;
		height: 2px;
		background: linear-gradient(90deg, var(--accent), transparent);
	}
}

.profile-list {
	list-style: none;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px 20px;
	padding-left: 1rem;

	& li {
		padding: 6px;
		padding-left: 0.75rem;
		color: var(--text-secondary);
		transition: var(--transition);
		list-style: square;

		&::marker {
			content: "✦";
			color: var(--marker);
		}

		&:hover {
			transform: translateX(4px);
		}
	}
}

.about-section {
	position: relative;

	h2 {
		font-size: 20px;
	}

	li,
	p:not(.page-subtitle) {
		color: var(--text-secondary);
	}

	p:not(.page-subtitle) {
		margin-bottom: 16px;
	}

	strong {
		color: var(--text-lead);
		font-weight: 600;
	}

	& li::marker {
		content: "✦";
		color: var(--marker);
	}
}

.about-container,
.contact-container {
	max-width: 900px;
	width: 100%;
	padding-inline: 2rem;
}

.about-subsection {
	&:not(:first-of-type) {
		margin-top: 2rem;
	}

	h2 {
		margin-bottom: 12px;
	}
}
.about-list {
	padding-left: 32px;

	& li {
		list-style: square;
		padding-left: 16px;
	}

	& li + li {
		margin-top: 16px;
	}
}

h2,
h3 {
	font-weight: 500;
	letter-spacing: -0.05em;
}

.page-title {
	margin-bottom: 1.25rem;
	font-size: 3.5rem;
	font-weight: 400;
	letter-spacing: -0.065em;
}

.page-subtitle {
	font-size: 14px;
	letter-spacing: -0.02em;
	text-transform: uppercase;
	margin-bottom: 50px;
	font-weight: 600;
	color: var(--accent);
	font-style: italic;
	text-align: right;
	font-family: "Courier New", Courier, monospace;
}

.contact-form {
	& > .form-group {
		display: grid;
		grid-template-columns: 200px 1fr;
	}

	& > .form-group + .form-group {
		margin-top: 1rem;
	}

	label {
		font-weight: 500;
	}

	& input,
	textarea {
		width: 100%;
		padding: 8px 14px;
		border: 1px solid var(--outline);
		background: light-dark(oklch(92.8% 0.006 264.531), oklch(27.8% 0.033 256.848));
		color: var(--text-lead);
		border-radius: 8px;
		font-size: inherit;
	}

	.error-message {
		grid-column-start: 2;
		font-size: 12px;
		color: red;
		min-height: 15px;
		margin-top: 4px;
		font-weight: 500;
	}

	.submit-btn {
		display: flex;
		margin-left: auto;
		margin-top: 2rem;
		color: light-dark(var(--light), var(--dark));
		background-color: light-dark(var(--dark), var(--light));
		padding: 12px 14px;
		border-radius: 8px;

		&:hover {
			opacity: 85%;
		}
	}
}

.success-message {
	margin: 100px auto 0;
	font-size: 20px;
	text-align: center;
	font-weight: 500;
	display: flex;
	flex-direction: column;
	align-items: center;
	max-width: 75%;

	& span {
		padding: 20px;
		border-radius: 50%;
		border: 1px solid var(--outline);
		background-color: rgba(181, 181, 181, 0.194);
		color: var(--accent);
	}

	& strong {
		color: var(--accent);
	}

	.message {
		margin-top: 1rem;
	}
}

/* Responsive */
@media (max-width: 768px) {
	body {
		padding: 6px;
		&::before {
			left: 2rem;
		}
		&::after {
			right: 2rem;
		}
	}

	.page-nav {
		padding: 0.45rem 1.15rem;
	}

	.profile-card {
		grid-template-columns: 1fr;
		outline-width: 6px;
	}
	.contact-form .error-message {
		grid-column-start: unset;
	}
	.profile-sidebar {
		border-right: none;
		border-bottom: 1px solid var(--border);
		padding: 30px 20px;
		gap: 20px;
	}
	.profile-content {
		padding: 30px 20px;
		max-height: none;
		gap: 25px;
	}
	.profile-name {
		font-size: 1.5rem;
	}
	.section-title {
		font-size: 1.2rem;
	}
	.profile-list {
		grid-template-columns: 1fr;
	}
	.profile-avatar {
		width: 120px;
		height: 120px;
	}

	.page-title {
		font-size: 2.5rem;
	}

	.page-subtitle {
		margin-bottom: 30px;
	}

	.contact-form {
		& .form-group {
			grid-template-columns: 1fr;
		}

		& label {
			margin-bottom: 8px;
		}
	}
}

@media (max-width: 480px) {
	body {
		padding: 6px;
		&::before,
		&::after {
			display: none;
		}
	}
	.page-container {
		padding-inline: 0;
	}
	.page-nav {
		max-width: 100%;

		& ul {
			gap: 1rem;
		}
	}
	.about-container {
		padding-inline: 0.35rem;
	}
	.profile-card {
		border-radius: 12px;
	}
	.profile-sidebar {
		padding: 20px 16px;
	}
	.profile-content {
		padding: 20px 8px;
	}
	.profile-name {
		font-size: 1.3rem;
	}
	.profile-title {
		font-size: 0.85rem;
	}
	.section-title {
		font-size: 1.1rem;
	}
	.success-message {
		font-size: 16px;
	}
}

@media (max-width: 390px) {
	.profile-card {
		border-radius: 0px;
		border-inline: 0;
		margin-inline: -10px;
		width: calc(100% + 20px);
	}
}
