/* Pleasant, modern color palette and section backgrounds */





:root {
	--primary: #2196f3; /* blue */
	--primary-dark: #1769aa;
	--secondary: #e0f7fa; /* light teal */
	--accent: #43e97b; /* green accent */
	--accent-dark: #1cb35c;
	--section-bg: linear-gradient(135deg, #e3f2fd 60%, #b2ebf2 100%); /* blue to teal gradient */
	--section-alt-bg: linear-gradient(135deg, #b2ebf2 60%, #e3f2fd 100%); /* teal to blue gradient */
	--hero-bg: linear-gradient(120deg, #2196f3 0%, #43e97b 100%);
	--card-bg: #fafdff;
	--card-alt-bg: #e0f7fa;
	--card-shadow: 0 4px 24px rgba(33,150,243,0.10);
	--profile-link: #2196f3;
	--navbar-bg: #2196f3; /* Always blue */
	--navbar-shadow: 0 2px 12px rgba(33,150,243,0.07);
    --home-title-color: #222;
}
.theme-dark {
    --home-title-color: #fff;
}
.home-title {
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 0.5em;
    color: var(--home-title-color) !important;
}

body {
	min-height: 100vh;
}

body.theme-light {
	background: #fff !important;
	color: #222;
}
body.theme-dark {
	background: #111 !important;
	color: #eee;
}

#main-content {
	background: transparent !important;
}

.section-card {
	background: var(--card-bg);
	border-radius: 1.5rem;
	box-shadow: var(--card-shadow);
	padding: 2rem 2rem 1.5rem 2rem;
	margin-bottom: 2rem;
	color: #1769aa;
	transition: box-shadow 0.2s, background 0.2s;
}
.section-card-alt {
	background: var(--card-alt-bg);
	border-radius: 1.5rem;
	box-shadow: var(--card-shadow);
	padding: 2rem 2rem 1.5rem 2rem;
	margin-bottom: 2rem;
	color: #1769aa;
	transition: box-shadow 0.2s, background 0.2s;
}

/* Alternate section backgrounds for visual variation */
.section-card:nth-of-type(even),
.section-card-alt:nth-of-type(odd) {
	background: var(--section-alt-bg);
}


/* Default navbar styling (before theme classes are applied) */
#top-nav {
	background: #2196f3 !important;
}

body.theme-light #top-nav {
	background: #2196f3 !important;
}
body.theme-dark #top-nav {
	/* background: #111 !important; */
	color: #fff !important;
	border: none !important;
	box-shadow: none !important;
}

#top-nav .navbar,
#top-nav .navbar-nav,
#top-nav .navbar-collapse,
#top-nav .navbar-brand,
#top-nav .nav-link {
	background: transparent !important;
	color: #fff !important;
}


#top-nav .navbar-nav .nav-link {
	color: #fff !important;
	font-weight: 500;
	position: relative;
	transition: color 0.2s;
	background: transparent !important;
}

#top-nav .navbar-nav .nav-link.active,
#top-nav .navbar-nav .nav-link:focus {
	text-decoration: underline;
	text-underline-offset: 4px;
	color: #fff !important;
	background: transparent !important;
}

#top-nav .navbar-brand {
	color: #fff !important;
	font-weight: 700;
	letter-spacing: 0.5px;
	background: transparent !important;
}

/* Card hover for engagement */
.section-card:hover, .section-card-alt:hover {
	box-shadow: 0 8px 32px rgba(33,150,243,0.18);
	background: #e0f7fa;
}

