/* ========================
   BASE & TYPOGRAPHY
========================= */
html {
	font-family: 'Roboto', sans-serif;
	box-sizing: border-box;
	font-size: 10px;
}

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

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ol,
ul {
	margin: 0;
	padding: 0;
	font-weight: normal;
}

ol,
ul {
	list-style: none;
}

img {
	max-width: 100%;
	height: auto;
}

/* Responsive base font size */
@media (min-width: 576px) {
	html {
		font-size: 12px;
	}
}

@media (min-width: 768px) {
	html {
		font-size: 14px;
	}
}

@media (min-width: 992px) {
	html {
		font-size: 16px;
	}
}

@media (min-width: 1200px) {
	html {
		font-size: 18px;
	}
}

/* ========================
   MAIN STRUCTURE
========================= */
main {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	justify-content: center;
	padding: 0 30px;
	text-align: center;
	background: #e8d23b;
	color: #1E1E1E;
}

h1.intro {
	font-family: 'Reem Kufi', sans-serif;
	font-size: 2.5rem;
	text-align: center;
	margin-bottom: 1rem;
}

main .intro {
	font-family: 'Reem Kufi', sans-serif;
	font-size: 3.75em;
	font-weight: 600;
}

main .tagline {
	font-size: 1.5rem;
	margin: 1.5rem 0;
	font-weight: 100;
	font-family: 'Reem Kufi', sans-serif;
}

h2.tagline {
	font-size: 1.75rem;
	border-bottom: 2px solid #000;
	padding-bottom: 0.2rem;
	margin-top: 1.5rem;
	font-family: 'Reem Kufi', sans-serif;
}

h3 {
	font-size: 1.3rem;
	margin-top: 2rem;
	font-family: 'Reem Kufi', sans-serif;
}

.parrafo {
	font-family: 'Reem Kufi', sans-serif;
	font-size: 1.2em;
	font-weight: 100;
	padding: 10px 30px;
}

/* ========================
   CONTAINER & LAYOUT
========================= */
.container {
	max-width: 800px;
	margin: 2rem auto;
	padding: 2rem 1.5rem;
	background-color: rgba(255, 255, 255, 0.95);
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	text-align: justify;
}

.container details {
	margin-bottom: 0.5rem;
}

.container summary {
	cursor: pointer;
	font-size: 1.25rem;
	font-weight: bold;
	padding: 0.5rem 0;
}

.container summary h2,
.container summary h3 {
	display: inline;
	margin: 0;
	font-size: inherit;
}

.container ul.cv-list {
	padding-left: 1.5rem;
	margin-bottom: 0.7rem;
}

/* ========================
   CV LIST ITEMS
========================= */
.cv-list li {
	font-size: 1.1em;
	margin-bottom: 0.7rem;
	line-height: 1.5;
	text-align: left;
}

.cv-title {
	font-weight: bold;
}

.cv-institution {
	font-style: italic;
}

.cv-year {
	color: #666;
}

/* ========================
   INDEX LINKS
========================= */
.cv-index {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1rem;
	margin: 1.5rem auto 2rem;
	padding: 0 1rem;
}

.index-link {
	background-color: #333;
	color: #f9f9f9;
	border: 1px solid #555;
	border-radius: 20px;
	padding: 0.5rem 1rem;
	text-decoration: none;
	font-size: 0.95rem;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.index-link:hover {
	background-color: #717171;
	color: #fff;
}

/* ========================
   DETAILS ELEMENTS
========================= */
details summary {
	cursor: pointer;
	padding: 0.5rem 0;
}

details summary h2,
details summary h3 {
	display: inline;
	font-size: 1.2em;
	margin: 0;
}

details[open]>summary::after {
	content: " ▲";
	font-size: 0.8em;
	color: #999;
}

details:not([open])>summary::after {
	content: " ▼";
	font-size: 0.8em;
	color: #999;
}

details>ul,
details>div,
details details {
	margin-left: 1rem;
	padding-top: 0.5rem;
}

details details {
	margin-top: 0.5rem;
	margin-bottom: 1rem;
	padding-left: 1.2rem;
	border-left: 2px solid #eee;
}

/* ========================
   BUTTONS & TOOLS
========================= */
.custom-lang-btn {
	display: inline-block;
	background-color: transparent;
	color: #1E1E1E;
	border: 2px solid #1E1E1E;
	padding: 0.4rem 1rem;
	border-radius: 4px;
	font-size: 0.8rem;
	font-family: 'Roboto', sans-serif;
	text-decoration: none;
	transition: background-color 0.3s, color 0.3s, border-color 0.3s;
	cursor: pointer;
}

.custom-lang-btn:hover {
	background-color: #1E1E1E;
	color: #fff;
}

.custom-lang-btn:focus,
.custom-lang-btn:active {
	outline: none;
	box-shadow: none;
	background-color: inherit;
	color: inherit;
}

/* ========================
   SPINNER
========================= */
#loading-spinner {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(255, 255, 255, 0.8);
	display: flex;
	justify-content: center;
	align-items: center;
	font-size: 2rem;
	z-index: 1000;
}

#loading-spinner i {
	animation: spin 1s linear infinite;
}

@keyframes spin {
	from {
		transform: rotate(0deg);
	}

	to {
		transform: rotate(360deg);
	}
}

/* ========================
   MISC
========================= */
.top-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin: 10px 20px;
}

.profile-photo {
	width: 250px;
	max-width: 100%;
	height: auto;
}

.intro-text {
	max-width: 700px;
	margin: 2rem auto;
	text-align: justify;
	padding: 1rem 2rem;
	background-color: rgba(255, 255, 255, 0.9);
	border-radius: 8px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.icons-social a {
	color: #1E1E1E;
}

.icons-social i {
	font-size: 2.5em;
	padding: 10px;
}

.icons-social a svg path {
	fill: #1E1E1E;
}

a {
	text-decoration: underline;
}