/* CSS style reset */
/* 1. Use a more-intuitive box-sizing model */

*,
*::before,
*::after {
	box-sizing: border-box;
}

/* 2. Remove default margin */
*:not(dialog) {
	margin: 0;
}

/* 3. Enable keyword animations */
@media (prefers-reduced-motion: no-preference) {
	html {
		interpolate-size: allow-keywords;
	}
}

body {
	/* 4. Add accessible line-height */
	line-height: 1.75;
	/* 5. Improve text rendering */
	-webkit-font-smoothing: antialiased;
}

/* 6. Improve media defaults */
img,
picture,
video,
canvas,
svg {
	display: block;
	max-width: 100%;
}

/* 7. Inherit fonts for form controls */
input,
button,
textarea,
select {
	font: inherit;
}

/* 8. Avoid text overflows */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
	overflow-wrap: break-word;
}

/* 9. Improve line wrapping */
p {
	text-wrap: pretty;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	text-wrap: balance;
}

/*
  10. Create a root stacking context
*/
#root,
#__next {
	isolation: isolate;
}

/* ========== */


:root {
	--bg: #ffffff;
	--text: #111111;
	--link: #007df6;
	--link-visited: purple;
	--link-hover: #ff4500;
	--border-color: #ebebeb;
	--scroll-btn-color: black;
	--scroll-btn-bg-color: rgba(0, 0, 0, 0.15);
	--scroll-btn-border-color: rgba(0, 0, 0, 0.3);
	--scroll-btn-box-shadow: rgba(255, 255, 255, 0.15);
	--scroll-btn-bg-color-hover: rgba(0, 0, 0, 0.25);
	--heading-bg-color: rgba(0, 0, 0, 0.075)
}

@media (prefers-color-scheme: dark) {
	:root {
		--bg: #111111;
		--text: #f1f1f1;
		--link: #32cd32;
		--link-visited: orange;
		--link-hover: orange;
		--border-color: #2e2e2e;
		--scroll-btn-color: white;
		--scroll-btn-bg-color: rgba(255, 255, 255, 0.15);
		--scroll-btn-border-color: rgba(255, 255, 255, 0.3);
		--scroll-btn-box-shadow: rgba(0, 0, 0, 0.15);
		--scroll-btn-bg-color-hover: rgba(255, 255, 255, 0.25);
		--heading-bg-color: rgba(255, 255, 255, 0.075);
	}
}

body {
	background-color: var(--bg);
	color: var(--text);
}

a:link {
	color: var(--link);
}

a:visited {
	color: var(--link-visited);
}

a:hover {
	color: var(--link-hover);
}

html {
	font-family: "Space Mono";
	font-size: clamp(14px, 1.5vw, 18px);
	display: flex;
	justify-content: center;
	scroll-behavior: smooth;
}

body {
	display: flex;
	flex-direction: column;
	align-content: center;
	justify-content: center;
	align-items: center;
	padding: clamp(20px, 4vw, 40px);
	width: min(100%, 100ch);
	transition: background-color 0.3s, color 0.3s;
}


h1 {
	font-size: 1.5rem;
}

h2 {
	font-size: 1.25rem;
	text-decoration: underline;
}

h3 {
	font-size: 1rem;
}

ul {
	margin: 0;
	padding: 0;
}

li {
	list-style-type: none;
}


section {
	margin: 24px 0;
}

article {
	margin: 20px 0;
	/* border: 1px solid var(--border-color); */
	/* padding: 10px; */
	/* border-radius: 2px; */
}

article header {
	margin-bottom: 10px;
	border: 1px solid var(--border-color);
	border-radius: 4px;
	padding: 4px 10px;
	background-color: var(--heading-bg-color);
}

time {
	text-align: right;
}

/* hr { */
/* 	border: 0; */
/* 	border-bottom: 1px solid var(--border-color); */
/* } */
hr {
	border: none;
	border-top: 1px solid var(--border-color);
	margin: 2rem 0;
}

section:target {
	scroll-margin-top: 40px;
}

.parent-row {
	display: flex;
	flex-direction: column;
}

.row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
}

.col-1 {
	flex: 2;
}

.col-2 {
	flex: 2;
}

.navigation-list {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 10px;
}

.technology-list {
	display: flex;
	gap: 4px 0;
	align-content: center;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
}

.technology-list li+li::before {
	content: "|";
	padding: 0 8px;
	opacity: 0.5;
}

.content-list {
	margin-left: 1rem;
}

.content-list li {
	list-style-type: circle;
}

.organization-list {
	margin-left: 0;
}

.organization-list li {
	list-style-type: none;
}

.experience-header-list li {
	list-style-type: none;
}

ul.work-info-list {
	margin-left: 1rem;
}

.work-info-list li {
	list-style-type: disc;
}



#header {
	padding-bottom: 10px;
	border-bottom: 1px solid var(--border-color);
}

#footer {
	padding: 10px 0;
	border-top: 1px solid var(--border-color);
}

#footer>p {
	text-align: center;
}

.align-right {
	text-align: right;
}

.footer-container {
	display: flex;
	gap: 10px;
	align-items: center;
	flex-wrap: nowrap;
	align-content: center;
	justify-content: center;
}

#profile-picture {
	height: 200px;
	border-radius: 100%;
	border: 1px solid var(--border-color);
}

.hello {
	display: flex;
	align-content: center;
	justify-content: center;
	align-items: center;
	flex-direction: column;
}

.designation {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.scroll-btns {
	position: fixed;
	bottom: 70px;
	right: 24px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.scroll-btns a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	text-decoration: none;
	font-size: 1.2rem;
	color: var(--scroll-btn-color);
	background-color: var(--scroll-btn-bg-color);
	backdrop-filter: blur(12px) saturate(180%);
	-webkit-backdrop-filter: blur(6px) saturate(180%);
	border: 1px solid var(--scroll-btn-border-color);
	box-shadow: 0 4px 16px var(--scroll-btn-box-shadow);
	-webkit-tap-highlight-color: transparent;
	outline: none;
	user-select: none;
	-webkit-user-select: none;
	transition: background-color 0.2s, transform 0.2s;
}

.scroll-btns a:hover {
	background-color: var(--scroll-btn-bg-color-hover);
}

.highlight {
	background-color: #ffa500;
	color: black;
}

#print-btn-parent {
	display: flex;
	align-items: center;
	justify-content: center;
}

#print-btn {
	color: var(--link);
	background: none;
	border: none;
	margin: 0;
	padding: 0;
}


/* hover for desktop only */
@media (hover: hover) {
	.scroll-btns a:hover {
		transform: scale(1.1);
	}

}

@media print {

	@page {
		margin: 1.5cm 2cm;
		size: A4;
	}

	.scroll-btns {
		display: none;
	}

	#print-btn {
		display: none;
	}

}