/* Profile card pop */
.profile-card {
	background: linear-gradient(135deg, #e0f7fa 80%, #b2ebf2 100%);
	border: none;
	border-radius: 1.5rem;
		box-shadow: 0 4px 24px rgba(33,150,243,0.13);
		color: var(--home-title-color);
		display: flex;
		flex-direction: column;
		align-items: center;
}

body.theme-dark .profile-card {
	background: #222 !important;
	color: #eee !important;
		box-shadow: 0 4px 24px rgba(0,0,0,0.13);
		display: flex;
		flex-direction: column;
		align-items: center;
}

.hero-section {
	background: var(--hero-bg);
	padding-top: 3rem;
	padding-bottom: 3rem;
	border-bottom-left-radius: 2rem;
	border-bottom-right-radius: 2rem;
	box-shadow: 0 8px 32px rgba(33,150,243,0.10);
	color: #fff;
}
.hero-img {
	border: 4px solid #fff;
	box-shadow: 0 2px 16px rgba(0,0,0,0.10);
}
.hero-link {
	color: var(--accent);
	text-decoration: underline;
}
.hero-link:hover {
	color: #fff;
}

.profile-card {
	background: var(--card-bg);
	border: none;
	border-radius: 1.5rem;
	box-shadow: var(--card-shadow);
	color: #1769aa;
}
.profile-link {
	color: var(--profile-link);
	text-decoration: underline;
}
.profile-link:hover {
	color: var(--primary-dark);
}

.section-card {
	background: var(--card-bg);
	border-radius: 1.5rem;
	box-shadow: var(--card-shadow);
	padding: 2rem 2rem 1.5rem 2rem;
	margin-bottom: 2rem;
	color: #1769aa;
}
.section-card-alt {
	background: var(--card-alt-bg);
	border-radius: 1.5rem;
	box-shadow: var(--card-shadow);
	padding: 2rem 2rem 1.5rem 2rem;
	margin-bottom: 2rem;
	color: #1769aa;
}

@media (max-width: 767.98px) {
	.hero-section {
		border-bottom-left-radius: 1rem;
		border-bottom-right-radius: 1rem;
		padding-top: 2rem;
		padding-bottom: 2rem;
	}
	.section-card, .section-card-alt {
		padding: 1rem 0.5rem 1rem 0.5rem;
		border-radius: 1rem;
	}
	#top-nav .navbar-brand {
		display: block !important;
		font-weight: 600;
		/* color: var(--primary-dark); */
		font-size: 1.2rem;
		letter-spacing: 0.5px;
		margin-right: 1rem;
	}
}

/* Enhance buttons for engagement */
.btn-outline-primary {
	border-color: var(--primary);
	color: var(--primary);
	background: #fff;
	transition: all 0.2s;
}
.btn-outline-primary:hover, .btn-outline-primary:focus {
	background: var(--primary);
	color: #fff;
}
.btn-outline-light {
	border-color: #fff;
	color: #fff;
	background: transparent;
	transition: all 0.2s;
}
.btn-outline-light:hover, .btn-outline-light:focus {
	background: #fff;
	color: var(--primary);
}
/* MOBILE's FIRST - Custom properties */
/* This classes will be then modified for bigger screens */

#mowatave {
	color: #2bd284 !important;
	text-decoration: underline;
}

.underline {
	text-decoration: underline;
}

a {
	text-decoration-thickness: 1px;
}

#hobbiesH4 {
	text-align: center;
}

#hobbie1, #hobbie2, #hobbie3 {
	text-align: center;
	margin-top: 1em;
}

.abme-honors-bullet{
	font-size: 16px;
}

/* GENERAL CSS */
#main-content {
	margin-top: 20px;
}

li > .active {
	font-weight: 500;
}

.trnsf-thin {
	font-weight: 300;
}

.trnsf-italic {
	font-style: italic;
}

.justify {
	text-align: justify;
  	text-justify: inter-word;
}

.lucida-console {
	font-family: 'Lucida Console', monospace;
}

/* NICOLAS MESEGUER CONTACT INFO - Related*/
.profilepicture {
	max-height: 300px;
	min-width: 150px;
	min-height: 150px;
		display: block;
		margin-left: auto;
		margin-right: auto;
		margin-top: 0;
		margin-bottom: 0;
	color: var(--home-title-color) !important;
	font-weight: 700;
	margin-bottom: 0.5em;
	text-align: center;
	color: var(--home-title-color) !important;
	text-align: center;
}

.fseneca {
	max-width: 50%; 
	height: auto;
}

.fseneca:hover {
	transform: scale(1.05,1.05);
}

/* PUBLICATIONS - Related */
.pub-block {
	border-left: 2px #D9DDDC solid;
	padding-left: 15px;
}

.pub-year-h2 {
	font-size: 3.2em;
	font-weight: 100;
}

.pub-authors {
	font-weight: 400;
}

.pub-authors .pub-author {
	font-weight: 500;
}

.pub-congress {
	font-weight: 100;
}

.pub-force-margin-left {
	margin-left: 10px !important;
}

/* ACADEMIC - Related */
.academic-year-h2, .student-h2 {
	font-size: 3.2em;
	font-weight: 100;
}

.academic-block, .student-block {
	padding-left: 15px;
}

.academic-rol {
	font-weight: 400;
}

.academic-year {
	font-weight: 100;
}

.student-mark {
	font-weight: 400;
	font-size: 1.1em;
}

.student-period {
	font-weight: 100;
}

