/* ==========================================================================
   DESIGN SYSTEM
   ========================================================================== */

:root {
	--accent: #f59e0b;
	--bg: #ffffff;
	--bg-alt: #f8fafc;
	--text-main: #1f2937;
	--text-muted: #6b7280;
	--status-error: #ef4444;
	--status-success: #10b981;
	--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
	--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
	--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
	--transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	--radius: 12px;
}

/* --- Themes --- */

/* Blue Theme */
body.theme-blue {
	--primary: #2563eb;
	--primary-dark: #1e40af;
	--hero-gradient: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
	--card-hover-bg: #eff6ff;
}

/* Green Theme */
body.theme-green {
	--primary: #059669;
	--primary-dark: #047857;
	--hero-gradient: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
	--card-hover-bg: #f0fdf4;
}

/* --- Utilities --- */

.text-theme {
	color: var(--primary) !important;
}

/* ==========================================================================
   BASE STYLES & TYPOGRAPHY
   ========================================================================== */

body {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 16px;
	color: var(--text-main);
	line-height: 1.6;
	overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand {
	font-family: 'Outfit', sans-serif;
	font-weight: 700;
	color: var(--text-main);
}

.container.lead {
	line-height: 1.7;
}

/* Accessibility: Focus States */
a:focus-visible,
button:focus-visible {
	outline: 2px solid var(--primary);
	outline-offset: 2px;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */

.navbar-default {
	background-color: rgba(255, 255, 255, 0.9);
	backdrop-filter: blur(8px);
	border: none;
	box-shadow: var(--shadow-sm);
}

.navbar-default .navbar-nav>li>a {
	color: var(--text-main);
	font-weight: 600;
	transition: var(--transition);
}

.navbar-default .navbar-nav>li>a:hover {
	color: var(--primary);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero-section {
	padding: 40px 0;
	background: var(--hero-gradient);
	border-radius: 0 0 50px 50px;
	margin-bottom: 2rem;
	box-shadow: var(--shadow-sm);
}

.profile-card {
	text-align: center;
	padding: 1.5rem;
	background: white;
	border-radius: var(--radius);
	box-shadow: var(--shadow-md);
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	height: 100%;
}

.profile-img {
	width: 220px;
	height: auto;
	border-radius: 24px;
	box-shadow: var(--shadow-lg);
	border: 4px solid white;
	transition: var(--transition);
	margin-bottom: 1.5rem;
}

.profile-img:hover {
	transform: scale(1.02);
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.hero-title {
	font-size: 2.5rem;
	margin-bottom: 0.5rem;
	color: var(--text-main);
	line-height: 1.2;
}

.hero-subtitle {
	font-size: 2rem;
	color: var(--text-main);
	margin-bottom: 0.5rem;
	font-weight: 600;
	line-height: 1.4;
}

.hero-info p {
	font-size: 1.25rem;
	margin-bottom: 0.5rem;
	color: var(--text-main);
}

.hero-card {
	background: white;
	padding: 0.5rem 1.5rem;
	border-radius: var(--radius);
	box-shadow: var(--shadow-md);
	height: 100%;
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: var(--primary) transparent;
}

.hero-card::-webkit-scrollbar {
	width: 4px;
}

.hero-card::-webkit-scrollbar-thumb {
	background-color: var(--primary);
	border-radius: 10px;
}

.hero-column-fixed-height {
	height: 340px;
}

.social-links {
	margin-top: 2rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.85rem;
}

/* ==========================================================================
   COMPONENTS: CARDS & LISTS
   ========================================================================== */

/* Main List Item / Research Card Style */
/* .academic-list {
	margin-top: 1.5rem;
} */

ol[reversed] li,
ol.academic-list li,
ul.academic-list li,
.research-card {
	background: var(--bg-alt);
	margin-bottom: 2rem;
	padding: 1rem 1.5rem;
	border-radius: var(--radius);
	border-left: 5px solid var(--primary);
	transition: var(--transition);
	list-style-position: outside;
	text-indent: 0;
	margin-left: 0;
	text-align: justify;
	box-shadow: var(--shadow-sm);
	position: relative;
	overflow: visible;
}

/* Compact style for non-publication lists and specific research cards */

/* ul.academic-list {
	padding-left: 0;
} */

ul.academic-list li,
.research-card {
	margin-bottom: 0.75rem;
	padding: 1rem 1.5rem;
}

ul.academic-list li {
	list-style-type: none;
}

/* Hover Effects */
ol[reversed] li:hover,
ol.academic-list li:hover,
ul.academic-list li:hover,
.research-card:hover {
	background: var(--bg);
	box-shadow: var(--shadow-lg);
	transform: translateY(-4px) translateX(4px);
	border-left-color: var(--accent);
}

/* Sub-section (Research) Styling */
.sub-section header {
	background-color: var(--bg-alt) !important;
	border: none !important;
	border-radius: var(--radius) !important;
	padding: 1rem 1.5rem !important;
	margin-top: 1.5rem !important;
	transition: var(--transition) !important;
	display: flex;
	align-items: center;
	font-weight: 600;
	color: var(--primary);
	box-shadow: var(--shadow-sm);
}

.sub-section header:hover {
	background-color: var(--card-hover-bg) !important;
	color: var(--primary-dark);
	box-shadow: var(--shadow-md);
}

.sub-section .content {
	border: none !important;
	padding: 1.5rem !important;
	background: transparent !important;
}

/* Resets for nested elements */
ol li p,
ol li ol li {
	background: none !important;
	border: none !important;
	box-shadow: none !important;
	padding: 0 !important;
	margin-left: 0 !important;
	margin-bottom: 0.5rem !important;
	transform: none !important;
}

/* ==========================================================================
   UI ELEMENTS: LABELS, BUTTONS, STATUSES
   ========================================================================== */

/* Info Labels */
.label-info {
	background-color: transparent !important;
	color: var(--primary) !important;
	border: 1px solid var(--primary) !important;
	font-weight: 600;
	padding: 0.4em 1em;
	border-radius: 999px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	transition: var(--transition);
}

.label-info:hover {
	background-color: var(--primary) !important;
	color: white !important;
}

.label-info a {
	color: inherit !important;
	text-decoration: none !important;
}

/* Success Labels */
.label-success {
	background-color: var(--status-success) !important;
	padding: 0.3em 0.8em;
	border-radius: 999px;
}

/* Submission Status */
.status-submitted {
	color: var(--status-error);
	font-weight: 600;
}

.status-box {
	margin-bottom: 3rem;
}

.year-buttons {
	margin-top: 1.5rem !important;
	/* Separation between rows */
}

/* Scroll to Top Button */
#topcontrol {
	transition: var(--transition);
}

#topcontrol img {
	width: 50px;
	height: auto;
	filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

/* ==========================================================================
   RESPONSIVE ADJUSTMENTS
   ========================================================================== */

@media (max-width: 768px) {
	#topcontrol img {
		width: 40px;
	}

	ol[reversed] li,
	ol.academic-list li,
	.research-card {
		margin-left: 1rem;
		padding: 1.5rem;
	}
}

/* Sticky Year Navigation */
.sticky-year-nav {
	position: -webkit-sticky;
	position: sticky;
	top: 60px;
	z-index: 90;
	background-color: white;
	padding: 10px 0;
	margin-top: 0;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
	border-radius: 10px;
}