/* OPTION BUTTON */
.options-button {
    position: fixed;
	
    height: 50px;
    width: 50px;
	cursor: pointer;

    border-radius: 100%;
	
	bottom: 25px;
	right: 25px;

	display: inline-block;

	font-size: 1.2em;
	vertical-align: middle;
	text-align: center;

	padding-top: .35em;
}

.options-button i, img {
	margin: auto;
	z-index: -999;
}

#options-toggler {
	transition: .2s;
}

#options-toggler:hover {
	transform: scale(1.09,1.09);
}

#theme {
	height: 40px;
    width: 40px;

	bottom: 85px !important;
	right: 30px !important;

	font-size: 1em;

	-webkit-transition: background-color .5s; /* For Safari 3.0 to 6.0 */
    transition: background-color .5s; /* For modern browsers */
}

#lan {
	height: 40px;
    width: 40px;

	bottom: 130px;
	right: 30px;

	font-size: 1em;

	-webkit-transition: background-color .5s; /* For Safari 3.0 to 6.0 */
    transition: background-color .5s; /* For modern browsers */
}

.lang-flag {
	height: 15px;
    width: 22.5px;
	vertical-align:	0px;
}

/* BLOG - Related */
.blog-info {
	font-weight: 100;
	width: 100%;
	clear: both;
	display: block;
}

.blog-short {
	font-weight: 400;
	font-size: 17px;
}

.blog-tags {
	text-align: right;
}

.blog-tags > .tag {
	border-radius: 100px;
	padding: 4px;
	font-size: 12px;
	font-weight: 600;
	box-shadow: 0px 3px 10px rgba(0,0,0,0.4);
	color: white;
}

.blog-tags > .t-purple {
	background-color: rgb(137, 70, 255, 0.8);
}

.blog-tags > .t-lime {
	background-color: rgba(118, 185, 0, 0.8);
}

.blog-tags > .t-sky {
	background-color: rgba(37, 197, 223, 0.8);
}

.clickable {
	border-radius: 20px;
	border: 2px #D9DDDC solid;
	padding: 15px;
	cursor: pointer;
	transition: .3s;
	box-shadow: 0px 3px 50px rgba(0,0,0,0.2);
}

.clickable:hover {
	box-shadow: 0px 3px 50px rgba(0,0,0,0.3);
	transform: scale(1.03,1.03);
}

/* MEDIA QUERIES */
/* BIGGER SCREENS */
@media (min-width: 768px) {

	#hobbiesH4 {
		text-align: left;
	}

	#hobbie1, #hobbie2, #hobbie3 {
		text-align: left;
		margin-top: 0;
	}

	.profilepicture {
		margin-left: 0%;
		margin-right: 0%;
	}
	
	.abme-honors-bullet{
		margin-left: 40px;
	}
}

/* Content section management */
[id$="Content"] {
	display: none;
}

[id$="Content"].active {
	display: block;
}

/* Enhanced home page styling */
.home-intro-text {
	font-size: 1.15rem;
	line-height: 1.6;
}

.section-icon {
	color: var(--primary);
	opacity: 0.8;
}

/* Lead text styling for introduction */
.lead {
	font-size: 1.15rem;
	font-weight: 400;
	line-height: 1.6;
	opacity: 0.9;
}

/* Small mobile devices (480px and below) */
@media (max-width: 480px) {
	.section-card, .section-card-alt {
		margin: 0 -0.5rem 1.5rem -0.5rem;
		padding: 1.25rem 0.75rem;
		border-radius: 1rem;
	}

	.home-title {
		font-size: 1.6rem;
		margin-bottom: 1rem;
	}

	.lead {
		font-size: 1rem;
		line-height: 1.5;
	}

	#homeContent h4 {
		font-size: 1.1rem;
	}

	#homeContent p {
		font-size: 0.9rem;
		line-height: 1.5;
	}
}

/* Mobile profile card optimization */
@media (max-width: 767px) {
	#section-content {
		display: flex;
		flex-direction: column;
	}

	#leftPanel {
		order: -1; /* Move profile card to top on mobile */
		margin-bottom: 2rem;
	}

	.profile-card {
		max-width: 400px;
		margin: 0 auto;
	}

	.profilepicture {
		width: 120px;
		height: 120px;
		object-fit: cover;
	}

	.profile-card .card-body {
		padding: 1.5rem 1rem;
	}

	.profile-card h3 {
		font-size: 1.3rem;
	}

	.profile-card p {
		font-size: 0.85rem;
	}

	/* Content sections on mobile */
	[id$="Content"] {
		padding: 0 1rem;
	}

	.col-md-8.offset-md-1 {
		margin-left: 0 !important;
	}

	/* Home page mobile enhancements */
	.section-card, .section-card-alt {
		margin-bottom: 1.5rem;
		padding: 1.5rem 1rem;
	}

	.home-title {
		font-size: 1.8rem;
	}

	.lead {
		font-size: 1.05rem;
	}
}

/* About Me section styling */
.education-item, .experience-item {
	margin-bottom: 1.5rem;
	padding: 1rem;
	background: var(--card-bg);
	border-radius: 0.8rem;
	border-left: 4px solid var(--primary);
	box-shadow: 0 2px 8px rgba(33,150,243,0.08);
}

.stats-container {
	background: var(--section-bg);
	padding: 1.5rem;
	border-radius: 1rem;
	margin: 1rem 0;
}

.awards-list {
	list-style: none;
	padding: 0;
}

.awards-list li {
	padding: 0.8rem 1rem;
	margin-bottom: 0.5rem;
	background: var(--card-alt-bg);
	border-radius: 0.5rem;
	border-left: 3px solid var(--accent);
}

body.theme-dark .education-item,
body.theme-dark .experience-item {
	background: #333 !important;
	border-left: 4px solid #43e97b;
	box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

body.theme-dark .stats-container {
	background: #2a2a2a !important;
}

body.theme-dark .awards-list li {
	background: #333 !important;
	border-left: 3px solid #43e97b;
}

/* Tablet optimizations */
@media (min-width: 768px) and (max-width: 1199px) {
	.section-card, .section-card-alt {
		padding: 2rem 1.5rem;
	}

	.home-title {
		font-size: 2rem;
	}
}

/* Large screen enhancements */
@media (min-width: 1200px) {
	.section-card, .section-card-alt {
		padding: 2.5rem 2rem 2rem 2rem;
	}
}

/* Better visual hierarchy for home sections */
#homeContent h4 {
	font-weight: 600;
	color: var(--primary-dark);
	margin-bottom: 1rem;
	margin-top: 0;
}

#homeContent .section-card h4,
#homeContent .section-card-alt h4 {
	border-bottom: 2px solid rgba(33,150,243,0.1);
	padding-bottom: 0.5rem;
	margin-bottom: 1.5rem;
}

/* Icon enhancements */
.fa-flask, .fa-graduation-cap, .fa-lightbulb, .fa-heart {
	color: var(--primary);
	opacity: 0.7;
}

body.theme-dark .fa-flask,
body.theme-dark .fa-graduation-cap,
body.theme-dark .fa-lightbulb,
body.theme-dark .fa-heart {
	color: var(--accent);
	opacity: 0.8;
}

/* Publications page enhancements */
.publication-card {
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.publication-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 32px rgba(33,150,243,0.15);
}

.publication-title {
	color: var(--primary-dark);
	font-weight: 600;
	line-height: 1.4;
	margin-bottom: 0.5rem;
}

.pub-authors {
	color: #666;
	font-size: 0.95rem;
}

.pub-authors .pub-author {
	font-weight: 600;
	color: var(--primary);
}

.pub-journal {
	color: #555;
	font-size: 0.9rem;
}

.publication-links {
	border-top: 1px solid rgba(33,150,243,0.1);
	padding-top: 1rem;
}

.publication-links .btn {
	font-size: 0.8rem;
	padding: 0.4rem 0.8rem;
	border-radius: 20px;
	text-decoration: none;
	transition: all 0.2s ease;
}

.publication-links .btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.abstract-content {
	background: rgba(33,150,243,0.05);
	border-radius: 0.5rem;
	padding: 1rem;
	border-left: 3px solid var(--primary);
}

/* Dark theme adjustments for publications */
body.theme-dark .publication-title {
	color: #fff;
}

body.theme-dark .pub-authors {
	color: #ccc;
}

body.theme-dark .pub-authors .pub-author {
	color: var(--accent);
}

body.theme-dark .pub-journal {
	color: #bbb;
}

body.theme-dark .publication-links {
	border-top: 1px solid rgba(67,233,123,0.2);
}

body.theme-dark .abstract-content {
	background: rgba(67,233,123,0.05);
	border-left: 3px solid var(--accent);
}

/* Mobile responsiveness for publications */
@media (max-width: 767px) {
	.publication-card {
		margin: 0 -0.5rem 1.5rem -0.5rem;
		padding: 1.25rem 1rem;
	}

	.publication-title {
		font-size: 1rem;
	}

	.pub-authors, .pub-journal {
		font-size: 0.85rem;
	}

	.publication-links .btn {
		font-size: 0.75rem;
		padding: 0.3rem 0.6rem;
		margin-bottom: 0.5rem;
	}
}